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

    :root {
      --cyan-300: #67e8f9;
      --cyan-400: #22d3ee;
      --cyan-500: #06b6d4;
      --cyan-600: #0891b2;
      --cyan-700: #0e7490;
      --cyan-900: #164e63;

      --bg: #04080f;
      --surface: rgba(255,255,255,0.04);
      --surface-2: rgba(255,255,255,0.03);
      --border: rgba(6,182,212,0.18);
      --text: #e2f8fc;
      --muted: rgba(226,248,252,0.55);
      --note: rgba(226,248,252,0.3);
      --footer: rgba(226,248,252,0.2);
      --input-bg: rgba(255,255,255,0.05);
      --grid-line: rgba(6,182,212,0.04);
      --cursor-glow: rgba(6,182,212,0.12);
      --invalid: rgba(239,68,68,0.7);
      --invalid-ring: rgba(239,68,68,0.15);
      --success-bg: rgba(6,182,212,0.08);
      --success-border: rgba(6,182,212,0.35);
      --shadow-primary: rgba(6,182,212,0.35);
      --shadow-primary-strong: rgba(6,182,212,0.5);
    }

    :root[data-theme='light'] {
      --bg: #f5fcff;
      --surface: rgba(255,255,255,0.86);
      --surface-2: rgba(255,255,255,0.78);
      --border: rgba(8,145,178,0.3);
      --text: #0f2330;
      --muted: rgba(15,35,48,0.72);
      --note: rgba(15,35,48,0.6);
      --footer: rgba(15,35,48,0.62);
      --input-bg: rgba(255,255,255,0.92);
      --grid-line: rgba(8,145,178,0.08);
      --cursor-glow: rgba(8,145,178,0.18);
      --invalid: rgba(220,38,38,0.9);
      --invalid-ring: rgba(220,38,38,0.18);
      --success-bg: rgba(8,145,178,0.12);
      --success-border: rgba(8,145,178,0.35);
      --shadow-primary: rgba(8,145,178,0.28);
      --shadow-primary-strong: rgba(8,145,178,0.35);
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Inter', system-ui, sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      overflow-x: hidden;
      transition: background 0.25s ease, color 0.25s ease;
    }

    /* ─── Canvas background ─────────────────────────────── */
    #bg-canvas {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
    }

    /* ─── Parallax blobs ────────────────────────────────── */
    .blob-layer {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .blob {
      position: absolute;
      border-radius: 50%;
      filter: blur(90px);
      opacity: 0.18;
      will-change: transform;
      transition: transform 0.08s linear;
    }

    .blob-1 {
      width: 600px; height: 600px;
      background: radial-gradient(circle, var(--cyan-400), transparent 70%);
      top: -150px; left: -150px;
    }
    .blob-2 {
      width: 500px; height: 500px;
      background: radial-gradient(circle, #818cf8, transparent 70%);
      top: 30%; right: -100px;
    }
    .blob-3 {
      width: 400px; height: 400px;
      background: radial-gradient(circle, var(--cyan-600), transparent 70%);
      bottom: -100px; left: 30%;
    }
    .blob-4 {
      width: 350px; height: 350px;
      background: radial-gradient(circle, #c084fc, transparent 70%);
      top: 60%; left: 10%;
    }

    /* ─── Grid overlay ──────────────────────────────────── */
    .grid-overlay {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
      background-size: 60px 60px;
      mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
    }

    /* ─── Cursor glow ───────────────────────────────────── */
    #cursor-glow {
      position: fixed;
      width: 400px; height: 400px;
      border-radius: 50%;
      background: radial-gradient(circle, var(--cursor-glow) 0%, transparent 70%);
      pointer-events: none;
      z-index: 1;
      transform: translate(-50%, -50%);
      transition: transform 0.06s linear;
    }

    /* ─── Page wrapper ──────────────────────────────────── */
    .page {
      position: relative;
      z-index: 2;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 2rem 1.5rem 4rem;
      gap: 0;
    }

    .theme-toggle {
      position: absolute;
      top: 1.1rem;
      right: 1.1rem;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      border: 1px solid var(--border);
      background: var(--surface-2);
      color: var(--text);
      font-family: inherit;
      font-size: 0.78rem;
      font-weight: 600;
      border-radius: 999px;
      padding: 0.45rem 0.8rem;
      cursor: pointer;
      transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }

    .theme-toggle:hover {
      transform: translateY(-2px);
      background: rgba(6,182,212,0.09);
    }

    .theme-toggle:active { transform: translateY(0); }
    .theme-toggle-icon { font-size: 0.95rem; line-height: 1; }

    /* ─── Header / logo ─────────────────────────────────── */
    .logo-wrap {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 3.5rem;
      animation: fadeDown 0.9s cubic-bezier(.22,1,.36,1) both;
    }

    .logo {
      width: auto;
      height: 70px;
      filter: drop-shadow(0 0 16px rgba(6,182,212,0.6));
      animation: pulseLogo 3s ease-in-out infinite;
    }

    .logo-light { display: none; }
    :root[data-theme='light'] .logo-dark { display: none; }
    :root[data-theme='light'] .logo-light { display: block; }

    .logo-text {
      font-size: 1.6rem;
      font-weight: 800;
      letter-spacing: -0.03em;
      background: linear-gradient(135deg, var(--cyan-300) 0%, var(--cyan-500) 50%, #818cf8 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    /* ─── Badge ─────────────────────────────────────────── */
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.4rem 1.1rem;
      border-radius: 99px;
      border: 1px solid var(--border);
      background: rgba(6,182,212,0.08);
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--cyan-300);
      margin-bottom: 1.5rem;
      animation: fadeDown 0.9s 0.1s cubic-bezier(.22,1,.36,1) both;
    }

    .badge-dot {
      width: 7px; height: 7px;
      border-radius: 50%;
      background: var(--cyan-400);
      box-shadow: 0 0 8px var(--cyan-400);
    }

    /* ─── Headline ──────────────────────────────────────── */
    .headline {
      text-align: center;
      font-size: clamp(2.6rem, 7vw, 5.5rem);
      font-weight: 900;
      line-height: 1.05;
      letter-spacing: -0.04em;
      margin-bottom: 1.25rem;
      animation: fadeUp 0.9s 0.2s cubic-bezier(.22,1,.36,1) both;
    }

    .headline-plain { color: var(--text); }

    .headline-gradient {
      background: linear-gradient(135deg, var(--cyan-300) 0%, var(--cyan-400) 40%, #818cf8 80%, #c084fc 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      display: block;
    }

    .subline {
      text-align: center;
      font-size: clamp(1rem, 2.5vw, 1.2rem);
      color: var(--muted);
      max-width: 560px;
      line-height: 1.7;
      margin-bottom: 3rem;
      animation: fadeUp 0.9s 0.3s cubic-bezier(.22,1,.36,1) both;
    }

    /* ─── Countdown ─────────────────────────────────────── */
    .countdown {
      display: flex;
      gap: 1.25rem;
      margin-bottom: 3rem;
      animation: fadeUp 0.9s 0.4s cubic-bezier(.22,1,.36,1) both;
      flex-wrap: wrap;
      justify-content: center;
    }

    .countdown-unit {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.4rem;
    }

    .countdown-box {
      position: relative;
      min-width: 88px;
      padding: 1rem 0.75rem 0.75rem;
      border-radius: 16px;
      border: 1px solid var(--border);
      background: var(--surface);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .countdown-box::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(6,182,212,0.1), transparent 60%);
      pointer-events: none;
    }

    .countdown-box::after {
      content: '';
      position: absolute;
      top: 0; left: 10%; right: 10%;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(6,182,212,0.5), transparent);
    }

    .countdown-num {
      font-size: 2.6rem;
      font-weight: 800;
      letter-spacing: -0.04em;
      color: var(--cyan-300);
      font-variant-numeric: tabular-nums;
      text-shadow: 0 0 30px rgba(6,182,212,0.4);
      transition: opacity 0.2s ease;
      display: block;
    }

    .countdown-num.flip {
      animation: countdownFade 0.26s ease;
    }

    .countdown-label {
      font-size: 0.65rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      font-weight: 600;
    }

    /* ─── Progress bar ──────────────────────────────────── */
    .progress-wrap {
      width: 100%;
      max-width: 440px;
      margin-bottom: 2.5rem;
      animation: fadeUp 0.9s 0.45s cubic-bezier(.22,1,.36,1) both;
    }

    .progress-head {
      display: flex;
      justify-content: space-between;
      font-size: 0.78rem;
      color: var(--muted);
      margin-bottom: 0.55rem;
    }

    .progress-track {
      height: 6px;
      border-radius: 99px;
      background: var(--surface-2);
      overflow: hidden;
      position: relative;
    }

    .progress-fill {
      height: 100%;
      border-radius: 99px;
      background: linear-gradient(90deg, var(--cyan-600), var(--cyan-400), #818cf8);
      position: relative;
      overflow: hidden;
      animation: growBar 2s 1s cubic-bezier(.22,1,.36,1) both;
    }

    .progress-fill::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
      background-size: 200% 100%;
      animation: shimmer 2.5s linear infinite;
    }

    /* ─── Newsletter form ───────────────────────────────── */
    .form-wrap {
      width: 100%;
      max-width: 480px;
      animation: fadeUp 0.9s 0.5s cubic-bezier(.22,1,.36,1) both;
    }

    .unsubscribe-panel {
      width: 100%;
      max-width: 480px;
      margin-top: 1rem;
      padding: 1rem 1.1rem;
      border-radius: 14px;
      border: 1px solid var(--border);
      background: var(--surface-2);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      animation: fadeUp 0.9s 0.56s cubic-bezier(.22,1,.36,1) both;
      text-align: left;
    }

    .unsubscribe-panel-title {
      margin: 0 0 0.35rem;
      font-size: 0.86rem;
      font-weight: 700;
      color: var(--text);
      letter-spacing: 0.01em;
    }

    .unsubscribe-panel-copy {
      margin: 0 0 0.7rem;
      font-size: 0.76rem;
      color: var(--muted);
      line-height: 1.5;
    }

    .unsubscribe-panel-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.62rem 0.98rem;
      border-radius: 999px;
      border: 1px solid rgba(6,182,212,0.35);
      color: var(--cyan-300);
      text-decoration: none;
      font-size: 0.8rem;
      font-weight: 700;
      transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
      background: rgba(6,182,212,0.06);
    }

    .unsubscribe-panel-link:hover {
      transform: translateY(-1px);
      background: rgba(6,182,212,0.14);
      border-color: rgba(6,182,212,0.48);
      color: #cffafe;
    }

    .form-label {
      display: block;
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--muted);
      text-align: center;
      margin-bottom: 0.9rem;
      letter-spacing: 0.02em;
    }

    .form-row {
      display: flex;
      gap: 0.6rem;
      position: relative;
    }

    .form-input {
      flex: 1;
      padding: 0.85rem 1.2rem;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: var(--input-bg);
      color: var(--text);
      font-family: inherit;
      font-size: 0.95rem;
      outline: none;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    }

    .form-input::placeholder { color: var(--note); }

    .form-input:focus {
      border-color: var(--cyan-500);
      background: rgba(6,182,212,0.06);
      box-shadow: 0 0 0 3px rgba(6,182,212,0.15), inset 0 0 20px rgba(6,182,212,0.04);
    }

    .form-btn {
      padding: 0.85rem 1.5rem;
      border-radius: 12px;
      border: none;
      background: linear-gradient(135deg, var(--cyan-600) 0%, var(--cyan-500) 50%, #818cf8 100%);
      color: #fff;
      font-family: inherit;
      font-size: 0.9rem;
      font-weight: 700;
      cursor: pointer;
      white-space: nowrap;
      transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
      box-shadow: 0 4px 20px var(--shadow-primary);
      position: relative;
      overflow: hidden;
    }

    .form-btn::before {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(255,255,255,0);
      transition: background 0.2s;
    }

    .form-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 28px var(--shadow-primary-strong);
    }

    .form-btn:hover::before { background: rgba(255,255,255,0.08); }
    .form-btn:active { transform: translateY(0); }
    .form-btn:disabled {
      opacity: 0.7;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    .form-note {
      text-align: center;
      font-size: 0.73rem;
      color: var(--note);
      margin-top: 0.75rem;
    }

    .form-error {
      min-height: 1.2em;
      margin-top: 0.45rem;
      text-align: center;
      font-size: 0.8rem;
      color: var(--invalid);
      opacity: 0;
      transition: opacity 0.2s;
    }

    .form-error.visible { opacity: 1; }

    /* ─── Success state ─────────────────────────────────── */
    .form-success {
      text-align: center;
      padding: 1.1rem 1.5rem;
      border-radius: 12px;
      border: 1px solid var(--success-border);
      background: var(--success-bg);
      color: var(--cyan-300);
      font-size: 0.9rem;
      font-weight: 500;
      animation: fadeUp 0.5s cubic-bezier(.22,1,.36,1) both;
      margin-top: 0.6rem;
    }

    .form-success[hidden] { display: none !important; }

    /* ─── Feature pills ─────────────────────────────────── */
    .features {
      display: flex;
      gap: 0.75rem;
      flex-wrap: wrap;
      justify-content: center;
      margin-top: 3rem;
      animation: fadeUp 0.9s 0.6s cubic-bezier(.22,1,.36,1) both;
    }

    .feature-pill {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.45rem 1rem;
      border-radius: 99px;
      border: 1px solid var(--surface-2);
      background: var(--surface-2);
      font-size: 0.78rem;
      color: var(--muted);
      font-weight: 500;
      transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.25s;
      cursor: default;
    }

    .feature-pill:hover {
      border-color: var(--border);
      background: rgba(6,182,212,0.07);
      color: var(--cyan-300);
      transform: translateY(-3px);
    }

    .pill-icon { font-size: 0.95rem; }

    /* ─── Floating particles (JS-driven) ────────────────── */
    .particle {
      position: fixed;
      border-radius: 50%;
      pointer-events: none;
      z-index: 1;
      animation: floatParticle var(--dur, 8s) ease-in-out infinite;
      opacity: 0;
    }

    /* ─── Social links ──────────────────────────────────── */
    .socials {
      display: flex;
      gap: 1rem;
      margin-top: 2.5rem;
      animation: fadeUp 0.9s 0.7s cubic-bezier(.22,1,.36,1) both;
    }

    .social-link {
      width: 42px; height: 42px;
      border-radius: 10px;
      border: 1px solid var(--surface-2);
      background: var(--surface-2);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      text-decoration: none;
      font-size: 1rem;
      transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.25s;
    }

    .social-link:hover {
      border-color: var(--border);
      background: rgba(6,182,212,0.1);
      color: var(--cyan-300);
      transform: translateY(-3px) scale(1.1);
    }

    /* ─── Footer ────────────────────────────────────────── */
    .footer {
      position: relative;
      z-index: 2;
      text-align: center;
      padding: 1.5rem;
      font-size: 0.73rem;
      color: var(--footer);
    }

    :root[data-theme='light'] .blob { opacity: 0.15; }
    :root[data-theme='light'] .badge {
      background: rgba(8,145,178,0.14);
      border-color: rgba(8,145,178,0.28);
      color: var(--cyan-700);
    }

    :root[data-theme='light'] .badge-dot {
      background: var(--cyan-700);
      box-shadow: 0 0 10px rgba(14,116,144,0.45);
    }

    :root[data-theme='light'] .countdown-box {
      background: rgba(255,255,255,0.94);
      border-color: rgba(8,145,178,0.22);
    }

    :root[data-theme='light'] .countdown-num {
      color: var(--cyan-700);
      text-shadow: 0 0 10px rgba(8,145,178,0.14);
    }

    :root[data-theme='light'] .countdown-box::before {
      background: linear-gradient(135deg, rgba(8,145,178,0.16), transparent 60%);
    }

    :root[data-theme='light'] .countdown-box::after {
      background: linear-gradient(90deg, transparent, rgba(8,145,178,0.55), transparent);
    }

    :root[data-theme='light'] .theme-toggle:hover {
      background: rgba(8,145,178,0.12);
      color: var(--cyan-700);
    }

    :root[data-theme='light'] .feature-pill:hover {
      background: rgba(8,145,178,0.09);
      color: var(--cyan-700);
      border-color: rgba(8,145,178,0.24);
    }

    :root[data-theme='light'] .social-link:hover {
      background: rgba(8,145,178,0.12);
      color: var(--cyan-700);
      border-color: rgba(8,145,178,0.24);
    }

    :root[data-theme='light'] .form-btn:hover {
      box-shadow: 0 8px 28px rgba(8,145,178,0.28);
    }

    /* ─── Keyframes ─────────────────────────────────────── */
    @keyframes fadeDown {
      from { opacity: 0; transform: translateY(-22px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(22px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes pulseLogo {
      0%, 100% { filter: drop-shadow(0 0 12px rgba(6,182,212,0.5)); }
      50%       { filter: drop-shadow(0 0 28px rgba(6,182,212,0.9)); }
    }
    @keyframes shimmer {
      0%   { background-position: -200% 0; }
      100% { background-position: 200% 0; }
    }
    @keyframes growBar {
      from { width: 0; }
      to   { width: var(--pct); }
    }
    @keyframes countdownFade {
      0%   { opacity: 0.15; }
      50%  { opacity: 0.5; }
      100% { opacity: 1; }
    }
    @keyframes floatParticle {
      0%   { transform: translateY(0) scale(1);   opacity: 0; }
      10%  { opacity: var(--max-op, 0.6); }
      50%  { transform: translateY(-60px) scale(1.15); }
      90%  { opacity: var(--max-op, 0.6); }
      100% { transform: translateY(0) scale(1);   opacity: 0; }
    }

    /* ─── Responsive ────────────────────────────────────── */
    @media (max-width: 500px) {
      .form-row { flex-direction: column; }
      .countdown-box { min-width: 72px; }
      .countdown-num { font-size: 2rem; }
      .theme-toggle-text { display: none; }
      .theme-toggle { padding: 0.55rem 0.7rem; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
      }
    }
