/* Incestry - Shared Styles
 * Design System: Dark teal, brown accents, gold highlights
 * Typography: Playfair Display (headings) + Inter (body)
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  --primary: #204040;
  --accent: #8b4513;
  --bg-cream: #faf8f5;
  --bg-white: #ffffff;
  --text-dark: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #888888;
  --border: #e0d5c8;
  --gold: #c9a84c;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(32, 64, 64, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo {
  height: 36px;
  filter: brightness(0) invert(1);
}

.nav-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.nav-links a.active {
  color: var(--gold);
  font-weight: 600;
}

.nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
}

.nav-cta:hover {
  background: #6d3710;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: #6d3710;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: white;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--primary);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, #153030 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-bg video,
.hero-bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% + 40px);
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-bg img {
  display: none;
}

.hero-video-mobile-wrapper {
  display: none;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-bottom: 24px;
}

.hero-video-mobile {
  width: calc(100% + 40px);
  display: block;
}

.hero-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.hero-video-play-btn:hover {
  background: rgba(255, 255, 255, 1);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: translate(-50%, -50%) scale(1.1);
}

.hero-video-play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--primary);
  margin-left: 4px;
}

.hero-video-play-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 160px 20px 100px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: var(--gold);
}

.hero-content .tagline {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 32px;
  font-style: italic;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
}

.hero-stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

/* ==========================================================================
   DNA Preview Card
   ========================================================================== */
.dna-preview {
  background: rgba(255,255,255,0.7);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  color: var(--text-dark);
}

.dna-header {
  text-align: center;
  margin-bottom: 24px;
}

.dna-header h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.dna-score {
  text-align: center;
  margin-bottom: 24px;
}

.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: white;
}

.score-value {
  font-size: 2.5rem;
  font-weight: 700;
}

.score-label {
  font-size: 0.75rem;
}

.dna-results {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.result-item:last-child {
  border-bottom: none;
}

.result-label {
  color: var(--text-secondary);
}

.result-value {
  font-weight: 600;
  color: var(--primary);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
  padding: 100px 20px;
  background: var(--bg-white);
}

.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--bg-cream);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #2a5050);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */
.how-it-works {
  padding: 100px 20px;
  background: var(--bg-cream);
}

.steps-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.step {
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials {
  padding: 100px 20px;
  background: var(--bg-white);
}

.testimonials-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: var(--bg-cream);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border);
}

.testimonial-card blockquote {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-style: italic;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #2a5050);
  overflow: hidden;
}

.testimonial-avatar img {
  width: calc(100% + 40px);
  height: 100%;
  object-fit: cover;
}

.testimonial-author strong {
  display: block;
  color: var(--text-dark);
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Press Section
   ========================================================================== */
.press {
  padding: 60px 20px;
  background: var(--bg-cream);
  border-top: 1px solid var(--border);
}

.press-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.press h3 {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.press-quotes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.press-quote {
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta {
  padding: 100px 20px;
  background: var(--primary);
  text-align: center;
  color: white;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta .btn {
  background: var(--accent);
  color: white;
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #1a2a2a;
  color: white;
  padding: 60px 20px 30px;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo {
  height: 36px;
  filter: brightness(0) invert(1);
}

.footer-brand span {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.footer-tagline {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  font-style: italic;
}

.footer-links h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.5);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 70px;
    padding-bottom: 40px;
    align-items: flex-start;
  }

  .hero-bg video {
    display: none;
  }

  .hero-bg img {
    display: block;
    opacity: 0.15;
  }

  .hero-video-mobile-wrapper {
    display: block;
    width: calc(100% + 40px);
    margin-left: -20px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px 0 100px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-content h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .dna-preview {
    max-width: 350px;
    margin: 0 auto;
  }

  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .steps-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .steps-container {
    grid-template-columns: 1fr;
  }

  .cta h2 {
    font-size: 1.8rem;
  }
}
