:root {
  --white: #ffffff;
  --paper: #f7f7f6;
  --g50: #f3f3f2;
  --g100: #ebebea;
  --g200: #dcdcda;
  --g300: #c4c4c1;
  --g400: #9b9b98;
  --g500: #74746f;
  --g600: #55554f;
  --g700: #3b3b37;
  --g800: #262624;
  --ink: #0e0e0d;
  --steel: #6f7a88;
  --mist: #e6e9ee;
  --sans: "Geist", system-ui, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --max: 1200px;
  --r: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); font-size: 13px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--g500);
}
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.04; font-weight: 600; }
h2 { font-size: clamp(34px, 4.6vw, 60px); margin: 18px 0 18px; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--g600); max-width: 56ch; }
.shine {
  background: linear-gradient(100deg, var(--ink) 20%, var(--steel) 42%, #c9ced6 50%, var(--steel) 58%, var(--ink) 80%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 7s linear infinite;
}
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(247, 247, 246, .78);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-color: var(--g200);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.nav a:not(.btn) { color: var(--g600); position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: var(--ink); transition: right .3s var(--ease);
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after { right: 0; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--g100); font-family: var(--mono); font-size: 12px; }
.lang button { border: 0; background: none; padding: 4px 9px; border-radius: 999px; cursor: pointer; color: var(--g500); font: inherit; }
.lang button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--g300), var(--ink)); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 13px 22px; border-radius: 999px; font-size: 15px; font-weight: 500; border: 1px solid transparent;
  cursor: pointer; font-family: inherit; transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn-dark { background: var(--ink); color: var(--white); box-shadow: 0 8px 24px -10px rgba(0,0,0,.5); }
.btn-dark:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(0,0,0,.55); }
.btn-ghost { border-color: var(--g300); background: rgba(255,255,255,.6); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* Ambient background */
.ambient { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ambient i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; animation: drift 22s ease-in-out infinite alternate; }
.ambient i:nth-child(1) { width: 560px; height: 560px; left: -140px; top: -160px; background: radial-gradient(circle, #dfe3ea, transparent 70%); }
.ambient i:nth-child(2) { width: 640px; height: 640px; right: -200px; top: 40px; background: radial-gradient(circle, #e9e9e7, transparent 70%); animation-delay: -8s; }
.ambient i:nth-child(3) { width: 420px; height: 420px; left: 38%; bottom: -220px; background: radial-gradient(circle, #d6dae1, transparent 70%); animation-delay: -14s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }
.dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--g300) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 75%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 75%);
}

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

/* Footer */
.site-footer { background: var(--ink); color: var(--g400); padding: 64px 0 36px; position: relative; overflow: hidden; }
.site-footer .brand { color: var(--white); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; position: relative; }
.foot-grid h4 { color: var(--white); font-weight: 500; font-size: 14px; margin-bottom: 14px; }
.foot-grid a { display: block; padding: 3px 0; transition: color .2s; }
.foot-grid a:hover { color: var(--white); }
.foot-grid p { max-width: 34ch; margin-top: 14px; font-size: 15px; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--g800); font-size: 13px; position: relative; }
.foot-word {
  position: absolute; left: 50%; bottom: -0.32em; transform: translateX(-50%);
  font-size: clamp(90px, 19vw, 260px); font-weight: 700; letter-spacing: -.06em; white-space: nowrap; line-height: 1;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0)); -webkit-background-clip: text; background-clip: text; color: transparent;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 860px) {
  .nav .opt { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav { gap: 12px; }
  .nav .btn { padding: 8px 12px; font-size: 13px; }
  .nav .btn svg { display: none; }
  .brand { font-size: 17px; gap: 8px; }
  .brand svg { width: 26px; height: 26px; }
}
