/* CSS Variables - Design System */
:root {
  --bg-primary: #0A0A0B;
  --bg-elevated: #141416;
  --bg-subtle: #1C1C1F;
  --text-primary: #FAFAFA;
  --text-secondary: #A1A1A6;
  --text-muted: #6B6B70;
  --accent-primary: #E5A853;
  --accent-hover: #F0B966;
  --accent-muted: rgba(229, 168, 83, 0.15);
  --success: #34C759;
  --border: rgba(255, 255, 255, 0.08);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background-color: rgba(10, 10, 11, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background-color: var(--accent-primary);
  color: var(--bg-primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 72px;
  background: radial-gradient(ellipse at 50% 0%, rgba(229, 168, 83, 0.08) 0%, transparent 60%);
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-label {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--accent-muted);
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 100px;
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--text-primary);
  letter-spacing: -0.03em;
  max-width: 700px;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* Signup Form */
.signup-form {
  width: 100%;
  max-width: 480px;
  margin-top: 16px;
}

.form-group {
  display: flex;
  gap: 12px;
  background-color: var(--bg-elevated);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.form-group input[type="email"] {
  flex: 1;
  padding: 14px 16px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

.form-group input[type="email"]::placeholder {
  color: var(--text-muted);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background-color: var(--accent-primary);
  color: var(--bg-primary);
  font-weight: 600;
  font-size: 0.875rem;
  font-family: inherit;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
  min-width: 140px;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-microcopy {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-message {
  margin-top: 12px;
  font-size: 0.875rem;
  min-height: 20px;
}

.form-message.success {
  color: var(--success);
}

.form-message.error {
  color: #FF6B6B;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--bg-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Fade In Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease forwards;
}

.fade-in-delay-1 {
  animation-delay: 0.15s;
}

.fade-in-delay-2 {
  animation-delay: 0.3s;
}

.fade-in-delay-3 {
  animation-delay: 0.45s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Value Props Section */
.value-props {
  padding: 120px 0;
  background-color: var(--bg-primary);
}

.value-props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.value-prop {
  padding: 32px;
  background-color: var(--bg-elevated);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.value-prop:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.value-prop-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: var(--accent-muted);
  color: var(--accent-primary);
  border-radius: 12px;
  margin-bottom: 24px;
}

.value-prop-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.value-prop-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  padding: 120px 0;
  background-color: var(--bg-elevated);
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-section .signup-form {
  margin: 0 auto;
}

/* Footer */
.footer {
  padding: 40px 0;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 16px;
  }

  .hero-container {
    padding: 60px 16px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .form-group {
    flex-direction: column;
    padding: 12px;
    gap: 12px;
  }

  .form-group input[type="email"] {
    padding: 12px;
  }

  .btn-primary {
    width: 100%;
    padding: 16px 24px;
  }

  .value-props {
    padding: 80px 0;
  }

  .value-props-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .value-prop {
    padding: 24px;
  }

  .cta-section {
    padding: 80px 0;
  }

  .cta-content {
    padding: 0 16px;
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav-logo {
    font-size: 1.25rem;
  }

  .nav-cta {
    padding: 8px 16px;
    font-size: 0.8125rem;
  }

  .hero-headline {
    font-size: 2rem;
  }

  .value-prop-title {
    font-size: 1.25rem;
  }

  .cta-headline {
    font-size: 1.75rem;
  }
}
