:root {
  --color-bg: #0a0a0a;
  --color-surface: #141414;
  --color-accent: #d4a853;
  --color-accent-hover: #e8c070;
  --color-text: #ffffff;
  --color-text-muted: #9ca3af;
  --color-border: #2a2a2a;
  --color-success: #10b981;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --radius: 12px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.nav {
  display: none;
  gap: 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--color-accent);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

/* Hero Section */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem clamp(1.25rem, 4vw, 3rem);
  background-image: url('https://images.unsplash.com/photo-1542291026-7eec264c27ff?w=1920&h=1080');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  animation: fadeInUp 0.6s ease;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

#hero > * {
  position: relative;
  z-index: 1;
}

#hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  max-width: 18ch;
  font-weight: 700;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.6s ease 0.1s both;
}

#hero .subheadline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin: 0 0 2rem;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.subscriber-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.subscriber-badge strong {
  color: var(--color-accent);
  font-weight: 700;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  animation: fadeInUp 0.6s ease 0.4s both;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-cta:hover {
  background: var(--color-accent-hover);
  transform: scale(1.05);
}

.hero-cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.hero-cta:active {
  transform: scale(0.98);
}

/* Features Section */
#features {
  padding: 6rem clamp(1.25rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease;
}

#features h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin: 0 0 1rem;
  font-weight: 700;
}

#features > p {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 60ch;
  margin: 0 auto 4rem;
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
  box-shadow: 0 10px 40px rgba(212, 168, 83, 0.2);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  border-radius: 50%;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-bg);
  stroke-width: 2;
  fill: none;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.7;
}

/* Waitlist Section */
#waitlist {
  padding: 6rem clamp(1.25rem, 4vw, 3rem);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  animation: fadeInUp 0.6s ease;
}

#waitlist h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 1rem;
  font-weight: 700;
}

#waitlist > p {
  color: var(--color-text-muted);
  margin: 0 0 3rem;
  font-size: 1.1rem;
}

#waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 480px;
  margin: 0 auto 2rem;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  #waitlist-form {
    flex-direction: row;
  }
}

#waitlist-form.success {
  opacity: 0.7;
  pointer-events: none;
}

#email-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid var(--color-border);
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  background: var(--color-surface);
  color: var(--color-text);
  transition: all 0.2s ease;
}

#email-input::placeholder {
  color: var(--color-text-muted);
}

#email-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

#email-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#waitlist-form button {
  padding: 1rem 2.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

#waitlist-form button:hover:not(:disabled) {
  background: var(--color-accent-hover);
  transform: scale(1.05);
}

#waitlist-form button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

#waitlist-form button:active:not(:disabled) {
  transform: scale(0.98);
}

#waitlist-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#success-message {
  padding: 1.5rem 2rem;
  background: var(--color-surface);
  border: 2px solid var(--color-success);
  border-radius: var(--radius);
  color: var(--color-success);
  font-weight: 600;
  animation: successPop 0.5s ease both;
}

#success-message::before {
  content: '✓';
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 1.2em;
}

@keyframes successPop {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

#waitlist noscript {
  display: block;
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-muted);
}

#waitlist noscript a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  padding: 3rem clamp(1.25rem, 4vw, 3rem);
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.site-footer p {
  color: var(--color-text-muted);
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  list-style: none;
  padding: 0;
}

.footer-links a {
  color: var(--color-text-muted);
  transition: color 0.2s ease;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-accent);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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

  html {
    scroll-behavior: auto;
  }

  #hero {
    background-attachment: scroll;
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  #hero {
    background-attachment: scroll;
    min-height: 80vh;
  }

  #hero h1 {
    font-size: 2.5rem;
  }

  .features-grid {
    gap: 1.5rem;
  }
}

@media (min-width: 1280px) {
  #hero,
  #features,
  #waitlist {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}
