/* ── Fonts ─────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'UntitledSans';
  src: url('/fonts/UntitledSans-Regular.woff2') format('woff2'),
       url('/fonts/UntitledSans-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'UntitledSans';
  src: url('/fonts/UntitledSans-Medium.woff2') format('woff2'),
       url('/fonts/UntitledSans-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'UntitledSans';
  src: url('/fonts/UntitledSans-Bold.woff2') format('woff2'),
       url('/fonts/UntitledSans-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */

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

/* ── Design tokens ──────────────────────────────────────────────────────── */

:root {
  --bg:      #1A1A2E;
  --accent:  #6C63FF;
  --gold:    #C9A84C;
  --card:    #22223B;
  --text:    #F5F5F5;
  --muted:   #AAAAAA;
  --success: #4CAF50;
  --error:   #F44336;
  --font:    'UntitledSans', system-ui, -apple-system, sans-serif;
  --r:       8px;
}

/* ── Base ───────────────────────────────────────────────────────────────── */

html { height: 100%; }

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.wrapper {
  max-width: 600px;
  width: 100%;
  text-align: center;
  animation: fadeUp 0.7s ease both;
}

/* ── Wordmark ───────────────────────────────────────────────────────────── */

.wordmark {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 56px;
}

/* ── Headline ───────────────────────────────────────────────────────────── */

.headline {
  font-size: clamp(2.25rem, 6.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text);
}

.headline::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 28px auto 0;
}

/* ── Date ───────────────────────────────────────────────────────────────── */

.date {
  margin-top: 24px;
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ── CTA area ───────────────────────────────────────────────────────────── */

.cta-area { margin-top: 40px; }

/* ── Notify button ──────────────────────────────────────────────────────── */

.btn-notify {
  display: inline-block;
  padding: 13px 36px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--r);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-notify:hover  { background: #5a52e0; }
.btn-notify:active { transform: scale(0.97); }
.btn-notify[aria-expanded="true"] { display: none; }

/* ── Email form ─────────────────────────────────────────────────────────── */

.email-form {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease;
}
.email-form.open {
  max-height: 110px;
  opacity: 1;
}

.field-row {
  display: flex;
  max-width: 380px;
  margin: 0 auto;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--card);
  transition: border-color 0.2s;
}
.field-row:focus-within { border-color: var(--accent); }

.field-row input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  min-width: 0;
}
.field-row input[type="email"]::placeholder { color: var(--muted); }

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: var(--accent);
  border: none;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
  transition: background 0.2s;
}
.btn-submit:hover { background: #5a52e0; }

/* ── Status ─────────────────────────────────────────────────────────────── */

.form-status {
  margin-top: 12px;
  font-size: 0.875rem;
  min-height: 20px;
}
.form-status.success { color: var(--success); }
.form-status.error   { color: var(--error); }
.form-status.loading { color: var(--muted); }

/* ── Animation ──────────────────────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .wordmark { margin-bottom: 40px; }
  .cta-area { margin-top: 32px; }
}
