/* ---------- Fonts ---------- */
@font-face {
  font-family: "Bageo";
  src: url("assets/fonts/Bageo.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Boston";
  src: url("assets/fonts/BostonLight.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Boston";
  src: url("assets/fonts/BostonRegular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Boston";
  src: url("assets/fonts/BostonSemibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Boston";
  src: url("assets/fonts/BostonBold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Boston";
  src: url("assets/fonts/BostonBlack.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Brand tokens ---------- */
:root {
  --ink: #141414;
  --ink-elevated: #1c1c1e;
  --mist: #f7edf0;
  --mist-muted: rgba(247, 237, 240, 0.62);
  --ember: #ec5240;
  --ochre: #e98e26;
  --maize: #ffd133;
  --coral: #f06049;
  --border: rgba(247, 237, 240, 0.12);
  --radius: 14px;
  --font-display: "Bageo", "Boston", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Boston", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --accent-gradient: linear-gradient(92deg, var(--maize), var(--ochre) 45%, var(--ember));
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--mist);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 2rem clamp(1.25rem, 5vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ---------- Background decorations ---------- */
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(247, 237, 240, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 237, 240, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

.glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.glow--one {
  top: -180px;
  right: -120px;
  background: var(--ember);
}

.glow--two {
  bottom: -220px;
  left: -140px;
  background: var(--ochre);
  opacity: 0.14;
}

/* ---------- Header ---------- */
.header {
  position: relative;
  z-index: 1;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo__image {
  height: 80px;
  width: auto;
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 0;
}

.eyebrow {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(247, 237, 240, 0.04);
  color: var(--mist-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.hero__title {
  max-width: 820px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.75rem);
  font-weight: normal;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.hero__title-accent {
  max-width: 820px;
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 7.6vw, 5.15rem);
  font-weight: normal;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  max-width: 560px;
  color: var(--mist-muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  margin-bottom: 3rem;
}

/* ---------- Countdown ---------- */
.countdown {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  margin-bottom: 3rem;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 84px;
  padding: 1.25rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(247, 237, 240, 0.03);
  backdrop-filter: blur(8px);
}

.countdown__value {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.countdown__label {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist-muted);
}

/* ---------- Signup ---------- */
.signup {
  width: 100%;
  max-width: 440px;
}

.signup__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mist-muted);
  margin-bottom: 0.75rem;
}

.signup__row {
  display: flex;
  gap: 0.5rem;
}

.signup__input {
  flex: 1;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ink-elevated);
  color: var(--mist);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.signup__input::placeholder {
  color: rgba(247, 237, 240, 0.34);
}

.signup__input:focus {
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(236, 82, 64, 0.18);
}

.signup__button {
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  background: var(--accent-gradient);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.signup__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(236, 82, 64, 0.35);
}

.signup__button:active {
  transform: translateY(0);
}

.signup__button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.signup__message {
  min-height: 1.5em;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.signup__message--success {
  color: #7ee2a8;
}

.signup__message--error {
  color: var(--ember);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--mist-muted);
  font-size: 0.85rem;
}

.footer__tagline {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .signup__row {
    flex-direction: column;
  }

  .signup__button {
    width: 100%;
  }

  .countdown__unit {
    min-width: 68px;
    padding: 1rem 0.25rem;
  }

  .footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .logo__image {
    height: 56px;
  }
}
