/* ============================================================
   HORIZON 3D — styles
   Themes: silver (default) and orange, switched via data-theme
   ============================================================ */

:root {
  --bg: #080809;
  --surface: #121214;
  --raised: #1c1c20;
  --text: #fafaf9;
  --muted: #a1a1aa;
  --line: rgba(250, 250, 249, 0.11);
  --border-strong: rgba(250, 250, 249, 0.22);
  --accent: #efe2d3;
  --accent-contrast: #080809;
  --accent-glow: rgba(239, 226, 211, 0.22);
  --live: #10ec90;
  --void: #000000;
  --hole-warm: #a8a29e;
  --hole-deep: #292524;
  --sans: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

:root[data-theme="orange"] {
  --bg: #0d0a08;
  --surface: #17120f;
  --raised: #231b16;
  --text: #fafaf9;
  --muted: #b3a69d;
  --line: rgba(255, 106, 31, 0.16);
  --border-strong: rgba(255, 106, 31, 0.34);
  --accent: #ff6a1f;
  --accent-contrast: #110f0d;
  --accent-glow: rgba(255, 106, 31, 0.28);
  --void: #050302;
  --hole-warm: #ff6a1f;
  --hole-deep: #4a1804;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-anchor: none; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color 400ms ease, color 300ms ease;
}

img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-contrast); }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--accent); color: var(--accent-contrast); padding: 8px 12px; border-radius: 6px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

[hidden] { display: none !important; }

.accent { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.6; }
.small-mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; }
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline; } }

.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.section-title {
  font-weight: 800;
  font-size: clamp(1.85rem, 4.5vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

.lead { font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.65; margin: 0; }

/* ---------- Navbar ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: transform 460ms cubic-bezier(0.23, 1, 0.32, 1), opacity 320ms ease; }
.nav.is-hidden { transform: translateY(-110%); opacity: 0; }
.nav-bar {
  margin: 12px auto; max-width: 1240px; width: calc(100% - 24px);
  padding: 10px 18px; border-radius: 14px;
  border: 1px solid rgba(250, 250, 249, 0.08);
  background: rgba(10, 10, 12, 0.42);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: background 300ms ease, border-color 300ms ease;
}
.nav.scrolled .nav-bar { background: rgba(10, 10, 12, 0.78); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { position: relative; width: 28px; height: 28px; display: grid; place-items: center; flex-shrink: 0; }
.bm-ring {
  position: absolute; width: 34px; height: 11px; border-radius: 50%;
  background: radial-gradient(closest-side, transparent 36%, var(--hole-warm) 56%, rgba(255,255,255,0.92) 64%, var(--hole-warm) 74%, transparent 100%);
  transform: rotate(-18deg);
}
.bm-core { position: relative; width: 13px; height: 13px; border-radius: 50%; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,0.88), 0 0 8px 1px var(--hole-warm); }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 700; font-size: 13px; letter-spacing: 0.08em; line-height: 1.1; }
.brand-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--muted); }
.nav-links { display: none; gap: 24px; }
.nav-links a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); text-decoration: none; transition: color 200ms ease; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-btn, .menu-btn {
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.05); color: var(--accent); display: grid; place-items: center; cursor: pointer;
  transition: border-color 220ms ease, background-color 220ms ease;
}
.theme-btn:hover { border-color: var(--accent); }
.menu-btn { color: var(--text); background: rgba(255,255,255,0.04); }
.btn-cta-small {
  display: none; align-items: center; padding: 8px 14px; border-radius: 8px;
  background: var(--accent); color: var(--accent-contrast);
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none; box-shadow: 0 0 20px var(--accent-glow);
}
.mobile-menu {
  margin: -4px auto 0; width: calc(100% - 24px); max-width: 1240px; padding: 16px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(10,10,12,0.94);
  backdrop-filter: blur(16px); display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu a { font-family: var(--mono); font-size: 13px; color: var(--text); text-decoration: none; padding: 9px 4px; border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
  .mobile-menu { display: none !important; }
}
@media (min-width: 640px) { .btn-cta-small { display: inline-flex; } }

/* ---------- Buttons ---------- */
.btn-primary, .btn-ghost, .btn-outline, .btn-submit {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none; cursor: pointer;
  border-radius: 7px; font-family: var(--sans); font-size: 13px; font-weight: 600;
  padding: 11px 19px; transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
}
.btn-primary { background: #fafaf9; color: #0a0a0c; border: 0; box-shadow: 0 6px 24px rgba(0,0,0,0.5); }
:root[data-theme="orange"] .btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-ghost { background: rgba(18,18,20,0.78); backdrop-filter: blur(10px); border: 1px solid rgba(250,250,249,0.18); color: var(--text); font-weight: 500; }
.btn-outline { border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; background: transparent; }
.btn-submit { background: var(--accent); color: var(--accent-contrast); border: 0; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 13px 26px; border-radius: 10px; box-shadow: 0 0 24px var(--accent-glow); }
.btn-primary:hover, .btn-ghost:hover, .btn-outline:hover, .btn-submit:hover { transform: translateY(-1px); }
.btn-primary.sm, .btn-ghost.sm { padding: 10px 16px; font-size: 12px; }
.btn-primary.sm { font-family: var(--mono); font-weight: 700; background: var(--accent); color: var(--accent-contrast); }
.btn-ghost.sm { font-family: var(--mono); background: var(--raised); border-color: var(--line); color: var(--text); font-weight: 500; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 320vh; background: var(--void); }
.hero-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hero-bh { position: absolute; inset: 0; z-index: 1; background: var(--void); transition: filter 300ms ease; }
.hero-bh canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bh-fallback { position: absolute; inset: 0; background: var(--void); overflow: hidden; }
.bh-fallback .fb-disk { position: absolute; left: 50%; top: 50%; width: 86vmin; height: 22vmin; transform: translate(-50%,-50%) rotate(-6deg); border-radius: 50%; background: radial-gradient(closest-side, transparent 38%, #bfc0c2 55%, rgba(255,255,255,0.9) 62%, #bfc0c2 70%, transparent 100%); filter: blur(6px); opacity: .9; }
.bh-fallback .fb-core { position: absolute; left: 50%; top: 50%; width: 30vmin; height: 30vmin; transform: translate(-50%,-50%); border-radius: 50%; background: var(--void); box-shadow: 0 0 0 1.5px rgba(255,255,255,.85), 0 0 60px 10px #bfc0c2; }
.hero-scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.52) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 64%, rgba(0,0,0,.72) 100%); }

.hero-content {
  position: absolute; inset: 0; z-index: 5; max-width: 1360px; margin: 0 auto;
  padding: 96px 20px 74px; display: flex; flex-direction: column; justify-content: space-between;
  pointer-events: none; will-change: opacity, transform, filter;
}
.hero-content a, .hero-content button { pointer-events: auto; }
.hero-title {
  margin: 0; font-weight: 700; font-size: clamp(2.15rem, 4.1vw, 3.65rem);
  line-height: 1.04; letter-spacing: -0.035em; color: #fafaf9; text-shadow: 0 4px 24px rgba(0,0,0,.85);
  transform-origin: 0% 50%; transition: transform 120ms linear;
}
.hero-title-right { transform-origin: 100% 50%; text-align: right; }
.hero-top { align-self: flex-start; max-width: min(560px, 88vw); }
.hero-bottom { display: flex; flex-direction: column; gap: 20px; }
.hero-left { max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.hero-lede { margin: 0; font-size: clamp(.84rem, 1vw, .98rem); line-height: 1.48; color: rgba(250,250,249,.86); text-shadow: 0 2px 16px rgba(0,0,0,.95); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-buttons a { font-size: 14px; padding: 12px 20px; }

.horizon-reveal {
  position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px; opacity: 0; pointer-events: none; will-change: opacity, transform, filter;
}
.horizon-reveal.on { pointer-events: auto; }
.horizon-reveal .eyebrow { letter-spacing: .24em; margin-bottom: 16px; }
.horizon-reveal h2 { font-weight: 800; font-size: clamp(1.75rem, 4.2vw, 3.3rem); line-height: 1.12; letter-spacing: -0.03em; max-width: 920px; margin: 0 auto 20px; }
.horizon-reveal p { font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.65; max-width: 620px; color: var(--muted); margin: 0 auto 28px; }

.scroll-cue { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 7; background: none; border: 0; cursor: pointer; display: none; flex-direction: column; align-items: center; gap: 10px; padding: 8px 14px; transition: opacity 200ms ease; }
.sc-label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); text-shadow: 0 1px 14px rgba(0,0,0,.9); }
.sc-track { position: relative; width: 1px; height: 44px; background: rgba(250,250,249,.22); overflow: hidden; }
.sc-dot { position: absolute; left: -1px; width: 3px; height: 14px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: scFall 1.8s cubic-bezier(.77,0,.175,1) infinite; }
@keyframes scFall { 0% { transform: translateY(-16px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(46px); opacity: 0; } }
@media (min-width: 768px) { .scroll-cue { display: flex; } }

/* Dive gauge (desktop only) */
.dive-gauge { position: absolute; top: 12vh; height: 76vh; right: 0; width: 190px; z-index: 12; pointer-events: none; display: none; transition: opacity 160ms linear; }
@media (min-width: 768px) { .dive-gauge { display: block; } }
.dg-ticks { position: absolute; top: 4%; bottom: 4%; right: 0; width: 14px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.dg-ticks i { display: block; height: 1px; background: rgba(220,216,210,.28); }
.dg-marker { position: absolute; right: 0; top: 8%; display: flex; flex-direction: row-reverse; align-items: center; gap: 10px; transform: translateY(-50%); white-space: nowrap; }
.dg-line { width: 22px; height: 1.5px; background: var(--accent); }
.dg-text { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.dg-label { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: rgba(220,216,210,.68); }
.dg-value { font-family: var(--mono); font-size: 12px; color: var(--accent); font-variant-numeric: tabular-nums; }

/* ---------- Sections ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 56px 20px; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .section { padding: 80px 20px; } }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 32px; }
@media (min-width: 768px) { .section-head { margin-bottom: 48px; } }
.head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#agentText { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tag-pill { font-family: var(--mono); font-size: 11px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.pulse-pill { width: 390px; display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(250,250,249,.14); background: rgba(18,18,20,.72); font-family: var(--mono); font-size: 12px; max-width: 100%; }
.pulse-dot { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--live); flex-shrink: 0; }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--live); opacity: .3; animation: apRing 1.8s ease-out infinite; }
@keyframes apRing { 0% { transform: scale(.6); opacity: .4; } 100% { transform: scale(2.4); opacity: 0; } }
.live-text { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--live); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(16,236,144,.16); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.card h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 10px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.num { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent); }
.chip { font-family: var(--mono); font-size: 11px; padding: 4px 10px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); color: var(--muted); }
.lift { transition: border-color 240ms ease, transform 240ms ease; }
.lift:hover { border-color: var(--accent); transform: translateY(-3px); }
@media (hover: none) { .lift:hover { transform: none; } }

.studio-grid { display: grid; gap: 28px; }
.studio-copy { display: flex; flex-direction: column; gap: 16px; }
.studio-copy .muted { margin: 0; font-size: 15.5px; line-height: 1.7; }
.telemetry { border-color: var(--border-strong); display: flex; flex-direction: column; gap: 14px; padding: 26px; }
.tel-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tel-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.tel-row strong { display: block; font-size: 14px; font-weight: 600; }
.tel-row small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.metric { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--accent); white-space: nowrap; }
@media (min-width: 1024px) { .studio-grid { grid-template-columns: 7fr 5fr; align-items: start; } }

.grid-2, .grid-3 { display: grid; gap: 16px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.grid-2.big { gap: 20px; }
@media (min-width: 1024px) { .grid-2.big { gap: 32px; } }

.project { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-color: var(--border-strong); }
.project p { margin: 0; font-size: 14.5px; line-height: 1.65; }
.project h3 { margin: 0; font-size: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-family: var(--mono); font-size: 11px; padding: 4px 10px; border-radius: 6px; background: var(--raised); border: 1px solid var(--line); }
.project-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 4px; }

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 40px; }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 56px; } }
.step { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.step h3 { font-size: 17px; font-weight: 800; letter-spacing: .02em; margin: 0; }
.step p { margin: 0; font-size: 13.5px; line-height: 1.55; }
@media (min-width: 768px) { .step { padding: 24px; } }

/* Route flow */
.route { position: relative; height: 300px; padding: 12px; overflow: hidden; }
@media (min-width: 768px) { .route { height: 420px; padding: 18px; } }
.route-svg { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
@media (min-width: 768px) { .route-svg { inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); } }
.route-svg path { fill: none; stroke: var(--line); stroke-width: 1; transition: stroke 240ms ease; }
.route-svg path.lit { stroke: var(--accent); }
.route-core { position: absolute; left: 50%; top: 50%; width: 180px; height: 120px; transform: translate(-50%, -50%) scale(.9); pointer-events: none; }
@media (min-width: 768px) { .route-core { transform: translate(-50%, -50%) scale(1); } }
.rc-ring { position: absolute; inset: 0; margin: auto; width: 132px; height: 36px; border-radius: 50%; background: radial-gradient(ellipse at center, transparent 32%, var(--hole-warm) 56%, var(--text) 64%, var(--hole-deep) 82%, transparent 100%); filter: blur(3px); transform: rotate(-11deg); animation: hmSpin 10s linear infinite; }
.rc-hole { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; background: #000; box-shadow: 0 0 0 1px var(--text); }
@keyframes hmSpin { from { transform: rotate(-11deg); } 50% { transform: rotate(-11deg) scale(1.06); } to { transform: rotate(-11deg); } }
.route-nodes { position: absolute; inset: 12px; pointer-events: none; }
@media (min-width: 768px) { .route-nodes { inset: 18px; } }
.route-node { position: absolute; font-family: var(--mono); font-size: 10px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--raised); padding: 6px 8px; white-space: nowrap; pointer-events: auto; cursor: default; }
.route-node.src { cursor: pointer; }
.route-node.src:hover { border-color: var(--accent); }
.route-node .bar { display: block; height: 3px; width: 70px; border-radius: 2px; background: rgba(250,250,249,.08); margin-top: 6px; overflow: hidden; }
.route-node .bar i { display: block; height: 100%; background: var(--accent); }
.route-node .nm { display: block; font-family: var(--sans); font-weight: 600; font-size: 11px; }
.route-status { position: absolute; left: 18px; top: 14px; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.route-log { position: absolute; left: 18px; right: 18px; bottom: 12px; display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.route-log span:first-child { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route-log .accent { white-space: nowrap; }

/* ---------- Pricing ---------- */
.seg { display: inline-flex; align-items: center; gap: 6px; padding: 5px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-strong); }
.seg-btn { border: 0; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 500; padding: 8px 15px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.seg-btn.on { background: var(--raised); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent); }
.save-badge { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--accent-glow); color: var(--accent); border: 1px solid var(--line); }

.plan { display: flex; flex-direction: column; gap: 16px; padding: 26px; transition: border-color 240ms ease, transform 240ms ease, box-shadow 240ms ease; }
.plan:hover { border-color: var(--accent); transform: translateY(-3px); }
@media (hover: none) { .plan:hover { transform: none; } }
.plan.popular { border-color: var(--accent); box-shadow: 0 0 36px -10px var(--accent-glow); }
.plan.signature { background: linear-gradient(180deg, var(--raised) 0%, var(--surface) 100%); border-color: var(--border-strong); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-code { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.plan-badge { font-family: var(--mono); font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--raised); color: var(--muted); border: 1px solid var(--line); }
.plan.popular .plan-badge { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.plan.signature .plan-badge { background: var(--accent-glow); color: var(--accent); border-color: var(--accent); }
.plan h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.plan-tag { font-family: var(--mono); font-size: 11.5px; color: var(--accent); margin-top: 4px; }
.plan-price { display: flex; flex-direction: column; gap: 4px; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-size: 30px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.08; }
.price-note { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.price-std { font-family: var(--mono); font-size: 11px; color: var(--muted); text-decoration: line-through; }
.price-pkr { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.plan p.desc { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.plan ul { list-style: none; padding: 14px 0 0; margin: 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.plan li { display: flex; gap: 8px; color: var(--muted); line-height: 1.45; }
.plan li span:first-child { color: var(--accent); font-family: var(--mono); font-weight: 700; flex-shrink: 0; }
.plan .btn-plan { margin-top: auto; text-align: center; padding: 11px 16px; border-radius: 10px; text-decoration: none; font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--raised); color: var(--text); border: 1px solid var(--border-strong); transition: all 220ms ease; }
.plan.popular .btn-plan { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }

.includes, .terms { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.includes { padding: 24px; }
.includes-grid { display: grid; gap: 12px; font-size: 13.5px; }
@media (min-width: 640px) { .includes-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .includes-grid { grid-template-columns: repeat(3, 1fr); } }
.includes p { margin: 4px 0 0; }
.terms { padding: 0; overflow: hidden; border-radius: 16px; }
.terms-btn { width: 100%; padding: 16px 22px; background: transparent; border: 0; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; text-align: left; }
.terms-btn .eyebrow { margin: 0; font-weight: 700; letter-spacing: .14em; }
.terms-list { list-style: none; margin: 0; padding: 16px 22px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.terms-list li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.terms-list li::before { content: "•"; color: var(--accent); font-family: var(--mono); font-weight: 700; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; }
#threadCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.contact-scrim { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(8,8,9,.52) 0%, rgba(8,8,9,.88) 100%); pointer-events: none; }
.contact-inner { position: relative; z-index: 5; max-width: 1120px; margin: 0 auto; }
.contact-head { text-align: center; max-width: 740px; margin: 0 auto 40px; }
.contact-head .eyebrow { letter-spacing: .18em; }
.contact-head .section-title { margin-bottom: 12px; }
.contact-head p { margin: 0; font-size: 16px; line-height: 1.6; }
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 5fr 7fr; align-items: start; gap: 32px; } }
.channels { display: flex; flex-direction: column; gap: 14px; }
.channel { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; background: rgba(18,18,20,.84); backdrop-filter: blur(12px); border-color: var(--border-strong); padding: 20px; }
.channel .eyebrow { font-size: 11px; margin-bottom: 4px; }
.channel strong { font-size: 15.5px; font-weight: 600; word-break: break-word; }
.channel > span:last-child { font-family: var(--mono); font-size: 16px; color: var(--accent); }
.form { background: rgba(18,18,20,.88); backdrop-filter: blur(14px); border-color: var(--border-strong); display: flex; flex-direction: column; gap: 16px; padding: 28px; }
.form label { display: flex; flex-direction: column; gap: 6px; }
.form label .eyebrow { font-size: 11px; margin: 0; color: var(--muted); }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form input, .form textarea { font: inherit; font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 0 14px; height: 44px; outline: none; }
.form textarea { padding: 12px 14px; height: auto; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--accent); }
.form input.invalid, .form textarea.invalid { border-color: #ff5a5a; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.form-status { font-family: var(--mono); font-size: 12px; color: var(--live); }
.form-status.error { color: #ff7a7a; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg); padding: 40px 24px 64px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer .brand-name { font-weight: 700; font-size: 15px; letter-spacing: .05em; }
.footer .small-mono { margin-top: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-family: var(--mono); font-size: 12px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a.accent { color: var(--accent); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
