:root {
  --bg: #000;
  --surface: #0c0c0c;
  --line: #1c1c1c;
  --line-2: #2a2a2a;
  --text: #ededed;
  --muted: #8f8f8f;
  --dim: #5c5c5c;
  --font: "Google Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
code {
  font-family: Consolas, ui-monospace, monospace;
  font-size: 0.86em;
  color: var(--text);
  background: #161616;
  border-radius: 5px;
  padding: 0.1em 0.35em;
}
b { font-weight: 500; color: var(--text); }
::selection { background: #fff; color: #000; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 18px; }
.nav-links { display: none; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: #fff; }
@media (min-width: 860px) { .nav-links { display: flex; } }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang {
  font: 500 13px/1 var(--font);
  color: var(--muted);
  background: none; border: 0; padding: 8px 4px;
  cursor: pointer; transition: color .2s;
}
.lang:hover { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border-radius: 12px;
  font: 500 16px/1 var(--font);
  background: #fff; color: #000;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.btn:hover { background: #d9d9d9; }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.link-arrow { color: var(--muted); font-weight: 500; padding: 14px 8px; transition: color .2s; }
.link-arrow:hover { color: #fff; }

/* Hero */
.hero {
  position: relative;
  padding: 128px 0 40px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse 75% 65% at 50% 38%, #232323 0%, #0d0d0d 55%, #000 80%);
}
.wave {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}
.hero-inner {
  text-align: center; display: flex; flex-direction: column; align-items: center;
  --emblem-w: min(640px, 88vw);
  animation: fade .9s ease-out both;
}
.emblem { position: relative; width: var(--emblem-w); pointer-events: none; }
/* One slow pass of light over the metal, clipped to the emblem's own shape. */
.sheen {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.55) 50%, transparent 62%) no-repeat;
  background-size: 250% 100%;
  background-position: 130% 0;
  -webkit-mask: linear-gradient(180deg, #000 30%, transparent 86%), url(/img/emblem.webp) center / 100% 100% no-repeat;
  -webkit-mask-composite: source-in;
  mask: linear-gradient(180deg, #000 30%, transparent 86%), url(/img/emblem.webp) center / 100% 100% no-repeat;
  mask-composite: intersect;
  mix-blend-mode: soft-light;
  animation: sheen 2.4s .7s cubic-bezier(.45,0,.2,1) both;
}
@keyframes sheen { from { background-position: 130% 0; } to { background-position: -30% 0; } }
.emblem img {
  width: 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 86%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 86%);
}
h1 {
  margin: calc(var(--emblem-w) * -0.3) 0 0;
  position: relative; z-index: 1;
  font-weight: 500;
  font-size: clamp(42px, 7.4vw, 104px);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 15ch;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 40%, #c2c2c2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-bottom { position: relative; z-index: 1; margin-top: 26px; display: flex; flex-direction: column; align-items: center; }
.lead { margin: 0; max-width: 34em; color: #b8b8b8; font-size: clamp(17px, 2vw, 20px); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; margin-top: 30px; scroll-margin-top: 160px; }
.meta { margin: 18px 0 0; font-size: 14px; color: var(--dim); }
.meta a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #333; }
.meta a:hover { color: var(--muted); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Showcase */
.showcase { margin-top: 56px; }
.tilt { perspective: 1600px; }
.tilt .shot { transform-origin: 50% 0; will-change: transform; }

/* Sections */
.section { padding-top: 140px; scroll-margin-top: 40px; }
@media (min-width: 720px) { .section { padding-top: 180px; } }
.head { display: grid; gap: 16px; align-items: end; margin-bottom: 64px; }
@media (min-width: 900px) { .head { grid-template-columns: 1.3fr 1fr; gap: 64px; } }
h2 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.head p { margin: 0; color: var(--muted); font-size: 18px; max-width: 30em; }
h3 { margin: 0 0 10px; font-weight: 500; font-size: 22px; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }

/* Feature rows */
.rows { display: grid; gap: 96px; }
.row { display: grid; gap: 28px; align-items: center; }
/* Screenshot frame: a light ring follows the pointer along the image's own rounded edge. */
.shot { position: relative; container-type: inline-size; --r: 1.45cqw; }
.shot img { width: 100%; }
.shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: var(--r); padding: 1.5px;
  background: radial-gradient(300px circle at var(--x, 50%) var(--y, 50%), #fff, rgba(255,255,255,.2) 45%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0; transition: opacity .35s;
}
.shot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  border-radius: var(--r);
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,.08), transparent 65%);
  opacity: 0; transition: opacity .35s;
}
.shot:hover::after, .shot:hover::before { opacity: 1; }
.row p { color: var(--muted); max-width: 30em; }
.idx { display: block; color: var(--dim); font-size: 15px; margin-bottom: 18px; }
@media (min-width: 900px) {
  .row { grid-template-columns: 5fr 7fr; gap: 72px; }
  .row:nth-child(even) { grid-template-columns: 7fr 5fr; }
  .row:nth-child(even) .row-text { order: 2; }
  .row h3 { font-size: 30px; letter-spacing: -0.02em; }
}

.more { margin-top: 120px; padding-top: 40px; border-top: 1px solid var(--line); display: grid; gap: 24px; }
@media (min-width: 900px) { .more { grid-template-columns: 5fr 7fr; gap: 72px; } }
.more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 640px) { .more ul { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.more li { color: var(--muted); padding: 14px 0; border-bottom: 1px solid var(--line); }

/* Install */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 40px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.steps li { border-top: 1px solid var(--line-2); padding-top: 24px; }
.step-n { display: block; font-size: 64px; line-height: 1; font-weight: 400; color: #3a3a3a; margin-bottom: 28px; letter-spacing: -0.04em; }
.steps p { color: var(--muted); }
.compat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 72px 0 0; padding: 28px; background: var(--surface); border-radius: 14px; }
@media (min-width: 860px) { .compat { grid-template-columns: repeat(4, 1fr); } }
.compat dt { color: var(--dim); font-size: 14px; margin-bottom: 4px; }
.compat dd { margin: 0; font-size: 19px; font-weight: 500; }

/* Roadmap */
.road { list-style: none; margin: 0; padding: 0; }
.road li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 26px 0; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .road li { grid-template-columns: 160px 1fr; } }
.road li:last-child { border-bottom: 1px solid var(--line); }
.ver { font-size: 22px; color: var(--dim); line-height: 1.25; }
.road .done .ver { color: #fff; }
.road .done h3::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 12px; vertical-align: middle; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; }
.road p { color: var(--muted); max-width: 40em; }
.road h3 { font-size: 20px; margin-bottom: 6px; }

/* FAQ */
@media (min-width: 900px) {
  .faq-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .head-side { margin: 0; position: sticky; top: 110px; grid-template-columns: 1fr; }
}
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0; font-size: 19px; font-weight: 500;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--dim); line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: #fff; }
.faq details p { color: var(--muted); padding: 0 40px 26px 0; }

/* Final */
.final { position: relative; margin-top: 180px; padding: 0 0 160px; overflow: hidden; text-align: center; }
.final-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 32px; }

.footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; color: var(--dim); font-size: 15px; }
.footer-links { display: flex; gap: 20px; align-items: center; }
.footer-links a { color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: #fff; }

/* Film grain over the whole page */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -7%); }
  60% { transform: translate(-3%, 8%); } 80% { transform: translate(7%, 2%); } 100% { transform: translate(0, 0); }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
