/* ─────────────────────────────────────────
   Token system — light-first, dark-aware
   Layout: full-bleed bands, 1160px content
───────────────────────────────────────── */
:root {
  --bg:          #FFFFFF;
  --bg-subtle:   #F1F5FB;
  --bg-card:     #FFFFFF;
  --border:      #D6DEEC;
  --fg:          #0B1526;
  --fg-muted:    #4C5F7B;
  --fg-faint:    #8A9BB5;
  --accent:      #1448CE;
  --accent-hover:#0F38A8;
  --accent-tint: #E8EEFB;
  --accent-mid:  #3B65E0;

  --font-head:   'Sora', system-ui, sans-serif;
  --font-body:   'Source Sans 3', system-ui, sans-serif;

  --max-w: 1140px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #07101E;
    --bg-subtle:   #0D1929;
    --bg-card:     #0F1E32;
    --border:      #1A2D48;
    --fg:          #E2EAF6;
    --fg-muted:    #7A96BC;
    --fg-faint:    #4A6285;
    --accent:      #4D7BFF;
    --accent-hover:#6B94FF;
    --accent-tint: #0D1E3D;
    --accent-mid:  #4D7BFF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:          #07101E;
  --bg-subtle:   #0D1929;
  --bg-card:     #0F1E32;
  --border:      #1A2D48;
  --fg:          #E2EAF6;
  --fg-muted:    #7A96BC;
  --fg-faint:    #4A6285;
  --accent:      #4D7BFF;
  --accent-hover:#6B94FF;
  --accent-tint: #0D1E3D;
  --accent-mid:  #4D7BFF;
  color-scheme: dark;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
  z-index: 200;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

img { max-width: 100%; }

/* ── Nav ── */
nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 17px;
  padding-left: var(--gutter);
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  max-width: var(--max-w);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: var(--fg);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
}

.logo-mark {
  width: 26px;
  height: 26px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark svg { display: block; }

.btn {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  display: inline-block;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
  letter-spacing: 0.01em;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--fg-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── Hero ── */
.hero {
  padding-block: 72px 80px;
  padding-left: var(--gutter);
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.hero-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 72px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 5px 11px;
  border-radius: 4px;
  margin-bottom: 22px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -0.035em;
  color: var(--fg);
  text-wrap: balance;
  margin-bottom: 20px;
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-cta .btn { padding: 12px 24px; font-size: 14px; }

.hero-meta {
  margin-top: 20px;
  font-size: 13px;
  color: var(--fg-faint);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-meta-item svg { opacity: 0.6; }

/* ── Diagram card ── */
.diagram-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.diag-label {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 10px;
}

.diag-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.diag-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 10px;
  text-align: center;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  line-height: 1;
}

.diag-chip small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--fg-faint);
  margin-top: 3px;
}

.diag-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 3px;
}

.diag-arrow-line {
  width: 1.5px;
  height: 18px;
  background: var(--border);
}

.diag-arrow-head {
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--border);
}

.diag-core {
  background: var(--accent);
  border-radius: 9px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.diag-core-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  letter-spacing: -0.02em;
}

.diag-core-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.diag-core-tag {
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.15);
  padding: 3px 7px;
  border-radius: 3px;
}

.diag-dests {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.diag-dest {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 7px;
  padding: 11px 10px;
  text-align: center;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
}

.diag-dest small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--fg-faint);
  margin-top: 3px;
}

/* ── Problem band ── */
.problem-band {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 56px;
  padding-left: var(--gutter);
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.problem-band .wrap { text-align: center; max-width: 740px; }

.problem-band h2 {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
  text-wrap: balance;
  margin-bottom: 14px;
  line-height: 1.25;
}

.problem-band p {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* ── How it works ── */
.section {
  padding-block: 88px;
  padding-left: var(--gutter);
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.section-head {
  margin-bottom: 52px;
}

.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
  text-wrap: balance;
  margin-bottom: 10px;
}

.section-head p {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 520px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 60px;
  right: 60px;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.step { padding-right: 40px; }
.step:last-child { padding-right: 0; }

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1.5px var(--accent-mid);
  flex-shrink: 0;
}

.step h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.step p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ── UAE urgency ── */
.urgency {
  background: var(--accent);
  padding-block: 52px;
  padding-left: var(--gutter);
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.urgency-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}

.urgency-text h2 {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  text-wrap: balance;
}

.urgency-text p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  line-height: 1.55;
}

.urgency-phases {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.phase-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 9px;
  padding: 16px 20px;
  min-width: 136px;
}

.phase-card .phase-label {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  display: block;
  margin-bottom: 4px;
}

.phase-card .phase-date {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: block;
  line-height: 1.2;
}

.phase-card .phase-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 3px;
  display: block;
  line-height: 1.4;
}

/* ── Early access form ── */
.section-form {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding-block: 88px;
  padding-left: var(--gutter);
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.form-wrap {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.form-wrap h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
  text-wrap: balance;
  margin-bottom: 10px;
}

.form-wrap > p {
  font-size: 17px;
  color: var(--fg-muted);
  margin-bottom: 40px;
}

.access-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  text-align: left;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.005em;
}

.field input,
.field select {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--bg-card);
  color: var(--fg);
  transition: border-color 0.14s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
}

.field input:focus,
.field select:focus { border-color: var(--accent); }
.field input::placeholder { color: var(--fg-faint); }

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A9BB5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.form-actions .btn {
  width: 100%;
  text-align: center;
  padding: 14px 24px;
  font-size: 15px;
}

.form-disclaimer {
  font-size: 13px;
  color: var(--fg-faint);
  text-align: center;
}

/* ── Success ── */
.success-state {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.success-state h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 8px;
}

.success-state p { color: var(--fg-muted); font-size: 16px; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding-block: 36px;
  padding-left: var(--gutter);
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-copy {
  font-size: 14px;
  color: var(--fg-faint);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-right a {
  font-size: 14px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.13s;
}
.footer-right a:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .diagram-card { max-width: 440px; }

  .steps {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .steps::before { display: none; }
  .step { padding-right: 0; }
}

@media (max-width: 640px) {
  .hero { padding-block: 52px 60px; }
  .section { padding-block: 64px; }
  .section-form { padding-block: 64px; }

  .urgency-inner { flex-direction: column; }
  .urgency-phases { flex-direction: column; width: 100%; }
  .phase-card { min-width: 0; }

  .access-form { grid-template-columns: 1fr; }

  .diag-chips { grid-template-columns: repeat(2, 1fr); }
  .diag-core-tags { display: none; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}
