/* ==========================================================================
   TULIPA — DESIGN SYSTEM & BASE STYLES
   ========================================================================== */

:root {
  /* Palette */
  --void:            #0B0715;   /* near-black, deep field midnight */
  --field-depth:     #1A0A2E;   /* dark violet, far horizon night */
  --monsoon-mist:    #F0EAF8;   /* off-white lavender, background */
  --velvet-rose:     #E8A0BF;   /* soft dusty pink, primary warmth */
  --tulip-violet:    #9B5DE5;   /* electric lavender, accent + CTA */
  --golden-hour:     #F4C842;   /* warm gold, title stroke accents */
  --botanical-green: #2A5C45;   /* deep forest green, stems + text */
  --mist-white:      rgba(240, 234, 248, 0.08); /* glass panels */
  --glass-bg:        rgba(255, 255, 255, 0.45);
  --glass-border:    rgba(255, 255, 255, 0.7);

  /* Typography Scale */
  --text-hero:       clamp(60px, 12vw, 180px);
  --text-display:    clamp(36px, 5.5vw, 72px);
  --text-heading:    clamp(22px, 2.5vw, 32px);
  --text-body:       17px;
  --text-label:      13px;
  --text-micro:      11px;

  /* Motion */
  --ease-bloom:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-petal:      cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-wind:       cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Base Reset & Styling */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  background-color: var(--void);
  color: var(--monsoon-mist);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none; /* Hide scrollbar for clean aesthetic */
}

body::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

/* Custom Cursor Hide */
* {
  cursor: none !important;
}

input, select, textarea, button {
  cursor: none !important; /* Force override for custom cursor */
}

/* Typography Utility */
.font-display {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'SOFT' 80, 'WONK' 1;
}

.font-mono {
  font-family: 'Fragment Mono', monospace;
  letter-spacing: 0.1em;
}

/* Navigation Pill */
.nav-pill {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 7, 21, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(240, 234, 248, 0.15);
  border-radius: 50px;
  padding: 10px 28px;
  display: flex;
  gap: 28px;
  z-index: 1000;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.nav-link {
  text-decoration: none;
  font-family: 'Fragment Mono', monospace;
  font-size: var(--text-label);
  color: rgba(240, 234, 248, 0.6);
  letter-spacing: 0.12em;
  transition: color 0.3s var(--ease-bloom), text-shadow 0.3s;
}

.nav-link.active {
  color: var(--velvet-rose);
  text-shadow: 0 0 10px rgba(232, 160, 191, 0.6);
}

.nav-link:hover {
  color: var(--monsoon-mist);
}

/* Main Canvas Layer */
#cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* ==========================================================================
   SECTION 1 — HERO: THE FIELD AT FIRST LIGHT
   ========================================================================== */

.hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: radial-gradient(ellipse 150% 80% at 50% 120%,
    #F4C842 0%, #E8A0BF 30%, #C084C0 55%, #7C3AED 80%, #1A0A2E 100%);
}

.hero-layer {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  pointer-events: none;
  will-change: transform;
}

.hero-layer-far {
  width: 120%;
  height: 25%;
  z-index: 1;
  opacity: 0.4;
}

.hero-layer-mid {
  width: 110%;
  height: 35%;
  z-index: 2;
  opacity: 0.7;
}

.hero-layer-near {
  width: 100%;
  height: 45%;
  z-index: 3;
}

.hero-mist {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  mix-blend-mode: screen;
}

.mist-orb {
  position: absolute;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: floatMist 12s ease-in-out infinite alternate;
}

.mist-orb-1 {
  background: radial-gradient(circle, #fff, transparent 70%);
  bottom: -10%;
  left: 10%;
}

.mist-orb-2 {
  background: radial-gradient(circle, var(--velvet-rose), transparent 70%);
  bottom: -5%;
  right: 15%;
  animation-delay: -4s;
}

.hero-overlay-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.hero-ui {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 6;
  padding: 0 20px;
}

.hero-eyebrow {
  color: var(--velvet-rose);
  opacity: 0.7;
  font-size: var(--text-label);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 100;
  font-style: italic;
  letter-spacing: 0.35em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(240, 234, 248, 0.95);
  margin-left: 0.35em; /* Offset letter-spacing */
  line-height: 1.1;
  text-shadow: 0 0 30px rgba(240, 234, 248, 0.05);
}

.hero-subtitle {
  font-size: var(--text-body);
  letter-spacing: 0.3em;
  color: var(--monsoon-mist);
  opacity: 0.75;
  margin-top: 24px;
  text-transform: uppercase;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.6;
}

.hero-scroll-cue span {
  font-size: var(--text-micro);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero-scroll-cue svg {
  width: 18px;
  height: 18px;
  fill: var(--monsoon-mist);
  animation: pulseArrow 2s infinite ease-in-out;
}

/* ==========================================================================
   TULIP CSS GENERATION & WIND SWAY
   ========================================================================== */

.field-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.tulip {
  position: absolute;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: bottom center;
  animation: windSway var(--sway-duration, 4s) var(--sway-delay, 0s) ease-in-out infinite alternate;
}

.tulip-stem {
  width: 3.5px;
  background: linear-gradient(to top, #153324, var(--botanical-green));
  border-radius: 2px;
  height: var(--stem-height, 120px);
  position: relative;
}

.tulip-leaf {
  position: absolute;
  width: 18px;
  height: 36px;
  background: var(--botanical-green);
  border-radius: 50% 0% 50% 0%;
  top: 35%;
  opacity: 0.85;
}

.tulip-leaf.left {
  left: -16px;
  transform: rotate(-28deg);
  border-radius: 50% 0% 50% 0%;
}

.tulip-leaf.right {
  right: -16px;
  transform: rotate(28deg);
  border-radius: 0% 50% 0% 50%;
}

.tulip-bloom {
  width: var(--bloom-width, 36px);
  height: var(--bloom-height, 46px);
  background: var(--petal-color, var(--velvet-rose));
  border-radius: 50% 50% 30% 30%;
  position: relative;
  margin-bottom: -2px; /* overlap with stem slightly */
  filter: drop-shadow(0 -4px 10px rgba(232, 160, 191, 0.25));
  transform-origin: bottom center;
}

.tulip-bloom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 7, 21, 0.25) 100%);
  border-radius: inherit;
}

.tulip-bloom::after {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50% 50% 0 0;
}

/* ==========================================================================
   SECTION 2 — COLOR WALK (Horizontal Scroll)
   ========================================================================== */

.color-walk-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.color-walk-track {
  display: flex;
  width: 500vw;
  height: 100%;
}

.color-walk-panel {
  position: relative;
  width: 100vw;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 5 Zone Gradients */
.panel-red {
  background: radial-gradient(ellipse 120% 80% at 50% 120%, #C1121F 0%, #3F0510 40%, #150005 80%, var(--void) 100%);
}

.panel-pink {
  background: radial-gradient(ellipse 120% 80% at 50% 120%, #E8A0BF 0%, #4A2035 45%, #1D0613 85%, var(--void) 100%);
}

.panel-purple {
  background: radial-gradient(ellipse 120% 80% at 50% 120%, #9B5DE5 0%, #3B1C5C 45%, #140424 85%, var(--void) 100%);
}

.panel-gold {
  background: radial-gradient(ellipse 120% 80% at 50% 120%, #F4C842 0%, #4D3C08 40%, #1C1400 80%, var(--void) 100%);
}

.panel-white {
  background: radial-gradient(ellipse 120% 80% at 50% 120%, #F0EAF8 0%, #3A3245 45%, #18131E 85%, var(--void) 100%);
}

/* Zone Content */
.panel-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.panel-header-mono {
  position: absolute;
  top: 100px;
  font-size: var(--text-label);
  color: var(--velvet-rose);
  opacity: 0.7;
  text-align: center;
}

/* Progress bar at the top of the color walk */
.color-walk-progress-container {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 100;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(240, 234, 248, 0.2);
  transition: all 0.4s var(--ease-bloom);
}

.progress-dot.active {
  transform: scale(1.4);
  box-shadow: 0 0 12px currentColor;
}

.progress-dot-red { color: #E63946; }
.progress-dot-pink { color: #FF85A1; }
.progress-dot-purple { color: #9B5DE5; }
.progress-dot-gold { color: #F4C842; }
.progress-dot-white { color: #F0EAF8; }

/* Large atmospheric labels behind field */
.zone-bg-title {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(80px, 14vw, 240px);
  color: rgba(255, 255, 255, 0.02);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: 'Fraunces', serif;
  font-style: italic;
  pointer-events: none;
  font-weight: 900;
  text-align: center;
  width: 100%;
  line-height: 1;
}

/* ==========================================================================
   SECTION 3 — BLOOM GALLERY
   ========================================================================== */

.gallery-section {
  position: relative;
  background-color: var(--monsoon-mist);
  color: var(--void);
  padding: 120px 8%;
  overflow: hidden;
}

.gallery-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='120' viewBox='0 0 80 120'%3E%3Cpath d='M40 30 C30 30 20 40 20 55 C20 70 40 90 40 90 C40 90 60 70 60 55 C60 40 50 30 40 30 Z' fill='%232A5C45'/%3E%3Cpath d='M40 90 L40 120' stroke='%232A5C45' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 80px 120px;
}

.gallery-header {
  max-width: 700px;
  margin-bottom: 72px;
  position: relative;
  z-index: 10;
}

.gallery-eyebrow {
  color: var(--botanical-green);
  font-size: var(--text-label);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.gallery-title {
  font-size: var(--text-display);
  font-weight: 300;
  line-height: 1.15;
  color: var(--void);
  margin-bottom: 24px;
}

.gallery-body {
  font-size: var(--text-body);
  color: rgba(11, 7, 21, 0.7);
  max-width: 540px;
}

/* Grid Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  z-index: 10;
}

/* Card Design */
.bloom-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 420px;
  box-shadow: 0 10px 30px rgba(11, 7, 21, 0.03);
  transition: transform 0.45s var(--ease-bloom), box-shadow 0.45s var(--ease-bloom);
  position: relative;
  clip-path: inset(0 0 0 0); /* to allow clip-path entry anim */
}

.bloom-card:hover {
  transform: translateY(-10px) rotate(0.5deg);
  box-shadow: 0 30px 60px rgba(155, 93, 229, 0.12), 0 10px 20px rgba(11, 7, 21, 0.04);
}

.card-svg-container {
  width: 100%;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 24px;
}

.card-species {
  font-size: var(--text-micro);
  color: var(--botanical-green);
  opacity: 0.6;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.card-variety {
  font-size: var(--text-heading);
  font-weight: 300;
  line-height: 1.25;
  color: var(--void);
  margin-bottom: 12px;
}

.card-desc {
  font-size: 14px;
  color: rgba(11, 7, 21, 0.65);
  line-height: 1.6;
  margin-bottom: auto;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.card-swatches {
  display: flex;
  gap: 8px;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(11, 7, 21, 0.1);
}

.card-link {
  font-family: 'Fragment Mono', monospace;
  font-size: var(--text-label);
  color: var(--botanical-green);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.3s;
}

.card-link span {
  transition: transform 0.3s var(--ease-petal);
}

.bloom-card:hover .card-link span {
  transform: translateX(4px);
}

/* ==========================================================================
   SECTION 4 — MONSOON MOMENT
   ========================================================================== */

.monsoon-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--void), var(--field-depth));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.monsoon-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.monsoon-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 720px;
  padding: 0 24px;
}

.monsoon-title {
  font-size: var(--text-display);
  font-weight: 100;
  font-style: italic;
  line-height: 1.15;
  color: rgba(240, 234, 248, 0.95);
  margin-bottom: 28px;
}

.monsoon-body {
  font-size: var(--text-body);
  font-weight: 300;
  color: rgba(240, 234, 248, 0.65);
  max-width: 480px;
  margin: 0 auto;
}

/* Audio control toggle button */
.rain-toggle {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 30px;
  transition: all 0.3s ease;
}

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

.rain-icon {
  width: 16px;
  height: 16px;
  fill: var(--monsoon-mist);
}

.rain-label {
  font-family: 'Fragment Mono', monospace;
  font-size: var(--text-micro);
  color: var(--monsoon-mist);
  opacity: 0.8;
  letter-spacing: 0.08em;
}

/* Silhouette of rain wet closed buds at bottom */
.monsoon-silhouette {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 120px;
  opacity: 0.15;
  z-index: 2;
  pointer-events: none;
}

/* ==========================================================================
   SECTION 5 — INTERACTIVE TULIP STUDIO
   ========================================================================== */

.studio-section {
  position: relative;
  background-color: #F8F5FC; /* warm light purple background */
  color: var(--void);
  padding: 120px 8% 220px 8%; /* space at bottom for planted field */
  overflow: hidden;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.studio-header {
  grid-column: 1 / -1;
  margin-bottom: 48px;
}

.studio-eyebrow {
  color: var(--tulip-violet);
  font-size: var(--text-label);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.studio-title {
  font-size: var(--text-display);
  font-weight: 300;
  color: var(--void);
  margin-bottom: 16px;
}

.studio-desc {
  font-size: var(--text-body);
  color: rgba(11, 7, 21, 0.65);
  max-width: 600px;
}

/* Controls Panel (Glassmorphism) */
.studio-controls {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 20px 65px rgba(11, 7, 21, 0.04);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.control-label {
  font-family: 'Fragment Mono', monospace;
  font-size: var(--text-label);
  color: var(--botanical-green);
  font-weight: 500;
  text-transform: uppercase;
}

.control-value {
  font-family: 'Fragment Mono', monospace;
  font-size: var(--text-label);
  color: rgba(11, 7, 21, 0.5);
}

/* Control 1: Custom Color Picker Container */
.color-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 4px;
}

.hue-wheel-container {
  position: relative;
  width: 140px;
  height: 140px;
}

.hue-wheel-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.hue-marker {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.presets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  flex-grow: 1;
}

.preset-btn {
  height: 36px;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.preset-btn.active {
  transform: scale(1.1);
  border-color: white;
  box-shadow: 0 0 10px rgba(11, 7, 21, 0.15), inset 0 2px 4px rgba(0,0,0,0.06);
}

/* Control 2: Petal Count Row */
.petal-count-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.petal-count-btn {
  border: 1.5px solid var(--tulip-violet);
  border-radius: 12px;
  padding: 12px 8px;
  background: transparent;
  color: var(--tulip-violet);
  font-family: 'Fragment Mono', monospace;
  font-size: var(--text-label);
  transition: all 0.35s var(--ease-bloom);
  text-align: center;
}

.petal-count-btn.active {
  background: var(--tulip-violet);
  color: white;
  transform: scale(1.04);
  box-shadow: 0 6px 15px rgba(155, 93, 229, 0.25);
}

/* Control 3: Stem Height Custom Range Input */
.range-slider-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-endpoint-label {
  font-family: 'Fragment Mono', monospace;
  font-size: var(--text-micro);
  color: rgba(11, 7, 21, 0.4);
}

.range-slider {
  flex-grow: 1;
  appearance: none;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(to right, rgba(42, 92, 69, 0.1), rgba(42, 92, 69, 0.4));
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--botanical-green);
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Control 4: Petal Shape Grid */
.shape-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.shape-card {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.35s var(--ease-bloom);
}

.shape-card.active {
  background: white;
  border-color: var(--tulip-violet);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(155, 93, 229, 0.08);
}

.shape-svg-icon {
  width: 40px;
  height: 50px;
}

.shape-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--void);
}

/* Control 5: Second Color Toggle & Row */
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Toggle Switch styling */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-switch {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(11, 7, 21, 0.1);
  transition: .3s;
  border-radius: 24px;
}

.slider-switch:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

input:checked + .slider-switch {
  background-color: var(--tulip-violet);
}

input:checked + .slider-switch:before {
  transform: translateX(20px);
}

.second-color-picker-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  transition: max-height 0.4s var(--ease-bloom), opacity 0.4s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.second-color-picker-container.visible {
  max-height: 80px;
  opacity: 1;
  margin-top: 16px;
}

.second-preset-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  transition: transform 0.2s;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.second-preset-btn.active {
  transform: scale(1.1);
  border-color: white;
  box-shadow: 0 0 6px rgba(11, 7, 21, 0.1);
}

/* Control 6: Bloom Stage dots */
.stage-row {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 10px 0;
}

.stage-track-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(11, 7, 21, 0.08);
  transform: translateY(-50%);
  z-index: 1;
}

.stage-btn {
  position: relative;
  z-index: 5;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #F8F5FC;
  border: 2px solid rgba(11, 7, 21, 0.2);
  transition: all 0.3s ease;
}

.stage-btn.active {
  background: var(--tulip-violet);
  border-color: var(--tulip-violet);
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(155, 93, 229, 0.4);
}

.stage-btn::after {
  content: attr(data-label);
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Fragment Mono', monospace;
  font-size: var(--text-micro);
  color: rgba(11, 7, 21, 0.5);
  white-space: nowrap;
  transition: color 0.3s;
}

.stage-btn.active::after {
  color: var(--void);
  font-weight: 500;
}

/* Studio Live Preview Box */
.studio-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 100px;
}

.tulip-preview-frame {
  width: 340px;
  height: 440px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 15px 40px rgba(11, 7, 21, 0.03);
  position: relative;
  overflow: hidden;
}

.tulip-preview {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-origin: bottom center;
}

.studio-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  width: 100%;
  justify-content: center;
}

.plant-btn {
  background: var(--tulip-violet);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 16px 40px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 20px rgba(155, 93, 229, 0.15);
  transition: transform 0.3s var(--ease-petal), box-shadow 0.3s, background 0.3s;
  position: relative;
}

.plant-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(155, 93, 229, 0.35);
  background: #8b4bd4;
}

.share-btn {
  background: transparent;
  color: var(--tulip-violet);
  border: 1.5px solid rgba(155, 93, 229, 0.4);
  border-radius: 50px;
  padding: 16px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.3s var(--ease-bloom);
}

.share-btn:hover {
  border-color: var(--tulip-violet);
  background: rgba(155, 93, 229, 0.05);
  transform: translateY(-2px);
}

/* Planted Field Accumulator */
.planted-field-section {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px;
  background: linear-gradient(to top, rgba(42, 92, 69, 0.15) 0%, rgba(248, 245, 252, 0) 100%);
  border-top: 1px solid rgba(42, 92, 69, 0.05);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 40px;
  overflow: hidden;
  z-index: 5;
}

.planted-field-silhouette {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 60px;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='60' viewBox='0 0 40 60'%3E%3Cpath d='M20 15 C15 15 10 20 10 28 C10 35 20 45 20 45 C20 45 30 35 30 28 C30 20 25 15 20 15 Z' fill='%232A5C45'/%3E%3C/svg%3E");
  background-size: 40px 60px;
  z-index: 1;
  pointer-events: none;
}

.planted-flowers-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  z-index: 5;
}

.planted-flower {
  position: absolute;
  bottom: 0;
  transform-origin: bottom center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #0B0715;
  color: var(--monsoon-mist);
  border: 1px solid rgba(240, 234, 248, 0.15);
  padding: 12px 28px;
  border-radius: 40px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s var(--ease-bloom);
}

.toast-container.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   SECTION 6 — FOOTER
   ========================================================================== */

.footer-section {
  background-color: var(--botanical-green);
  color: rgba(240, 234, 248, 0.9);
  padding: 100px 20px 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10;
}

.footer-logo-container {
  width: 200px;
  height: 240px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 32px;
}

.footer-logo-svg {
  width: 100%;
  height: 100%;
}

.footer-quote {
  font-size: 28px;
  font-weight: 300;
  font-style: italic;
  color: rgba(240, 234, 248, 0.85);
  margin-bottom: 24px;
  line-height: 1.4;
}

.footer-tagline {
  font-size: var(--text-label);
  opacity: 0.35;
  letter-spacing: 0.25em;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

@keyframes windSway {
  0%   { transform: rotate(0deg) translateX(0); }
  30%  { transform: rotate(calc(var(--sway-intensity, 1) * 2deg)) translateX(calc(var(--sway-intensity, 1) * 3px)); }
  60%  { transform: rotate(calc(var(--sway-intensity, 1) * -1.5deg)) translateX(calc(var(--sway-intensity, 1) * -2px)); }
  100% { transform: rotate(calc(var(--sway-intensity, 1) * 2.5deg)) translateX(calc(var(--sway-intensity, 1) * 4px)); }
}

@keyframes pulseArrow {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}

@keyframes floatMist {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(4vw, -4vw) scale(1.1); }
}

/* ==========================================================================
   MOBILE & ACCESSIBILITY RESPONSIVENESS
   ========================================================================== */

@media (max-width: 968px) {
  /* Layout stacks */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .studio-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .studio-preview-box {
    position: static;
    margin-top: 24px;
  }

  .nav-pill {
    padding: 8px 20px;
    gap: 18px;
    width: 90%;
    justify-content: space-around;
  }
}

@media (max-width: 580px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-section {
    padding: 80px 24px;
  }

  .studio-section {
    padding: 80px 24px 200px 24px;
  }

  .color-walk-progress-container {
    gap: 12px;
  }

  .progress-dot {
    width: 8px;
    height: 8px;
  }

  .studio-controls {
    padding: 24px;
  }

  .color-picker-wrapper {
    flex-direction: column;
    gap: 24px;
  }

  .hue-wheel-container {
    width: 120px;
    height: 120px;
  }

  .presets-grid {
    width: 100%;
  }

  .studio-actions {
    flex-direction: column;
    gap: 12px;
  }

  .plant-btn, .share-btn {
    width: 100%;
    text-align: center;
  }

  .tulip-preview-frame {
    width: 100%;
    max-width: 320px;
  }

  /* Mobile text optimization */
  .hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.05em;
    padding: 0 10px;
  }

  .hero-subtitle {
    font-size: 14px;
    letter-spacing: 0.15em;
  }

  .panel-header-mono {
    font-size: 10px;
    padding: 0 16px;
    top: 120px;
  }

  .zone-bg-title {
    font-size: 70px;
  }

  .stage-btn::after {
    font-size: 9px;
    bottom: -22px;
  }

  .rain-toggle {
    bottom: 24px;
    right: 24px;
    padding: 8px 16px;
  }
}

/* Extra mobile-friendliness for very narrow viewports */
@media (max-width: 380px) {
  .nav-pill {
    padding: 6px 14px;
    gap: 10px;
  }
  
  .nav-link {
    font-size: 10px;
    letter-spacing: 0.05em;
  }
  
  .studio-controls {
    padding: 16px;
    gap: 24px;
  }

  .stage-btn::after {
    display: none; /* Hide labels on extremely narrow screens to prevent overlapping */
  }

  .stage-btn.active::after {
    display: block; /* Show only active label */
    bottom: -22px;
  }
}

/* Touch Screen / No Hover cursor fix */
@media (hover: none) and (pointer: coarse) {
  * {
    cursor: auto !important;
  }
  #cursor-canvas {
    display: none !important;
  }
}

/* Prefers Reduced Motion override */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .tulip {
    animation: none !important;
  }
  .mist-orb {
    animation: none !important;
  }
}
