/* ==========================================================
   Centauric — design system
   Midnight · Gold · Teal   (derived from the Centauric mark)
   ========================================================== */

:root {
  --bg: #05111f;
  --bg-2: #081a2d;
  --bg-3: #0b2238;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eaf0f7;
  --muted: #98a8bb;
  --dim: #66778c;
  --gold: #d9b26a;
  --gold-2: #f2d89b;
  --teal: #2fb8a6;
  --teal-2: #7ae6d3;
  --red: #ff7a7a;
  --amber: #f5c26b;
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1180px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #1a1205; padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Ambient background ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient::before, .ambient::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.5;
}
.ambient::before { width: 620px; height: 620px; top: -220px; right: -120px; background: radial-gradient(circle, rgba(217,178,106,0.35), transparent 70%); }
.ambient::after { width: 700px; height: 700px; top: 30%; left: -260px; background: radial-gradient(circle, rgba(47,184,166,0.28), transparent 70%); }
.grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.55;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.display { text-wrap: balance; font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; }
.gold-text {
  background: linear-gradient(100deg, var(--gold-2), var(--gold) 45%, var(--teal-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2.display { font-size: clamp(2rem, 4vw, 3.2rem); margin: 14px 0 16px; }
.lead { color: var(--muted); font-size: 1.06rem; max-width: 620px; }
.section { padding: 112px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s, border-color .25s;
}
.btn-gold { color: #1a1205; background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 8px 30px -8px rgba(217,178,106,0.6); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(217,178,106,0.8); background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.btn-ghost { color: var(--text); border-color: var(--line-2); background: var(--panel); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--gold); background: var(--panel-2); transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; transition: transform .25s; }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(5,17,31,0.78); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; letter-spacing: 0.26em; font-size: 1.02rem; }
.brand-name span { color: var(--gold); }
.brand-sub { font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin-top: 6px; }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 0.92rem; font-weight: 500; color: var(--muted); }
.nav-links a:not(.btn) { position: relative; transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .3s; transform-origin: left; }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links .btn { padding: 10px 20px; font-size: 0.88rem; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; margin: auto; position: relative; transition: .3s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 168px 0 90px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 0.9fr 1.2fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--panel); font-size: 0.8rem; color: var(--muted); margin-bottom: 26px;
}
.pill b { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1205; padding: 3px 10px; border-radius: 999px; font-size: 0.68rem; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.6rem, 4.6vw, 4.2rem); margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; font-size: 1.14rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 14px 30px; color: var(--muted); font-size: 0.86rem; }
.hero-proof li { display: flex; align-items: center; gap: 9px; }
.hero-proof svg { width: 16px; height: 16px; color: var(--teal); flex: none; }

/* ---------- App mockup (shared) ---------- */
.app-stage { position: relative; perspective: 1600px; }
.app {
  position: relative; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #0c2036, #08182a);
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.03) inset, 0 0 120px -30px rgba(217,178,106,.25);
  font-size: 12px;
}
.hero .app { transform: rotateY(-9deg) rotateX(4deg); transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.hero .app-stage:hover .app { transform: rotateY(-3deg) rotateX(1deg); }
.app-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.dot:nth-child(1){background:#ff6f6a}.dot:nth-child(2){background:#f5c26b}.dot:nth-child(3){background:#5ad19a}
.app-url { margin-left: 14px; flex: 1; max-width: 280px; padding: 5px 12px; border-radius: 8px; background: rgba(255,255,255,.05); color: var(--dim); font-family: var(--mono); font-size: 10.5px; }
.app-body { display: grid; grid-template-columns: 148px 1fr; min-height: 420px; }
.side { padding: 16px 12px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; background: rgba(0,0,0,.15); }
.side-brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 14px; font-weight: 700; letter-spacing: .14em; font-size: 10px; color: var(--text); }
.side-brand img { width: 22px; height: 22px; object-fit: contain; }
.side a, .side div.item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: 11.5px; }
.side .active { background: rgba(217,178,106,.12); color: var(--gold-2); }
.side svg { width: 14px; height: 14px; flex: none; }
.main { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.main-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.main-head h4 { font-size: 14px; font-weight: 600; }
.main-head small { color: var(--dim); display: block; font-weight: 400; margin-top: 2px; font-size: 10.5px; }
.chip { padding: 4px 10px; border-radius: 999px; font-size: 10px; font-weight: 600; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.chip.ok { color: var(--teal-2); border-color: rgba(47,184,166,.4); background: rgba(47,184,166,.1); }
.chip.warn { color: var(--amber); border-color: rgba(245,194,107,.4); background: rgba(245,194,107,.1); }
.chip.bad { color: var(--red); border-color: rgba(255,122,122,.4); background: rgba(255,122,122,.1); }
.chip.gold { color: var(--gold-2); border-color: rgba(217,178,106,.45); background: rgba(217,178,106,.1); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { padding: 11px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.kpi span { display: block; color: var(--dim); font-size: 10px; margin-bottom: 5px; }
.kpi b, .kpi em { white-space: nowrap; }
.kpi b { font-size: 18px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font-size: 10px; margin-left: 4px; color: var(--teal-2); }
.kpi em.down { color: var(--teal-2); }
.card { border-radius: 12px; background: var(--panel); border: 1px solid var(--line); padding: 12px 14px; }
.card h5 { margin: 0 0 10px; font-size: 11px; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s .4s forwards ease-out; }
.chart .area { opacity: 0; animation: fade 1.2s 1.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.rows { display: flex; flex-direction: column; gap: 7px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--muted); }
.row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row b { font-weight: 500; color: var(--text); }

/* floating cards on hero mockup */
.float {
  position: absolute; padding: 13px 15px; border-radius: 14px; font-size: 12px;
  background: rgba(10,28,46,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); box-shadow: 0 24px 50px -16px rgba(0,0,0,.7);
  animation: bob 6s ease-in-out infinite; z-index: 3;
}
.float.a { left: -52px; bottom: -34px; width: 230px; }
.float.b { right: -14px; top: -58px; width: 200px; animation-delay: -3s; }
.float small { color: var(--dim); display: block; font-size: 10.5px; margin-bottom: 4px; }
.float strong { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.float .tick { width: 22px; height: 22px; border-radius: 50%; background: rgba(47,184,166,.18); color: var(--teal-2); display: grid; place-items: center; flex: none; }
.float .tick svg { width: 12px; height: 12px; }
.float p { color: var(--muted); font-size: 11px; margin-top: 6px; line-height: 1.45; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-9px)} }
.demo-note { text-align: center; margin-top: 22px; font-size: 0.74rem; color: var(--dim); letter-spacing: .04em; }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: rgba(255,255,255,.015); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 28px 24px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item b { display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 400; color: var(--gold-2); line-height: 1.1; margin-bottom: 4px; }
.trust-item span { color: var(--muted); font-size: 0.86rem; }

/* ---------- Product showcase (tabs) ---------- */
.showcase { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.tab {
  display: flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600; font-size: .92rem;
  color: var(--muted); background: var(--panel); border: 1px solid var(--line); transition: .25s;
}
.tab svg { width: 17px; height: 17px; }
.tab:hover { color: var(--text); border-color: var(--line-2); }
.tab[aria-selected="true"] { color: #1a1205; background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: transparent; box-shadow: 0 10px 30px -10px rgba(217,178,106,.6); }
.tabpanel { display: none; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.tabpanel.active { display: grid; animation: panelIn .6s cubic-bezier(.2,.7,.2,1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.tabpanel h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 16px; }
.tabpanel .copy p { color: var(--muted); margin-bottom: 24px; }
.checks li { display: flex; gap: 12px; padding: 9px 0; color: var(--text); font-size: .95rem; }
.checks svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 3px; }
.panel-app .app-body { grid-template-columns: 1fr; min-height: 0; }
.panel-app .main { padding: 22px; gap: 16px; }

.meters { display: flex; flex-direction: column; gap: 13px; }
.meter-top { display: flex; justify-content: space-between; font-size: 11.5px; margin-bottom: 6px; color: var(--muted); }
.meter-top b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { height: 7px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--teal), var(--teal-2)); transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.bar i.gold { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.convo { display: flex; flex-direction: column; gap: 9px; }
.msg { padding: 10px 13px; border-radius: 12px; font-size: 11.5px; line-height: 1.5; max-width: 92%; }
.msg.q { background: rgba(255,255,255,.07); align-self: flex-end; color: var(--text); border-bottom-right-radius: 4px; }
.msg.a { background: rgba(47,184,166,.09); border: 1px solid rgba(47,184,166,.25); color: var(--text); border-bottom-left-radius: 4px; }
.msg .cite { display: inline-block; margin-top: 7px; font-family: var(--mono); font-size: 10px; color: var(--teal-2); padding: 2px 8px; border-radius: 6px; background: rgba(47,184,166,.12); }
.table { width: 100%; border-collapse: collapse; font-size: 11px; }
.table th { text-align: left; font-weight: 500; color: var(--dim); padding: 0 8px 8px 0; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.table td { padding: 9px 8px 9px 0; border-top: 1px solid var(--line); color: var(--muted); }
.table td:first-child { color: var(--text); font-weight: 500; }
.steps { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.step { flex: 1; text-align: center; padding: 9px 4px; font-size: 10px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line); color: var(--dim); }
.step.done { color: var(--teal-2); border-color: rgba(47,184,166,.35); background: rgba(47,184,166,.08); }
.step.now { color: var(--gold-2); border-color: rgba(217,178,106,.5); background: rgba(217,178,106,.1); }
.timeline { position: relative; padding-left: 20px; display: flex; flex-direction: column; gap: 13px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.tl { position: relative; font-size: 11.5px; color: var(--muted); }
.tl::before { content: ""; position: absolute; left: -20px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg-3); border: 2px solid var(--teal); }
.tl.gold::before { border-color: var(--gold); }
.tl b { color: var(--text); font-weight: 600; display: block; }
.tl span { color: var(--dim); font-family: var(--mono); font-size: 10px; }

/* ---------- Bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  position: relative; padding: 30px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  overflow: hidden; transition: border-color .3s, transform .3s, background .3s;
}
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(217,178,106,.1), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tile:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--panel-2); }
.tile:hover::before { opacity: 1; }
.tile.s2 { grid-column: span 2; } .tile.s3 { grid-column: span 3; } .tile.s4 { grid-column: span 4; }
.icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 22px; background: linear-gradient(135deg, rgba(217,178,106,.2), rgba(47,184,166,.14)); border: 1px solid var(--line-2); color: var(--gold-2); }
.icon svg { width: 22px; height: 22px; }
.tile h3 { font-size: 1.18rem; font-weight: 600; margin-bottom: 10px; letter-spacing: -.01em; }
.tile p { color: var(--muted); font-size: .94rem; }
.tile .big { font-family: var(--display); font-size: 3.6rem; line-height: 1; color: var(--gold-2); margin-bottom: 10px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag-row span { font-size: .74rem; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); background: rgba(255,255,255,.03); }

/* ---------- How it works ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: s; }
.flow::before { content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), var(--teal), transparent); opacity: .5; }
.flow-step { text-align: center; padding: 0 20px; position: relative; }
.flow-num { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; font-family: var(--display); font-size: 1.3rem; color: var(--gold-2); background: var(--bg); border: 1px solid var(--gold); box-shadow: 0 0 0 7px var(--bg), 0 0 30px -4px rgba(217,178,106,.5); position: relative; z-index: 1; }
.flow-step h3 { font-size: 1.05rem; margin-bottom: 8px; font-weight: 600; }
.flow-step p { color: var(--muted); font-size: .9rem; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  padding: 34px 30px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel));
  display: flex; flex-direction: column; transition: .3s; position: relative; overflow: hidden;
}
.service::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--gold), var(--teal)); transform: scaleX(0); transform-origin: left; transition: transform .5s; }
.service:hover { transform: translateY(-4px); border-color: var(--line-2); }
.service:hover::after { transform: scaleX(1); }
.service .num { font-family: var(--mono); font-size: .75rem; color: var(--gold); margin-bottom: 26px; letter-spacing: .1em; }
.service h3 { font-size: 1.32rem; font-family: var(--display); font-weight: 400; margin-bottom: 12px; letter-spacing: -.01em; }
.service p { color: var(--muted); font-size: .94rem; margin-bottom: 24px; }
.service ul { margin-top: auto; border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 8px; font-size: .86rem; color: var(--muted); }
.service li { display: flex; gap: 10px; align-items: center; }
.service li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); flex: none; }

/* ---------- Governance ---------- */
.gov { background: linear-gradient(180deg, transparent, rgba(47,184,166,.06) 50%, transparent); }
.gov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.gov-list { display: grid; gap: 14px; margin-top: 34px; }
.gov-list li { display: flex; gap: 16px; padding: 18px 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); transition: .3s; }
.gov-list li:hover { border-color: rgba(47,184,166,.5); transform: translateX(6px); }
.gov-list .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(47,184,166,.12); color: var(--teal-2); flex: none; }
.gov-list .ic svg { width: 18px; height: 18px; }
.gov-list b { display: block; font-weight: 600; margin-bottom: 2px; font-size: .98rem; }
.gov-list span { color: var(--muted); font-size: .88rem; }
.shield { position: relative; aspect-ratio: 1; max-width: 460px; margin-inline: auto; display: grid; place-items: center; }
.shield .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--line-2); animation: spin 60s linear infinite; }
.shield .ring.r2 { inset: 12%; border-style: solid; border-color: var(--line); animation-duration: 90s; animation-direction: reverse; }
.shield .ring.r3 { inset: 26%; border-color: rgba(217,178,106,.35); animation: none; }
.shield .ring i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); top: -5px; left: 50%; box-shadow: 0 0 20px var(--teal); }
.shield .ring.r2 i { background: var(--gold); box-shadow: 0 0 20px var(--gold); top: auto; bottom: -5px; }
.shield img { width: 46%; position: relative; filter: drop-shadow(0 0 40px rgba(217,178,106,.4)); }
.orb { position: absolute; padding: 7px 13px; border-radius: 99px; font-size: .72rem; font-weight: 600; background: rgba(10,28,46,.9); border: 1px solid var(--line-2); color: var(--muted); backdrop-filter: blur(8px); }
.orb::before { content: "●"; color: var(--teal); margin-right: 7px; font-size: .6rem; }
.orb.o1 { top: 8%; right: 0; } .orb.o2 { bottom: 14%; left: -4%; } .orb.o3 { top: 40%; left: -10%; } .orb.o4 { bottom: 4%; right: 8%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- CTA / Contact ---------- */
.contact { position: relative; }
.contact-wrap {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; padding: 56px; border-radius: 28px;
  background: linear-gradient(145deg, rgba(217,178,106,.09), rgba(47,184,166,.07) 60%, rgba(255,255,255,.02)); border: 1px solid var(--line-2);
  position: relative; overflow: hidden;
}
.contact-wrap::before { content: ""; position: absolute; width: 400px; height: 400px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(217,178,106,.25), transparent 70%); pointer-events: none; }
.contact-copy .lead { margin-bottom: 30px; }
.contact-list { display: grid; gap: 12px; color: var(--muted); font-size: .94rem; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.form { display: grid; gap: 16px; position: relative; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 7px; letter-spacing: .03em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; font-size: .94rem; color: var(--text); border-radius: 12px;
  background: rgba(5,17,31,.7); border: 1px solid var(--line-2); outline: none; transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2398a8bb' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field select option { background: #08182a; }
.field textarea { min-height: 124px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217,178,106,.14); }
.form .btn { width: 100%; padding: 16px; }
.form-note { font-size: .76rem; color: var(--dim); text-align: center; }
.notice { display: none; padding: 14px 18px; border-radius: 12px; background: rgba(47,184,166,.12); border: 1px solid rgba(47,184,166,.4); color: var(--teal-2); font-size: .92rem; margin-bottom: 4px; }
.notice.show { display: block; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 34px; background: #030b15; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer .brand img { height: 52px; }
.footer p { color: var(--muted); font-size: .9rem; max-width: 380px; margin-top: 18px; }
.footer h4 { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-weight: 700; }
.footer li { margin-bottom: 10px; font-size: .9rem; color: var(--muted); }
.footer li a:hover { color: var(--text); }
.footer address { font-style: normal; color: var(--muted); font-size: .9rem; line-height: 1.8; }
.footer address strong { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: .8rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .tabpanel, .gov-grid, .contact-wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 140px; }
  .hero .app { transform: none; }
  .float.a { left: 8px; bottom: -28px; } .float.b { right: 8px; top: -30px; }
  .bento .tile.s2, .bento .tile.s3, .bento .tile.s4 { grid-column: span 3; }
  .service-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; gap: 44px 0; } .flow::before { display: none; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; } .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .contact-wrap { padding: 36px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 28px;
    background: rgba(5,17,31,.97); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .3s;
  }
  .nav-links a:not(.btn) { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 18px; padding: 14px; }
  .menu-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .menu-open .site-header { background: rgba(5,17,31,.97); }
}
@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 32px)); }
  .section { padding: 80px 0; }
  .brand-sub { display: none; }
  .app-body { grid-template-columns: 1fr; } .side { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); } .split { grid-template-columns: 1fr; }
  .float.a, .float.b { display: none; }
  .bento { grid-template-columns: 1fr; } .bento .tile.s2, .bento .tile.s3, .bento .tile.s4 { grid-column: auto; }
  .flow { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tab { padding: 10px 16px; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .chart .line { stroke-dashoffset: 0; } .chart .area { opacity: 1; }
  html { scroll-behavior: auto; }
}
