@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --gold: #c9a86a;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bg: #0a0a0a;
  --text: #f1f1f1;
  --muted: #a1a1aa;
  --panel: #111113;
  --card: #1a1a1c;
  --page-gutter: 1rem;
}

@media (min-width: 1024px) {
  :root {
    --page-gutter: 2rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.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;
}

.sr-only:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 8px 16px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--card);
  border-radius: 8px;
}

.serif {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/*
 * .container owns the page gutter (horizontal padding).
 * Elements that also use .container (e.g. .hero-content, .footer-inner)
 * MUST set vertical space with padding-block ONLY — never the `padding`
 * shorthand, which resets padding-inline (left/right) to 0 and wipes
 * the gutter. Same rule applies to `.section`-adjacent hboxes.
 */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding-inline: var(--page-gutter);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.6), rgba(10, 10, 10, 0.7), #0a0a0a);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 8rem 5rem;
}

.logo {
  height: 1.75rem;
  width: auto;
  margin-bottom: 2.5rem;
}

.eyebrow {
  font-size: 0.875rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.75rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero h1 .italic {
  font-style: italic;
}

.hero-tagline {
  margin: 1.5rem 0 0;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

.hero-copy {
  margin: 1.5rem 0 0;
  max-width: 36rem;
  line-height: 1.7;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.signup-form {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 32rem;
}

@media (min-width: 640px) {
  .signup-form {
    flex-direction: row;
    align-items: flex-start;
  }
}

.signup-field {
  flex: 1;
  text-align: left;
}

.signup-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  padding: 0 1.25rem;
  height: 56px;
  font-size: 1rem;
  color: #fff;
  outline: none;
  transition: border-color 0.3s ease;
  box-shadow: 0 8px 30px -10px rgba(0, 0, 0, 0.6);
}

.signup-input::placeholder {
  color: #fff;
}

.signup-input:focus {
  border-color: #fff;
}

.signup-input.field-error {
  border-color: #e05a5a !important;
}

.signup-status {
  min-height: 1.25rem;
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
}

.signup-status.error {
  color: #e05a5a;
}

.signup-status.success {
  color: #fff;
}

.signup-button {
  flex-shrink: 0;
  height: 56px;
  border: 0;
  border-radius: 9999px;
  padding: 0 2rem;
  background: #fff;
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.3s ease, opacity 0.3s ease;
}

.signup-button:hover:not(:disabled) {
  box-shadow: 0 12px 40px -8px rgba(255, 255, 255, 0.35);
}

.signup-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: pulse 2.4s ease-in-out infinite;
}

.scroll-cue span {
  width: 1px;
  height: 2rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), transparent);
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-dark {
  background: var(--panel);
  border-block: 1px solid rgba(255, 255, 255, 0.05);
}

.section-label {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 3.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem 2rem;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: clamp(3.5rem, 8vw, 4.5rem);
}

.stat-title {
  margin: 0.5rem 0 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.stat-caption {
  margin: 0.75rem 0 0;
  font-size: 1.0625rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.benefits-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
}

.section h2 {
  margin: 0 0 2rem;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

.benefits-list li {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.benefits-list img {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
}

.benefits-list p {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.17;
  letter-spacing: -0.01em;
}

.tilt-card {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  transform-style: preserve-3d;
}

.newsletter-card {
  background: var(--panel);
  border-radius: 1rem;
  padding: 50px 33px 0 33px;
  max-width: 500px;
  margin-inline: auto;
}

.newsletter-card img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 1024px) {
  .newsletter-card {
    max-width: 100%;
    max-height: 426px;
    height: 426px;
    width: fit-content;
    justify-self: center;
  }

  .newsletter-card img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-inline: auto;
  }
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--panel);
}

.footer-inner {
  padding-block: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.footer-logo {
  height: 1.5rem;
}

.footer-copy {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
}

.footer-copy a {
  color: #fff;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: 80;
  transform: translate(-50%, 120%);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.4s ease;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: calc(100vw - 2rem);
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.toast-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.toast-text {
  margin: 0.125rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.scale {
  transform: translateY(28px) scale(0.96);
}

.reveal.scale.is-visible {
  transform: translateY(0) scale(1);
}

.stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger > .reveal:nth-child(2) { transition-delay: 90ms; }
.stagger > .reveal:nth-child(3) { transition-delay: 180ms; }

.reveal.scale.tilt-card {
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), box-shadow 0.35s var(--ease);
}

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

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
