/* ================================================
   HABITAB.TECH — Design System & Styles
   Apple/Finch-inspired, lofi warm palette
   ================================================ */

/* ---- Google Fonts (preconnected in HTML) ---- */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ================================================ */
:root {
  /* Colors */
  --bg-cream: #FFF8F0;
  --bg-warm: #FDF6EE;
  --bg-white: #FFFFFF;
  --bg-section-alt: #FAF3EB;
  --text-primary: #4A3728;
  --text-secondary: #7A6B5E;
  --text-muted: #A09484;
  --accent-plum: #8B6F8F;
  --accent-plum-light: #B89FBC;
  --accent-sage: #8FA68B;
  --accent-sage-light: #B8CCB5;
  --accent-amber: #D4A76A;
  --accent-amber-light: #E8C99B;
  --accent-rose: #C48B8B;
  --accent-red: #D9534F;
  --card-glass: rgba(255, 255, 255, 0.72);
  --card-glass-border: rgba(255, 255, 255, 0.45);
  --card-border: rgba(74, 55, 40, 0.08);
  --footer-bg: #3D2E22;
  --footer-text: #C9B9A8;
  --footer-heading: #E8DDD0;

  /* Shadows */
  --shadow-soft: 0 4px 24px rgba(74, 55, 40, 0.06);
  --shadow-medium: 0 8px 32px rgba(74, 55, 40, 0.08);
  --shadow-hover: 0 12px 40px rgba(74, 55, 40, 0.14);
  --shadow-card: 0 2px 16px rgba(74, 55, 40, 0.05);

  /* Typography */
  --font-heading: 'Quicksand', 'Nunito', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --fs-hero: clamp(2.5rem, 6vw, 4.5rem);
  --fs-h1: clamp(2rem, 4vw, 3rem);
  --fs-h2: clamp(1.5rem, 3vw, 2.25rem);
  --fs-h3: clamp(1.1rem, 2vw, 1.4rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;
  --line-height: 1.7;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-section: clamp(4rem, 10vw, 8rem);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 100px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --nav-height: 72px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--line-height);
  color: var(--text-primary);
  background-color: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background-color: var(--accent-amber-light);
  color: var(--text-primary);
}

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

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

/* ================================================
   3. UTILITY CLASSES
   ================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-plum), var(--accent-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--accent-plum);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
  text-align: center;
}

.section-title {
  font-size: var(--fs-h1);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
  line-height: 1.8;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent-plum), var(--accent-amber));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-body);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 20px rgba(139, 111, 143, 0.3);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 111, 143, 0.4);
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 14px 32px;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-body);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--accent-plum);
  color: var(--accent-plum);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ---- Reveal Animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   4. NAVIGATION
   ================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: all var(--transition-base);
  background: rgba(255, 248, 240, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.navbar.scrolled {
  background: rgba(255, 248, 240, 0.92);
  box-shadow: 0 1px 20px rgba(74, 55, 40, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  z-index: 1001;
}

.nav-logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--accent-plum), var(--accent-amber));
  border-radius: 2px;
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.language-switcher {
  margin-left: var(--space-sm);
}

.language-toggle {
  border: 1px solid var(--accent-plum);
  border-radius: 999px;
  background: transparent;
  color: var(--accent-plum);
  cursor: pointer;
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  transition: all var(--transition-fast);
}

.language-toggle:hover,
.language-toggle:focus-visible {
  background: var(--accent-plum);
  color: var(--bg-white);
  outline: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

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

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

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

/* ================================================
   5. HERO SECTION
   ================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-3xl) 0;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--card-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-glass-border);
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--accent-plum);
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Hero Image */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mockup-img {
  max-width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--card-border);
  filter: drop-shadow(0 20px 40px rgba(74, 55, 40, 0.08));
  transition: transform var(--transition-base);
}

.hero-mockup-img:hover {
  transform: scale(1.02);
}

/* Background Orbs */
.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}

.hero-bg-orb-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-plum-light);
  top: -100px;
  right: -100px;
  opacity: 0.2;
}

.hero-bg-orb-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-amber-light);
  bottom: 100px;
  left: -100px;
  opacity: 0.25;
}

.hero-bg-orb-3 {
  width: 200px;
  height: 200px;
  background: var(--accent-sage-light);
  top: 50%;
  left: 50%;
  opacity: 0.15;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 1px;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ================================================
   6. FEATURES SECTION
   ================================================ */
.features {
  padding: var(--space-section) 0;
  background: var(--bg-warm);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  background: var(--card-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(139, 111, 143, 0.15);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  line-height: 1;
}

.feature-icon-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: var(--space-md);
  display: block;
}

.feature-title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-sm);
}

.feature-desc {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  line-height: 1.7;
}

/* ================================================
   7. COMPANIONS SECTION
   ================================================ */
.companions {
  padding: var(--space-section) 0;
  background: var(--bg-cream);
}

.companions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

.companion-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  border-radius: var(--radius-xl);
  background: var(--bg-white);
  border: 1px solid var(--card-border);
  transition: all var(--transition-base);
}

.companion-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.companion-image-wrapper {
  width: 200px;
  height: 200px;
  margin: 0 auto var(--space-lg);
  position: relative;
}

.companion-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(74, 55, 40, 0.1));
  transition: transform var(--transition-base);
}

.companion-card:hover .companion-img {
  transform: scale(1.08);
}

.companion-name {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-xs);
}

.companion-personality {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--accent-plum);
  margin-bottom: var(--space-md);
}

.companion-desc {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ================================================
   8. LOFI ROOM SECTION
   ================================================ */
.lofi-room {
  padding: var(--space-section) 0;
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-cream) 100%);
}

.lofi-quote-block {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.lofi-quote-mark {
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 1;
  color: var(--accent-amber-light);
  margin-bottom: -1rem;
}

.lofi-quote {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: var(--space-3xl);
  font-style: italic;
}

.lofi-features {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.lofi-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.lofi-feature-icon {
  font-size: 2rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.lofi-feature:hover .lofi-feature-icon {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.lofi-feature span {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-secondary);
}

/* ================================================
   9. MOOD / ATMOSPHERE SECTION
   ================================================ */
.mood-section {
  padding: var(--space-section) 0;
  background: var(--bg-warm);
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.mood-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-white);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
  cursor: default;
}

.mood-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.mood-card--featured {
  transform: scale(1.04);
  box-shadow: var(--shadow-medium);
  border-color: rgba(139, 111, 143, 0.25);
  position: relative;
}

.mood-card--featured:hover {
  transform: scale(1.04) translateY(-8px);
}

.mood-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.mood-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.mood-card:hover .mood-img {
  transform: scale(1.05);
}

.mood-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42, 28, 18, 0.45) 0%, transparent 60%);
  pointer-events: none;
}

.mood-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 248, 240, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 248, 240, 0.5);
  border-radius: 999px;
  padding: 5px 12px;
}

.mood-badge-icon {
  font-size: 1rem;
  line-height: 1;
}

.mood-badge-text {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.mood-info {
  padding: var(--space-lg);
}

.mood-title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.mood-desc {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ================================================
   10. HOW IT WORKS
   ================================================ */
.how-it-works {
  padding: var(--space-section) 0;
  background: var(--bg-cream);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
}

.step-card {
  text-align: center;
  padding: var(--space-2xl);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-plum-light), var(--accent-amber-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-md);
  line-height: 1;
}

.step-title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-md);
}

.step-desc {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  line-height: 1.8;
}

/* ================================================
   10. CTA / DOWNLOAD SECTION
   ================================================ */
.cta-section {
  padding: var(--space-section) 0;
  background: linear-gradient(135deg, #4A3728 0%, var(--accent-plum) 50%, var(--accent-amber) 100%);
  position: relative;
  overflow: hidden;
}

.cta-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.cta-bg-orb-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-amber);
  top: -150px;
  right: -100px;
  opacity: 0.15;
}

.cta-bg-orb-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-sage);
  bottom: -100px;
  left: -50px;
  opacity: 0.1;
}

.cta-content {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
  position: relative;
  z-index: 1;
}

.cta-companion {
  flex-shrink: 0;
}

.cta-companion-img {
  width: 250px;
  height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

.cta-title {
  font-size: var(--fs-h1);
  color: #fff;
  margin-bottom: var(--space-lg);
}

.cta-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
  max-width: 480px;
}

/* Store Badges */
.store-badges {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: #fff;
  text-decoration: none;
  transition: all var(--transition-base);
}

.store-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: #fff;
}

.store-badge svg {
  flex-shrink: 0;
}

.store-badge-label {
  display: block;
  font-size: var(--fs-xs);
  opacity: 0.8;
  line-height: 1;
}

.store-badge-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
}

/* ================================================
   11. FOOTER
   ================================================ */
.footer {
  background: var(--footer-bg);
  padding: var(--space-3xl) 0 var(--space-xl);
  color: var(--footer-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer-logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--footer-heading);
}

.footer-tagline {
  font-size: var(--fs-small);
  color: var(--footer-text);
  max-width: 280px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--footer-heading);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: var(--footer-text);
  font-size: var(--fs-small);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: var(--space-xl);
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ================================================
   12. LEGAL PAGES (Privacy, Terms)
   ================================================ */
.legal-page {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-section);
  min-height: 100vh;
}

.legal-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.legal-page-title {
  font-size: var(--fs-h1);
  margin-bottom: var(--space-sm);
}

.legal-last-updated {
  font-size: var(--fs-small);
  color: var(--text-muted);
  font-style: italic;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  box-shadow: var(--shadow-soft);
}

.legal-content h2 {
  font-size: var(--fs-h3);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
  border-left: 3px solid var(--accent-plum);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.legal-content ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.legal-content ul li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xs);
  list-style: disc;
}

.legal-content ul li strong {
  color: var(--text-primary);
}

.legal-contact-email {
  font-size: 1.1rem;
  font-weight: 600;
}

.legal-contact-email a {
  color: var(--accent-plum);
}

/* ================================================
   13. SUPPORT PAGE
   ================================================ */
.support-page {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-section);
  min-height: 100vh;
}

.support-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.support-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.support-title {
  font-size: var(--fs-h1);
  margin-bottom: var(--space-md);
}

.support-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* FAQ */
.faq-section {
  max-width: 760px;
  margin: 0 auto var(--space-3xl);
}

.faq-heading {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: rgba(139, 111, 143, 0.2);
}

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

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition-base);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-plum);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 var(--space-xl);
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 var(--space-xl) var(--space-lg);
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-answer a {
  color: var(--accent-plum);
  text-decoration: underline;
}

/* Support Contact */
.support-contact {
  max-width: 500px;
  margin: 0 auto;
}

.support-contact-card {
  text-align: center;
  padding: var(--space-2xl);
  background: linear-gradient(135deg, rgba(139, 111, 143, 0.08), rgba(212, 167, 106, 0.08));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
}

.support-contact-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-sm);
}

.support-contact-card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

/* ================================================
   14. CONTACT PAGE
   ================================================ */
.contact-page {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-section);
  min-height: 100vh;
}

.contact-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.contact-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.contact-title {
  font-size: var(--fs-h1);
  margin-bottom: var(--space-md);
}

.contact-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.8;
}

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

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-card {
  background: var(--bg-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.contact-card-icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.contact-card p {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.contact-email {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--accent-plum);
  font-size: var(--fs-small);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--bg-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.contact-form-title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-cream);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-plum);
  box-shadow: 0 0 0 3px rgba(139, 111, 143, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: var(--space-md);
  text-align: center;
  font-style: italic;
}

/* ================================================
   15. DELETE ACCOUNT PAGE
   ================================================ */
.delete-account-page {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-section);
  min-height: 100vh;
}

.delete-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.delete-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.delete-title {
  font-size: var(--fs-h1);
  margin-bottom: var(--space-md);
}

.delete-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Delete Methods */
.delete-method {
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
  background: var(--bg-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  position: relative;
}

.delete-method-badge {
  position: absolute;
  top: -12px;
  left: var(--space-xl);
  padding: 4px 16px;
  background: var(--accent-sage);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.delete-method-title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-md);
}

.delete-method-desc {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.delete-method-alt {
  background: var(--bg-section-alt);
}

/* Steps */
.delete-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.delete-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
}

.step-circle {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-plum), var(--accent-amber));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-small);
}

.step-content h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.step-content p {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Email Card */
.delete-email-card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
}

.delete-email-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-plum);
  margin: var(--space-md) 0;
}

.delete-email-note {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* Info Grid */
.delete-info {
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}

.delete-info-title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.delete-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.delete-info-card {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
}

.delete-info-deleted {
  background: rgba(217, 83, 79, 0.04);
  border-color: rgba(217, 83, 79, 0.15);
}

.delete-info-retained {
  background: rgba(143, 166, 139, 0.06);
  border-color: rgba(143, 166, 139, 0.2);
}

.delete-info-card h3 {
  font-size: 1rem;
  margin-bottom: var(--space-md);
}

.delete-info-card ul {
  padding-left: var(--space-lg);
}

.delete-info-card li {
  list-style: disc;
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xs);
}

/* Timeline */
.delete-timeline {
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}

.delete-timeline-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--bg-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
}

.delete-timeline-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.delete-timeline-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.delete-timeline-card p {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Warning */
.delete-warning {
  max-width: 700px;
  margin: 0 auto;
}

.delete-warning-card {
  padding: var(--space-xl);
  background: rgba(217, 83, 79, 0.06);
  border: 1px solid rgba(217, 83, 79, 0.2);
  border-radius: var(--radius-lg);
}

.delete-warning-card h3 {
  font-size: 1.1rem;
  color: var(--accent-red);
  margin-bottom: var(--space-sm);
}

.delete-warning-card p {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ================================================
   16. ANIMATIONS
   ================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.floating {
  animation: float 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.08); opacity: 0.6; }
}

/* ================================================
   17. DARK MODE
   ================================================ */
html[data-theme="dark"] {
  color-scheme: dark;

  --bg-cream: #17131A;
  --bg-warm: #1D1821;
  --bg-white: #251F2B;
  --bg-section-alt: #2D2530;
  --text-primary: #F5E9DB;
  --text-secondary: #C8B9B2;
  --text-muted: #9B8B86;
  --accent-plum: #B995C0;
  --accent-plum-light: #C9ACCE;
  --accent-sage: #A8C7A3;
  --accent-sage-light: #BDD6B8;
  --accent-amber: #E4B978;
  --accent-amber-light: #F0D09B;
  --accent-rose: #D39A9A;
  --accent-red: #F07A74;
  --card-glass: rgba(37, 31, 43, 0.78);
  --card-glass-border: rgba(255, 255, 255, 0.10);
  --card-border: rgba(255, 255, 255, 0.10);
  --footer-bg: #100D12;
  --footer-text: #C8B9B2;
  --footer-heading: #F5E9DB;
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.18);
  --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.24);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.32);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.20);
}

body,
.navbar,
.navbar.scrolled,
.legal-content,
.faq-item,
.contact-card,
.contact-form-wrapper,
.delete-method,
.delete-email-card,
.delete-timeline-card {
  transition: background-color var(--transition-base),
              border-color var(--transition-base),
              color var(--transition-base),
              box-shadow var(--transition-base);
}

html[data-theme="dark"] .navbar {
  background: rgba(23, 19, 26, 0.72);
}

html[data-theme="dark"] .navbar.scrolled {
  background: rgba(23, 19, 26, 0.94);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .delete-info-deleted {
  background: rgba(217, 83, 79, 0.12);
}

html[data-theme="dark"] .delete-info-retained {
  background: rgba(143, 166, 139, 0.12);
}

.theme-switcher {
  margin-left: var(--space-xs);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--card-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: all var(--transition-fast);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--accent-plum);
  color: var(--accent-plum);
  outline: none;
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  body,
  .navbar,
  .navbar.scrolled,
  .legal-content,
  .faq-item,
  .contact-card,
  .contact-form-wrapper,
  .delete-method,
  .delete-email-card,
  .delete-timeline-card,
  .theme-toggle {
    transition: none;
  }
}

/* ================================================
   18. NOT FOUND PAGE
   ================================================ */
.not-found-page {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  padding-bottom: var(--space-3xl);
}

.not-found-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.not-found-code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 700;
  line-height: 0.9;
  background: linear-gradient(135deg, var(--accent-plum), var(--accent-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-xl);
}

.not-found-title {
  font-size: var(--fs-h1);
  margin-bottom: var(--space-md);
}

.not-found-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0 auto var(--space-xl);
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

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

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* ================================================
   17. RESPONSIVE
   ================================================ */

/* ---- Mobile (default) ---- */
@media (max-width: 767px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-cream);
    flex-direction: column;
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    gap: var(--space-lg);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    box-shadow: -4px 0 24px rgba(74, 55, 40, 0.1);
    z-index: 999;
  }

  body.nav-open .nav-links {
    transform: translateX(0);
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--space-xl) 0;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-companion-wrapper {
    width: 260px;
    height: 260px;
  }

  .hero-companion {
    width: 220px;
    height: 220px;
  }

  .hero-companion-glow {
    width: 220px;
    height: 220px;
  }

  .hero-scroll-indicator {
    display: none;
  }

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

  .companions-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .mood-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .mood-card--featured {
    transform: none;
  }

  .mood-card--featured:hover {
    transform: translateY(-8px);
  }

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

  .cta-content {
    flex-direction: column;
    text-align: center;
  }

  .cta-description {
    margin-left: auto;
    margin-right: auto;
  }

  .store-badges {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .lofi-features {
    gap: var(--space-lg);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .delete-info-grid {
    grid-template-columns: 1fr;
  }

  .legal-content {
    padding: var(--space-xl);
  }
}

/* ---- Tablet ---- */
@media (min-width: 768px) and (max-width: 1023px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: var(--bg-cream);
    flex-direction: column;
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    gap: var(--space-lg);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    box-shadow: -4px 0 24px rgba(74, 55, 40, 0.1);
    z-index: 999;
  }

  body.nav-open .nav-links {
    transform: translateX(0);
  }

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

  .companions-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .mood-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ---- Desktop ---- */
@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }

  .nav-links {
    position: static;
    flex-direction: row;
    transform: none;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }
}

/* ---- Large Desktop ---- */
@media (min-width: 1440px) {
  :root {
    --max-width: 1320px;
  }

  .hero-companion-wrapper {
    width: 440px;
    height: 440px;
  }

  .hero-companion {
    width: 360px;
    height: 360px;
  }
}
