/* ONYX — dark, precise, a little predatory.
   Graphite ramp, one red accent from the logo, a night shooting range in the hero. */
:root {
  --bg-deep: #0b0506;
  --bg: #12090a;
  --card: #1c0e10;
  --raised: #2a1417;
  --hover: #24120f;
  --line: rgba(255, 214, 214, .08);
  --line-2: rgba(255, 214, 214, .15);
  --text: #f3ecec;
  --text-2: #bba6a8;
  --muted: #937c7f;
  --red: #e3202d;
  --red-press: #c81b27;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --intro: 0s;
}
html.has-intro { --intro: .9s; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(1200px 600px at 70% -10%, rgba(120,14,24,.35), transparent 70%) no-repeat, var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-weight: 500; }
.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(800px, 100% - 48px); }
.muted { color: var(--muted); }
.red { color: var(--red); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.nav.scrolled { border-color: var(--line); background: rgba(18,9,10,.8); backdrop-filter: blur(12px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; letter-spacing: .08em; }
.logo { width: 40px; height: auto; }
.links { display: flex; gap: 32px; }
.links a { position: relative; color: var(--text-2); font-size: 14px; transition: color .15s var(--ease); }
.links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.links a:hover { color: var(--text); }
.links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 12px; }

.lang { display: flex; padding: 2px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
.lang button {
  width: 36px; height: 28px; border: 0; border-radius: 6px; background: none; cursor: pointer;
  color: var(--muted); font: 500 12px var(--mono);
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { color: var(--text); background: var(--raised); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; transition-property: background-color, transform, translate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px; border-radius: 8px;
  background: var(--red); color: #fff; font-weight: 500; font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 24px -12px rgba(227,32,45,.7);
  transition: background-color .15s var(--ease), transform .12s var(--ease), translate .3s var(--ease);
}
/* a single light sweep on hover */
.btn::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease);
}
.btn:hover::before { left: 130%; }
.btn:hover { background: var(--red-press); }
.btn:active { transform: scale(.98); }
.btn-secondary { background: var(--raised); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px var(--line); }
.btn-secondary::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); }
.btn-secondary:hover { background: #351a1e; }
.btn-lg { height: 48px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn:hover .btn-ico { transform: translateY(2px); }

kbd, code {
  display: inline-block; font: 500 12px/20px var(--mono); padding: 0 6px; border-radius: 4px;
  background: var(--raised); border: 1px solid var(--line); color: var(--text);
  box-shadow: 0 1px 0 rgba(0,0,0,.6); white-space: nowrap; vertical-align: 1px;
}

/* ---------- hero: a night range ---------- */
.hero-wrap { --sx: 0px; --sy: 0px; position: relative; overflow: hidden; margin-top: -64px; padding-top: 64px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.spot {
  position: absolute; width: 900px; height: 700px; right: -120px; top: -40px;
  background: radial-gradient(closest-side, rgba(227,32,45,.3), rgba(227,32,45,.08) 55%, transparent);
  transform: translate(var(--sx), var(--sy));
  transition: transform .4s var(--ease);
}
.range {
  position: absolute; left: -10%; right: -10%; bottom: 0; height: 52%;
  perspective: 520px; perspective-origin: 60% 0%;
  -webkit-mask: linear-gradient(to bottom, transparent, #000 40%, #000 70%, transparent);
          mask: linear-gradient(to bottom, transparent, #000 40%, #000 70%, transparent);
}
.range .grid {
  position: absolute; inset: -100% 0 0 0;
  background-image:
    linear-gradient(rgba(255,90,100,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,90,100,.13) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: rotateX(68deg); transform-origin: 50% 100%;
  animation: advance 6s linear infinite;
}
@keyframes advance { to { background-position: 0 64px, 0 0; } }
.hero-wrap::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line);
}

.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center;
  min-height: min(calc(100vh - 64px), 720px); min-height: min(calc(100svh - 64px), 720px);
  padding: 64px 0 96px;
}
h1 { font-size: clamp(48px, 6vw, 84px); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 24px; }
/* headline lines rise out of a mask */
h1 .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
h1 .line > span { display: block; animation: line-up .9s var(--ease) var(--intro) both; }
h1 .line:nth-child(2) > span { animation-delay: calc(var(--intro) + .08s); }
@keyframes line-up { from { transform: translateY(105%); } }

.enter { animation: enter .6s var(--ease) calc(var(--intro) + var(--d, 0ms)) both; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } }

.lead { color: var(--text-2); font-size: 18px; line-height: 30px; max-width: 28rem; }
.hero-cta { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }

/* product shot: wipes in, then tilts toward the cursor */
.showcase { position: relative; perspective: 1400px; margin-right: -32px; }
.tilt {
  --rx: 4deg; --ry: -12deg; --gx: 50%; --gy: 50%;
  position: relative; z-index: 1; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  animation: wipe 1.1s var(--ease) calc(var(--intro) + .2s) both;
}
@keyframes wipe {
  from { clip-path: inset(0 100% 0 0 round 16px); opacity: .4; }
  to   { clip-path: inset(-20% -20% -20% -20% round 16px); opacity: 1; }
}
.tilt img { width: 100%; height: auto; filter: drop-shadow(0 40px 60px rgba(0,0,0,.7)); }
.glare {
  position: absolute; inset: .25% .2%; border-radius: 2.9% / 5.2%; pointer-events: none;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,.09), transparent 45%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.tilt.active .glare { opacity: 1; }
.reflection {
  position: absolute; left: 8%; right: 4%; bottom: -48px; height: 64px;
  background: radial-gradient(closest-side, rgba(227,32,45,.35), transparent);
  filter: blur(16px); animation: enter 1.2s var(--ease) calc(var(--intro) + .6s) both;
}

/* aim reticle — follows the cursor with smoothing, like the menu's Smooth setting */
.reticle {
  position: absolute; left: 0; top: 0; width: 48px; height: 48px; z-index: 2; pointer-events: none;
  fill: none; stroke: var(--red); stroke-width: 1.5; stroke-linecap: round;
  opacity: 0; transition: opacity .2s var(--ease);
}
.reticle .pip { fill: var(--red); stroke: none; }
.showcase.aiming { cursor: none; }
.showcase.aiming .reticle { opacity: 1; }


/* ---------- intro: the page opens through a scope ---------- */
.intro { display: none; }
.has-intro .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; pointer-events: none;
  background: var(--bg);
  animation: iris .7s var(--ease) .75s both;
}
.intro-done .intro { display: none !important; }
@keyframes iris {
  from { clip-path: circle(150% at 50% 50%); }
  to   { clip-path: circle(0% at 50% 50%); visibility: hidden; }
}
.intro svg { width: 120px; height: 120px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; animation: scope-out .5s var(--ease) .7s both; }
.i-ring { stroke-dasharray: 214; stroke-dashoffset: 214; animation: draw .6s var(--ease) .05s forwards; transform-origin: center; }
.i-lines { stroke-dasharray: 28; stroke-dashoffset: 28; animation: draw .4s var(--ease) .3s forwards; }
.i-pip { fill: var(--red); stroke: none; opacity: 0; animation: pip .2s var(--ease) .55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pip { to { opacity: 1; } }
@keyframes scope-out { to { transform: scale(2.4); opacity: 0; } }

/* scroll progress */
.progress {
  position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 60;
  background: var(--red); transform: scaleX(0); transform-origin: left;
}

/* embers */
.embers { position: absolute; inset: 0; width: 100%; height: 100%; }

/* headings rise word by word */
.section-head h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.section-head h2 .w > span { display: inline-block; transform: translateY(105%); transition: transform .8s var(--ease); transition-delay: calc(.1s + var(--w) * 50ms); }
.section-head.in h2 .w > span { transform: none; }

/* ---------- sections ---------- */
.section { padding: 112px 0 0; }
.section-head { margin-bottom: 48px; }
/* signature: the red tick from the menu's section headers */
.label { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 14px; }
.label::before {
  content: ""; width: 3px; height: 12px; border-radius: 1px; background: var(--red);
  transform: scaleY(0); transition: transform .4s var(--ease) .2s;
}
.in .label::before, .in.label::before { transform: scaleY(1); }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -.03em; margin-top: 12px; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.in { opacity: 1; transform: none; }

/* stats */
.stats {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 16px;
}
.stats li { padding: 24px; display: grid; gap: 4px; }
.stats li + li { border-left: 1px solid var(--line); }
.stats b { font-size: 32px; line-height: 1.15; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 13px; }

/* feature cards — hover locks four red brackets onto the card */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; isolation: isolate;
  padding: 24px; min-height: 232px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), opacity .7s var(--ease), transform .7s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(227,32,45,.1), transparent 70%);
  transition: opacity .3s var(--ease);
}
.card.reveal { transition-delay: 0s, 0s, calc(var(--i, 0) * 60ms), calc(var(--i, 0) * 60ms); }
.card:hover { background: #221114; border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.idx { position: absolute; top: 24px; right: 24px; font: 400 12px var(--mono); color: var(--muted); transition: color .2s var(--ease); }
.card:hover .idx { color: var(--red); }
.ico {
  width: 20px; height: 20px; display: block; margin-bottom: 48px;
  fill: none; stroke: var(--text-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .2s var(--ease), transform .3s var(--ease);
}
.card:hover .ico { stroke: var(--red); transform: rotate(-8deg) scale(1.08); }
.card h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { color: var(--text-2); font-size: 14px; line-height: 22px; }

.lock { position: absolute; inset: -6px; pointer-events: none; opacity: 0; transition: opacity .15s var(--ease), inset .3s var(--ease); }
.lock::before {
  content: ""; position: absolute; inset: 0;
  --c: var(--red); --s: 20px; --w: 2px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--s) var(--w),
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--s),
    linear-gradient(var(--c), var(--c)) top right / var(--s) var(--w),
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--s),
    linear-gradient(var(--c), var(--c)) bottom left / var(--s) var(--w),
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--s),
    linear-gradient(var(--c), var(--c)) bottom right / var(--s) var(--w),
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--s);
  background-repeat: no-repeat;
}
.card:hover .lock { opacity: 1; inset: -6px; animation: lock-on .35s var(--ease); }
@keyframes lock-on { from { inset: -20px; opacity: 0; } }


/* steps: a line runs through all three, dots light up in turn */
.steps-wrap { position: relative; }
.steps-line { position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--line); }
.steps-line span {
  position: absolute; inset: 0; background: linear-gradient(90deg, var(--red), rgba(227,32,45,.2));
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .2s;
}
.steps-wrap.in .steps-line span { transform: scaleX(1); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { position: relative; padding-top: 40px; }
.steps .dot {
  position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-2);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  transition-delay: calc(.3s + var(--i) * .4s);
}
.steps-wrap.in .dot { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px rgba(227,32,45,.15); }
.num {
  display: block; font-size: 64px; line-height: 1; font-weight: 500; letter-spacing: -.04em; margin-bottom: 24px;
  color: transparent; -webkit-text-stroke: 1px rgba(255,214,214,.24);
}
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--text-2); }

/* FAQ — answers open with a short fade and rise */
.faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 24px 0; font-size: 17px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: color .15s var(--ease);
}
summary:hover { color: #fff; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a6' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/16px no-repeat;
  transition: transform .25s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
summary:hover::after { border-color: var(--line-2); }
details[open] summary::after { transform: rotate(45deg); background-color: var(--raised); }
details[open] .answer { animation: enter .35s var(--ease) both; }
.answer p { color: var(--text-2); padding-bottom: 24px; max-width: 40rem; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0; margin-top: 112px; background: var(--bg-deep); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.brand.small { font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .label::before, .steps-line span, .section-head h2 .w > span { transform: none; }
  .intro, .embers { display: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .links { display: none; }
  .hero { grid-template-columns: 1fr; gap: 48px; min-height: 0; padding: 48px 0 80px; }
  .showcase { margin-right: 0; }
  .tilt { --rx: 0deg; --ry: 0deg; }
  .spot { right: -300px; top: 200px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps-line { display: none; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .container, .narrow { width: calc(100% - 32px); }
  .nav-right .btn-sm { display: none; }
  h1 { font-size: 44px; }
  .section { padding-top: 80px; }
  .stats { grid-template-columns: 1fr; }
  .stats li + li { border-left: 0; border-top: 1px solid var(--line); }
  .stats li { padding: 16px 20px; }
  .stats b { font-size: 26px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .ico { margin-bottom: 32px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
}
