:root {
  --ink: #1d1d1f; --ink-2: #6e6e73; --ink-3: #86868b; --gray: #f5f5f7; --line: #d2d2d7;
  --blue: #0077cf; --ease: cubic-bezier(.25, .1, .25, 1); --expo: cubic-bezier(.16, 1, .3, 1);
  --mono: "SF Mono", Menlo, monospace;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #fff; color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--blue); color: #fff; }

/* nav: Apple-thin, translucent */
nav { position: sticky; top: 0; z-index: 50; height: 52px; background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.06); }
nav .in { max-width: 1000px; height: 100%; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; gap: 36px; font-size: 14px; color: rgba(29,29,31,.8); }
nav .logo img { height: 24px; display: block; }
nav .links { display: flex; gap: 32px; }
nav a:hover { color: var(--ink); }
nav .right { margin-left: auto; display: flex; gap: 18px; align-items: center; }
nav .cta { background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 15px; }
nav .cta:hover { color: #fff; background: #000; }
/* language selector: stays visible on mobile (only .links hide) */
nav .lang { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; padding: 4px 14px 4px 2px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 5px center, right 1px center; background-size: 4px 4px; background-repeat: no-repeat; }
nav .lang:hover { color: var(--ink); }
nav .lang:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.btn { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 999px; font-size: 17px; background: var(--blue); color: #fff; transition: background .3s; }
.btn:hover { background: #0069b1; }
.link { font-size: 17px; color: var(--blue); }
.link:hover { text-decoration: underline; }
.link::after { content: " ›"; }

/* hero */
.hero { position: relative; isolation: isolate; text-align: center; padding: 80px 22px 0; }
/* token field: hero-only dot matrix behind the content, never takes clicks */
#field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.eyebrow { font-size: 21px; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.hero h1 { margin-top: 14px; font-size: clamp(36px, 5.4vw, 72px); line-height: 1.08; font-weight: 600; letter-spacing: -.015em; }
.hero h1 .ln { white-space: nowrap; }
html:lang(en) .hero h1 .ln { white-space: normal; }
.hero .sub { margin-top: 18px; font-size: clamp(19px, 2vw, 26px); font-weight: 500; color: var(--ink-2); letter-spacing: .005em; }
.hero .actions { margin-top: 32px; display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* the product shot */
.shot { height: 600px; perspective: 1400px; display: grid; place-items: center; margin-top: 8px; }
/* white-titanium key: same palette as the page, colour only in the small logo */
.keycard { width: min(500px, 84vw); aspect-ratio: 1.586; border-radius: 26px; padding: 30px 34px; color: var(--ink); position: relative; overflow: hidden;
  background: linear-gradient(145deg, #ffffff 0%, #f6f7f9 42%, #e9ebf0 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 0 0 1px rgba(0,0,0,.06), 0 50px 90px -40px rgba(0,0,0,.28), 0 18px 36px -24px rgba(0,0,0,.18);
  transform: rotateX(calc(var(--p, 0) * 22deg)) scale(calc(.86 + (1 - var(--p, 0)) * .14)); transform-origin: 50% 80%; will-change: transform; }
.keycard::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.75) 46%, transparent 60%); pointer-events: none; }
.keycard .top { position: relative; display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; letter-spacing: .01em; }
.keycard .top img { width: 34px; height: 34px; border-radius: 9px; }
.keycard .num { position: absolute; left: 34px; bottom: 68px; font: 500 clamp(17px, 2.3vw, 24px) var(--mono); letter-spacing: .08em; color: var(--ink); }
.keycard .foot { position: absolute; left: 34px; right: 34px; bottom: 28px; display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); }

/* scroll narrative: static by default (no JS / reduced motion shows the final line) */
.story { position: relative; margin-top: 140px; padding: 120px 0; }
.story .pin { display: grid; place-items: center; text-align: center; }
.story .lede { font-size: 21px; font-weight: 600; color: var(--ink-3); margin-bottom: 18px; }
.story .stack { font-size: clamp(42px, 6.8vw, 90px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.story .w { display: block; white-space: nowrap; }
.story .w:not(.final) { display: none; }
.story .w.final { background: linear-gradient(90deg, #0077cf, #0069b1 50%, #0077cf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.story .cap { margin-top: 30px; font-size: 19px; color: var(--ink-2); }
/* auto-playing carousel once site.js turns on .anim: one line at a time, blur crossfade */
.anim .story { padding: 160px 0; }
.anim .story .stack { position: relative; height: 1.2em; }
.anim .story .w, .anim .story .w:not(.final) { display: block; position: absolute; left: 50%; top: 0; opacity: 0; filter: blur(14px); transform: translate(-50%, 28px);
  transition: opacity .9s var(--expo), filter .9s var(--expo), transform .9s var(--expo); }
.anim .story .w.on { opacity: 1; filter: blur(0); transform: translate(-50%, 0); }
.anim .story .w.off { opacity: 0; filter: blur(14px); transform: translate(-50%, -28px); }

/* dark statement */
.dark { background: #000; color: #f5f5f7; text-align: center; padding: 180px 22px; }
.dark h2 { font-size: clamp(36px, 5.25vw, 72px); font-weight: 600; letter-spacing: -.015em; line-height: 1.05; }
.dark p { margin-top: 20px; font-size: clamp(19px, 2vw, 24px); color: #86868b; }
.code { margin: 72px auto 0; max-width: 720px; text-align: left; font: 500 clamp(14px, 1.8vw, 20px)/2 var(--mono); }
.code .old { color: #6e6e73; text-decoration: line-through; text-decoration-color: #6e6e73; }
.code .new { color: #f5f5f7; }
.code .new b { font-weight: 500; color: #5aaeef; }

/* numbers */
.facts { background: var(--gray); padding: 160px 22px; }
.facts .grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.facts .n { font-size: clamp(54px, 7.5vw, 105px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.facts .l { margin-top: 14px; font-size: 21px; font-weight: 600; }
.facts .d { margin-top: 8px; font-size: 15px; color: var(--ink-2); line-height: 1.5; }

/* reveal */
.js .rv { opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--expo), transform 1.2s var(--expo); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

body.embed nav { display: none; }
img { max-width: 100%; }
.code > div { white-space: nowrap; }
.code { overflow-x: auto; }

/* sections shared */
.sec { padding: 160px 22px; }
.sec .head { max-width: 1000px; margin: 0 auto; text-align: center; }
.sec h2 { margin-top: 10px; font-size: clamp(30px, 4.2vw, 60px); line-height: 1.12; font-weight: 600; letter-spacing: -.015em; }
.sec .lead { margin-top: 18px; font-size: clamp(19px, 2vw, 24px); color: var(--ink-2); }
.sec a.inl { color: var(--blue); }
.sec a.inl:hover { text-decoration: underline; }

/* quickstart */
.qs .steps { max-width: 1000px; margin: 88px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.qs .sn { font-size: 64px; font-weight: 600; line-height: 1; letter-spacing: -.03em; color: var(--line); }
.qs h3 { margin-top: 18px; font-size: 21px; font-weight: 600; letter-spacing: -.005em; }
.qs .steps p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.pill { margin-top: 14px; display: flex; align-items: center; gap: 10px; max-width: 100%; background: var(--gray); border-radius: 999px; padding: 6px 6px 6px 16px; }
.pill code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 500 13.5px var(--mono); color: var(--ink); }
.pill button { flex: none; border: 0; cursor: pointer; font: inherit; font-size: 13px; color: #fff; background: var(--blue); border-radius: 999px; padding: 6px 14px; transition: background .3s; }
.pill button:hover { background: #0069b1; }
.pill button.done { background: var(--ink); }
.curl { max-width: 1000px; margin: 72px auto 0; background: var(--gray); border-radius: 28px; padding: 40px 44px; overflow-x: auto; }
.curl pre { font: 500 clamp(13px, 1.4vw, 16px)/1.85 var(--mono); color: var(--ink); }
.curl .s { color: var(--blue); }

/* enterprise */
.ent { background: var(--gray); text-align: center; }
.ent .points { max-width: 1000px; margin: 80px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.ent .points div { font-size: 19px; font-weight: 600; line-height: 1.45; letter-spacing: -.005em; }
.ent .contact { margin: 80px auto 0; max-width: 420px; background: #fff; border-radius: 28px; padding: 44px 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ent .contact .label { font-size: 15px; color: var(--ink-2); }
.ent .contact .mail { font-size: 19px; color: var(--blue); }
.ent .contact .mail:hover { text-decoration: underline; }

/* footer */
footer { background: var(--gray); border-top: 1px solid var(--line); }
footer .in { max-width: 1000px; margin: 0 auto; padding: 20px 22px 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
footer .links { display: flex; gap: 22px; }
footer a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 760px) {
  .hero h1 { font-size: clamp(24px, 7.2vw, 36px); }
  nav .in { gap: 16px; }
  .story .stack { font-size: clamp(26px, 8.2vw, 42px); }
  nav .right { gap: 12px; }
  .sec { padding: 110px 22px; }
  .qs .steps, .ent .points { grid-template-columns: 1fr; gap: 44px; }
  .ent .points { gap: 24px; }
  .curl { padding: 28px 24px; border-radius: 22px; }
}

@media (max-width: 760px) {
  nav .links { display: none; }
  .shot { height: 460px; }
  .facts .grid { grid-template-columns: 1fr; gap: 72px; }
  .dark { padding: 120px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .keycard { transform: none; }
}
