/* ============================================================
   FixSense Landing — site styles
   Uses the SAME semantic tokens as the chat app (css/tokens.css),
   so both color schemes work automatically. No raw brand colors.
   ============================================================ */

body { background: var(--bg-900); color: var(--tx-hi); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.eyebrow.alt { color: var(--accent-2); }

/* smooth theme cross-fade (mirrors the chat app) */
body, .nav, .copilot, .prob, .face, .layer, .moat, .phase .node,
.cta-inner, .btn, .pill, .nav-cta, .theme-toggle {
  transition: background-color .35s ease, border-color .35s ease, color .25s ease;
}

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg-900) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 0 28px; height: 66px; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(150deg, var(--accent), var(--accent-dim)); position: relative; flex: none; box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.brand-mark::before { content: ""; position: absolute; width: 12px; height: 12px; border: 2.5px solid var(--accent-ink); border-right-color: transparent; border-bottom-color: transparent; transform: rotate(45deg); top: 8px; left: 7px; }
.brand .dim { color: var(--tx-lo); font-weight: 400; }
.nav-links { display: flex; gap: 24px; margin-left: 6px; }
.nav-links a { font-size: 14px; color: var(--tx-mid); transition: color .18s; font-weight: 450; }
.nav-links a:hover { color: var(--tx-hi); }
.nav-spacer { flex: 1; }
.nav-cta { font-size: 13.5px; font-weight: 500; padding: 9px 16px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); transition: transform .16s, box-shadow .16s, background .15s; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -8px var(--accent-glow); }

/* theme toggle (same look as chat app) */
.theme-toggle { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px 7px 9px; border-radius: 9px; border: 1px solid var(--line-soft); background: var(--bg-800); color: var(--tx-mid); font-size: 13px; font-weight: 500; }
.theme-toggle:hover { border-color: var(--line); color: var(--tx-hi); background: var(--bg-750); }
.theme-swatch { display: inline-flex; border-radius: 5px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-soft); flex: none; }
.theme-swatch i { width: 12px; height: 18px; display: block; }

/* ---------- Buttons / pills ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 500; padding: 12px 22px; border-radius: 11px; transition: transform .16s, box-shadow .16s, background .16s, border-color .16s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px var(--accent-glow); }
.btn-ghost { border: 1px solid var(--line); color: var(--tx-hi); background: var(--bg-700); }
.btn-ghost:hover { border-color: var(--tx-lo); background: var(--bg-600); }
.btn svg { width: 17px; height: 17px; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; padding: 5px 11px; border-radius: 100px; border: 1px solid var(--line); color: var(--tx-mid); background: var(--bg-700); }
.dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.dot.live { background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent); animation: pulse 2s infinite; }
.dot.accent { background: var(--accent); } .dot.accent2 { background: var(--accent-2); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ---------- Section scaffolding ---------- */
.section { padding: 92px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 42px); line-height: 1.08; letter-spacing: -0.02em; margin: 14px 0 16px; }
.section-head p { font-size: 16.5px; color: var(--tx-mid); line-height: 1.6; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 400px at 78% 8%, var(--accent-glow), transparent 60%), radial-gradient(700px 500px at 10% 90%, var(--accent-2-glow), transparent 62%); pointer-events: none; }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%); opacity: .5; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 5.4vw, 60px); line-height: 1.03; letter-spacing: -0.03em; margin: 22px 0; }
.hero h1 .accent { color: var(--accent); }
.hero h1 .thin { font-weight: 400; color: var(--tx-mid); }
.hero-sub { font-size: 18px; color: var(--tx-mid); line-height: 1.6; max-width: 480px; margin-bottom: 30px; }
.hero-cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.hstat .n { font-family: var(--font-display); font-size: 27px; font-weight: 600; letter-spacing: -0.02em; }
.hstat .n .u { font-size: 15px; color: var(--tx-lo); }
.hstat .l { font-size: 12.5px; color: var(--tx-lo); margin-top: 3px; }

/* copilot readout (hero signature) */
.copilot { background: linear-gradient(180deg, var(--bg-700), var(--bg-800)); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.55); overflow: hidden; position: relative; }
.copilot::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .6; }
.cp-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); background: var(--bg-800); }
.cp-top .title { font-family: var(--font-mono); font-size: 12px; color: var(--tx-mid); letter-spacing: .04em; }
.cp-top .spacer { flex: 1; }
.cp-body { padding: 20px; }
.voice-line { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.mic { width: 44px; height: 44px; border-radius: 50%; flex: none; background: radial-gradient(circle at 40% 35%, var(--accent), var(--accent-dim)); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--accent-glow); }
.mic svg { width: 18px; height: 18px; }
.wave { display: flex; align-items: center; gap: 3px; height: 32px; flex: 1; }
.wave span { width: 3px; border-radius: 3px; background: var(--accent); opacity: .85; animation: wv 1.1s ease-in-out infinite; }
@keyframes wv { 0%,100%{ height: 6px } 50%{ height: 26px } }
.q-bubble { font-size: 14.5px; color: var(--tx-hi); background: var(--bg-600); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.q-bubble .who { font-family: var(--font-mono); font-size: 10.5px; color: var(--tx-lo); letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 5px; }
.a-block { border-left: 2px solid var(--accent-2); padding-left: 14px; margin-bottom: 18px; }
.a-block .who { font-family: var(--font-mono); font-size: 10.5px; color: var(--accent-2); letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 7px; }
.a-block p { font-size: 14px; color: var(--tx-mid); line-height: 1.55; }
.torque { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 10px; font-family: var(--font-mono); background: var(--accent-glow); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 8px; padding: 7px 11px; }
.torque .val { font-size: 19px; font-weight: 600; color: var(--accent); }
.torque .lab { font-size: 11px; color: var(--tx-mid); }
.airdrop { background: var(--bg-900); border: 1px solid var(--line-soft); border-radius: 12px; padding: 13px 14px 15px; }
.airdrop .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.airdrop .head .t { font-family: var(--font-mono); font-size: 11px; color: var(--tx-mid); display: flex; gap: 7px; align-items: center; }
.airdrop .head .tc { font-family: var(--font-mono); font-size: 11px; color: var(--accent-2); }
.scrub { position: relative; height: 40px; }
.scrub .track { position: absolute; top: 50%; left: 0; right: 0; height: 30px; transform: translateY(-50%); display: flex; align-items: center; gap: 2px; }
.scrub .track b { flex: 1; border-radius: 2px; background: var(--bg-600); }
.scrub .played b { background: var(--accent-2-dim); }
.pin { position: absolute; top: -4px; height: calc(100% + 8px); width: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.pin::before { content: "\25C6"; position: absolute; top: -16px; left: 50%; transform: translateX(-50%); color: var(--accent); font-size: 12px; }
.pin .flag { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 10px; white-space: nowrap; background: var(--accent); color: var(--accent-ink); padding: 3px 7px; border-radius: 5px; font-weight: 600; }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 26px 0; background: var(--bg-900); }
.trust-inner { display: flex; align-items: center; gap: 40px; justify-content: center; flex-wrap: wrap; }
.trust-inner .lab { font-family: var(--font-mono); font-size: 11px; color: var(--tx-lo); letter-spacing: .14em; text-transform: uppercase; }
.trust-inner .name { font-family: var(--font-display); font-weight: 500; font-size: 16px; color: var(--tx-lo); }

/* ---------- Problem cards ---------- */
.prob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prob { background: var(--bg-700); border: 1px solid var(--line-soft); border-radius: 14px; padding: 26px 24px; position: relative; overflow: hidden; }
.prob .idx { font-family: var(--font-mono); font-size: 12px; color: var(--tx-dim); letter-spacing: .1em; }
.prob h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 14px 0 10px; letter-spacing: -0.01em; }
.prob p { font-size: 14px; color: var(--tx-mid); line-height: 1.58; }
.prob .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--danger); opacity: .55; }

/* ---------- Dual interface ---------- */
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.face { border-radius: 22px; padding: 34px 32px; position: relative; overflow: hidden; border: 1px solid var(--line); min-height: 320px; background: linear-gradient(160deg, var(--bg-700), var(--bg-800)); }
.face::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; filter: blur(40px); }
.face.tech::after { background: var(--accent-glow); }
.face.admin::after { background: var(--accent-2-glow); }
.face .kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.face.tech .kicker { color: var(--accent); }
.face.admin .kicker { color: var(--accent-2); }
.face h3 { font-family: var(--font-display); font-size: 25px; font-weight: 600; margin: 12px 0 8px; letter-spacing: -0.02em; position: relative; }
.face .lede { font-size: 15px; line-height: 1.6; margin-bottom: 22px; position: relative; color: var(--tx-mid); }
.feat-list { list-style: none; display: flex; flex-direction: column; gap: 13px; position: relative; }
.feat-list li { display: flex; gap: 12px; font-size: 14px; line-height: 1.45; align-items: flex-start; color: var(--tx-hi); }
.feat-list .ic { width: 22px; height: 22px; border-radius: 6px; flex: none; display: grid; place-items: center; margin-top: 1px; }
.face.tech .feat-list .ic { background: var(--accent-glow); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.face.admin .feat-list .ic { background: var(--accent-2-glow); border: 1px solid color-mix(in srgb, var(--accent-2) 30%, transparent); }

/* ---------- Architecture ---------- */
.arch { display: flex; flex-direction: column; gap: 12px; }
.layer { display: grid; grid-template-columns: 200px 1fr auto; gap: 24px; align-items: center; background: var(--bg-700); border: 1px solid var(--line-soft); border-radius: 14px; padding: 22px 26px; transition: border-color .2s, transform .2s; }
.layer:hover { border-color: var(--accent-2-dim); transform: translateX(4px); }
.layer .lname { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.layer .lname .sub { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--tx-lo); letter-spacing: .08em; margin-top: 4px; font-weight: 400; }
.layer .ldesc { font-size: 13.5px; color: var(--tx-mid); line-height: 1.5; }
.layer .ltag { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 240px; }
.layer .ltag .t { font-family: var(--font-mono); font-size: 10.5px; padding: 4px 9px; border-radius: 6px; background: var(--bg-900); border: 1px solid var(--line-soft); color: var(--tx-mid); }
.layer.core { border-color: color-mix(in srgb, var(--accent-2) 30%, transparent); background: linear-gradient(100deg, var(--bg-700), var(--bg-600)); }
.layer.core .lname { color: var(--accent-2); }

/* ---------- Moat pillars ---------- */
.moat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.moat { background: var(--bg-700); border: 1px solid var(--line-soft); border-radius: 14px; padding: 24px 20px; }
.moat .num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.moat h4 { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin: 12px 0 9px; line-height: 1.2; letter-spacing: -0.01em; }
.moat p { font-size: 13px; color: var(--tx-mid); line-height: 1.5; }

/* ---------- Roadmap ---------- */
.road { position: relative; padding-left: 8px; }
.phase { display: grid; grid-template-columns: 62px 1fr; gap: 26px; padding-bottom: 40px; position: relative; }
.phase:not(:last-child)::before { content: ""; position: absolute; left: 30px; top: 56px; bottom: -4px; width: 2px; background: linear-gradient(var(--line), transparent); }
.phase .node { width: 60px; height: 60px; border-radius: 16px; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 22px; background: var(--bg-700); border: 1px solid var(--line); color: var(--tx-mid); }
.phase.p1 .node { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: 0 0 24px -8px var(--accent-glow); }
.phase.p2 .node { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 40%, transparent); }
.phase.p3 .node { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.phase .ptime { font-family: var(--font-mono); font-size: 11px; color: var(--tx-lo); letter-spacing: .1em; text-transform: uppercase; }
.phase h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 8px 0 6px; letter-spacing: -0.02em; }
.phase .pcore { font-size: 14px; color: var(--accent-2); margin-bottom: 12px; font-family: var(--font-mono); }
.phase p { font-size: 14.5px; color: var(--tx-mid); line-height: 1.6; max-width: 620px; }
.phase .goal { margin-top: 14px; display: inline-flex; gap: 9px; align-items: flex-start; background: var(--bg-700); border: 1px solid var(--line-soft); border-radius: 10px; padding: 11px 14px; font-size: 13.5px; color: var(--tx-hi); max-width: 620px; }
.phase .goal .gk { font-family: var(--font-mono); font-size: 10px; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; padding-top: 2px; flex: none; }

/* ---------- CTA ---------- */
.cta-band { margin: 40px auto 0; max-width: 1180px; }
.cta-inner { background: linear-gradient(120deg, var(--bg-700), var(--bg-600)); border: 1px solid var(--line); border-radius: 22px; padding: 56px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-inner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 50% -20%, var(--accent-glow), transparent 60%); }
.cta-inner h2 { font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 38px); font-weight: 600; letter-spacing: -0.02em; position: relative; margin-bottom: 14px; }
.cta-inner p { color: var(--tx-mid); font-size: 16px; max-width: 520px; margin: 0 auto 26px; position: relative; }
.cta-inner .row { display: flex; gap: 14px; justify-content: center; position: relative; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); margin-top: 90px; padding: 46px 0 40px; background: var(--bg-900); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--tx-lo); margin-bottom: 16px; }
.footer a { display: block; font-size: 14px; color: var(--tx-mid); padding: 5px 0; transition: color .15s; }
.footer a:hover { color: var(--tx-hi); }
.footer-bot { max-width: 1180px; margin: 34px auto 0; padding: 22px 28px 0; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; font-size: 12.5px; color: var(--tx-lo); font-family: var(--font-mono); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .prob-grid, .moat-grid { grid-template-columns: 1fr 1fr; }
  .dual { grid-template-columns: 1fr; }
  .layer { grid-template-columns: 1fr; gap: 12px; }
  .layer .ltag { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-bot { flex-direction: column; gap: 10px; }
  .theme-toggle .theme-label { display: none; }
  .theme-toggle { padding: 7px 9px; }
}
@media (max-width: 560px) {
  .prob-grid, .moat-grid, .hero-stats { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .phase { grid-template-columns: 48px 1fr; gap: 16px; }
  .phase .node { width: 46px; height: 46px; font-size: 17px; }
}
