/* ============================================================
   LandStrong: Nervous System Simulator - Main Stylesheet
   ============================================================ */

/* ============================================================
   CSS VARIABLES & ROOT CONFIGURATION
   ============================================================ */
:root {
  /* Brand Color Palette */
  --color-deep-slate: #4a5464;
  --color-soft-white: #ffffff;
  --color-royal-indigo: #40539f;
  --color-calm-blue: #508dc8;
  --color-periwinkle: #7081bf;
  --color-dusty-blue: #456d9f;
  --color-soft-gray: #929495;

  /* Gradient Definitions */
  --gradient-primary: linear-gradient(135deg, #40539f, #508dc8);
  --gradient-calm: linear-gradient(135deg, #508dc8, #7081bf);
  --gradient-dark: linear-gradient(135deg, #4a5464, #40539f);
  --gradient-warm: linear-gradient(135deg, #456d9f, #40539f);

  /* Effects & Shadows */
  --glow-primary: 0 0 30px rgba(64, 83, 159, 0.6);
  --glow-secondary: 0 0 20px rgba(80, 141, 200, 0.4);
  --glow-soft: 0 0 15px rgba(112, 129, 191, 0.3);
  --shadow-primary: 0 10px 40px rgba(0, 0, 0, 0.3);
  --shadow-secondary: 0 5px 20px rgba(0, 0, 0, 0.2);
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);

  /* Blur & Transparency */
  --blur-small: 10px;
  --blur-medium: 20px;
  --blur-large: 30px;
  --border-opacity: 0.2;
  --glass-opacity: 0.1;

  /* Transitions & Animations */
  --transition-fast: 0.3s ease-out;
  --transition-medium: 0.6s ease-out;
  --transition-slow: 1s ease-out;
  --transition-very-slow: 1.5s ease-out;

  /* Font Family */
  --font-primary: "Josefin Sans", sans-serif;

  /* Typography */
  --font-weight-thin: 100;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}

/* ============================================================
   CSS VARIABLES & ROOT CONFIGURATION
   ============================================================ */

:root {
  /* Brand Color Palette */
  --color-deep-slate: #4a5464;
  --color-soft-white: #ffffff;
  --color-royal-indigo: #40539f;
  --color-calm-blue: #508dc8;
  --color-periwinkle: #7081bf;
  --color-dusty-blue: #456d9f;
  --color-soft-gray: #929495;

  /* Gradient Definitions */
  --gradient-primary: linear-gradient(135deg, #40539f, #508dc8);
  --gradient-calm: linear-gradient(135deg, #508dc8, #7081bf);
  --gradient-dark: linear-gradient(135deg, #4a5464, #40539f);
  --gradient-warm: linear-gradient(135deg, #456d9f, #40539f);

  /* Effects & Shadows */
  --glow-primary: 0 0 30px rgba(64, 83, 159, 0.6);
  --glow-secondary: 0 0 20px rgba(80, 141, 200, 0.4);
  --glow-soft: 0 0 15px rgba(112, 129, 191, 0.3);
  --shadow-primary: 0 10px 40px rgba(0, 0, 0, 0.3);
  --shadow-secondary: 0 5px 20px rgba(0, 0, 0, 0.2);
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);

  /* Blur & Transparency */
  --blur-small: 10px;
  --blur-medium: 20px;
  --blur-large: 30px;
  --border-opacity: 0.2;
  --glass-opacity: 0.1;

  /* Transitions & Animations */
  --transition-fast: 0.3s ease-out;
  --transition-medium: 0.6s ease-out;
  --transition-slow: 1s ease-out;
  --transition-very-slow: 1.5s ease-out;

  /* Font Family */
  --font-primary: "Josefin Sans", sans-serif;

  /* Typography */
  --font-weight-thin: 100;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}

/* ============================================================
   GLOBAL STYLES & RESET
   ============================================================ */

:root {
  --page-background: #1a1e2e;
  --section-background: linear-gradient(
    135deg,
    #0f1419 0%,
    #1a1e2e 50%,
    #0f1419 100%
  );
  --grid-line-color: rgba(64, 83, 159, 0.1);
  --panel-background: rgba(74, 84, 100, 0.15);
  --panel-background-strong: rgba(74, 84, 100, 0.28);
  --panel-border: rgba(112, 129, 191, 0.3);
  --control-background: rgba(64, 83, 159, 0.1);
  --text-primary: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.8);
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-faint: rgba(255, 255, 255, 0.42);
  --timeline-line: rgba(112, 129, 191, 0.25);
  --accessibility-blur: 10px;
  --blur-small: var(--accessibility-blur);
  --font-scale: 1;
  --glow-intensity: 0.8;
  --glow-primary: 0 0 calc(30px * var(--glow-intensity)) rgba(64, 83, 159, 0.6);
  --glow-secondary: 0 0 calc(20px * var(--glow-intensity))
    rgba(80, 141, 200, 0.4);
  --glow-soft: 0 0 calc(15px * var(--glow-intensity)) rgba(112, 129, 191, 0.3);
}

body.theme-light {
  --page-background: #eef3f7;
  --section-background: linear-gradient(
    135deg,
    #f6fbff 0%,
    #edf4f8 48%,
    #dfe9f1 100%
  );
  --grid-line-color: rgba(64, 83, 159, 0.08);
  --panel-background: rgba(255, 255, 255, 0.62);
  --panel-background-strong: rgba(255, 255, 255, 0.82);
  --panel-border: rgba(64, 83, 159, 0.18);
  --control-background: rgba(255, 255, 255, 0.7);
  --text-primary: #172033;
  --text-soft: rgba(23, 32, 51, 0.78);
  --text-muted: rgba(23, 32, 51, 0.58);
  --text-faint: rgba(23, 32, 51, 0.42);
  --timeline-line: rgba(64, 83, 159, 0.18);
  --shadow-primary: 0 10px 35px rgba(36, 54, 78, 0.14);
  --shadow-secondary: 0 5px 18px rgba(36, 54, 78, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 0;
  height: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  font-family: var(--font-primary);
  background-color: var(--page-background);
  color: var(--text-primary);
  font-size: 16px;
  background-image:
    linear-gradient(to right, var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-color) 1px, transparent 1px);
  background-size: 100px 100px;
}

/* Reduced Motion Support */
/* That media query checks whether the user has “Reduce Motion” enabled in their operating system accessibility settings. If it is enabled, the query applies styles that significantly reduce or eliminate animations and transitions on the page. This is done by setting animation durations to a very short time (0.01ms) and limiting animation iterations to just one, effectively making animations instantaneous. Transition durations are also set to 0.01ms, ensuring that any CSS transitions occur immediately without any visual delay. */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ============================================================
   CUSTOM CURSOR
   ============================================================ */

.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: radial-gradient(
    circle,
    rgba(80, 141, 200, 0.8),
    rgba(64, 83, 159, 0.4)
  );
  border: 2px solid rgba(112, 129, 191, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  display: none;
  box-shadow: var(--glow-secondary);
}

.cursor-follower {
  position: fixed;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(112, 129, 191, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  display: none;
  opacity: 0.4;
}

/* Show custom cursor on desktop */
@media (pointer: fine) {
  .custom-cursor,
  .cursor-follower {
    display: block;
  }

  body,
  a {
    cursor: none !important;
  }

  button {
    cursor: pointer !important;
  }
}

/* ============================================================
   APP CONTAINER
   ============================================================ */

.app {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* ============================================================
   REUSABLE COMPONENTS
   ============================================================ */

/* Section Base Styles */
/* This turns every section into a full-screen container and toggles between active and hidden classes to display */
section {
  height: 100%; 
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  /* min-height: 100vh; */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--transition-medium),
    pointer-events var(--transition-medium);
}

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

section.hidden {
  display: none;
}

/* Buttons - Primary Style */
.btn {
  padding: 12px 32px;
  border: none;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-medium);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  overflow: hidden;
  pointer-events: auto;
  margin-top: 10px;
}

.btn:hover {
  transform: translateY(-3px);
  cursor: pointer;
}

.btn:active {
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-soft-white);
  box-shadow: var(--glow-primary);
  border: 1px solid rgba(112, 129, 191, 0.3);
}

.btn-primary:hover {
  box-shadow:
    var(--glow-primary),
    0 0 50px rgba(64, 83, 159, 0.8);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(74, 84, 100, 0.4);
  color: var(--color-soft-white);
  border: 1px solid rgba(112, 129, 191, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(74, 84, 100, 0.6);
  box-shadow: var(--glow-soft);
}

.btn-outline {
  background: transparent;
  color: var(--color-calm-blue);
  border: 2px solid rgba(80, 141, 200, 0.5);
}

.btn-outline:hover {
  background: rgba(80, 141, 200, 0.1);
  box-shadow: var(--glow-secondary);
}

.btn-small {
  padding: 10px 24px;
  font-size: 12px;
}

/* Buttons Active State */
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   ANIMATED BLOBS & BACKGROUND EFFECTS
   ============================================================ */
/* mixed blend mode makes colors blend together softly for a dreamy glow effect. The individual blob classes define diffent sizes, colors, starting positions, and animation timings so the background feels organic insterad of repetitive.  */
.blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(60px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(64, 83, 159, 0.8), transparent);
  top: -100px;
  right: -100px;
  animation-duration: 25s;
  animation-delay: 0s;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(80, 141, 200, 0.6), transparent);
  bottom: -50px;
  left: -50px;
  animation-duration: 30s;
  animation-delay: 2s;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(112, 129, 191, 0.5), transparent);
  top: 50%;
  left: 50%;
  animation-duration: 28s;
  animation-delay: 4s;
}
/* controls how the blobs slowly drift and scale around the screen over time, the movement is intentionally subtle and smooth to reinforce calming the servous system regulation aesthetic.  */
@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -50px) scale(1.1);
  }
  50% {
    transform: translate(-30px, 30px) scale(0.9);
  }
  75% {
    transform: translate(20px, 50px) scale(1.05);
  }
}

/* ============================================================
   PARTICLES SYSTEM
   ============================================================ */
/* This css creates a flaoting particle system in the background that adds subtle movement. THis is designed to make the website feel more immersive calming and alive without distracting the user.  */
/* .particles-container acts as a full-screen layer that sits behind or around the content. Since it stretches across the entire viewport and uses:  */
/* pointer-events: none -- users can still click buttons and interact with the UI normally without particles blocking everything.  */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
/* defines the particles themselves- its a tiny glowing circle created using radial gradients, transparency, glow shadows, rounded edges.  */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  /* creates a soft fading glow effect instead of a solid dot, helping the particles feel more atmospheric and less harsh.VVV */
  background: radial-gradient(circle, rgba(112, 129, 191, 0.8), transparent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(112, 129, 191, 0.5);
}
/* the slow, medium and fast allows js to create particles moving at different speeds making motion feel organic and natural.  */
.particle.slow {
  animation-duration: 30s;
}

.particle.medium {
  animation-duration: 20s;
}

.particle.fast {
  animation-duration: 10s;
}

@keyframes drift {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

/* ============================================================
   GRAIN OVERLAY
   ============================================================ */
/* uses an inline SVG noise filter to generate film grain directly in CSS without needing an image file. The turbulence filter creates randomized noise patterns that lightly overlay the interface. */
.grain-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" result="noise" seed="2"/></filter><rect width="100" height="100" fill="rgba(255,255,255,0.02)" filter="url(%23noise)"/></svg>');
  pointer-events: none;
  opacity: 0.1;
  mix-blend-mode: overlay;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
/* creates the full-screen intro environment using a layered dark gradient background. The gradient shifts between deep navy and charcoal tones to create a calming emotional atmosphere while giving the glowing blues and purples space to stand out. */
.hero-section {
  overflow: hidden;
  background: var(--section-background);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 600px;
  padding: 40px;
}

.hero-title-wrapper {
  position: relative;
  margin-bottom: 20px;
  animation: titleFadeIn 1.2s ease-out forwards;
  opacity: 0;
}

.hero-logo {
  max-width: 300px;
  height: auto;
  width: clamp(150px, 30vw, 350px);
  animation: logoFadeIn 1.2s ease-out forwards;
  opacity: 0;
  filter: drop-shadow(0 0 30px rgba(80, 141, 200, 0.3));
}

@keyframes logoFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero-title {
  font-size: clamp(48px, 10vw, 92px);
  font-weight: var(--font-weight-thin);
  letter-spacing: 8px;
  text-transform: uppercase;
  background: linear-gradient(
    135deg,
    var(--color-calm-blue),
    var(--color-periwinkle),
    var(--color-calm-blue)
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(80, 141, 200, 0.3);
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes titleFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border: 2px solid rgba(80, 141, 200, 0.2);
  border-radius: 50%;
  animation: glowPulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.6;
  }
}

.hero-tagline {
  font-size: 18px;
  font-weight: var(--font-weight-light);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-calm-blue);
  margin-bottom: 15px;
  animation: fadeInUp 1.2s ease-out 0.2s forwards;
  opacity: 0;
}

.hero-description {
  font-size: 16px;
  font-weight: var(--font-weight-light);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  line-height: 1.6;
  animation: fadeInUp 1.2s ease-out 0.4s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section .btn {
  animation: fadeInUp 1.2s ease-out 0.6s forwards;
  opacity: 0;
}

.floating-text {
  position: absolute;
  width: 100%;
  max-width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.float-element {
  position: absolute;
  font-size: 14px;
  font-weight: var(--font-weight-light);
  color: rgba(112, 129, 191, 0.3);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: floatAround 10s ease-in-out infinite;
  /* The :nth-child() selectors position each word in different locations and stagger animation timing so the motion feels organic rather than repetitive. */
  &:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
  }
  &:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
  }
  &:nth-child(3) {
    top: 70%;
    left: 15%;
    animation-delay: 4s;
  }
  &:nth-child(4) {
    top: 30%;
    right: 20%;
    animation-delay: 6s;
  }
}
/* The floatAround animation slowly moves the words while subtly adjusting opacity to create atmospheric motion without distracting the user. */
@keyframes floatAround {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.3;
  }
  50% {
    transform: translate(30px, 30px);
    opacity: 0.6;
  }
}
/* ============================================================
   STATE SELECTION SECTION
   ============================================================ */
/* reating the emotional state selection screen where users choose how they’re currently feeling before entering the regulation experience. */
.state-section {
  background: var(--section-background);
  /* background: linear-gradient(135deg, #ececec 0%, #fafafc 50%, #0f1419 100%); */
  overflow-x: hidden;
  overflow-y: auto;
}

.state-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.state-content {
  position: relative;
  z-index: 10;
  width: 100%;
  min-width: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
}

.state-header {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeInDown 1s ease-out;
}

.state-header h2 {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: var(--font-weight-light);
  margin-bottom: 15px;
  background: linear-gradient(
    135deg,
    var(--color-calm-blue),
    var(--color-periwinkle)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.state-header p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: var(--font-weight-light);
  letter-spacing: 1px;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Emotion Grid */
.emotion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0px, 1fr));
  gap: 30px;
  min-width: 0;
  animation: fadeIn 1s ease-out 0.2s forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.emotion-card {
  padding: 40px;
  background: rgba(74, 84, 100, 0.2);
  border: 1px solid rgba(112, 129, 191, 0.3);
  border-radius: 20px;
  cursor: none;
  transition: all var(--transition-medium);
  backdrop-filter: blur(var(--blur-small));
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.emotion-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(112, 129, 191, 0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.emotion-card:hover {
  background: rgba(74, 84, 100, 0.4);
  border-color: rgba(112, 129, 191, 0.6);
  transform: translateY(-10px);
  box-shadow:
    var(--glow-soft),
    0 20px 40px rgba(0, 0, 0, 0.3);
}

.emotion-card:hover::before {
  opacity: 1;
}

.emotion-card.active {
  background: var(--gradient-primary);
  border-color: rgba(112, 129, 191, 0.8);
  box-shadow:
    var(--glow-primary),
    0 20px 60px rgba(64, 83, 159, 0.5);
  transform: scale(1.05);
}

.emotion-icon {
  font-size: 48px;
  margin-bottom: 15px;
  transition: transform var(--transition-medium);
}

.emotion-card:hover .emotion-icon {
  transform: scale(1.2) rotate(5deg);
}

.emotion-name {
  font-size: 20px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.emotion-description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: var(--font-weight-light);
  line-height: 1.5;
}

/* ============================================================
   REGULATION SECTION
   ============================================================ */
/* styling the main regulation experience of the app — the actual nervous system support environment users interact with after selecting an emotional state. It focuses heavily on responsive layouts, emotional visual feedback, immersive breathing animations, grounding modules, journaling UI, and state-based visual behavior. */
.regulation-section {
  background: var(--section-background);
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.regulation-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.regulation-content {
  position: relative;
  z-index: 10;
  width: 100%;
  min-width: 0;
  max-width: 1180px;
  padding: 60px 40px;
}

.regulation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  animation: slideInRight 0.8s ease-out;
}

.state-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: var(--font-weight-light);
  background: linear-gradient(
    135deg,
    var(--color-calm-blue),
    var(--color-periwinkle)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Regulation Container */
.regulation-container {
  display: grid;
  grid-template-columns: minmax(340px, 1.15fr) minmax(300px, 0.85fr);
  grid-template-areas:
    "breathing grounding"
    "breathing prompts";
  align-items: stretch;
  gap: 24px;
  min-width: 0;
  margin-bottom: 32px;
}

.breathing-module {
  grid-area: breathing;
  display: flex;
  flex-direction: column;
}

.grounding-module {
  grid-area: grounding;
}

.prompts-module {
  grid-area: prompts;
}

/* Module Base Styles */
.module {
  padding: 32px;
  background: rgba(74, 84, 100, 0.15);
  border: 1px solid rgba(112, 129, 191, 0.3);
  border-radius: 20px;
  backdrop-filter: blur(var(--blur-small));
  animation: slideUp 0.8s ease-out;
  min-width: 0;
  max-width: 100%;
}

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

.module h3 {
  font-size: 20px;
  font-weight: var(--font-weight-medium);
  margin-bottom: 25px;
  color: var(--color-calm-blue);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Breathing Module */
.breathing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 360px;
  position: relative;
}
/* creates a glowing animated orb using radial gradients, layered shadows, and soft lighting effects. The orb visually expands and contracts to guide breathing rhythms. */
.breathing-orb {
  --orb-scale: 1;
  --orb-glow-primary: 60px;
  --orb-glow-secondary: 100px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    var(--breathing-light, rgba(80, 141, 200, 0.8)),
    var(--breathing-dark, rgba(64, 83, 159, 0.5))
  );
  box-shadow:
    inset -30px -30px 60px rgba(0, 0, 0, 0.3),
    0 0 var(--orb-glow-primary) rgba(80, 141, 200, 0.45),
    0 0 var(--orb-glow-secondary) rgba(112, 129, 191, 0.25);
  margin-bottom: 30px;
  transform: translate3d(0, 0, 0) scale(var(--orb-scale));
  transition:
    box-shadow 300ms ease,
    filter 300ms ease;
  will-change: transform, filter;
}

.state-title {
  background: linear-gradient(
    135deg,
    var(--color-calm-blue),
    var(--color-periwinkle)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.module h3 {
  color: var(--color-calm-blue);
}

.grounding-item {
  padding: 15px;
  background: rgba(64, 83, 159, 0.1);
  border-left: 3px solid var(--color-calm-blue);
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.grounding-item-title {
  color: var(--color-calm-blue);
}

.reflection-card {
  padding: 20px;
  background: rgba(64, 83, 159, 0.15);
  border-left: 3px solid var(--color-calm-blue);
  border-radius: 10px;
  transition: all var(--transition-fast);
}

.reflection-date {
  color: var(--color-calm-blue);
}
/* The orb's scale is driven by JavaScript so it follows the active inhale, hold, and exhale counts exactly. */
.breathing-count {
  color: var(--color-calm-blue);
}

.breathing-orb.breathing {
  filter: saturate(1.05);
}

.breathing-orb[data-phase="hold"] {
  filter: saturate(1.12) brightness(1.06);
}

@keyframes fightOrbCharge {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(var(--orb-scale));
  }
  28% {
    transform: translate3d(3px, -2px, 0) scale(var(--orb-scale)) scale(1.01);
  }
  56% {
    transform: translate3d(-2px, 1px, 0) scale(var(--orb-scale));
  }
  78% {
    transform: translate3d(1px, 2px, 0) scale(var(--orb-scale)) scale(1.005);
  }
}

@keyframes flightOrbRhythm {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(var(--orb-scale));
  }
  50% {
    transform: translate3d(0, -5px, 0) scale(var(--orb-scale));
  }
}

@keyframes freezeOrbSoften {
  0%,
  100% {
    filter: saturate(0.92) brightness(0.98);
    transform: translate3d(0, 0, 0) scale(var(--orb-scale)) scale(0.995);
  }
  50% {
    filter: saturate(1.02) brightness(1.03);
    transform: translate3d(0, -2px, 0) scale(var(--orb-scale)) scale(1.01);
  }
}

@keyframes shutdownOrbWeight {
  0%,
  100% {
    transform: translate3d(0, 2px, 0) scale(var(--orb-scale));
    opacity: 0.88;
  }
  50% {
    transform: translate3d(0, 8px, 0) scale(var(--orb-scale)) scale(0.99);
    opacity: 0.78;
  }
}

@keyframes overstimulatedOrbIdle {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(var(--orb-scale));
  }
  25% {
    transform: translate3d(4px, -3px, 0) scale(var(--orb-scale));
  }
  48% {
    transform: translate3d(-5px, 2px, 0) scale(var(--orb-scale)) scale(1.01);
  }
  70% {
    transform: translate3d(2px, 4px, 0) scale(var(--orb-scale));
  }
}

@keyframes overstimulatedOrbSettle {
  0% {
    transform: translate3d(6px, -5px, 0) scale(var(--orb-scale));
  }
  18% {
    transform: translate3d(-5px, 3px, 0) scale(var(--orb-scale)) scale(1.01);
  }
  36% {
    transform: translate3d(3px, 2px, 0) scale(var(--orb-scale));
  }
  58% {
    transform: translate3d(-2px, -1px, 0) scale(var(--orb-scale));
  }
  100% {
    transform: translate3d(0, 0, 0) scale(var(--orb-scale));
  }
}

@keyframes calmOrbFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(var(--orb-scale));
  }
  50% {
    transform: translate3d(0, -6px, 0) scale(var(--orb-scale)) scale(1.005);
  }
}

.breathing-guidance {
  text-align: center;
}

.breathing-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: var(--font-weight-light);
  margin-bottom: 10px;
  min-height: 24px;
}

.breathing-count {
  font-size: 24px;
  font-weight: var(--font-weight-medium);
  color: var(--color-calm-blue);
}

.breathing-pattern,
.breathing-note {
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.5;
  font-weight: var(--font-weight-light);
}

.breathing-pattern {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.breathing-note {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

/* Grounding Module */
/* uses stacked flexbox layouts for grounding technique cards. */
.grounding-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.grounding-item {
  padding: 15px;
  background: rgba(64, 83, 159, 0.1);
  border-left: 3px solid var(--color-calm-blue);
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.grounding-item:hover {
  background: rgba(64, 83, 159, 0.2);
  transform: translateX(5px);
}

.grounding-item-title {
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  color: var(--color-calm-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.grounding-item-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  font-weight: var(--font-weight-light);
}

/* Prompts Module */
.prompt-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  font-weight: var(--font-weight-light);
  margin-bottom: 25px;
  min-height: 60px;
  font-style: italic;
}

/* Journal Section */
.journal-section {
  padding: 40px;
  background: rgba(74, 84, 100, 0.15);
  border: 1px solid rgba(112, 129, 191, 0.3);
  border-radius: 20px;
  backdrop-filter: blur(var(--blur-small));
  margin-bottom: 40px;
  animation: slideUp 0.8s ease-out 0.1s forwards;
  opacity: 0;
  min-width: 0;
  max-width: 100%;
}

.journal-section h3 {
  font-size: 20px;
  font-weight: var(--font-weight-medium);
  margin-bottom: 25px;
  color: var(--color-calm-blue);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.journal-input-wrapper {
  position: relative;
  margin-bottom: 15px;
}

.journal-textarea {
  width: 100%;
  min-height: 150px;
  padding: 20px;
  background: rgba(64, 83, 159, 0.1);
  border: 1px solid rgba(112, 129, 191, 0.3);
  border-radius: 12px;
  color: var(--color-soft-white);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: var(--font-weight-light);
  resize: vertical;
  transition: all var(--transition-fast);
}

.journal-textarea:focus {
  outline: none;
  background: rgba(64, 83, 159, 0.2);
  border-color: rgba(112, 129, 191, 0.6);
  box-shadow: 0 0 20px rgba(80, 141, 200, 0.2);
}

.journal-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.char-count {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.previous-reflections {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(112, 129, 191, 0.2);
}

.previous-reflections h4 {
  font-size: 16px;
  font-weight: var(--font-weight-medium);
  color: var(--color-calm-blue);
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.reflections-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.reflection-card {
  padding: 20px;
  background: rgba(64, 83, 159, 0.15);
  border-left: 3px solid var(--color-calm-blue);
  border-radius: 10px;
  transition: all var(--transition-fast);
}

.reflection-card:hover {
  background: rgba(64, 83, 159, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.reflection-date {
  font-size: 12px;
  color: var(--color-calm-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-weight: var(--font-weight-medium);
}

.reflection-content {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-weight: var(--font-weight-light);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  animation: slideUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

/* ============================================================
   WELLNESS TOOLS & DASHBOARD
   ============================================================ */

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.header-actions .btn {
  width: auto;
}

.header-font-control {
  display: grid;
  grid-template-columns: auto minmax(96px, 130px);
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--panel-background);
  color: var(--text-muted);
  backdrop-filter: blur(var(--accessibility-blur));
}

.header-font-control span {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.header-font-control input {
  width: 100%;
  accent-color: var(--color-calm-blue);
}

.module,
.journal-section {
  background: var(--panel-background);
  border-color: var(--panel-border);
  color: var(--text-primary);
  backdrop-filter: blur(var(--accessibility-blur));
}

.emotion-card {
  background: var(--panel-background);
  border-color: var(--panel-border);
  color: var(--text-primary);
  backdrop-filter: blur(var(--accessibility-blur));
}

.btn-secondary {
  background: var(--panel-background-strong);
  color: var(--text-primary);
  border-color: var(--panel-border);
  backdrop-filter: blur(var(--accessibility-blur));
}

.journal-textarea {
  background: var(--control-background);
  border-color: var(--panel-border);
  color: var(--text-primary);
}

.hero-description,
.state-header p,
.emotion-description,
.grounding-item-text,
.prompt-text,
.reflection-content,
.breathing-text {
  color: var(--text-muted);
}

.wellness-grid,
.insights-grid {
  display: grid;
  gap: 24px;
  min-width: 0;
  max-width: 100%;
  margin-bottom: 32px;
}

.wellness-grid {
  grid-template-columns: minmax(320px, 1.05fr) repeat(2, minmax(240px, 0.8fr));
}

.insights-grid {
  grid-template-columns: minmax(300px, 0.8fr) minmax(360px, 1.2fr);
}

.sound-module {
  grid-row: span 2;
}

.sound-controls {
  display: grid;
  gap: 16px;
}

.toggle-row,
.control-field {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: var(--font-weight-light);
  letter-spacing: 0.8px;
}

.toggle-row {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--panel-border);
}

.toggle-row input[type="checkbox"] {
  width: 42px;
  height: 22px;
  accent-color: var(--color-calm-blue);
}

.control-field span,
.toggle-row span {
  text-transform: uppercase;
  font-size: 11px;
  color: var(--text-muted);
}

.control-field select,
.control-field input[type="range"] {
  width: 100%;
}

.control-field select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background-color: #20283b;
  color: #ffffff;
  font-family: var(--font-primary);
}

.control-field select option {
  background-color: #20283b;
  color: #ffffff;
}

body.theme-light .control-field select,
body.theme-light .control-field select option {
  background-color: #ffffff;
  color: #172033;
}

.control-field input[type="range"] {
  accent-color: var(--color-calm-blue);
}

.module-note {
  margin-top: 18px;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.5;
  font-weight: var(--font-weight-light);
}

.sound-action {
  margin-top: 20px;
}

.guided-meditation-text {
  min-height: 48px;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  font-weight: var(--font-weight-light);
}

.affirmation-text {
  min-height: 130px;
  color: var(--text-soft);
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.35;
  font-weight: var(--font-weight-light);
}

.routine-content {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
  color: var(--text-soft);
  line-height: 1.6;
  font-weight: var(--font-weight-light);
}

.routine-step {
  display: grid;
  gap: 5px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--panel-border);
}

.routine-step-title {
  color: var(--color-calm-blue);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.routine-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.routine-chip {
  padding: 7px 10px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(80, 141, 200, 0.08);
  font-size: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 18px;
}

.stat-item {
  display: grid;
  gap: 6px;
  min-height: 92px;
  align-content: center;
  border-bottom: 1px solid var(--panel-border);
}

.stat-value {
  color: var(--color-calm-blue);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: var(--font-weight-light);
}

.stat-label {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.dashboard-summary {
  margin-top: 22px;
  color: var(--text-soft);
  line-height: 1.6;
  font-weight: var(--font-weight-light);
}

.emotion-timeline {
  position: relative;
  display: grid;
  gap: 20px;
  max-height: 420px;
  overflow-y: auto;
  padding-left: 24px;
  padding-right: 6px;
}

.emotion-timeline::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 8px;
  width: 1px;
  background: var(--timeline-line);
}

.timeline-item {
  position: relative;
  display: grid;
  gap: 6px;
  color: var(--text-soft);
  line-height: 1.5;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--timeline-color, var(--color-calm-blue));
  box-shadow: 0 0 calc(18px * var(--glow-intensity))
    var(--timeline-color, rgba(80, 141, 200, 0.5));
}

.timeline-label {
  color: var(--color-calm-blue);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.timeline-date {
  color: var(--text-faint);
  font-size: 12px;
}

.timeline-text {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: var(--font-weight-light);
}

body.theme-light .module,
body.theme-light .journal-section,
body.theme-light .emotion-card {
  box-shadow: var(--shadow-secondary);
}

body.theme-light .hero-logo {
  filter: drop-shadow(0 0 18px rgba(64, 83, 159, 0.18));
}

body.theme-light .journal-textarea,
body.theme-light .grounding-item,
body.theme-light .reflection-card {
  background: rgba(255, 255, 255, 0.48);
}

/* ============================================================
   STATE-SPECIFIC VISUAL EFFECTS
   ============================================================ */

/* Fight State */
.regulation-section.state-fight {
  --breathing-light: rgba(69, 109, 159, 0.9);
  --breathing-dark: rgba(64, 83, 159, 0.55);
}

.regulation-section.state-fight .breathing-orb {
  animation: fightOrbCharge 1.7s ease-in-out infinite;
}

.regulation-section.state-fight .blob-1 {
  background: radial-gradient(circle, rgba(69, 109, 159, 0.9), transparent);
  animation-duration: 15s;
}

.regulation-section.state-fight .particle {
  animation-duration: 8s;
}

/* Flight State */
.regulation-section.state-flight {
  --breathing-light: rgba(80, 141, 200, 0.9);
  --breathing-dark: rgba(64, 83, 159, 0.55);
}

.regulation-section.state-flight .breathing-orb {
  animation: flightOrbRhythm 4s ease-in-out infinite;
}

.regulation-section.state-flight .blob {
  animation-duration: 18s;
}

/* Freeze State */
.regulation-section.state-freeze {
  --breathing-light: rgba(112, 129, 191, 0.9);
  --breathing-dark: rgba(80, 141, 200, 0.45);
}

.regulation-section.state-freeze .breathing-orb {
  animation: freezeOrbSoften 8s ease-in-out infinite;
}

.regulation-section.state-freeze .blob {
  animation-duration: 35s;
}

/* Shutdown State */
.regulation-section.state-shutdown {
  --breathing-light: rgba(74, 84, 100, 0.9);
  --breathing-dark: rgba(64, 83, 159, 0.4);
}

.regulation-section.state-shutdown .breathing-orb {
  animation: shutdownOrbWeight 7s ease-in-out infinite;
}

.regulation-section.state-shutdown .blob {
  opacity: 0.2;
  animation-duration: 40s;
}

/* Overstimulated State */
.regulation-section.state-overstimulated {
  --breathing-light: rgba(80, 141, 200, 1);
  --breathing-dark: rgba(64, 83, 159, 0.55);
}

.regulation-section.state-overstimulated .breathing-orb {
  animation: overstimulatedOrbIdle 2.4s ease-in-out infinite;
}

.regulation-section.state-overstimulated .breathing-orb.breathing {
  animation: overstimulatedOrbSettle 8s ease-out 1 forwards;
}

.regulation-section.state-overstimulated .blob-1 {
  animation-duration: 12s;
}

.regulation-section.state-overstimulated .blob-2 {
  animation-duration: 14s;
}

.regulation-section.state-overstimulated .particle {
  animation-duration: 6s;
}

.regulation-section.state-overstimulated .particle.fast {
  animation-duration: 4s;
}

/* Calm State */
.regulation-section.state-calm {
  --breathing-light: rgba(112, 129, 191, 0.9);
  --breathing-dark: rgba(80, 141, 200, 0.45);
}

.regulation-section.state-calm .breathing-orb {
  animation: calmOrbFloat 6s ease-in-out infinite;
}

.regulation-section.state-calm .blob {
  animation-duration: 30s;
}

/* Keep the breathing anchor visually grounded. JavaScript still controls the
   gentle inhale/exhale scale, but the orb no longer drifts or bounces. */
.regulation-section .breathing-orb,
.regulation-section .breathing-orb.breathing {
  animation: none !important;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 768px) {
  .hero-title {
    font-size: 48px;
  }

  .emotion-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .hero-logo {
    width: 320px;
    max-width: 90vw;
  }
  .state-section {
    align-items: flex-start;
    overflow-y: auto;
  }

  .state-content {
    padding-top: 120px;
    padding-bottom: 40px;
  }

  .regulation-container {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "breathing"
      "grounding"
      "prompts";
  }

  .wellness-grid,
  .insights-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sound-module {
    grid-row: auto;
  }

  .regulation-header {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .btn,
  .header-font-control {
    flex: 1 1 160px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .reflections-list {
    grid-template-columns: 1fr;
  }

  .float-element {
    display: none;
  }
}

@media (max-width: 980px) {
  .regulation-container,
  .wellness-grid,
  .insights-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .regulation-container {
    grid-template-areas:
      "breathing"
      "grounding"
      "prompts";
  }

  .sound-module {
    grid-row: auto;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 20px;
  }

  .state-content {
    padding: 30px 20px;
  }

  .regulation-content {
    padding: 30px 20px;
  }

  .module {
    padding: 25px;
  }

  .journal-section {
    padding: 25px;
  }

  .breathing-orb {
    width: 120px;
    height: 120px;
  }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

@media (prefers-contrast: more) {
  .btn-primary {
    border-color: var(--color-soft-white);
  }

  .btn-secondary {
    border-color: var(--color-soft-white);
  }

  .emotion-card {
    border-color: var(--color-soft-white);
  }
}

@media (prefers-color-scheme: light) {
  body:not(.theme-dark) {
    background-color: var(--page-background);
    color: var(--text-primary);
  }

  body:not(.theme-dark) .hero-title {
    color: var(--color-royal-indigo);
  }

  body:not(.theme-dark) .emotion-card {
    background: var(--panel-background);
    color: var(--text-primary);
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {
  section {
    page-break-inside: avoid;
  }

  .particles-container,
  .blob,
  .custom-cursor,
  .cursor-follower {
    display: none !important;
  }
}
