* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: radial-gradient(1200px 800px at 10% 10%, var(--bg-radial-1) 0%, #0000 60%),
              linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  /* Minimal Clean (default) */
  --ink: #0f172a;          /* slate-900 */
  --muted: #475569;        /* slate-600 */
  --on-dark: #ffffff;
  --stroke: #e2e8f0;       /* slate-200 */
  --brand-1: #2563eb;      /* blue-600 */
  --brand-2: #1e40af;      /* blue-800 */
  --brand-solid: #2563eb;  /* primary solid */
  --accent: #22d3ee;       /* subtle accent if needed */
  --bg-radial-1: #e2e8f0;  /* slate-200 */
  --bg-1: #f8fafc;         /* slate-50 */
  --bg-2: #f1f5f9;         /* slate-100 */
  --bg-3: #ffffff;         /* white */
  --title-grad-mid: #0f172a; /* no gradient in minimal; kept for fallback */
}

/* Theme: Sky Fresh (default) */
.theme-sky {
  --brand-1: #38bdf8; /* sky-400 */
  --brand-2: #2563eb; /* blue-600 */
  --accent: #22d3ee;  /* cyan-400 */
  --bg-radial-1: #e0f2fe; /* sky-100 */
  --bg-1: #e0f2fe;
  --bg-2: #eef2ff;
  --bg-3: #f8fafc;
  --title-grad-mid: #e0f2fe;
}

/* Theme: Mint Clean */
.theme-mint {
  --brand-1: #34d399; /* emerald-400 */
  --brand-2: #059669; /* emerald-600 */
  --accent: #2dd4bf;  /* teal-400 */
  --bg-radial-1: #dcfce7; /* green-100 */
  --bg-1: #ecfdf5;
  --bg-2: #f0fdfa;
  --bg-3: #f8fafc;
  --title-grad-mid: #ecfdf5;
}

/* Theme: Navy Pro */
.theme-navy {
  --brand-1: #38bdf8; /* sky-400 */
  --brand-2: #1e3a8a; /* indigo-900 */
  --accent: #22d3ee;  /* cyan-400 */
  --bg-radial-1: #e0f2fe;
  --bg-1: #e0f2fe;
  --bg-2: #eff6ff;
  --bg-3: #f8fafc;
  --title-grad-mid: #e0f2fe;
}

/* Theme: Minimal Clean */
.theme-minimal {
  --ink: #0f172a;
  --muted: #475569;
  --on-dark: #ffffff;
  --stroke: #e2e8f0;
  --brand-1: #2563eb;
  --brand-2: #1e40af;
  --brand-solid: #2563eb;
  --accent: #22d3ee;
  --bg-radial-1: #e2e8f0;
  --bg-1: #f8fafc;
  --bg-2: #f1f5f9;
  --bg-3: #ffffff;
  --title-grad-mid: #0f172a;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: clip;
  isolation: isolate;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
}

.hero__content {
  position: relative;
  padding: clamp(24px, 4vw, 48px);
  text-align: center;
  color: #ffffff;
  width: min(720px, 100% - 32px);
  margin: 0 auto;
}

/* Removed separate panel; content sits directly on canvas */

.hero__title {
  margin: 0 0 12px;
  font-size: clamp(40px, 6vw, 80px);
  /* Slightly increased to avoid glyph clipping (e.g., 'g') */
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: transparent;
  /* Ensure proper rendering with background-clip on WebKit */
  -webkit-text-fill-color: transparent;
  background: linear-gradient(
      90deg,
      rgba(255,255,255,0.96) 0%,
      rgba(180,220,255,0.95) 40%,
      rgba(255,255,255,0.96) 80%
    );
  -webkit-background-clip: text;
  background-clip: text;
  background-size: 200% 100%;
  animation: title-sheen 9s linear infinite;
  text-shadow: 0 8px 24px rgba(0,0,0,0.18);
  /* Tiny padding gives descenders breathing room across fonts */
  padding-bottom: 0.06em;
}
@keyframes title-sheen {
  0% { background-position: 200% 0; }
  100% { background-position: 0% 0; }
}

.hero__subtitle {
  margin: 0 auto 24px;
  max-width: 50ch;
  font-size: clamp(16px, 2.2vw, 20px);
  color: rgba(255,255,255,0.7);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin-bottom: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 999px; background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.16);
}

.countdown { display: none; }

.notify { margin-top: 6px; }
.notify__row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 10px 32px rgba(2,6,23,0.24);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
}
.notify__row:focus-within {
  border-color: rgba(255,255,255,0.28);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.12), 0 10px 32px rgba(2,6,23,0.28);
}
.notify__row::before { display: none; }
.notify__row::after { display: none; }

.glass-sheen-removed {} /* placeholder to keep patch structure consistent */
.field {
  width: 100%;
  padding: 14px 14px;
  font-size: 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: #ffffff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.field--on-dark {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.notify__row .field { background: transparent; border: 0; box-shadow: none; padding: 12px 12px; }
.field--on-dark::placeholder { color: rgba(255,255,255,0.5); }
.field--on-dark:focus { border-color: rgba(255,255,255,0.28); box-shadow: 0 0 0 2px rgba(255,255,255,0.18); }
.notify__hint { margin: 8px 2px 0; color: rgba(255,255,255,0.6); font-size: 13px; min-height: 18px; }
.notify[data-state="success"] .notify__hint { color: #34d399; }
.notify[data-state="error"] .notify__hint { color: #ef4444; }

.btn #notify-btn {}
.btn__check { display: none; margin-left: 6px; }
.notify[data-state="success"] .btn__check { display: inline; }
.notify[data-state="success"] .btn__label { display: none; }

@keyframes glass-sheen {
  0% { background-position: 0 0, -200% 0; }
  100% { background-position: 0 0, 200% 0; }
}

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

.hero__actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.btn {
  appearance: none;
  border: 1px solid transparent;
  color: #0f172a;
  background: transparent;
  padding: 12px 18px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brand-solid); color: #ffffff; border-color: var(--brand-solid); box-shadow: 0 6px 18px rgba(37, 99, 235, 0.18); }
.btn--primary:hover { filter: brightness(0.98); }

.btn--on-dark { background: #ffffff; color: #111827; border-color: #ffffff; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18); }
.btn--on-dark:hover { background: rgba(255,255,255,0.9); }
.btn--on-dark:active { transform: translateY(0); }
.btn--on-dark:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.5), 0 0 0 8px rgba(37,99,235,0.25);
}

/* Footer */
.footer {
  padding: 24px;
  text-align: center;
  color: var(--muted);
}
.footer__nav { display: inline-flex; gap: 16px; margin-left: 12px; }
.footer a { color: var(--brand-2); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .hero__title { animation: none; }
  .notify__row:focus-within::before { animation: none; }
}

/* Glassmorphism utility (reusable) */
.glass {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 10px 30px rgba(15,23,42,0.16);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

/* Decorative glass drops behind content */
.hero__content::before,
.hero__content::after { display: none; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
