/* Sameveil marketing site. Same palette as the console so the product feels like one thing. */
:root {
  --bg: #0f141c; --bg-2: #141b25; --panel: #182130; --line: #263142; --line-soft: #1e2735;
  --text: #e8edf3; --text-2: #b7c1cf; --muted: #7f8ca0;
  --accent: #7aa7ff; --accent-2: #b48cf0;
  --allow: #4caf7d; --review: #d9a441; --bonus: #e07a3a; --block: #d6494b;
  --sans: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1120px; --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg, canvas { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(34px, 5.6vw, 64px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; } p.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 56ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); background: rgba(15,20,28,.72); border-bottom: 1px solid var(--line-soft); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { font-weight: 600; font-size: 18px; color: var(--text); letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.brand i { width: 22px; height: 22px; border-radius: 6px; background: conic-gradient(from 210deg, var(--accent), var(--accent-2), var(--block), var(--accent)); display: inline-block; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; margin-left: 12px; }
.nav li a { color: var(--text-2); font-size: 15px; } .nav li a:hover, .nav li a[aria-current] { color: var(--text); text-decoration: none; }
.nav li a[aria-current] { position: relative; } .nav li a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px; background: var(--accent); }
.nav .spacer { flex: 1; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 8px; font-weight: 500; border: 1px solid var(--line); color: var(--text); background: var(--panel); transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.btn:hover { text-decoration: none; border-color: var(--text-2); transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: #0b1020; border-color: var(--accent); }
.btn.primary:hover { background: #8fb6ff; }
.btn.big { padding: 14px 24px; font-size: 17px; }
.burger { display: none; background: none; border: 0; color: var(--text); font-size: 22px; cursor: pointer; }
@media (max-width: 820px) {
  .nav ul { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-2); flex-direction: column; gap: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .nav ul.open { display: flex; } .nav li a { display: block; padding: 12px var(--gutter); } .nav li a[aria-current]::after { display: none; }
  .burger { display: block; } .nav .cta { display: none; }
}

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); }
.hero .grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero .grid { grid-template-columns: 1fr; } }
.hero h1 b { font-weight: 600; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero .note { color: var(--muted); font-size: 14px; margin-top: 16px; }
.stage { position: relative; aspect-ratio: 5 / 4; border-radius: 16px; background: radial-gradient(ellipse at 30% 20%, #16202e, #0c1118 70%); border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.02); overflow: hidden; }
.stage canvas { width: 100%; height: 100%; }
.stage .hud { position: absolute; left: 16px; top: 14px; font: 12px var(--mono); color: var(--text-2); background: rgba(12,17,24,.75); padding: 6px 10px; border-radius: 6px; pointer-events: none; }
.stage .hud b { color: var(--text); font-weight: 500; }
.stage .score { position: absolute; right: 16px; top: 14px; font: 12px var(--mono); color: var(--text-2); background: rgba(12,17,24,.75); padding: 6px 10px; border-radius: 6px; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.stage .score b { font-size: 18px; font-weight: 500; color: var(--text); min-width: 2.2ch; text-align: right; }
.stage .pill { padding: 2px 8px; border-radius: 999px; font-weight: 600; color: #0b1020; font-size: 11px; background: var(--allow); transition: background .3s; }
.stage .reasons { position: absolute; left: 16px; right: 16px; bottom: 14px; font: 12.5px/1.45 var(--sans); color: var(--text-2); pointer-events: none; }
.stage .reasons span { display: block; background: rgba(12,17,24,.8); padding: 4px 10px; border-left: 2px solid var(--block); border-radius: 0 6px 6px 0; margin-top: 4px; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.stage .reasons span.on { opacity: 1; transform: none; }

/* sections */
section { padding: clamp(48px, 7vw, 96px) 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.kicker { color: var(--accent); font-weight: 500; margin-bottom: 10px; }
.cols { display: grid; gap: 22px; } .cols.three { grid-template-columns: repeat(3, 1fr); } .cols.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .cols.three, .cols.two { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.card h3 { margin-top: 8px; } .card p { color: var(--text-2); margin: 0; }
.card .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #1f2a3b; color: var(--accent); }
.steps { counter-reset: s; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line-soft); }
.step:last-child { border-bottom: 1px solid var(--line-soft); }
.step::before { counter-increment: s; content: counter(s); font: 500 22px var(--mono); color: var(--accent); }
.step h3 { margin: 0 0 4px; } .step p { margin: 0; color: var(--text-2); }
pre { background: #0b1017; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; overflow: auto; font: 13px/1.55 var(--mono); color: var(--text-2); margin: 0; }
pre .k { color: var(--accent); } pre .s { color: #9fe3bd; } pre .n { color: #ffcf87; } pre .r { color: #ff9e9b; }
.stat { display: grid; gap: 4px; } .stat b { font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: -.02em; } .stat span { color: var(--muted); }
.signals { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.signal { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.signal i { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--c); }
.signal b { display: block; font-weight: 500; } .signal span { color: var(--muted); font-size: 14px; }
.lifecycle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.lifecycle::before { content: ""; position: absolute; left: 10%; right: 10%; top: 26px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--block)); opacity: .5; }
.lifecycle div { text-align: center; padding: 0 12px; } .lifecycle i { display: block; width: 14px; height: 14px; border-radius: 50%; margin: 20px auto 14px; background: var(--c); box-shadow: 0 0 0 6px var(--bg-2); }
.lifecycle b { display: block; margin-bottom: 4px; } .lifecycle span { color: var(--muted); font-size: 14px; }
@media (max-width: 720px) { .lifecycle { grid-template-columns: 1fr; } .lifecycle::before { display: none; } }
.cta { text-align: center; padding: clamp(56px, 8vw, 110px) 0; }
.cta h2 { max-width: 20ch; margin: 0 auto .4em; }
.cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.faq details { border-top: 1px solid var(--line-soft); padding: 16px 0; } .faq details:last-child { border-bottom: 1px solid var(--line-soft); }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; } .faq details[open] summary::after { content: "–"; }
.faq p { color: var(--text-2); margin: 10px 0 0; max-width: 70ch; }
.report { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #f7f8fa; color: #1c2430; padding: 22px 24px; font-size: 14px; }
.report h4 { margin: 0 0 4px; font-size: 18px; } .report .sub { color: #5b6878; font-size: 12px; margin-bottom: 14px; }
.report .big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .report .big div { border: 1px solid #d7dde5; border-radius: 8px; padding: 10px 12px; background: #fff; }
.report .big b { display: block; font-size: 20px; } .report .big span { color: #5b6878; font-size: 11px; }
.report table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 12.5px; } .report td, .report th { border: 1px solid #d7dde5; padding: 6px 8px; text-align: left; }
.report .hit { background: #fdebea; font-weight: 600; } .report .ok { background: #eaf6ef; }
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
.contact .card a.btn { margin-top: 10px; }
.person { display: flex; gap: 14px; align-items: center; margin-top: 18px; }
.person i { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; color: #0b1020; font-weight: 600; }
.person b { display: block; } .person span { color: var(--muted); font-size: 14px; }
footer { border-top: 1px solid var(--line-soft); padding: 28px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--text-2); }

/* motion: one orchestrated entrance on each page, reveals on scroll, nothing on hover but buttons */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; } .reveal[data-delay="2"] { transition-delay: .2s; } .reveal[data-delay="3"] { transition-delay: .3s; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; } .btn { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
