/* ==========================================================================
   CYCLE - Woman's Health Landing Page CSS
   Design System & Theme Specifications
   ========================================================================== */

/* Google Fonts Import */
/* Google Fonts loaded via <link> in HTML head for non-blocking performance */

/* --- Theme Variables --- */
:root {
  /* Default: Sage Garden */
  --background: #A2B9A7;
  --background-rgb: 162, 185, 167;
  --card: #FFFFFF;
  --card-rgb: 255, 255, 255;
  --badge: #6B8071;
  --active-nav: #7A9382;
  --text: #2C3E35;
  --text-rgb: 44, 62, 53;
  --terracotta: #B58A7A;
  --terracotta-rgb: 181, 138, 122;
  --nurturing-bg: #FDF7F2;
  --cal-bg-top: #FCFAF8;
  --cal-bg-bottom: #F3EBE2;
  
  --navbar-bg: var(--text);
  --navbar-bg-rgb: var(--text-rgb);
  --navbar-text: var(--nurturing-bg);
  
  --shadow-color: rgba(44, 62, 53, 0.08);
  --shadow-hover: rgba(44, 62, 53, 0.15);
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 28px;
  --border-radius-xl: 40px;
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.25s ease;
}

[data-theme="clay"] {
  --background: #D6A38E;
  --background-rgb: 214, 163, 142;
  --card: #FFFFFF;
  --card-rgb: 255, 255, 255;
  --badge: #9E6F5C;
  --active-nav: #B58470;
  --text: #4A2C22;
  --text-rgb: 74, 44, 34;
  --terracotta: #8C5E47;
  --terracotta-rgb: 140, 94, 71;
  --nurturing-bg: #FDF6F0;
  --cal-bg-top: #FAF5F2;
  --cal-bg-bottom: #EFE2DB;
  
  --navbar-bg: var(--text);
  --navbar-bg-rgb: var(--text-rgb);
  --navbar-text: var(--nurturing-bg);
  
  --shadow-color: rgba(74, 44, 34, 0.08);
  --shadow-hover: rgba(74, 44, 34, 0.15);
}

[data-theme="lavender"] {
  --background: #C5B4C9;
  --background-rgb: 197, 180, 201;
  --card: #FFFFFF;
  --card-rgb: 255, 255, 255;
  --badge: #8B7791;
  --active-nav: #9F8CA6;
  --text: #38293D;
  --text-rgb: 56, 41, 61;
  --terracotta: #83628A;
  --terracotta-rgb: 131, 98, 138;
  --nurturing-bg: #F8F4F9;
  --cal-bg-top: #FAF6FC;
  --cal-bg-bottom: #EFE5F2;
  
  --navbar-bg: var(--text);
  --navbar-bg-rgb: var(--text-rgb);
  --navbar-text: var(--nurturing-bg);
  
  --shadow-color: rgba(56, 41, 61, 0.08);
  --shadow-hover: rgba(56, 41, 61, 0.15);
}

[data-theme="midnight"] {
  --background: #1E262C;
  --background-rgb: 30, 38, 44;
  --card: #2C353E;
  --card-rgb: 44, 53, 62;
  --badge: #3E4A56;
  --active-nav: #4C5D6C;
  --text: #E8EEF5;
  --text-rgb: 232, 238, 245;
  --terracotta: #D68F7D;
  --terracotta-rgb: 214, 143, 125;
  --nurturing-bg: #38434E;
  --cal-bg-top: #2D363E;
  --cal-bg-bottom: #1F272E;
  
  --navbar-bg: #151A1E;
  --navbar-bg-rgb: 21, 26, 30;
  --navbar-text: var(--text);
  
  --shadow-color: rgba(0, 0, 0, 0.2);
  --shadow-hover: rgba(0, 0, 0, 0.35);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  font-family: var(--font-sans);
  background: linear-gradient(135deg, rgba(var(--background-rgb), 0.85) 0%, var(--nurturing-bg) 50%, rgba(var(--background-rgb), 0.7) 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: color 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

section {
  
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
}

/* --- Layout Elements --- */
.container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

/* --- Side Dot Navigation --- */
.side-dots {
  position: fixed;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.side-dots.visible {
  opacity: 1;
}

.side-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(var(--text-rgb), 0.2);
  border: 1.5px solid rgba(var(--text-rgb), 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  display: block;
}

.side-dot:hover {
  background: rgba(var(--text-rgb), 0.4);
  transform: scale(1.3);
}

.side-dot.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(var(--terracotta-rgb), 0.4);
}

@media (max-width: 768px) {
  .side-dots {
    left: 0.75rem;
    gap: 10px;
  }
  .side-dot {
    width: 8px;
    height: 8px;
  }
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition-smooth);
  background-color: var(--navbar-bg);
  color: var(--navbar-text);
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background-color: rgba(var(--navbar-bg-rgb), 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px var(--shadow-color);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .navbar.scrolled .logo-svg path {
    fill: #FFFFFF !important;
  }
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.logo-svg {
  display: inline-block;
  height: 40px;
  width: auto;
  transition: var(--transition-smooth);
}

.logo-svg path {
  fill: currentColor;
  transition: fill 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.8;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  opacity: 1;
  color: var(--terracotta);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--terracotta);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.theme-picker-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.35rem;
  border-radius: 50px;
}

.theme-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition-fast);
}

.theme-dot:hover {
  transform: scale(1.15);
}

.theme-dot.active {
  border-color: var(--navbar-text);
  box-shadow: 0 0 6px var(--terracotta);
}

.theme-dot.sage { background-color: #A2B9A7; }
.theme-dot.clay { background-color: #D6A38E; }
.theme-dot.lavender { background-color: #C5B4C9; }
.theme-dot.midnight { background-color: #1E262C; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(var(--background-rgb), 0.55) 0%, var(--nurturing-bg) 100%);
  padding-top: 8rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--background-rgb), 0.3) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  animation: float 20s ease-in-out infinite alternate;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.badge-tag {
  align-self: flex-start;
  background: rgba(var(--text-rgb), 0.06);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--badge);
  border: 1px solid rgba(var(--text-rgb), 0.05);
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  color: var(--text);
}

.hero-title span {
  font-style: italic;
  color: var(--terracotta);
}

.hero-description {
  font-size: 1.15rem;
  opacity: 0.85;
  max-width: 520px;
  margin-bottom: 1.5rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Custom Store Buttons --- */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--text);
  color: var(--nurturing-bg);
  padding: 0.75rem 1.6rem;
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 15px var(--shadow-color);
  font-weight: 600;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-hover);
  background: var(--terracotta);
  color: white;
}

.store-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-btn-text span:first-child {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.8;
  text-transform: uppercase;
}

.store-btn-text span:last-child {
  font-size: 0.95rem;
  font-weight: 600;
}

.store-btn.secondary {
  background: transparent;
  color: inherit;
  border: 1.5px solid currentColor;
  box-shadow: none;
}

.store-btn.secondary:hover {
  background: var(--text);
  color: var(--card);
}

/* --- Hero Mockup Graphics --- */
.hero-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.device-frame {
  width: 290px;
  height: 590px;
  background: #111;
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  border: 4px solid #333;
  position: relative;
  z-index: 2;
}

.device-screen {
  width: 100%;
  height: 100%;
  background: var(--nurturing-bg);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-size: 12px;
  padding: 1rem;
}

/* Mockup UI Design */
.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  margin-top: 0.5rem;
}

.mock-logo {
  display: flex;
  align-items: center;
  color: var(--text);
}

.mock-logo .logo-svg {
  height: 20px;
  width: auto;
}

.mock-profile {
  font-weight: 600;
  background: rgba(var(--text-rgb), 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 10px;
}

.mock-cycle-card {
  background: var(--card);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 20px var(--shadow-color);
  margin-bottom: 1rem;
  border: 1px solid rgba(var(--text-rgb), 0.03);
}

.mock-cycle-circle {
  width: 130px;
  height: 130px;
  position: relative;
  margin: 0.5rem 0 1rem;
}

.mock-circle-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.mock-circle-track {
  fill: none;
  stroke: rgba(var(--text-rgb), 0.06);
  stroke-width: 8;
}

.mock-circle-progress {
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 377;
  stroke-dashoffset: 240;
  transition: var(--transition-smooth);
}

.mock-circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
}

.mock-circle-text .day {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.mock-circle-text .phase {
  font-size: 8px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.mock-status {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.9;
}

.mock-status span {
  font-weight: 700;
  color: var(--terracotta);
}

.mock-nurture-card {
  background: var(--cal-bg-bottom);
  border-radius: var(--border-radius-md);
  padding: 0.9rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(var(--text-rgb), 0.02);
}

.mock-nurture-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--badge);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.mock-nurture-text {
  font-size: 10px;
  line-height: 1.4;
  opacity: 0.85;
}

.mock-navbar {
  position: absolute;
  bottom: 12px;
  left: 20px;
  right: 20px;
  height: 48px;
  background: var(--card);
  border-radius: 30px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 4px 15px var(--shadow-color);
  padding: 0 1rem;
}

.mock-nav-item {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(var(--text-rgb), 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-nav-item.active {
  background: var(--active-nav);
  color: white;
}

.mock-nav-item svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* Background blob graphics */
.mockup-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 1;
}

.mockup-blob-1 {
  width: 250px;
  height: 250px;
  background: rgba(var(--background-rgb), 0.4);
  top: -20px;
  left: -40px;
}

.mockup-blob-2 {
  width: 200px;
  height: 200px;
  background: rgba(214, 143, 125, 0.3);
  bottom: 20px;
  right: -30px;
}

/* --- Privacy Section --- */
.privacy-section {
  background-color: var(--card);
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.section-pretitle {
  color: var(--terracotta);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.75rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.privacy-intro {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 2.5rem;
}

.privacy-feature {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.privacy-icon {
  width: 48px;
  height: 48px;
  background: rgba(var(--background-rgb), 0.15);
  color: var(--badge);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.privacy-feature-title {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.privacy-feature-text {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Visual Vault Container */
.vault-visual-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.vault-card {
  background: var(--nurturing-bg);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(var(--text-rgb), 0.05);
  box-shadow: 0 10px 30px var(--shadow-color);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.vault-icon-large {
  font-size: 3.5rem;
  color: var(--terracotta);
  margin-bottom: 1rem;
  animation: pulse 3s infinite;
}

.vault-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

.comparison-box {
  padding: 1.25rem;
  border-radius: var(--border-radius-md);
  text-align: left;
  font-size: 0.85rem;
}

.comparison-box.other {
  background: rgba(220, 53, 69, 0.06);
  border: 1px dashed rgba(220, 53, 69, 0.2);
  color: #a72836;
}

.comparison-box.other h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.comparison-box.cycle {
  background: rgba(var(--background-rgb), 0.12);
  border: 1px solid rgba(var(--background-rgb), 0.3);
  color: var(--text);
}

.comparison-box.cycle h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.comparison-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.comparison-box ul li {
  position: relative;
  padding-left: 1rem;
}

.comparison-box.other ul li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #dc3545;
}

.comparison-box.cycle ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--badge);
  font-weight: 700;
}

/* --- Features Section --- */
.features-section {
  background-color: var(--nurturing-bg);
}

.features-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--card);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: 0 10px 35px var(--shadow-color);
  transition: var(--transition-smooth);
  border: 1px solid rgba(var(--text-rgb), 0.02);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--shadow-hover);
  border-color: rgba(var(--terracotta-rgb), 0.2);
}

.feature-badge-icon {
  width: 54px;
  height: 54px;
  background: rgba(var(--background-rgb), 0.1);
  color: var(--badge);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.95rem;
  opacity: 0.8;
  line-height: 1.6;
}

.feature-tag-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1rem;
}

.feature-tag {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(var(--text-rgb), 0.04);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  opacity: 0.8;
}

/* --- Interactive Widget Section --- */
.interactive-section {
}

.interactive-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.calc-panel {
  background: var(--nurturing-bg);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(var(--text-rgb), 0.05);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.calc-form-group {
  margin-bottom: 1.5rem;
}

.calc-form-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.calc-form-group label span.val {
  color: var(--terracotta);
  font-weight: 700;
}

.calc-range {
  width: 100%;
  accent-color: var(--terracotta);
  height: 6px;
  border-radius: 3px;
  background: rgba(var(--text-rgb), 0.1);
  outline: none;
  -webkit-appearance: none;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--terracotta);
  cursor: pointer;
  transition: transform 0.1s ease;
  border: 2px solid var(--card);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Theme picker studio */
.studio-picker {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(var(--text-rgb), 0.08);
}

.studio-picker-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.studio-btn-theme {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  background: var(--card);
  border: 1.5px solid transparent;
  padding: 0.6rem;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.75rem;
  font-weight: 600;
}

.studio-btn-theme:hover {
  border-color: rgba(var(--text-rgb), 0.15);
}

.studio-btn-theme.active {
  border-color: var(--terracotta);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.studio-color-preview {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Prediction Viewer */
.predict-viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.predict-visualizer {
  width: 280px;
  height: 280px;
  position: relative;
  margin-bottom: 2rem;
}

.predict-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.predict-circle-track {
  fill: none;
  stroke: rgba(var(--text-rgb), 0.05);
  stroke-width: 12;
}

.predict-arc {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.4s ease;
}

.predict-arc.menstruation { stroke: #E29B8B; } /* Soft terracotta rose */
.predict-arc.follicular { stroke: #A9C2B0; }    /* Sage tint */
.predict-arc.ovulatory { stroke: #D29A62; }     /* Gold amber */
.predict-arc.luteal { stroke: #9B829C; }        /* Lilac */

.predict-marker {
  width: 14px;
  height: 14px;
  background: var(--terracotta);
  border: 2px solid white;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
  z-index: 5;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.predict-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.predict-day-label {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0.6;
}

.predict-day-num {
  font-size: 52px;
  font-weight: 700;
  font-family: var(--font-serif);
  line-height: 1.1;
  color: var(--text);
}

.predict-phase-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--terracotta);
}

/* Details Panel showing nutrition and sport recommendations */
.predict-details {
  background: var(--nurturing-bg);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  width: 100%;
  border: 1px solid rgba(var(--text-rgb), 0.04);
}

.details-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(var(--text-rgb), 0.08);
  padding-bottom: 0.5rem;
}

.details-tab-btn {
  background: none;
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  color: var(--text);
  opacity: 0.6;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.details-tab-btn:hover {
  opacity: 1;
}

.details-tab-btn.active {
  opacity: 1;
  color: var(--terracotta);
}

.details-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--terracotta);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.recommendation-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.recommendation-list li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.recommendation-list li .bullet {
  color: var(--terracotta);
  font-weight: 700;
}

/* --- Footer Area --- */
footer {
  background-color: var(--text);
  color: var(--nurturing-bg);
  padding: 5rem 0 2rem;
  font-size: 0.9rem;
  
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  color: var(--nurturing-bg);
}

.footer-logo .logo-svg {
  height: 54px;
  width: auto;
}

.footer-tagline {
  opacity: 0.7;
  max-width: 320px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  opacity: 0.7;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--terracotta);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0.6;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Legal Subpages Layout (Impressum & Datenschutzerklärung)
   ========================================================================== */
.legal-body {
  background-color: var(--nurturing-bg);
}

.legal-header {
  background: linear-gradient(135deg, rgba(var(--background-rgb), 0.25) 0%, var(--nurturing-bg) 100%);
  padding: 8rem 0 3rem;
  border-bottom: 1px solid rgba(var(--text-rgb), 0.06);
}

.legal-title {
  font-size: 3.5rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.legal-meta {
  font-size: 0.9rem;
  opacity: 0.6;
}

.legal-content-section {
  padding: 4rem 0 6rem;
  background-color: var(--card);
}

.legal-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 4rem;
}

.legal-text {
  font-size: 1rem;
  line-height: 1.7;
}

.legal-text h2 {
  font-size: 1.75rem;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  border-bottom: 1px solid rgba(var(--text-rgb), 0.08);
  padding-bottom: 0.5rem;
}

.legal-text h3 {
  font-size: 1.25rem;
  color: var(--text);
  margin: 1.5rem 0 0.75rem;
}

.legal-text p {
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

.legal-text ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-text ul li {
  opacity: 0.9;
}

.legal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-box {
  background: var(--nurturing-bg);
  border-radius: var(--border-radius-md);
  padding: 1.75rem;
  border: 1px solid rgba(var(--text-rgb), 0.04);
}

.sidebar-box h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.sidebar-box p {
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.sidebar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--terracotta);
}

.sidebar-link:hover {
  gap: 0.6rem;
}

/* ==========================================================================
   Animations & Transitions & Media Queries
   ========================================================================== */
@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .hero-grid, .privacy-grid, .interactive-grid {
    gap: 3rem;
  }
}

@media (max-width: 900px) {
  section {
    padding: 4rem 0;
  }
  .navbar {
    padding: 1rem 0;
    background-color: rgba(var(--card-rgb), 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(var(--text-rgb), 0.05);
    color: var(--text);
  }
  .mobile-menu-btn {
    display: block;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--card);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 10px 25px var(--shadow-color);
    border-top: 1px solid rgba(var(--text-rgb), 0.05);
    display: none;
  }
  .nav-menu.open {
    display: flex;
    animation: fadeIn 0.3s ease;
  }
  .hero {
    padding-top: 6rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-content {
    align-items: center;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .cta-group {
    justify-content: center;
  }
  .privacy-grid, .interactive-grid, .legal-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .vault-card {
    padding: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .vault-comparison {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  .container {
    padding: 0 1.25rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .device-frame {
    width: 260px;
    height: 530px;
  }
  .mock-cycle-circle {
    width: 100px;
    height: 100px;
  }
  .predict-visualizer {
    width: 240px;
    height: 240px;
  }
  .predict-day-num {
    font-size: 42px;
  }
  .store-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   6. Centered Larger Logo & Scroll-Thread Animation Styles
   ========================================================================== */
@media (min-width: 900px) {
  .nav-container {
    display: grid !important;
    grid-template-areas: 
      ". logo theme"
      "menu menu menu";
    grid-template-columns: 1fr auto 1fr;
    justify-content: center;
    align-items: center;
    gap: 0.75rem 2rem !important;
  }
  
  .logo-link {
    grid-area: logo;
    justify-self: center;
    flex-direction: column !important;
    transition: var(--transition-smooth);
  }
  
  .logo-svg {
    height: 70px !important;
  }
  
  .nav-menu {
    grid-area: menu;
    justify-self: center;
  }
  
  .theme-picker-nav {
    grid-area: theme;
    justify-self: end;
  }
  
  /* Scrolled header state adjusts sizes to look compact but remains centered */
  .navbar.scrolled .nav-container {
    gap: 0.5rem 2rem !important;
  }
  .navbar.scrolled .logo-svg {
    height: 48px !important;
  }
}



/* ==========================================================================
   7. Onboarding Drifting Bubbles Background (App Style)
   ========================================================================== */
.bubbles-background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 43% 57% 65% 35% / 40% 45% 55% 60%;
  mix-blend-mode: multiply;
  filter: blur(60px);
  opacity: 0.38;
  transition: background-color 0.6s ease;
}

[data-theme="midnight"] .bubble {
  mix-blend-mode: screen;
  opacity: 0.18;
}

.bubble-1 {
  width: 350px;
  height: 280px;
  background-color: rgba(var(--background-rgb), 0.45);
  top: -80px;
  left: -100px;
  animation: driftA 38s infinite alternate ease-in-out;
}

.bubble-2 {
  width: 320px;
  height: 260px;
  background-color: rgba(var(--terracotta-rgb), 0.35);
  top: 15%;
  right: -90px;
  animation: driftB 52s infinite alternate ease-in-out;
}

.bubble-3 {
  width: 280px;
  height: 220px;
  background-color: rgba(var(--background-rgb), 0.32);
  bottom: 10%;
  left: -80px;
  animation: driftB 45s infinite alternate ease-in-out;
}

.bubble-4 {
  width: 380px;
  height: 310px;
  background-color: rgba(var(--terracotta-rgb), 0.28);
  bottom: -90px;
  right: -100px;
  animation: driftA 48s infinite alternate ease-in-out;
}

.bubble-5 {
  width: 240px;
  height: 200px;
  background-color: rgba(var(--text-rgb), 0.08);
  top: 45%;
  left: 30%;
  animation: driftC 42s infinite alternate ease-in-out;
}

@keyframes driftA {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    border-radius: 43% 57% 65% 35% / 40% 45% 55% 60%;
  }
  50% {
    transform: translate(30px, -20px) rotate(90deg) scale(1.08);
    border-radius: 55% 45% 35% 65% / 60% 50% 40% 50%;
  }
  100% {
    transform: translate(-20px, 40px) rotate(180deg) scale(0.95);
    border-radius: 35% 65% 55% 45% / 45% 60% 50% 55%;
  }
}

@keyframes driftB {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%;
  }
  50% {
    transform: translate(-40px, 30px) rotate(-120deg) scale(0.92);
    border-radius: 70% 30% 60% 40% / 40% 50% 60% 50%;
  }
  100% {
    transform: translate(15px, -30px) rotate(-240deg) scale(1.06);
    border-radius: 40% 60% 50% 50% / 50% 40% 60% 50%;
  }
}

@keyframes driftC {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate(25px, 25px) rotate(60deg) scale(1.1);
  }
  100% {
    transform: translate(-25px, -25px) rotate(120deg) scale(0.9);
  }
}

/* ==========================================================================
   8. Hero Intro Screen (Giant Centered Logo)
   ========================================================================== */
.hero-intro {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 2rem;
  
  background: transparent;
  overflow: hidden;
}

.hero-intro::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--background-rgb), 0.3) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  animation: float 20s ease-in-out infinite alternate;
}

.hero-intro-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: fadeInDown 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-intro-logo {
  width: auto;
  height: 250px;
  fill: var(--text);
  filter: drop-shadow(0 10px 25px var(--shadow-color));
  animation: pulseLogo 4s infinite ease-in-out;
}

.hero-intro-title {
  font-size: 5.5rem;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
  line-height: 1;
}

.hero-intro-subtitle {
  font-size: 1.45rem;
  font-family: var(--font-sans);
  font-weight: 500;
  opacity: 0.85;
  color: var(--text);
  max-width: 600px;
  margin-top: 0.5rem;
}

/* Animated background thread in hero */
.hero-thread-bg-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35; /* Transparent as requested */
  overflow: visible; /* Allows the path to extend down the whole page */
}

.hero-thread-path {
  /* Managed by Javascript for scroll tracking */
  stroke: var(--text);
}

/* Hero Intro Container Animation */
.hero-intro-anim-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  z-index: 2;
  position: relative;
  animation: moveUpIntro 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 0.3s;
}

@keyframes moveUpIntro {
  to {
    transform: translateY(-8vh);
  }
}

/* Theme Selector in Hero */
.hero-theme-selector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInSelector 0.6s forwards;
  animation-delay: 0.5s;
}

@keyframes fadeInSelector {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-theme-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  opacity: 0.85;
  font-family: var(--font-sans);
}

.theme-picker-hero {
  display: flex;
  gap: 1.2rem;
  background: var(--card-bg);
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  box-shadow: 0 8px 20px var(--shadow-color);
  border: 1px solid rgba(0,0,0,0.03);
  transition: var(--transition-fast);
}

.theme-picker-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--shadow-hover);
}

/* Scroll indicator link */
.scroll-indicator-link {
  position: absolute;
  bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.7;
  color: var(--text);
  transition: var(--transition-fast);
  animation: bounceArrow 2s infinite;
}

.scroll-indicator-link:hover {
  opacity: 1;
  color: var(--terracotta);
}

.scroll-arrow {
  font-size: 1.5rem;
  font-weight: bold;
}

/* Keyframe animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseLogo {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 10px 25px var(--shadow-color));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 35px var(--shadow-hover));
  }
}

@keyframes bounceArrow {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* Hero Section adjustments */
.hero {
  min-height: auto;
  display: block;
  padding-top: 0;
}

/* Navbar fading behavior */
.navbar {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.navbar.scrolled, .legal-body .navbar {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Responsive adjustments for Intro Screen */
@media (max-width: 768px) {
  .hero-intro-title {
    font-size: 4rem;
  }
  .hero-intro-subtitle {
    font-size: 1.2rem;
  }
  .hero-intro-logo {
    height: 180px;
    width: auto;
  }
}



/* ==========================================================================
   REDESIGN SECTIONS
   ========================================================================== */

/* --- PAGE 2: PRICING --- */
.hero-pricing-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  text-align: center;
}

.hero-pricing-container {
  max-width: 900px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.pricing-hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.pricing-pretitle {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--terracotta);
}

.pricing-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  font-weight: 700;
  color: var(--text);
}

.pricing-accent {
  background: linear-gradient(135deg, var(--terracotta), var(--text));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--card);
  padding: 1.5rem 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 15px 40px var(--shadow-color);
  border: 2px solid rgba(var(--terracotta-rgb), 0.2);
  margin: 1rem 0;
}

.pricing-amount {
  font-size: 4rem;
  font-weight: 800;
  font-family: var(--font-serif);
  color: var(--terracotta);
  line-height: 1;
}

.pricing-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.6;
  margin-top: 0.25rem;
}

.pricing-subtext {
  font-size: 1.3rem;
  font-weight: 500;
  opacity: 0.7;
  font-style: italic;
}

.pricing-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
  width: 100%;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(var(--card-rgb), 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.25rem;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(var(--text-rgb), 0.08);
  text-align: left;
  transition: var(--transition-fast);
}

.pricing-feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow-color);
  border-color: rgba(var(--terracotta-rgb), 0.3);
}

.pricing-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(var(--terracotta-rgb), 0.1);
  color: var(--terracotta);
  border-radius: 10px;
  flex-shrink: 0;
}

.pricing-feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--terracotta);
}

.pricing-feature-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.pricing-feature-item p {
  font-size: 0.8rem;
  opacity: 0.85;
  line-height: 1.4;
  margin: 0;
}

/* --- PAGE 3: FOUNDER --- */
.founder-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  position: relative;
  z-index: 2;
}

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.founder-image-wrapper {
  position: relative;
  overflow: visible; /* Allow the giant watermark woman to overflow */
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1; /* Stacking context so z-index: -1 stays above section background */
  border: none;
}

.founder-woman-svg {
  position: absolute;
  width: 200%; /* Large watermark style */
  height: 200%;
  top: -50%;
  left: -50%;
  color: var(--text);
  z-index: -1; /* Behind the content text */
  pointer-events: none;
  opacity: 0.15; /* Same transparency as the winding line */
  overflow: visible;
}

.founder-woman-paths {
  fill: currentColor;
  /* Reveal mask using CSS variable managed by JS */
  mask-image: linear-gradient(to bottom, black 0%, black var(--reveal-percent, 0%), transparent calc(var(--reveal-percent, 0%) + 10%), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black var(--reveal-percent, 0%), transparent calc(var(--reveal-percent, 0%) + 10%), transparent 100%);
}



.founder-placeholder-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.founder-placeholder-icon {
  font-size: 5rem;
  opacity: 0.4;
}

.image-hint {
  opacity: 0.4;
  font-size: 0.85rem;
  font-style: italic;
}

.founder-quote {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic;
  line-height: 1.7;
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 4px solid var(--terracotta);
  color: var(--text);
  font-family: var(--font-serif);
}

.social-impact-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(var(--text-rgb), 0.04);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(var(--text-rgb), 0.06);
}

.social-impact-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.social-impact-note {
  font-size: 1rem;
  opacity: 0.8;
  line-height: 1.6;
}

/* --- PAGE 4: ENGINE --- */
.engine-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  position: relative;
  z-index: 2;
}

.engine-header {
  text-align: center;
  margin-bottom: 4rem;
}

.engine-subtitle {
  font-size: 1.25rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 1rem auto 0;
}

.engine-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* --- PAGE 5: DEMO --- */
.demo-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  position: relative;
  z-index: 2;
}

.demo-header {
  text-align: center;
  margin-bottom: 3rem;
}

.demo-subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
  max-width: 700px;
  margin: 1rem auto 0;
}

.demo-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 3rem;
  background: rgba(var(--text-rgb), 0.03);
  border-radius: 24px;
  padding: 3rem;
  border: 1px solid rgba(var(--text-rgb), 0.05);
}

.demo-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.release-status-box {
  background: rgba(var(--card-rgb), 0.5);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(var(--text-rgb), 0.08);
}

.release-status-box h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.status-indicator-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

.status-pulse {
  width: 12px;
  height: 12px;
  background-color: var(--terracotta);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--terracotta-rgb), 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(var(--terracotta-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--terracotta-rgb), 0); }
}

.release-info {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.release-stores {
  font-size: 0.85rem;
  opacity: 0.65;
  line-height: 1.5;
}

.demo-controls h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.demo-btn {
  width: 100%;
  padding: 0.9rem 1.5rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(var(--text-rgb), 0.15);
  background: rgba(var(--text-rgb), 0.05);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.9rem;
}

.demo-btn:hover {
  background: var(--terracotta);
  color: white;
  border-color: var(--terracotta);
  transform: translateY(-2px);
}

.demo-iframe-wrapper {
  background: var(--card);
  border-radius: 20px;
  border: 2px solid rgba(var(--text-rgb), 0.08);
  overflow: hidden;
  position: relative;
  min-height: 450px;
  box-shadow: 0 20px 40px var(--shadow-color);
}

.iframe-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: rgba(var(--text-rgb), 0.02);
}

.placeholder-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.35;
}

.iframe-placeholder p {
  max-width: 300px;
  opacity: 0.6;
  line-height: 1.5;
}

.app-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- RESPONSIVE: NEW SECTIONS --- */
@media (max-width: 1100px) {
  .engine-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .founder-grid {
    grid-template-columns: 1fr;
  }
  .founder-image-wrapper {
    aspect-ratio: 16/9;
    max-height: 300px;
  }
  .engine-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .demo-layout {
    grid-template-columns: 1fr;
  }
  .pricing-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .pricing-feature-item {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .engine-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .pricing-badge {
    padding: 1rem 2rem;
  }
  .pricing-amount {
    font-size: 3rem;
  }
}



/* --- New Combined Hero & Pricing --- */
.hero-section-combined {
  position: relative;
  min-height: 100vh;
}

.hero-sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 2rem;
}

.hero-initial-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 800px;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.8s ease;
  z-index: 10;
}

.hero-initial-text h1 {
  font-size: 4rem;
  line-height: 1.15;
  color: var(--text);
}

.scroll-indicator {
  margin-top: 3rem;
  animation: bounce 2s infinite;
  color: var(--terracotta);
  display: inline-block;
}

.hero-revealed-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 150%);
  width: 100%;
  max-width: 600px;
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.8s ease;
  z-index: 5;
}

.hero-sticky-container.revealed .hero-initial-text {
  transform: translate(-50%, -150%);
  opacity: 0;
}

.hero-sticky-container.revealed .hero-revealed-content {
  transform: translate(-50%, -50%);
  opacity: 1;
}

.pricing-badge-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.pricing-amount {
  font-size: 6rem;
  font-weight: 700;
  font-family: var(--font-serif);
  line-height: 1;
  color: var(--terracotta);
}

.pricing-label {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.pricing-description {
  font-size: 1.25rem;
  line-height: 1.6;
  opacity: 0.9;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(10px); }
  60% { transform: translateY(5px); }
}

@media (max-width: 768px) {
  .hero-initial-text h1 {
    font-size: 2.5rem;
  }
  .pricing-amount {
    font-size: 4rem;
  }
}


.founder-image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px var(--shadow-color);
  min-height: 400px;
  background-color: rgba(0, 0, 0, 0.05); /* In case image is missing */
}





/* Update Pricing for Horizontal Scroll */
.hero-pricing-section {
  min-height: 300vh !important;
  display: block !important;
  padding: 0 !important;
  overflow: visible !important;
}

.pricing-sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.pricing-horizontal-track {
  display: flex;
  height: 100%;
  width: 300vw;
  will-change: transform;
}

.pricing-panel {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  box-sizing: border-box;
}

.pricing-badge-large {
  margin-top: 0 !important;
}
.pricing-description {
  margin: 1.5rem auto 0 !important;
}

/* ==========================================================================
   THEMES SHOWCASE SECTION
   ========================================================================== */
.themes-showcase-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  position: relative;
  z-index: 2;
}

.themes-header {
  text-align: center;
  margin-bottom: 3rem;
}

.themes-subtitle {
  font-size: 1.1rem;
  opacity: 0.75;
  max-width: 550px;
  margin: 1rem auto 0;
  line-height: 1.5;
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.theme-preview-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: rgba(var(--card-rgb), 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--text-rgb), 0.08);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
  cursor: pointer;
}

.theme-preview-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px var(--shadow-color);
  border-color: rgba(var(--terracotta-rgb), 0.3);
}

.theme-preview-card img {
  width: 100%;
  height: auto;
  display: block;
}

.theme-preview-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #fff;
}

/* ==========================================================================
   MOBILE RESPONSIVE FIXES
   ========================================================================== */
@media (max-width: 768px) {
  /* Themes grid: 2x2 on mobile */
  .themes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .themes-showcase-section,
  .founder-section,
  .engine-section,
  .demo-section {
    min-height: auto;
    padding: 4rem 0 !important;
  }

  .themes-subtitle {
    font-size: 0.95rem;
  }

  /* Pricing horizontal scroll on mobile */
  .hero-pricing-section {
    min-height: auto !important;
    height: auto !important;
  }

  .pricing-sticky-container {
    position: relative !important;
    height: auto !important;
  }

  .pricing-horizontal-track {
    flex-direction: column !important;
    width: 100% !important;
    transform: none !important;
  }

  .pricing-panel {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    padding: 2.5rem 1.5rem !important;
  }

  /* Pricing features: single column on small screens */
  .pricing-features {
    grid-template-columns: 1fr !important;
  }

  /* Founder grid: stack vertically */
  .founder-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .founder-image-wrapper {
    aspect-ratio: auto !important;
    max-height: 300px;
  }

  /* Engine grid: 2 columns on tablet */
  .engine-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Demo layout: stack vertically */
  .demo-layout {
    grid-template-columns: 1fr !important;
    padding: 2rem !important;
  }

  .demo-sidebar {
    width: 100% !important;
  }

  .demo-iframe-wrapper {
    width: 100% !important;
  }

  /* Side dots: hide on very small screens */
  .side-dots {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .themes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  /* Engine grid: 1 column on phone */
  .engine-grid {
    grid-template-columns: 1fr !important;
  }

  .theme-preview-label {
    font-size: 0.7rem;
    padding: 0.5rem;
  }

  .pricing-headline {
    font-size: 1.8rem !important;
  }

  .pricing-amount {
    font-size: 3rem !important;
  }

  .section-title {
    font-size: 1.6rem !important;
  }
}

/* ==========================================================================
   DEMO BETA PLACEHOLDER
   ========================================================================== */
.demo-beta-placeholder {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(var(--card-rgb), 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(var(--text-rgb), 0.08);
}

.beta-icon {
  color: var(--terracotta);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.beta-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.beta-description {
  font-size: 1.05rem;
  opacity: 0.8;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}
