/* bridgd.xyz · coming-soon v2 (Derive-style). Brand tokens from brand/tokens. */
:root {
  --bg: #07100D; --surface: #0F1C17; --surface-2: #152821; --surface-3: #1C332A;
  --border: #1F3329; --border-strong: #2C4639;
  --text: #EEFAF4; --text-2: #C3D8CD; --muted: #93B3A5; --faint: #6E8C80;
  --lime: #D4FF4A; --emerald: #2BE08F; --teal: #12B5AE; --on-accent: #07100D;
  --negative: #FF6B5E; --warning: #FFC857;
  --risk-low: #2BE08F; --risk-watch: #FFC857; --risk-critical: #FF5E5E;
  --gradient-brand: linear-gradient(90deg, #D4FF4A 0%, #2BE08F 50%, #12B5AE 100%);
  --shadow-panel: 0 24px 48px -12px rgba(0,0,0,0.55);
  --shadow-focus: 0 0 0 3px rgba(43,224,143,0.45);
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--emerald); }
a:hover { color: var(--lime); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: 8px; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.disp { font-family: "Inter Display", Inter, sans-serif; font-weight: 500; letter-spacing: -0.025em; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.lbl { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lbl.accent { color: var(--emerald); }
.dim { color: var(--faint); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { top: 12px; }

/* buttons */
.btn-grad { height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--gradient-brand); color: var(--on-accent); font: 500 15px Inter, sans-serif; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; text-decoration: none; }
.btn-grad:hover { color: var(--on-accent); filter: brightness(1.06); }
.btn-grad:disabled { opacity: 0.6; cursor: default; }
.btn-grad.big { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-light { background: var(--text); color: var(--bg); text-decoration: none; font-size: 14px; font-weight: 500; padding: 0 20px; height: 44px; display: inline-flex; align-items: center; border-radius: 999px; }
.btn-light:hover { color: var(--bg); background: #fff; }

/* nav */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(7,16,13,0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 18px; font-weight: 500; }
.brand:hover { color: var(--text); }
.nav-links { display: flex; gap: 32px; font-size: 14px; }
.nav-links a { color: var(--text-2); text-decoration: none; }
.nav-links a:hover { color: var(--text); }

/* hero */
.hero { position: relative; overflow-x: clip; padding: 88px 24px 0; }
.hero-copy { max-width: 820px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; position: relative; z-index: 2; }
.pill { color: var(--emerald); border: 1px solid var(--border-strong); background: var(--surface); padding: 7px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); line-height: 1.02; }
.lede { font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 560px; }
.join { width: 100%; max-width: 500px; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 8px; }
.join-field { display: flex; gap: 8px; padding: 6px; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 999px; width: 100%; }
.join-field:focus-within { border-color: var(--emerald); }
.join-field input[type=email] { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: 16px Inter, sans-serif; padding: 0 16px; outline: none; }
.join-field input::placeholder { color: var(--faint); }
.join-field[hidden] { display: none; }
.consent { font-size: 12px; line-height: 1.5; color: var(--muted); max-width: 440px; }
.consent a { color: var(--muted); }
.consent[hidden] { display: none; }
.status { font-size: 14px; color: var(--text-2); min-height: 1px; }
.status:empty { display: none; }
.join.done .status { font-size: 16px; color: var(--text); }
.arc { position: absolute; left: 0; right: 0; top: 500px; width: 100%; height: 420px; z-index: 0; }

/* product panel + ambient glow */
.panel-wrap { position: relative; z-index: 1; max-width: 1120px; margin: 72px auto 0; }
.aura { position: absolute; inset: -110px -160px -60px; pointer-events: none; z-index: 0; }
.aura i { position: absolute; border-radius: 50%; filter: blur(64px); animation: drift 16s ease-in-out infinite; }
.aura .a1 { left: 22%; top: 8%; width: 56%; height: 70%; background: radial-gradient(closest-side, rgba(43,224,143,0.42), rgba(43,224,143,0)); }
.aura .a2 { left: -2%; bottom: 0; width: 42%; height: 62%; background: radial-gradient(closest-side, rgba(212,255,74,0.26), rgba(212,255,74,0)); animation-duration: 21s; animation-delay: -6s; }
.aura .a3 { right: -2%; top: -4%; width: 44%; height: 62%; background: radial-gradient(closest-side, rgba(18,181,174,0.36), rgba(18,181,174,0)); animation-duration: 19s; animation-delay: -11s; }
@keyframes drift { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(28px,-18px) scale(1.1); } }
.panel-edge { position: relative; z-index: 1; padding: 1px; border-radius: 25px; background: linear-gradient(135deg, rgba(212,255,74,0.55), rgba(43,224,143,0.12) 35%, rgba(31,51,41,1) 60%, rgba(18,181,174,0.5)); box-shadow: 0 40px 90px -30px rgba(43,224,143,0.35), var(--shadow-panel); }
.panel { background: var(--surface); border-radius: 24px; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border); gap: 16px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; font-size: 13px; flex-wrap: wrap; }
.tabs span { padding: 6px 12px; color: var(--muted); border-radius: 999px; }
.tabs .on { background: var(--surface-3); color: var(--text); }
.sample { color: var(--warning); border: 1px solid #4A3E1C; padding: 5px 10px; border-radius: 999px; }
.metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--border); }
.metrics > div { padding: 18px 20px; border-right: 1px solid var(--border); }
.metrics > div:last-child { border-right: 0; }
.big { font-size: 22px; margin-top: 8px; }
.sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.neg { color: var(--negative); }
.meter { height: 4px; background: var(--surface-3); border-radius: 4px; margin-top: 10px; }
.meter b { display: block; width: 38.2%; height: 4px; background: var(--emerald); border-radius: 4px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
th { padding: 10px 12px; font-weight: 500; text-align: left; background: var(--surface-2); }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }
td { padding: 12px; border-top: 1px solid var(--border); }
.r { text-align: right; }
.m { color: var(--muted); }
.risk.low { color: var(--risk-low); } .risk.watch { color: var(--risk-watch); } .risk.crit { color: var(--risk-critical); }

/* connector lines between sections */
.link-line { width: 1.5px; height: 72px; margin: 0 auto; }
.link-line.lime { background: var(--lime); }
.link-line.teal { background: var(--teal); }

/* journey: default is a vertical stack (phones, reduced motion, no JS) */
.journey { position: relative; padding: 24px 24px 24px; }
.journey-pin { max-width: 680px; margin: 0 auto; }
.journey-svg, .counter { display: none; }
.journey-intro { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; text-align: center; align-items: center; }
.journey-intro h2 { font-size: clamp(34px, 4.4vw, 48px); line-height: 1.06; }
.journey-intro p { font-size: 16px; line-height: 1.6; color: var(--text-2); max-width: 440px; }
.cards { list-style: none; margin: 0; padding: 0 0 0 28px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.cards::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 1.5px; background: linear-gradient(180deg, var(--lime), var(--emerald), var(--teal)); }
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.card::before { content: ""; position: absolute; left: -27px; top: 28px; width: 9px; height: 9px; border-radius: 50%; background: var(--emerald); }
.card h3 { font-size: 22px; }
.card p { font-size: 15px; line-height: 1.55; color: var(--text-2); }

/* journey: horizontal mode, switched on by app.js on wide screens */
.hz .journey { padding: 0; }
.hz .journey-pin { position: sticky; top: 0; max-width: none; height: 100vh; max-height: 820px; min-height: 620px; overflow: hidden; }
.hz .journey-track { position: absolute; top: 0; left: 0; height: 100%; will-change: transform; }
.hz .journey-svg { display: block; position: absolute; inset: 0; overflow: visible; }
.hz .journey-intro { position: absolute; left: 48px; margin: 0; text-align: left; align-items: flex-start; }
.hz .cards { position: static; padding: 0; }
.hz .cards::before { display: none; }
.hz .card { position: absolute; width: 340px; transition: opacity .25s linear; }
.hz .card::before { display: none; }
.hz .tick { position: absolute; width: 1px; height: 40px; background: var(--border-strong); }
.hz .node { position: absolute; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--border-strong); background: var(--bg); transition: background .2s, border-color .2s; }
.hz .node.on { background: var(--emerald); border-color: var(--emerald); }
.hz .counter { display: block; position: absolute; left: 48px; bottom: 28px; font-size: 12px; color: var(--muted); }

/* why bridgd */
.why { position: relative; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ghost { position: absolute; top: 56px; right: -40px; width: 820px; display: flex; gap: 16px; opacity: 0.6; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%, #000 100%), linear-gradient(to bottom, #000 62%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 34%, #000 100%), linear-gradient(to bottom, #000 62%, transparent 100%); mask-composite: intersect; }
.ghost-card { flex: 1 1 0; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px 22px; }
.ghost-card.flush { padding: 0; overflow: hidden; }
.ghost-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: 14px; color: var(--text-2); }
.vega { display: grid; grid-template-columns: 44px minmax(0, 1fr) 84px; row-gap: 14px; column-gap: 12px; align-items: center; font-size: 13px; }
.bar { height: 10px; background: var(--surface-3); border-radius: 3px; }
.bar b { display: block; height: 10px; border-radius: 3px; }
.bar .neg { background: var(--negative); } .bar .pos { background: var(--emerald); }
.w22 { width: 22%; } .w38 { width: 38%; } .w100 { width: 100%; } .w49 { width: 49%; } .w31 { width: 31%; }
.ghost-tabs { display: flex; border-bottom: 1px solid var(--border); font-size: 14px; }
.ghost-tabs span { flex: 1; padding: 14px; text-align: center; color: var(--muted); }
.ghost-tabs .on { background: var(--surface-2); color: var(--text); }
.ghost-cols { display: flex; justify-content: space-between; padding: 14px 18px 6px; }
.liq { padding: 10px 18px; display: flex; justify-content: space-between; font-size: 13px; }
.liq em { font-style: normal; }
.liq.crit { background: linear-gradient(90deg, rgba(255,94,94,0.14) 0 78%, transparent 78%); } .liq.crit em { color: var(--risk-critical); }
.liq.watch { background: linear-gradient(90deg, rgba(255,200,87,0.10) 0 52%, transparent 52%); } .liq.watch em { color: var(--risk-watch); }
.liq.low { background: linear-gradient(90deg, rgba(43,224,143,0.08) 0 30%, transparent 30%); } .liq.low em { color: var(--risk-low); }
.ghost-delta { padding: 16px 18px; font-size: 20px; border-top: 1px solid var(--border); margin-top: 8px; }
.ghost-delta small { font-size: 12px; color: var(--muted); }
.sample.pad { display: inline-block; margin: 0 18px 18px; }
.why-inner { position: relative; padding-top: 104px; padding-bottom: 112px; }
.why h2 { font-size: clamp(44px, 5vw, 64px); line-height: 1; margin-bottom: 64px; }
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 56px; }
.why-item { display: flex; flex-direction: column; gap: 14px; }
.tile { width: 56px; height: 56px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 0 28px rgba(43,224,143,0.16); display: flex; align-items: center; justify-content: center; }
.tile svg { width: 26px; height: 26px; fill: none; stroke: var(--emerald); stroke-width: 1.6; stroke-linecap: round; }
.why-item h3 { font-size: 22px; font-weight: 500; margin-top: 6px; }
.why-item p { font-size: 16px; line-height: 1.55; color: var(--muted); }

/* faq */
.faq { padding: 112px 0; }
.faq-inner { display: flex; gap: 64px; flex-wrap: wrap; align-items: flex-start; }
.faq-side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.faq-side h2 { font-size: clamp(36px, 4vw, 48px); line-height: 1.05; }
.faq-side p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.faq-list { flex: 999 1 620px; min-width: 0; }
details { border-top: 1px solid var(--border-strong); padding: 22px 0; }
details:last-child { border-bottom: 1px solid var(--border-strong); }
summary { display: flex; gap: 20px; align-items: baseline; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary .n { font-size: 12px; color: var(--muted); }
summary .q { flex: 1; font-size: 19px; font-weight: 500; }
summary .pm::before { content: "+"; color: var(--muted); font-size: 20px; }
details[open] summary .pm::before { content: "−"; color: var(--emerald); }
details p { margin: 12px 0 0 38px; color: var(--text-2); font-size: 16px; line-height: 1.65; max-width: 620px; }

/* cta band + footer */
.cta-band-wrap { padding: 0 0 96px; }
.cta-band { border: 1px solid var(--border); background: var(--surface); border-radius: 24px; padding: 64px 48px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2, .cta-band p { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.1; }
.cta-band p { margin-top: 4px; }
.foot { border-top: 1px solid var(--border); padding: 32px 0 40px; }
.foot-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.foot-inner p { max-width: 560px; line-height: 1.6; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--muted); }

/* entrance: staggered rise, Derive-style */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .3s; } .d4 { animation-delay: .45s; } .d5 { animation-delay: .7s; animation-duration: 1.2s; }

/* phones and tablets */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics > div { border-bottom: 1px solid var(--border); }
  .metrics > div:nth-child(2n) { border-right: 0; }
  .metrics > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .why { display: flex; flex-direction: column; }
  .ghost { order: 2; position: relative; top: auto; right: auto; width: auto; margin: -40px 0 64px 24px; opacity: 0.75;
    -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 100%), linear-gradient(to bottom, #000 60%, transparent 100%);
    mask-image: linear-gradient(to right, #000 55%, transparent 100%), linear-gradient(to bottom, #000 60%, transparent 100%); }
  .ghost-card { flex: 0 0 300px; }
}
@media (max-width: 600px) {
  .ghost-card.flush { order: -1; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
  .cta-band { padding: 40px 28px; }
}
@media (max-width: 600px) {
  .pill-long { display: none; }
  .hero { padding-top: 56px; }
  .lede { font-size: 17px; }
  .join-field { flex-direction: column; border-radius: 22px; padding: 8px; }
  .join-field input[type=email] { height: 44px; }
  .join-field .btn-grad { justify-content: center; }
  .arc { top: 560px; }
  .panel-wrap { margin-top: 48px; }
  .big { font-size: 18px; }
  table { min-width: 0; }
  th:nth-child(2), td:nth-child(2), th:nth-child(4), td:nth-child(4) { display: none; }
  .risk { white-space: nowrap; }
  th, td { padding-left: 8px; padding-right: 8px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-inner { padding-top: 72px; padding-bottom: 80px; }
  .why h2 { margin-bottom: 40px; }
  .faq { padding: 80px 0; }
  .faq-inner { gap: 32px; }
  details p { margin-left: 0; }
  .cta-band-wrap { padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .aura i { animation: none; }
}
