/* ==========================================================================
   WatchMyBody — Social Discovery & Dating Platform Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color System */
  --bg-main: #0D0D12;
  --bg-secondary: #13131A;
  --bg-card: #191922;
  --bg-card-hover: #22222E;
  --bg-input: #0F1018;

  --accent-pink: #FF2D75;
  --accent-violet: #8057FF;
  --accent-coral: #FF596D;

  --text-primary: #FFFFFF;
  --text-secondary: #A7A7B2;
  --text-muted: #6C6C7A;

  --border-line: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 45, 117, 0.4);
  --border-input: #2B2C3B;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Inter", "Segoe UI", Roboto, sans-serif;
  
  /* Spacing Scale */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 1rem;     /* 16px */
  --space-md: 1.5rem;   /* 24px */
  --space-lg: 2.5rem;   /* 40px */
  --space-xl: 4rem;     /* 64px */
  --space-2xl: 6rem;    /* 96px */
  
  /* Border Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-normal: 0.35s var(--ease-out);
}

/* Light Mode Custom Token Overrides */
html[data-theme="light"] {
  --bg-main: #F4F5F9;
  --bg-secondary: #EBECEF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8F9FC;
  --bg-input: #EEF0F4;

  --text-primary: #12131A;
  --text-secondary: #5A5C6B;
  --text-muted: #8E909F;

  --border-line: rgba(0, 0, 0, 0.08);
  --border-active: rgba(255, 45, 117, 0.6);
  --border-input: #D5D8E0;
}

html[data-theme="light"] .site-header {
  background: rgba(244, 245, 249, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .nav-link {
  color: #5A5C6B;
}

html[data-theme="light"] .nav-link:hover {
  color: #12131A;
}

html[data-theme="light"] .ambient-glow {
  opacity: 0.15;
}

/* Theme-Aware Logo Switching & Strict Responsive Sizing */
.site-brand, .brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  height: 48px;
  max-width: 240px;
  overflow: hidden;
}

.site-logo {
  max-height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  vertical-align: middle;
  transition: opacity 0.2s ease;
}

/* Ensure EXACTLY ONE logo is visible based on active theme */
html[data-theme="dark"] img.site-logo-light {
  display: none !important;
}

html[data-theme="dark"] img.site-logo-dark {
  display: inline-block !important;
}

html[data-theme="light"] img.site-logo-light {
  display: inline-block !important;
}

html[data-theme="light"] img.site-logo-dark {
  display: none !important;
}

/* Fallback if data-theme attribute is not yet set */
html:not([data-theme="light"]) img.site-logo-light {
  display: none !important;
}

html:not([data-theme="light"]) img.site-logo-dark {
  display: inline-block !important;
}

@media (max-width: 850px) {
  .site-brand, .brand-link {
    height: 40px;
    max-width: 190px;
  }

  .site-logo {
    max-height: 38px;
    max-width: 180px;
  }
}

/* --------------------------------------------------------------------------
   2. Reset & Core Globals
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-main);
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --------------------------------------------------------------------------
   3. Ambient Background Light Glows
   -------------------------------------------------------------------------- */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: -2;
  opacity: 0.35;
}

.ambient-pink {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, var(--accent-pink) 0%, transparent 70%);
}

.ambient-violet {
  width: 600px;
  height: 600px;
  bottom: -200px;
  left: -150px;
  background: radial-gradient(circle, var(--accent-violet) 0%, transparent 70%);
}

/* --------------------------------------------------------------------------
   4. Header & Navigation Bar
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 18, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-line);
  padding: 1.1rem 0;
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}

.brand-wordmark {
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.wordmark-accent {
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

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

/* Header preference controls ------------------------------------------------ */
.header-preferences {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.15rem;
}

.language-switcher {
  position: relative;
}

.language-switcher summary,
.theme-toggle-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--border-line);
  border-radius: 12px;
  color: var(--text-secondary);
  background: color-mix(in srgb, var(--bg-card) 72%, transparent);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.language-switcher summary {
  min-width: 66px;
  padding: 0 0.55rem;
  list-style: none;
}

.language-switcher summary::-webkit-details-marker { display: none; }

.preference-icon { color: var(--accent-violet); font-size: 1rem; line-height: 1; }
.language-current { color: var(--text-primary); }
.language-chevron { font-size: 0.95rem; line-height: 1; transition: transform var(--transition-fast); }
.language-switcher[open] .language-chevron { transform: rotate(180deg); }

.theme-toggle-btn { padding: 0 0.65rem; }
.theme-toggle-icon { font-size: 1rem; line-height: 1; color: var(--accent-pink); }

.language-switcher summary:hover,
.language-switcher[open] summary,
.theme-toggle-btn:hover,
.theme-toggle-btn:focus-visible {
  color: var(--text-primary);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  outline: none;
}

.language-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 210;
  width: 178px;
  padding: 0.35rem;
  display: grid;
  gap: 0.15rem;
  border: 1px solid var(--border-line);
  border-radius: 14px;
  background: var(--bg-card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

.language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem 0.6rem;
  border-radius: 9px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.language-option span:first-child { color: var(--text-primary); font-weight: 800; }
.language-option:hover, .language-option:focus-visible, .language-option.is-current {
  color: var(--text-primary);
  background: color-mix(in srgb, var(--accent-violet) 15%, transparent);
  outline: none;
}

html[data-theme="light"] .language-switcher summary,
html[data-theme="light"] .theme-toggle-btn { background: rgba(255, 255, 255, 0.76); }
html[data-theme="light"] .language-menu { box-shadow: 0 16px 40px rgba(34, 38, 60, 0.14); }

.badge-18 {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-line);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Hamburger Button (Hidden on Desktop > 850px) */
.hamburger-btn {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-line);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.hamburger-btn:focus-visible {
  outline: 2px solid var(--accent-pink);
  outline-offset: 2px;
}

.hamburger-bar {
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* Hamburger Active State ("X" Close Icon) */
.hamburger-btn.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Breakpoint (<= 850px) */
@media (max-width: 850px) {
  .site-header {
    padding: 0.85rem 0;
  }

  .brand-wordmark {
    font-size: 1.3rem;
  }

  .hamburger-btn {
    display: flex;
  }

  /* Mobile Dropdown Navigation */
  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.85rem);
    left: 0;
    right: 0;
    width: 100%;
    background: var(--bg-card, #121218);
    border-bottom: 1px solid var(--border-line);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem;
    gap: 0.25rem;
    z-index: 150;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
  }

  .nav-menu.is-active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-menu li {
    width: 100%;
  }

  .header-preferences {
    margin: 0.35rem 0 0;
    padding: 0.55rem 0.3rem 0.15rem;
    border-top: 1px solid var(--border-line);
  }

  .language-switcher,
  .language-switcher summary,
  .theme-toggle-btn {
    flex: 1;
  }

  .language-switcher summary,
  .theme-toggle-btn { min-height: 44px; justify-content: center; }
  .language-menu {
    top: calc(100% + 0.5rem);
    left: 0;
    right: auto;
    width: min(240px, calc(100vw - 3rem));
  }

  .nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    width: 100%;
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-pink);
  }
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-violet) 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(255, 45, 117, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 45, 117, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-line);
}

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

.btn-icon-round {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-line);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-like {
  background: rgba(255, 45, 117, 0.15);
  border-color: rgba(255, 45, 117, 0.4);
  color: var(--accent-pink);
}

.btn-like:hover {
  background: var(--accent-pink);
  color: #FFFFFF;
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(255, 45, 117, 0.6);
}

.btn-next {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.btn-next:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   6. Hero Section & Clean Smartphone Frame (Refined Premium Shadow)
   -------------------------------------------------------------------------- */
.hero-section {
  padding: var(--space-2xl) 0 var(--space-xl) 0;
}

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

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(128, 87, 255, 0.12);
  border: 1px solid rgba(128, 87, 255, 0.3);
  border-radius: var(--radius-pill);
  color: #B59BFF;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-pink);
  box-shadow: 0 0 10px var(--accent-pink);
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subheadline {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Refined Premium Smartphone Frame Shadow */
.swipe-app-frame {
  width: 100%;
  max-width: 390px;
  height: clamp(620px, 75vh, 730px);
  margin: 0 auto;
  background: #121218;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 42px;
  padding: 16px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.7),
    0 12px 24px -8px rgba(0, 0, 0, 0.5),
    0 0 30px -5px rgba(128, 87, 255, 0.12);
  display: flex;
  flex-direction: column;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

@media (max-width: 768px) {
  .swipe-app-frame {
    max-width: 345px;
    height: clamp(520px, 70vh, 600px);
    border-radius: 34px;
    padding: 12px;
    box-shadow: 
      0 20px 40px -10px rgba(0, 0, 0, 0.7),
      0 0 25px -5px rgba(128, 87, 255, 0.12);
  }
}

.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 8px 12px 8px;
}

.app-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.card-stack {
  position: relative;
  flex: 1;
  width: 100%;
}

.profile-card {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-line);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  touch-action: none;
  cursor: grab;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.profile-card.dragging {
  cursor: grabbing;
  transition: none;
}

/* Profile Photo Takes 68% of Visible Card Height */
.profile-img-wrap {
  position: relative;
  width: 100%;
  height: 68%;
  overflow: hidden;
  background-color: #191924;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Individual Object Position Fine-Tuning */
.img-pos-pic1 { object-position: center 15%; }
.img-pos-pic2 { object-position: center 20%; }
.img-pos-pic3 { object-position: center 15%; }
.img-pos-pic4 { object-position: center 15%; }
.img-pos-pic5 { object-position: center 15%; }
.img-pos-pic6 { object-position: center 15%; }
.img-pos-pic7 { object-position: center 15%; }

/* Like & Next Stamp Overlays */
.stamp-badge {
  position: absolute;
  top: 30px;
  padding: 6px 18px;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 3px solid;
  opacity: 0;
  pointer-events: none;
  transform: rotate(-15deg);
  transition: opacity 0.15s ease;
  z-index: 10;
}

.stamp-like {
  left: 24px;
  color: #2ECC71;
  border-color: #2ECC71;
}

.stamp-next {
  right: 24px;
  color: var(--accent-pink);
  border-color: var(--accent-pink);
  transform: rotate(15deg);
}

.profile-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
  background: var(--bg-card);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-age {
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.verify-badge {
  color: #38BDF8;
  display: inline-flex;
}

.profile-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* Natural English Bio Description */
.profile-bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* App Action Bar Buttons */
.app-actions {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 14px 0 4px 0;
  position: relative;
  z-index: 5;
  background: transparent;
}

/* Match Modal Overlay */
.match-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 18, 0.94);
  backdrop-filter: blur(12px);
  z-index: 20;
  border-radius: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.match-title {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.match-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.match-avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: -15px;
  margin-bottom: 24px;
}

.match-avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--accent-pink);
  overflow: hidden;
}

.match-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   8. How It Works Section (3 Steps)
   -------------------------------------------------------------------------- */
.steps-section {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-line);
  background: rgba(19, 19, 26, 0.5);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-xl) auto;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-pink);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

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

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  position: relative;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
}

.step-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  position: absolute;
  top: 16px;
  right: 20px;
}

.step-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(128, 87, 255, 0.12);
  color: var(--accent-violet);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.step-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-text {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   9. Features Grid Section
   -------------------------------------------------------------------------- */
.features-section {
  padding: var(--space-2xl) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(255, 45, 117, 0.12);
  color: var(--accent-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   10. Community Preview Section
   -------------------------------------------------------------------------- */
.community-section {
  padding: var(--space-2xl) 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-line);
  border-bottom: 1px solid var(--border-line);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.preview-card {
  background: var(--bg-main);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  position: relative;
}

.preview-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.preview-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.preview-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   11. Safety & Guidelines Section
   -------------------------------------------------------------------------- */
.safety-section {
  padding: var(--space-2xl) 0;
}

.safety-card {
  background: linear-gradient(135deg, rgba(25, 25, 34, 0.9) 0%, rgba(19, 19, 26, 0.9) 100%);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.safety-item {
  display: flex;
  gap: 12px;
}

.safety-icon {
  color: #38BDF8;
  flex-shrink: 0;
}

.safety-item-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.safety-item-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   12. Closing Section & Footer
   -------------------------------------------------------------------------- */
.closing-section {
  padding: var(--space-2xl) 0;
  text-align: center;
}

.site-footer {
  margin-top: auto;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border-line);
  background: var(--bg-main);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

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

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

.footer-link-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.footer-link-btn:hover {
  color: var(--text-primary);
}

/* Legal Pages (Privacy / Terms / Data Deletion) */
.legal-page {
  width: 100%;
  min-width: 0;
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-page h1 {
  color: var(--text-primary);
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.legal-page .legal-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  color: var(--text-primary);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-line);
}

.legal-page h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal-page p {
  margin-bottom: 0.9rem;
}

.legal-page ul {
  margin: 0 0 0.9rem 1.25rem;
  padding: 0;
}

.legal-page li {
  margin-bottom: 0.4rem;
}

.legal-page a {
  color: var(--accent-violet);
}

.legal-page .legal-toc {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
}

.legal-page .legal-toc a {
  color: var(--text-secondary);
  text-decoration: none;
}

.legal-page .legal-toc a:hover {
  color: var(--accent-violet);
}

.legal-page .legal-note {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  margin: 1.5rem 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
