/* ===============================
   CSS VARIABLES
================================ */
:root{
  --bg:#0b0c10;
  --fg:#f5f3ee;
  --muted: rgba(245,243,238,.72);
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.14);
  --shadow: 0 18px 50px rgba(0,0,0,.35);

  --radius: 18px;
  --radius2: 24px;

  --max: 1120px;
  --pad: 20px;
}

/* ===============================
   RESET / BASE
================================ */
*{ box-sizing:border-box; }

html,body{ height:100%; }

body{
  margin:0;
  font-family: "Jost", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(900px 500px at 90% 40%, rgba(255,255,255,.06), transparent 55%),
    var(--bg);
  color: var(--fg);
  line-height: 1.4;
}

a{
  color: inherit;
  text-decoration: none;
}
a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.container{
  width:100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Accessibility skip link */
.skip{
  position:absolute;
  left:-999px;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip:focus{
  left:12px;
  top:12px;
  width:auto;
  height:auto;
  padding:10px 12px;
  border-radius:12px;
  background:#fff;
  color:#000;
  z-index:9999;
}

/* ===============================
   HEADER / NAV
================================ */
.site-header{
  position: sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,12,16,.55);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 0;
}

.brand-logo{
  height:34px;
  width:auto;
  display:block;
}

.nav{
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap;
}

.nav a{
  font-size:16px;
  padding:8px 10px;
  border-radius:12px;
  color: rgba(245,243,238,.9);
}

.nav a:hover{
  background: rgba(255,255,255,.06);
  text-decoration:none;
}

.nav-cta{
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
}

/* ===============================
   HERO
================================ */
.hero{
  position:relative;
  min-height:72vh;
  display:flex;
}

.hero-bg{
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(180deg, rgba(11,12,16,.55) 0%, rgba(11,12,16,.78) 55%, rgba(11,12,16,1) 100%),
    url("../img/hero.jpg");
  background-size:cover;
  background-position:center;
}

.hero-inner{
  position:relative;
  padding:42px var(--pad) 34px;
  display:flex;
  align-items:flex-end;
}

.hero-card{
  width: min(760px, 100%);
  background: rgba(0,0,0,.30);
  border:1px solid rgba(255,255,255,.14);
  border-radius: var(--radius2);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.kicker{
  margin:0 0 10px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color: rgba(245,243,238,.78);
  font-size:14px;
}

h1{
  margin:0 0 10px;
  font-size: clamp(30px, 4vw, 52px);
  line-height:1.05;
}

.lead{
  margin:0 0 16px;
  font-size: clamp(18px, 2.2vw, 22px);
  color: rgba(245,243,238,.86);
}

.hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:12px 0 18px;
}

.pill{
  font-size:14px;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
}

.hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.tiny-note{
  margin-top:14px;
  font-size:14px;
  color: rgba(245,243,238,.74);
}

/* ===============================
   SECTIONS / TYPOGRAPHY
================================ */
.section{
  padding:54px 0;
}

.section.alt{
  background: rgba(255,255,255,.03);
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
}

h2{
  margin:0 0 16px;
  font-size: clamp(24px, 3vw, 34px);
}

h3{
  margin:0 0 10px;
  font-size:22px;
}

p{
  margin:0 0 12px;
  color: rgba(245,243,238,.84);
}

.small{
  font-size:16px;
  color: rgba(245,243,238,.78);
}

.author-name{
  font-size:28px;
  margin-top:4px;
}

/* ===============================
   GRID (SAFE VERSION)
================================ */
.grid-2{
  display:grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap:20px;
  align-items:start;
}

.steps{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:14px;
  margin-top:18px;
}

.form-wrap{
  display:grid;
  grid-template-columns: minmax(0, 1fr);
  gap:14px;
}

.form-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
}

.confirm-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
}

.pay-methods{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}

/* ===============================
   CARDS / LISTS
================================ */
.info-card, .card{
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}

.divider{
  height:1px;
  background: rgba(255,255,255,.12);
  margin:14px 0;
}

.bullets{
  margin:10px 0 0;
  padding-left:18px;
}

.bullets li{
  margin:8px 0;
}

/* ===============================
   BUTTONS
================================ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: rgba(245,243,238,.95);
  font-weight:600;
  cursor:pointer;
}

.btn:hover{
  background: rgba(255,255,255,.10);
  text-decoration:none;
}

.btn-primary{
  background: rgba(255,255,255,.16);
}

.btn-ghost{
  background: transparent;
}

/* ===============================
   FORM
================================ */
.field label{
  display:block;
  font-size:14px;
  margin-bottom:6px;
}

.field input,
.field select{
  width:100%;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  color: rgba(245,243,238,.95);
}

.checkbox{
  display:flex;
  gap:10px;
  align-items:flex-start;
}

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.error{
  min-height:18px;
  font-size:13px;
  color: rgba(255,140,140,.95);
}

.hidden{ display:none; }

/* ===============================
   FOOTER
================================ */
.site-footer{
  padding:26px 0 40px;
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:18px;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 980px){
  .grid-2{ grid-template-columns: minmax(0, 1fr); }
  .steps{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px){
  .nav{ display:none; }
  .hero{ min-height:78vh; }
  .form-grid,
  .steps,
  .confirm-grid,
  .pay-methods{
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===============================
   GRID FALLBACK (VERY IMPORTANT)
================================ */
@supports not (display: grid){
  .grid-2,
  .steps,
  .form-wrap,
  .form-grid,
  .confirm-grid,
  .pay-methods{
    display:block;
  }

  .grid-2 > *,
  .steps > *,
  .form-grid > *,
  .confirm-grid > *,
  .pay-methods > *{
    margin-bottom:14px;
  }
}
