/* ==========================================================================
   INNER FREEDOM — DESIGN SYSTEM & STYLESHEET
   Based on Course Methodologies: $100M Offers, Units, Web Design UX/UI, Linus Lohoff OS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & VARIABLE ARCHITECTURE (60-30-10 Color Balance)
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette (Rich Dark 60-30-10) */
  --bg-dark: #0B0F17;            /* 60% Dominant Background - Rich Dark Charcoal */
  --surface-card-1: #161F2C;     /* 30% Structural Level 1 Card Elevation */
  --surface-card-2: #212D3E;     /* 30% Structural Level 2 Card / Hover */
  --surface-card-3: #2A384D;     /* Highlight Elevation Surface */
  
  --accent-gold: #D4AF37;        /* Primary Brand Color - Champagne Gold */
  --accent-gold-light: #E5C158;  /* Light Gold Hover State */
  --accent-coral: #FF6B4A;       /* 10% Call To Action Accent - Solar Coral */
  --accent-coral-hover: #FF856B; /* Coral Hover State */
  --accent-emerald: #10B981;     /* Guarantee & Trust Emerald Accent */
  
  --text-main: #F8FAFC;          /* High Contrast Main Text (16:1 contrast ratio - WCAG AAA) */
  --text-muted: #94A3B8;         /* Subtitle & Muted Text (4.8:1 contrast ratio - WCAG AA) */
  --text-dim: #64748B;           /* Captions & Auxiliary Labels */
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.25);
  
  /* Typography Scale */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;

  /* Spacing & Layout */
  --container-width: 1240px;
  --header-height: 60px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  /* Animations & Physics */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  background-color: var(--bg-dark);
  overflow-x: hidden;
}

/* Typography Headings (Rule WD-014: Tight Leading for Display Headings) */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.15;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

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

/* Container Utility */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   3. BUTTONS & INTERACTIVE ELEMENTS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease-out, background-color 0.18s ease-out, border-color 0.18s ease-out, box-shadow 0.18s ease-out;
  white-space: nowrap;
}

.btn-primary, .btn-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #B89327 100%);
  color: #0B0F17;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover, .btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, #D4AF37 100%);
}

.btn-cta, .btn-coral {
  background: linear-gradient(135deg, var(--accent-coral) 0%, #E04E2E 100%);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255, 107, 74, 0.3);
}

.btn-cta:hover, .btn-coral:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 74, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   4. STICKY HEADER (Rule WD-029: Height <= 60px, Glassmorphism)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

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

.brand-logo {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-main);
  line-height: 1;
}

.brand-tagline {
  font-size: 0.68rem;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-switch {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

/* --------------------------------------------------------------------------
   5. HERO SECTION (4U Headline & Value Equation)
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-title {
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-card-1);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--text-main);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-gold);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
}

.hero-image-box img {
  width: 100%;
  object-fit: cover;
  /* Linus Lohoff Duotone Overlay Style */
  filter: contrast(1.05) brightness(0.95);
  transition: transform 0.4s var(--transition-normal);
}

.hero-image-box:hover img {
  transform: scale(1.03);
}

.hero-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(22, 31, 44, 0.9);
  backdrop-filter: blur(12px);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-name {
  font-weight: 700;
  color: var(--text-main);
  font-size: 1rem;
}

.badge-title {
  font-size: 0.8rem;
  color: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   6. INTERACTIVE MEDITATION SOUNDSCAPE WIDGET
   -------------------------------------------------------------------------- */
.soundscape-section {
  padding: 3rem 0;
  background: var(--surface-card-1);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.soundscape-box {
  background: var(--surface-card-2);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-gold);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.breath-circle-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.breath-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, rgba(16, 185, 129, 0.1) 70%, transparent 100%);
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
  transition: transform 4s ease-in-out;
}

.breath-circle.inhale {
  transform: scale(1.35);
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.4);
}

.breath-circle.exhale {
  transform: scale(0.9);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

/* --------------------------------------------------------------------------
   7. PROBLEM AWARENESS GRID & SCENARIOS (Rule WD-043: Padding >= 24-32px)
   -------------------------------------------------------------------------- */
.section-padding {
  padding: 6rem 0;
}

.section-bg-alt {
  background-color: rgba(22, 31, 44, 0.4);
}

.section-title-box {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem auto;
}

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
}

.scenario-card {
  background: var(--surface-card-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem; /* Rule WD-043: Card Padding >= 24-32px */
  transition: var(--transition-normal);
}

.scenario-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  background: var(--surface-card-2);
}

.scenario-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.scenario-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   8. VALUE EQUATION MATRIX (TRANSFORMATION DO / POSLE)
   -------------------------------------------------------------------------- */
.matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.matrix-col {
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-subtle);
}

.matrix-before {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.2);
}

.matrix-after {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.3);
}

.matrix-col h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.matrix-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   9. UNBEATABLE OFFER PASSPORT & PRICING TIERS ($100M Offers)
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.pricing-card {
  background: var(--surface-card-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
}

.pricing-card.popular {
  background: var(--surface-card-2);
  border: 2px solid var(--accent-gold);
  transform: scale(1.04);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
}

.popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gold);
  color: #0B0F17;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-pill);
}

.price-box {
  margin: 1.5rem 0;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-features {
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

/* Guarantee Box */
.guarantee-box {
  background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 80%), var(--surface-card-1);
  border: 1px solid var(--accent-emerald);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 4rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.guarantee-icon {
  font-size: 3.5rem;
}

/* --------------------------------------------------------------------------
   10. FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface-card-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.75rem;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  padding: 0 1.75rem 1.5rem 1.75rem;
  display: none;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--accent-gold);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   11. MODAL POPUP & TOP-ALIGNED FORM (Rule WD-028 & Rule WD-031)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--surface-card-1);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 520px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(20px);
  transition: transform 0.25s var(--transition-normal);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

/* Rule WD-031: 44x44px Close Button Area */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 50%;
  color: var(--text-main);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Rule WD-028: Top-Aligned Form Labels */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem; /* Top-aligned label rule */
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--surface-card-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   12. FOOTER (Rule WD-037: Zero Dead-Ends Navigation Map)
   -------------------------------------------------------------------------- */
.site-footer {
  background: #070A10;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE BREAKPOINTS (320px Mobile-first to 1440px Desktop)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card.popular {
    transform: none;
  }
  .matrix-grid {
    grid-template-columns: 1fr;
  }
  .soundscape-box {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .guarantee-box {
    flex-direction: column;
    text-align: center;
  }
}

/* Rule WD-027: Prefers Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
