:root {
  --bg: #f6fbfc;
  --bg-deep: #e3f3f5;
  --ink: #0b2a3a;
  --muted: #4d6a78;
  --line: rgba(11, 42, 58, 0.12);
  --card: rgba(255, 255, 255, 0.7);
  --accent: #0aa5a8;
  --accent-ink: #ffffff;
  --sand: #f2d9a8;
  --wave-1: rgba(10, 165, 168, 0.10);
  --wave-2: rgba(10, 165, 168, 0.18);
  --error: #c2410c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #06161f;
    --bg-deep: #0a2230;
    --ink: #e8f4f6;
    --muted: #9db7c2;
    --line: rgba(232, 244, 246, 0.12);
    --card: rgba(10, 34, 48, 0.6);
    --accent: #3fd0cf;
    --accent-ink: #04212a;
    --sand: #d8b97a;
    --wave-1: rgba(63, 208, 207, 0.06);
    --wave-2: rgba(63, 208, 207, 0.12);
    --error: #fb923c;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; }
.glow-a { width: 520px; height: 520px; background: var(--accent); top: -180px; right: -120px; opacity: 0.18; }
.glow-b { width: 420px; height: 420px; background: var(--sand); bottom: 40px; left: -160px; opacity: 0.25; }
.waves { position: absolute; bottom: 0; left: 0; width: 200%; height: 38vh; }
.wave.w1 { fill: var(--wave-1); animation: drift 18s linear infinite; }
.wave.w2 { fill: var(--wave-2); animation: drift 26s linear infinite reverse; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px clamp(16px, 5vw, 56px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font-size: 22px;
}
.brand-name { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }

/* Hero */
.hero {
  flex: 1; width: 100%; max-width: 760px; margin: 0 auto;
  padding: clamp(32px, 8vh, 96px) 16px 48px;
  text-align: center;
}
h1 {
  font-weight: 300; font-size: clamp(38px, 7vw, 68px);
  line-height: 1.05; letter-spacing: -0.035em;
}
h1 .accent { font-weight: 600; color: var(--accent); }
.lead {
  max-width: 560px; margin: 24px auto 0;
  font-size: clamp(16px, 2.2vw, 18px); line-height: 1.6; color: var(--muted);
}

/* Notify form */
.notify {
  position: relative; display: flex; gap: 8px;
  max-width: 460px; margin: 36px auto 0; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -12px rgba(11, 42, 58, 0.25);
}
.field-icon { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; }
.notify input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 15px; padding: 12px 8px 12px 44px; outline: none;
}
.notify input::placeholder { color: var(--muted); opacity: 0.8; }
.notify:focus-within { border-color: var(--accent); }
.notify button {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 500; font-size: 15px; padding: 12px 20px;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.notify button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.form-msg { min-height: 22px; margin-top: 12px; font-size: 14px; }
.form-msg.ok { color: var(--accent); }
.form-msg.error { color: var(--error); }

/* Features */
.features {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 48px; text-align: left;
}
.features li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--card); backdrop-filter: blur(8px);
}
.features i { font-size: 28px; color: var(--accent); flex-shrink: 0; }
.features span { font-size: 13px; line-height: 1.45; color: var(--muted); }
.features strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }

/* Footer */
.bottom {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 24px 16px 32px; font-size: 13px; color: var(--muted);
}
.social { display: flex; gap: 10px; }
.social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 20px; text-decoration: none; transition: color 0.15s, border-color 0.15s;
}
.social a:hover { color: var(--accent); border-color: var(--accent); }

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

@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  .notify { flex-direction: column; border-radius: 20px; }
  .field-icon { top: 30px; }
  .notify button { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .wave { animation: none; }
}
