@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #111113;
  --text: #f5f5f7;
  --text-2: #b3b3bd;
  --text-3: #8a8a96;
  --glass: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.08);
  --card: rgba(17, 17, 20, 0.5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Background: animated colour glow + film grain (like the reference) */
#glow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  filter: blur(60px) saturate(1.1);
  opacity: 0.9;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Top bar */
.top {
  width: 100%;
  max-width: 1040px;
  padding: 24px 24px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.logo {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  width: auto;
  height: 44px;
}
.lang {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--line);
}
.lang button {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-3);
  background: none;
  border: 0;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { color: var(--bg); background: var(--text); }
.lang button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* Hero */
.hero {
  width: 100%;
  max-width: 960px;
  padding: clamp(72px, 12vh, 120px) 24px 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.headline {
  margin: 0;
  font-size: clamp(38px, 7vw, 56px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.headline .w {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(8px);
  animation: wordIn 0.9s var(--ease) forwards;
  animation-delay: calc(var(--i) * 70ms + 0.1s);
}
@keyframes wordIn { to { opacity: 1; filter: blur(0); transform: none; } }

.body {
  margin: 28px 0 0;
  max-width: 480px;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: -0.005em;
  color: var(--text-2);
  text-wrap: balance;
}

.notify {
  margin-top: 44px;
  width: 100%;
  max-width: 560px;
  display: flex;
  gap: 10px;
}
.field {
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 0.2s;
}
.field:focus-within { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.field input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
}
.field input::placeholder { color: var(--text-3); }
.btn {
  flex: none;
  height: 56px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--bg);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.btn:hover { background: #e9e9ee; }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.thanks, .error {
  margin: 44px 0 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 500;
  font-style: italic;
  animation: wordIn 0.6s var(--ease) both;
}
.thanks[hidden], .error[hidden] { display: none; }
.error { margin-top: 12px; min-height: 0; font-size: 14px; font-style: normal; color: #f19aa1; }
.note {
  margin: 14px 0 0;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-3);
  text-wrap: balance;
}
.note a { color: var(--text-2); text-underline-offset: 2px; }
.note a:hover { color: var(--text); }

/* Bottom glass card */
.card {
  width: calc(100% - 48px);
  max-width: 992px;
  margin: auto 24px 24px;
  padding: 32px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}
.card-line {
  margin: 0;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.foot {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
}
.foot-brand { margin-left: auto; color: var(--text-3); }
.foot a { color: var(--text-2); text-decoration: none; transition: color 0.2s; }
.foot a:hover { color: var(--text); }
.foot a:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 2px; }

/* Entrance */
.reveal { opacity: 0; animation: rise 0.9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }

.sr, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 600px) {
  .top { grid-template-columns: 1fr auto; gap: 20px 12px; padding: 16px 16px 0; }
  .logo { height: 38px; }
  .hero { padding: 40px 16px 40px; }
  
@media (prefers-reduced-motion: reduce) {
  .reveal, .headline .w, .thanks { animation: none; opacity: 1; filter: none; transform: none; }
}
