:root {
  --bg: #0a0b0d;
  --bg-2: #0e1013;
  --panel: #101319;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #e9eaee;
  --muted: #9aa1ab;
  --muted-2: #6a7079;
  --accent: #c9a24b;
  --accent-hi: #dcbb6a;
  --accent-soft: rgba(201, 162, 75, 0.11);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --wrap: 1140px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

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

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #12130f; padding: .6rem 1rem; border-radius: 0 0 var(--r) 0; font-weight: 600;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Typography */
.display { font-family: var(--font-display); font-weight: 500; line-height: 1.05; letter-spacing: -0.015em; }
.eyebrow {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.1rem; font-weight: 500;
}
.lede { color: var(--muted); font-size: 1.12rem; line-height: 1.62; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-size: .95rem; font-weight: 500; padding: .72rem 1.3rem; border-radius: 8px;
  border: 1px solid transparent; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  cursor: pointer; white-space: nowrap;
}
.btn-solid { background: var(--accent); color: #14150f; }
.btn-solid:hover { background: var(--accent-hi); }
.btn-line { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-line:hover { border-color: var(--accent); color: var(--accent-hi); }
.btn-ghost { color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.02rem; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, background .2s ease;
}
.site-head[data-scrolled] { border-bottom-color: var(--line); }
.head-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); }
.brand-mark { color: var(--text); }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 1.24rem; letter-spacing: -0.02em; }
.nav { display: flex; gap: 1.8rem; margin-left: 1rem; }
.nav a { color: var(--muted); font-size: .95rem; transition: color .16s ease; }
.nav a:hover { color: var(--text); }
.head-actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; }

.lang { display: inline-flex; align-items: center; gap: .1rem; font-family: var(--font-mono); font-size: .78rem; }
.lang a { color: var(--muted-2); padding: .2rem .4rem; text-transform: uppercase; letter-spacing: .05em; transition: color .16s ease; }
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { color: var(--accent); }
.lang .sep { color: var(--line-strong); }

.menu-toggle { display: none; width: 42px; height: 38px; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 17px; height: 1.5px; background: var(--text); margin: 3px auto; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-nav { display: none; flex-direction: column; border-top: 1px solid var(--line); padding: .5rem var(--gutter) 1.1rem; }
.mobile-nav a { padding: .75rem 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: none; color: var(--accent); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end; padding-top: clamp(3.5rem, 9vw, 7rem); padding-bottom: clamp(3.5rem, 9vw, 7rem);
}
.hero-title { font-size: clamp(2.5rem, 6.2vw, 4.4rem); margin: .2em 0 .55em; }
.hero-title .hl { color: var(--accent); font-style: italic; }
.hero .lede { max-width: 42ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.spec { border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem 1.5rem 1.7rem; background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.spec-head { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 1.1rem; }
.spec-list li { display: grid; grid-template-columns: 18px 1fr; gap: .7rem; padding: .7rem 0; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.spec-list li:first-child { border-top: none; padding-top: 0; }
.spec-list .tick { color: var(--accent); font-family: var(--font-mono); }

/* Bands */
.band { padding-block: clamp(4rem, 9vw, 7.5rem); border-top: 1px solid var(--line); }
.band.alt { background: var(--bg-2); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: .8rem; }
.section-lede { color: var(--muted); font-size: 1.08rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.steps li { padding: 1.9rem 1.7rem 2.1rem; border-left: 1px solid var(--line); }
.steps li:first-child { border-left: none; }
.step-n { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); letter-spacing: .1em; }
.step-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; margin: 1.4rem 0 .7rem; }
.step-body { color: var(--muted); font-size: .98rem; }

/* Feature grids */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.grid-op { grid-template-columns: repeat(3, 1fr); }
.grid-pl { grid-template-columns: repeat(2, 1fr); }
.grid-dev { grid-template-columns: 1fr; gap: 1px; }
.cell { background: var(--bg); padding: 1.7rem 1.6rem; transition: background .2s ease; }
.band.alt .cell { background: var(--bg-2); }
.cell:hover { background: var(--panel); }
.cell-k { font-family: var(--font-mono); font-size: .72rem; color: var(--muted-2); letter-spacing: .08em; }
.cell-t { font-family: var(--font-display); font-size: 1.24rem; font-weight: 500; margin: .9rem 0 .6rem; letter-spacing: -0.01em; }
.cell-b { color: var(--muted); font-size: .96rem; line-height: 1.58; }

/* Developer split */
.dev-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.dev-head { margin-bottom: 0; }

/* Security */
.band.security { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.sec-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.sec-col-head { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.3rem; }
.ticklist li { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; padding: .85rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 1rem; }
.ticklist li:first-child { border-top: none; }
.ticklist .tk { color: var(--accent); font-family: var(--font-mono); line-height: 1.5; }

/* Contact */
.band.contact { text-align: center; border-top: 1px solid var(--line-strong); }
.contact-inner { max-width: 40rem; margin-inline: auto; }
.contact-inner .eyebrow { margin-inline: auto; }
.contact-title { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.contact .section-lede { margin-bottom: 2.2rem; }
.contact-note { color: var(--muted-2); font-size: .9rem; margin-top: 1.3rem; font-family: var(--font-mono); letter-spacing: .02em; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 3rem 2.5rem; }
.foot-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.foot-tag { color: var(--muted); font-size: .95rem; margin-top: .6rem; max-width: 30ch; }
.foot-lang-label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .6rem; }
.lang-foot a { padding-left: 0; padding-right: .6rem; }
.foot-legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; color: var(--muted-2); font-size: .85rem; }
.foot-disclaimer { color: var(--muted-2); }

/* Active nav */
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 1px; background: var(--accent); margin-top: 4px;
}
.mobile-nav a[aria-current="page"] { color: var(--accent); }

/* Page intro (subpage hero) */
.page-intro { padding-top: clamp(3rem, 7vw, 5.5rem); border-top: none; }
.page-intro .section-head { margin-bottom: 0; max-width: 52rem; }
.page-intro h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }

/* Product modules */
.modules { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.module { background: var(--bg-2); display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(1.2rem, 4vw, 3.5rem); padding: 2rem 1.9rem; }
.module:hover { background: var(--panel); }
.module-head { }
.module-t { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.01em; margin-top: .8rem; }
.module-b { color: var(--muted); font-size: 1rem; margin-bottom: 1.1rem; }
.module-points li { display: grid; grid-template-columns: 20px 1fr; gap: .55rem; padding: .5rem 0; color: var(--muted); font-size: .95rem; border-top: 1px solid var(--line); }
.module-points li:first-child { border-top: none; }
.module-points .tk { color: var(--accent); font-family: var(--font-mono); }

/* White-label process */
.process { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.process li { display: grid; grid-template-columns: 78px 1fr; gap: 1.5rem; padding: 1.8rem 1.9rem; border-top: 1px solid var(--line); align-items: start; }
.process li:first-child { border-top: none; }
.proc-n { font-family: var(--font-mono); font-size: 1.5rem; color: var(--accent); letter-spacing: .04em; }
.proc-t { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; margin-bottom: .5rem; }
.proc-b { color: var(--muted); font-size: 1rem; max-width: 60ch; }

/* Responsibility split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.split-col { background: var(--bg); padding: 1.9rem 1.8rem; }
.split-head { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.3rem; }

/* CTA band */
.cta-band { text-align: center; background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.cta-inner { max-width: 42rem; margin-inline: auto; }
.cta-inner .eyebrow { margin-inline: auto; }
.cta-inner .hero-cta { justify-content: center; margin-top: 2rem; }
.cta-title { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 1rem; }

/* Contact page */
.contact-page { border-top: 1px solid var(--line-strong); }
.contact-inner { max-width: 42rem; }
.contact-title { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.contact-page .section-lede { margin-bottom: 2rem; }
.contact-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.contact-mail { font-family: var(--font-mono); color: var(--accent); font-size: 1rem; }
.contact-mail:hover { color: var(--accent-hi); }
.contact-note { color: var(--muted-2); font-size: .9rem; margin-top: 1.2rem; font-family: var(--font-mono); }
.contact-include { margin-top: 2.8rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.contact-include .ticklist { max-width: 30rem; }

/* Footer nav */
.foot-nav-label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .7rem; }
.foot-nav { display: flex; flex-direction: column; }
.foot-nav a { color: var(--muted); font-size: .92rem; padding: .28rem 0; transition: color .16s ease; }
.foot-nav a:hover { color: var(--text); }
.foot-nav a[aria-current="page"] { color: var(--accent); }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; align-items: start; gap: 2.5rem; }
  .steps, .grid-op { grid-template-columns: 1fr; }
  .steps li { border-left: none; border-top: 1px solid var(--line); }
  .steps li:first-child { border-top: none; }
  .grid-op .cell, .grid-pl .cell { }
  .dev-split { grid-template-columns: 1fr; gap: 2rem; }
  .sec-cols { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .menu-toggle { display: block; }
  .btn-line { display: none; }
  .grid-pl { grid-template-columns: 1fr; }
  .foot-legal { flex-direction: column; gap: .4rem; }
}
@media (max-width: 900px) {
  .module { grid-template-columns: 1fr; gap: 1rem; }
  .split { grid-template-columns: 1fr; }
  .foot-inner { gap: 2.5rem; }
}
@media (max-width: 620px) {
  .process li { grid-template-columns: 1fr; gap: .5rem; }
  .contact-actions { gap: .8rem; }
}
@media (min-width: 621px) { .mobile-nav { display: none !important; } }
.mobile-nav[data-open] { display: flex; }
