/* coming soon */
:root {
  --bg: #0b0b0d; --line: rgba(255,255,255,.09); --line-strong: rgba(255,255,255,.22);
  --text: #f2f1ec; --muted: #b3b2ab; --accent: #cdf551; --accent-ink: #0b0b0d;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(20px, 4.5vw, 64px); --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; display: flex; flex-direction: column; min-height: 100svh; transition: opacity .25s ease; }
body.lang-switching { opacity: 0; }
body.no-gl { background: radial-gradient(70% 45% at 50% 80%, rgba(205,245,81,.2), transparent 70%), var(--bg); }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--muted); }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.grain { position: fixed; inset: -100%; z-index: 60; pointer-events: none; opacity: .045; animation: grain 1.2s steps(5) infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-4%)} 60%{transform:translate(-1%,3%)} 80%{transform:translate(3%,1%)} 100%{transform:translate(0,0)} }

/* nav */
.nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--gutter); }
.wordmark { font-weight: 600; letter-spacing: -.03em; font-size: 21px; display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.wordmark-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; background: rgba(11,11,13,.4); }
.lang button { padding: 6px 11px; border-radius: 999px; color: var(--muted); transition: background .3s, color .3s; }
.lang button:hover { color: var(--text); }
.lang button.is-active { background: var(--text); color: var(--bg); }

/* hero */
.hero { position: relative; z-index: 1; flex: 1; display: grid; align-items: center; padding: 40px var(--gutter) 64px; }
.hero-inner { position: relative; z-index: 0; max-width: 1100px; width: 100%; margin-inline: auto; }
/* soft dark scrim so copy stays readable wherever the aurora drifts */
.hero-inner::before { content: ""; position: absolute; inset: -60px -140px -80px -140px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 62% 75% at 32% 55%, rgba(11,11,13,.78), rgba(11,11,13,.45) 45%, rgba(11,11,13,0) 72%); }
.title { font-size: clamp(44px, 7.4vw, 118px); line-height: .96; letter-spacing: -.04em; font-weight: 500; margin: 0; max-width: 15ch; }
.title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .02em .12em 0; margin: -.06em 0 -.12em 0; }
.title .wi { display: inline-block; transform: translateY(115%) rotate(2deg); transform-origin: left top; transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 60ms + .15s); }
.hero.in .title .wi { transform: none; }
.title .em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -.01em; font-size: 1.07em; }
/* rotating phrase */
.title .nw { white-space: nowrap; }
.title .rot { display: block; position: relative; margin-top: .04em; min-height: 1em; opacity: 0; transition: opacity 1s var(--ease), height .7s var(--ease); transition-delay: calc(var(--i) * 60ms + .35s), 0s; }
.hero.in .title .rot { opacity: 1; }
.rot-item { position: absolute; left: 0; top: 0; width: 100%; opacity: 0; transform: translateY(.45em); transition: opacity .7s var(--ease), transform .9s var(--ease); pointer-events: none; }
.rot-item.in { opacity: 1; transform: none; }
.rot-item.out { opacity: 0; transform: translateY(-.45em); }

.sub { font-size: clamp(17px, 1.35vw, 20px); color: rgba(242,241,236,.8); max-width: 54ch; margin: 34px 0 36px; }
.sub, .form, .note, .success { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.sub { transition-delay: .6s; } .form, .success { transition-delay: .75s; } .note { transition-delay: .85s; }
.hero.in :is(.sub, .form, .note, .success) { opacity: 1; transform: none; }

/* form */
.form { display: flex; gap: 6px; max-width: 560px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 6px 6px 22px; background: rgba(11,11,13,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: border-color .3s, box-shadow .3s, opacity .9s var(--ease), transform .9s var(--ease); }
.form:focus-within { border-color: var(--text); box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
.form.shake { animation: shake .5s ease; border-color: #e5533d; }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-6px)} 40%,80%{transform:translateX(6px)} }
.form input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 16px; color: var(--text); outline: none; }
.form input::placeholder { color: #8e8d87; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px; font-weight: 500; font-size: 15px; line-height: 1; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); white-space: nowrap; transition: transform .6s var(--ease), background .3s; will-change: transform; }
.btn:hover { background: #e2ff7d; }
.btn:disabled { opacity: .7; cursor: wait; }
.btn svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.turnstile { margin-top: 14px; max-width: 560px; opacity: 0; transition: opacity .9s var(--ease) .8s; }
.turnstile:empty { display: none; }
.hero.in .turnstile { opacity: 1; }
.note { color: var(--muted); margin: 16px 0 0; }
.note:empty { display: none; }
.note.error { color: #ff7a66; }

/* success */
.success { display: flex; align-items: center; gap: 18px; max-width: 560px; }
.success svg { width: 52px; height: 52px; flex: none; color: var(--accent); }
.ck-ring { stroke-dasharray: 132; stroke-dashoffset: 132; animation: draw 1s var(--ease) forwards; }
.ck-path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s var(--ease) .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success-title { margin: 0 0 8px; font-size: 20px; letter-spacing: -.02em; }
.share { color: var(--muted); border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; transition: color .3s, border-color .3s; }
.share:hover { color: var(--text); border-color: var(--text); }

/* cursor follower: a lagging ring next to the native cursor (fine pointers only) */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 70; opacity: 0; transition: opacity .3s; }
.cursor.on { opacity: 1; }
.cursor .ring { position: absolute; top: 0; left: 0; display: block; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 1px solid rgba(242,241,236,.45); will-change: transform; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), border-color .3s, opacity .3s; }
.cursor.hover .ring { width: 52px; height: 52px; margin: -26px 0 0 -26px; border-color: var(--accent); }
.cursor.text .ring { opacity: 0; }
.cursor.down .ring { width: 18px; height: 18px; margin: -9px 0 0 -9px; border-color: var(--accent); }

@media (max-width: 700px) {
  .hero { padding-bottom: 48px; }
  .form { flex-direction: column; border-radius: 24px; padding: 8px; }
  .form input { padding: 12px 14px; }
  .btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .title .wi, .title .rot, .sub, .form, .note, .success { transition: none; opacity: 1; transform: none; }
  .rot-item { transition: none; }
}
