/* Landing-specific styles */

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 960px;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 140px var(--gutter) 120px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-canvas::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 25% 55%, rgba(10,10,15,0.55), transparent 72%),
    radial-gradient(ellipse 100% 30% at 50% 100%, rgba(10,10,15,0.85), transparent 65%),
    radial-gradient(ellipse 100% 20% at 50% 0%, rgba(10,10,15,0.7), transparent 65%);
  pointer-events: none;
}
.hero-canvas canvas { width: 100% !important; height: 100% !important; display: block; }

.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; width: 100%;
}

.hero-eyebrow {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.hero-glyph { max-width: 30%; }
@media (max-width: 900px) { .hero-glyph { display: none; } }
.hero-eyebrow .tag {
  border: 1px solid var(--ink-4);
  padding: 6px 12px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cream-2);
}
.hero-eyebrow .tag.gold { border-color: var(--gold-2); color: var(--gold-0); }

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 400;
  max-width: 18ch;
  margin-bottom: 48px;
}
.hero-h1 em { font-style: italic; color: var(--gold-0); }
.hero-h1 .ghost { color: var(--cream-3); font-style: italic; }

.hero-sub {
  max-width: 62ch;
  font-size: 19px; line-height: 1.6;
  color: var(--cream-1);
  margin-bottom: 44px;
}
.hero-sub strong { color: var(--gold-0); font-weight: 500; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 80px; }

.hero-glyph {
  position: absolute;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--cream-3);
  letter-spacing: 0.2em;
  z-index: 2;
}
.hero-glyph.tl { top: 92px; left: var(--gutter); opacity: 0.6; }
.hero-glyph.tr { top: 92px; right: var(--gutter); text-align: right; opacity: 0.6; }
@media (max-width: 1200px) { .hero-glyph.tl, .hero-glyph.tr { display: none; } }
.hero-glyph.bl { bottom: 24px; left: var(--gutter); }
.hero-glyph.br { bottom: 24px; right: var(--gutter); text-align: right; }

.hero-formula {
  font-family: var(--font-display);
  font-size: 22px; font-style: italic;
  color: var(--gold-0);
  letter-spacing: 0;
}

/* ——— Ticker ——— */

.ticker-glyph { color: var(--gold-1); }

/* ——— Receipts ——— */

.receipts {
  background: var(--ink-0);
  border: 1px solid var(--ink-4);
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
}
.receipts-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ink-4);
  background: rgba(200,162,75,0.03);
}
.receipts-body { padding: 8px 0; min-height: 320px; }
.receipt {
  display: grid;
  grid-template-columns: 50px 160px 1fr 50px;
  gap: 14px;
  padding: 6px 18px;
  color: var(--cream-1);
  font-size: 12px;
  border-left: 2px solid transparent;
  transition: background .3s, border-color .3s;
}
.receipt:first-child {
  background: rgba(233, 200, 119, 0.05);
  border-left-color: var(--gold-1);
  animation: receipt-in .5s ease;
}
@keyframes receipt-in {
  from { opacity: 0; transform: translateY(-4px); background: rgba(233,200,119,0.15); }
  to   { opacity: 1; transform: none; background: rgba(233,200,119,0.05); }
}
.r-t { font-weight: 500; letter-spacing: 0.1em; }
.r-k { color: var(--cream-0); }
.r-n { color: var(--cream-2); }
.r-a { color: var(--cream-3); text-align: right; }

/* ——— Metrics ——— */

.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-4);
  border-bottom: 1px solid var(--ink-4);
}
.metric {
  padding: 40px 32px;
  border-right: 1px solid var(--ink-4);
  display: flex; flex-direction: column; gap: 12px;
}
.metric:last-child { border-right: 0; }
.metric .k { font-size: 10px; color: var(--cream-3); letter-spacing: 0.18em; }
.metric .v { font-size: clamp(40px, 5vw, 72px); color: var(--cream-0); line-height: 1; }

@media (max-width: 900px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--ink-4); }
}

/* ——— Doctrine ——— */

.doctrine {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--ink-4);
  border-left: 1px solid var(--ink-4);
}
.doctrine-card {
  padding: 56px 48px;
  border-right: 1px solid var(--ink-4);
  border-bottom: 1px solid var(--ink-4);
  background: var(--ink-1);
  position: relative;
  transition: background .4s;
}
.doctrine-card:hover { background: var(--ink-2); }
.doctrine-tag {
  font-size: 10px; letter-spacing: 0.3em; color: var(--gold-1);
  margin-bottom: 32px;
}
.doctrine-not {
  color: var(--cream-3); font-size: 13px; font-style: italic;
  margin-bottom: 12px;
  letter-spacing: 0;
  text-transform: none;
}
.doctrine-is {
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.08;
  color: var(--cream-0);
  margin-bottom: 20px;
  max-width: 22ch;
}
.doctrine-body { color: var(--cream-1); max-width: 44ch; }

@media (max-width: 900px) {
  .doctrine { grid-template-columns: 1fr; }
}

/* ——— Protocol ——— */

.protocol {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .protocol { grid-template-columns: 1fr; } }

.protocol-stages { border-top: 1px solid var(--ink-4); }
.protocol-stage {
  display: grid; grid-template-columns: 64px 1fr auto;
  gap: 20px; align-items: center;
  width: 100%;
  padding: 20px 0;
  border-bottom: 1px solid var(--ink-4);
  text-align: left;
  position: relative;
  transition: background .25s;
}
.protocol-stage:hover { background: rgba(200,162,75,0.03); }
.protocol-stage.active { background: rgba(200,162,75,0.05); }
.protocol-stage.active::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--gold-1);
}
.stage-letter { font-size: 48px; color: var(--cream-3); transition: color .25s, transform .3s; display: block; }
.protocol-stage.active .stage-letter, .protocol-stage:hover .stage-letter { color: var(--gold-0); }
.stage-meta { display: flex; flex-direction: column; gap: 4px; }
.stage-name { font-size: 12px; color: var(--cream-0); letter-spacing: 0.14em; text-transform: uppercase; }
.stage-sub { font-size: 13px; }
.stage-idx { color: var(--cream-3); font-size: 10px; }

.protocol-detail {
  padding: 32px;
  border: 1px solid var(--ink-4);
  background: var(--ink-2);
  min-height: 480px;
  display: flex; flex-direction: column; gap: 24px;
}
.protocol-tag { font-size: 10px; }
.protocol-title { font-size: clamp(44px, 5vw, 72px); line-height: 0.95; }
.protocol-body { color: var(--cream-1); max-width: 54ch; font-size: 17px; }
.protocol-mini { margin-top: auto; border-top: 1px solid var(--ink-4); padding-top: 20px; }
.mini-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  font-family: var(--font-mono); font-size: 12px;
  border-bottom: 1px dashed rgba(36,36,48,0.6);
}
.mini-row:last-child { border-bottom: 0; }

/* ——— Surfaces ——— */

.surfaces {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-4);
}
.surface {
  padding: 48px 36px;
  border-right: 1px solid var(--ink-4);
  border-bottom: 1px solid var(--ink-4);
  display: flex; flex-direction: column; gap: 18px;
  min-height: 420px;
  background: var(--ink-1);
  transition: background .3s;
}
.surface:last-child { border-right: 0; }
.surface:hover { background: var(--ink-2); }
.surface-head { display: flex; justify-content: space-between; align-items: center; }
.surface-title { font-size: clamp(28px, 2.4vw, 38px); line-height: 1.05; }
.surface-sub { font-size: 11px; color: var(--gold-0); letter-spacing: 0.18em; text-transform: uppercase; }
.surface p { color: var(--cream-1); }
.surface-more {
  margin-top: auto;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-0);
  border-bottom: 1px solid var(--gold-2);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: gap .2s;
}

@media (max-width: 900px) { .surfaces { grid-template-columns: 1fr; } .surface { border-right: 0; } }

/* ——— Team ——— */

.team {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-4);
  border-left: 1px solid var(--ink-4);
}
.team-card {
  padding: 32px 28px;
  border-right: 1px solid var(--ink-4);
  border-bottom: 1px solid var(--ink-4);
  display: flex; flex-direction: column; gap: 14px;
  transition: background .3s;
  position: relative;
}
.team-card:hover { background: var(--ink-2); }
.team-head { display: flex; justify-content: space-between; align-items: center; }
.team-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal-green); box-shadow: 0 0 6px var(--signal-green); }
.team-portrait {
  width: 100%; aspect-ratio: 1;
  background:
    radial-gradient(circle at 30% 30%, rgba(233,200,119,0.14), transparent 60%),
    linear-gradient(135deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--ink-4);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
  position: relative;
  overflow: hidden;
}
.team-portrait::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 6px, rgba(233,200,119,0.04) 6px 7px),
    repeating-linear-gradient(90deg, transparent 0 6px, rgba(233,200,119,0.04) 6px 7px);
}
.portrait-mark { font-size: 64px; color: var(--gold-0); letter-spacing: -0.02em; opacity: 0.9; position: relative; z-index: 1; }
.team-name { font-size: 22px; line-height: 1.1; }
.team-role { font-size: 11px; color: var(--cream-1); letter-spacing: 0.1em; text-transform: uppercase; }
.team-cred { font-size: 13px; color: var(--cream-2); line-height: 1.4; }

@media (max-width: 1100px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team { grid-template-columns: 1fr; } }

/* ——— FAQ ——— */

.faq { border-top: 1px solid var(--ink-4); }
.faq-item {
  border-bottom: 1px solid var(--ink-4);
  cursor: pointer;
  transition: background .3s;
}
.faq-item:hover { background: var(--ink-2); }
.faq-q {
  display: grid; grid-template-columns: 50px 1fr 40px;
  gap: 24px; align-items: center;
  padding: 28px var(--gutter);
}
.faq-q-text { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.2; }
.faq-toggle { font-family: var(--font-display); font-size: 32px; color: var(--gold-0); }
.faq-a {
  max-height: 0; overflow: hidden;
  padding: 0 var(--gutter) 0 calc(var(--gutter) + 74px);
  color: var(--cream-1);
  max-width: 70ch;
  transition: max-height .5s, padding .5s;
  font-size: 17px;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 var(--gutter) 28px calc(var(--gutter) + 74px);
}

/* ——— Booking ——— */

.booking {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 100px var(--gutter);
  align-items: start;
  border-top: 1px solid var(--gold-2);
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(200,162,75,0.05), transparent 60%),
    var(--ink-0);
}
@media (max-width: 900px) { .booking { grid-template-columns: 1fr; gap: 40px; } }

.booking-title {
  font-size: clamp(44px, 5.5vw, 80px);
  line-height: 0.95;
  margin: 32px 0 28px;
}
.booking-sub { max-width: 50ch; font-size: 17px; margin-bottom: 40px; }
.booking-assurances { display: flex; flex-direction: column; gap: 8px; font-size: 11px; }

.qualify-frame {
  border: 1px solid var(--gold-2);
  background: var(--ink-1);
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(233,200,119,0.1);
}
.qf-head {
  display: flex; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ink-4);
  background: rgba(200,162,75,0.04);
  font-size: 11px;
}
.qf-body { padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.qf-line { font-family: var(--font-mono); font-size: 13px; color: var(--cream-0); display: flex; gap: 12px; }
.qf-inputs { display: flex; flex-direction: column; gap: 10px; }
.qf-inputs input, .qf-inputs textarea {
  background: var(--ink-2);
  border: 1px solid var(--ink-4);
  color: var(--cream-0);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  transition: border-color .2s;
}
.qf-inputs textarea { resize: vertical; min-height: 110px; font-family: var(--font-body); font-size: 15px; }
.qf-inputs input:focus, .qf-inputs textarea:focus { border-color: var(--gold-1); }
.qf-inputs input::placeholder, .qf-inputs textarea::placeholder { color: var(--cream-3); }

.qf-qualifying { display: flex; flex-direction: column; gap: 16px; }
.qf-qualifying .mono { font-size: 11px; display: flex; align-items: center; gap: 8px; }
.qf-scan { height: 2px; background: var(--ink-3); overflow: hidden; position: relative; }
.qf-scan-bar { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--gold-0), transparent); animation: scan 1.4s infinite linear; width: 30%; }
@keyframes scan { 0% { left: -30%; } 100% { left: 100%; } }

.qf-actions { display: flex; justify-content: space-between; }

.qf-check { display: flex; flex-direction: column; gap: 16px; }
.qf-check h4 { font-size: 32px; line-height: 1.1; }
.qf-receipt { border: 1px solid var(--ink-4); padding: 16px; background: var(--ink-0); }
.qf-receipt-row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  font-family: var(--font-mono); font-size: 12px;
  border-bottom: 1px dashed rgba(36,36,48,0.6);
}
.qf-receipt-row:last-child { border-bottom: 0; }

/* ——— Section header block ——— */
.section-head {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 60px;
  max-width: 60ch;
}
.section-head .eyebrow { color: var(--gold-0); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.section-head h2 em { color: var(--gold-0); font-style: italic; }
.section-head p { color: var(--cream-1); max-width: 52ch; font-size: 17px; }

/* ——— Nav active state helpers ——— */
.nav-brand .mark-glow {
  position: absolute; inset: -6px;
  background: radial-gradient(circle, var(--gold-0), transparent 60%);
  opacity: 0.5; filter: blur(8px);
  animation: pulse 3s infinite;
}

/* ——— Split: receipts + sidebar info ——— */
.receipts-section {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .receipts-section { grid-template-columns: 1fr; } }

.rs-left h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 4vw, 56px); line-height: 1; letter-spacing: -0.02em; margin: 16px 0; }
.rs-left h2 em { color: var(--gold-0); font-style: italic; }
.rs-left p { color: var(--cream-1); margin-bottom: 28px; max-width: 44ch; }

/* ——— Tweaks panel ——— */
.tweaks {
  position: fixed; bottom: 20px; right: 20px; z-index: 200;
  background: var(--ink-0);
  border: 1px solid var(--gold-2);
  padding: 16px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--cream-0);
  min-width: 240px;
  box-shadow: 0 30px 60px -10px rgba(0,0,0,0.6);
}
.tweaks h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.2em; color: var(--gold-0); margin-bottom: 14px; }
.tweaks-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px dashed rgba(36,36,48,0.6); }
.tweaks-row:last-child { border-bottom: 0; }
.tweaks-row label { color: var(--cream-2); }
.tweaks-row button {
  background: transparent;
  border: 1px solid var(--ink-4);
  color: var(--cream-1);
  padding: 4px 10px;
  font-family: var(--font-mono); font-size: 10px;
  cursor: pointer;
  transition: all .2s;
}
.tweaks-row button:hover { border-color: var(--gold-1); color: var(--gold-0); }
.tweaks-row button.active { background: var(--gold-1); color: var(--ink-0); border-color: var(--gold-1); }

.tweaks-toggle {
  position: fixed; bottom: 20px; right: 20px; z-index: 201;
  width: 44px; height: 44px;
  border: 1px solid var(--gold-2);
  background: var(--ink-0);
  color: var(--gold-0);
  font-family: var(--font-display); font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
