/* ================================================
   K9Lingo — Landing Page Styles
   ================================================ */

:root {
  --color-primary: #1B3A5C;
  --color-primary-light: #2A5580;
  --color-accent: #D4890E;
  --color-accent-light: #F5A623;
  --color-background: #FFFFFF;
  --color-surface: #F7F8FA;
  --color-text-primary: #1A1A2E;
  --color-text-secondary: #6B7280;
  --color-text-inverse: #FFFFFF;
  --color-border: #E5E7EB;
}

/* ---- Reset & Base ---- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-text-primary);
  background: var(--color-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---- Utilities ---- */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.25;
  margin-bottom: 48px;
}

/* ---- Animations ---- */

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

.hero-content {
  animation: fadeUp 0.6s ease-out both;
}

/* ---- Navigation ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-inverse);
}

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

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-inverse);
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-inverse);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    padding: 16px 24px 24px;
    gap: 16px;
    border-top: 1px solid var(--color-primary-light);
  }

  .nav.nav-open .nav-links {
    display: flex;
  }

  .nav.nav-open .nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav.nav-open .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ---- Hero ---- */

.hero {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

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

.hero-wordmark {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 16px;
}

.hero-wordmark .accent {
  color: var(--color-accent);
}

.hero-tagline {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.hero-subheadline {
  font-size: 1.125rem;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-text-inverse);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #bf7a0c;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--color-text-inverse);
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: border-color 0.2s;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.language-pills {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.language-pill {
  font-size: 0.8125rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ---- Features ---- */

.features {
  padding: 96px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text-primary);
}

.feature-body {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

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

/* ---- How It Works ---- */

.how-it-works {
  padding: 96px 0;
  background: var(--color-surface);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.step {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text-primary);
}

.step-body {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 320px;
  margin: 0 auto;
}

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

/* ---- Waitlist ---- */

.waitlist {
  padding: 96px 0;
  text-align: center;
}

.waitlist-heading {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text-primary);
}

.waitlist-subtext {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.waitlist-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto 16px;
}

.waitlist-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--color-primary);
}

.waitlist-form button {
  padding: 14px 28px;
}

.form-message {
  display: none;
  font-size: 0.875rem;
  margin-top: 12px;
}

.form-success {
  color: #059669;
}

.form-error {
  color: #DC2626;
}

.waitlist-disclaimer {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-top: 16px;
}

/* ---- Footer ---- */

.footer {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: 40px 0;
}

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

.footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.footer-copyright {
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer-email a {
  font-size: 0.875rem;
  color: var(--color-accent-light);
  transition: opacity 0.2s;
}

.footer-email a:hover {
  opacity: 0.8;
}

.footer-tagline {
  font-size: 0.8125rem;
  opacity: 0.6;
  max-width: 480px;
}

@media (min-width: 768px) {
  .hero-wordmark {
    font-size: 5.5rem;
  }

  .section-heading {
    font-size: 2.25rem;
  }

  .footer-row {
    flex-direction: row;
    justify-content: space-between;
  }
}
