@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400..700;1,9..40,400..700&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   CSS CUSTOM PROPERTIES / TOKENS
   ========================================================================== */
:root {
  --bg: #080e20;
  --bg2: #10182c;
  --panel: #131e32;
  --panel2: #19243a;
  --line: #29334c;
  --text: #f8f9ff;
  --muted: #9ba7c2;
  --cyan: #47e0ee;
  --blue: #6bb7ff;
  --purple: #9777ff;
  --green: #64e6bb;
  --pink: #ee9bd9;
  --radius: 20px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
  --shadow-3d: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 50px rgba(116, 92, 236, 0.16);
  --touch-target: 44px;
  --header-height: 76px;
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100dvh;
}

body.nav-open {
  overflow: hidden;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #7ddfff;
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.container {
  width: min(1170px, calc(100% - clamp(24px, 5vw, 48px)));
  margin-inline: auto;
}

/* ==========================================================================
   AMBIENT BACKGROUND WITH 3D DEPTH
   ========================================================================== */
.ambient {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  filter: blur(50px);
  opacity: 0.42;
  will-change: transform;
}

.ambient-one {
  width: min(560px, 90vw);
  height: min(560px, 90vw);
  background: radial-gradient(circle, #3d258b 0%, rgba(61, 37, 139, 0) 70%);
  right: -5%;
  top: 10px;
}

.ambient-two {
  width: min(480px, 85vw);
  height: min(480px, 85vw);
  background: radial-gradient(circle, #0f4c81 0%, rgba(15, 76, 129, 0) 70%);
  left: -150px;
  top: 360px;
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 14, 32, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(128, 146, 202, 0.12);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-symbol {
  width: 38px;
  height: 38px;
  display: block;
}

.brand-symbol svg {
  height: 100%;
  width: 100%;
}

.brand-name, .footer-brand {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1.2px;
}

.brand-divider {
  font-weight: 400;
  color: #5c6891;
  padding: 0 3px;
}

.brand-name strong {
  font-weight: 600;
  color: #b0d5fd;
}

.main-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.main-nav a, .nav-history {
  font-size: 13px;
  color: #a4afc8;
  font-weight: 500;
  transition: color 0.2s;
  padding: 8px 0;
}

.main-nav a:hover, .nav-history:hover {
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-history {
  background: none;
  border: 0;
  cursor: pointer;
}

/* Hamburger toggle for mobile */
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: #141f35;
  border: 1px solid #2d3b58;
  border-radius: 10px;
  color: #fff;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  z-index: 60;
}

.mobile-menu-toggle:hover {
  background: #1f2d4d;
  border-color: #5d6d96;
}

.hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  background-color: #edf1ff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  justify-content: flex-end;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 18, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-content {
  position: relative;
  width: min(340px, 86vw);
  height: 100%;
  height: 100dvh;
  background: #0f172d;
  border-left: 1px solid #273453;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav.open .mobile-nav-backdrop {
  opacity: 1;
}

.mobile-nav.open .mobile-nav-content {
  transform: translateX(0);
}

.mobile-nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #1f2b45;
}

.mobile-nav-brand {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -1px;
}

.mobile-nav-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #18233c;
  color: #a4b3d3;
  font-size: 22px;
  border: 1px solid #2b395b;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  color: #cdd8f4;
  font-size: 14px;
  font-weight: 600;
  background: #141d33;
  border: 1px solid #24304e;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-align: left;
}

.mobile-nav-link:hover, .mobile-nav-link:focus-visible {
  background: #232d4b;
  border-color: #6455b8;
  color: #fff;
}

.mobile-nav-link .nav-icon {
  font-size: 16px;
  color: var(--cyan);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid #1f2b45;
}

.mobile-nav-actions .button {
  width: 100%;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.button {
  border: 1px solid transparent;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s, border-color 0.2s;
  color: white;
  min-height: 40px;
  user-select: none;
  -webkit-user-select: none;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.button-small {
  padding: 10px 16px;
  font-size: 12px;
  min-height: 38px;
}

.button-large {
  padding: 16px 24px;
  font-size: 14px;
  min-height: 48px;
}

.button-primary {
  background: linear-gradient(110deg, #665eff, #8d6af7 55%, #ad70ed);
  box-shadow: 0 9px 28px rgba(109, 90, 255, 0.25);
}

.button-primary:hover {
  background: linear-gradient(110deg, #7a72ff, #9c7bff 55%, #b580ff);
  box-shadow: 0 12px 34px rgba(109, 90, 255, 0.4);
}

.button-outline {
  background: rgba(25, 36, 58, 0.6);
  border: 1px solid #3c4664;
}

.button-outline:hover {
  background: #202b43;
  border-color: #5f6f99;
}

.button-ghost {
  background: none;
  color: #a8b1c8;
}

.button-ghost:hover {
  color: #fff;
}

.button-text {
  font-size: 14px;
  color: #c3c9e2;
  padding: 11px 12px;
  min-height: var(--touch-target);
}

.button-white {
  background: white;
  color: #252259;
}

.button-white:hover {
  color: #252259;
  background: #efefff;
}

.play-mini {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 27px;
  height: 27px;
  background: #232943;
  color: #acbaff;
  border-radius: 50%;
  font-size: 9px;
}

/* ==========================================================================
   HERO SECTION & 3D VISUAL
   ========================================================================== */
.hero {
  min-height: 570px;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: clamp(24px, 4vw, 44px);
  padding-top: clamp(40px, 8vw, 75px);
  padding-bottom: clamp(50px, 9vw, 93px);
}

.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #8dbcfb;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 10px;
}

.eyebrow {
  padding: 8px 15px;
  border: 1px solid #293a64;
  border-radius: 30px;
  background: #15203a;
  letter-spacing: 1.4px;
}

.eyebrow-dot, .online-dot, .sound-record-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #59eac7;
  box-shadow: 0 0 12px #59eac7;
}

.hero h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(34px, 1.4rem + 4.2vw, 64px);
  line-height: 1.15;
  letter-spacing: -2.5px;
  margin: 22px 0 18px;
  font-weight: 800;
}

.gradient-type {
  background: linear-gradient(100deg, #a88aff 10%, #78b7ff 55%, #59e2e1 97%);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-description {
  color: #b0bbd3;
  font-size: clamp(14px, 1rem + 0.3vw, 16px);
  line-height: 1.85;
  max-width: 565px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  color: #8d99b2;
  font-size: 12px;
}

.hero-proof strong {
  color: white;
}

.separator {
  padding: 0 4px;
  color: #424d70;
}

.proof-avatar-group {
  display: flex;
  padding-left: 8px;
}

.proof-avatar-group span {
  border: 2px solid #080e20;
  display: inline-grid;
  place-items: center;
  font-weight: bold;
  font-size: 13px;
  border-radius: 50%;
  height: 31px;
  width: 31px;
  margin-left: -8px;
  color: white;
  background: #6952b6;
}

.proof-avatar-group span:nth-child(2) { background: #267e97; }
.proof-avatar-group span:nth-child(3) { background: #a56a79; }
.proof-avatar-group span:nth-child(4) { background: #5172b1; }

/* --- 3D Hero Visual Card --- */
.hero-visual {
  height: 460px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  -webkit-perspective: 1200px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% 6%;
  background: radial-gradient(circle, rgba(102, 94, 255, 0.22), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.hero-3d-card-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform;
}

.hero-sound-card {
  position: relative;
  border: 1px solid #4a457c;
  width: min(385px, 85vw);
  height: 340px;
  border-radius: 26px;
  padding: 26px 27px;
  background: linear-gradient(145deg, #2b285b 0%, #151e39 55%, #111a2c 100%);
  box-shadow: var(--shadow-3d);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  overflow: hidden;
  will-change: transform;
}

/* Subtle 3D dynamic glare sheen */
.hero-card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--glare-x, 30%) var(--glare-y, 20%),
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0) 65%
  );
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: overlay;
  transition: opacity 0.2s ease;
}

.card-topline, .sound-card-footer {
  font-size: 10px;
  letter-spacing: 2px;
  color: #b2b4e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  transform: translateZ(20px);
}

.card-topline span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}

.sound-emblem {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 17px auto 0;
  height: 140px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transform: translateZ(45px);
}

.emblem-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(139, 116, 212, 0.45);
  box-shadow: 0 0 20px rgba(133, 110, 220, 0.15);
  transform-style: preserve-3d;
}

.emblem-ring-one {
  width: 155px;
  height: 155px;
  transform: translateZ(15px) rotateX(15deg);
}

.emblem-ring-two {
  width: 110px;
  height: 110px;
  border-color: rgba(140, 140, 240, 0.65);
  transform: translateZ(28px) rotateY(-20deg);
}

.emblem-core {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 46px;
  background: linear-gradient(145deg, #8774ff, #47a0cf);
  box-shadow: 0 0 35px rgba(135, 116, 255, 0.65), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  transform: translateZ(55px);
}

.wave-bars {
  height: 54px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 6px 0 21px;
  transform: translateZ(30px);
}

.wave-bars i {
  display: block;
  width: 5px;
  height: var(--h);
  background: linear-gradient(to top, #977aff, #5fe2ec);
  border-radius: 20px;
  opacity: 0.9;
  transform-origin: bottom;
  box-shadow: 0 0 8px rgba(95, 226, 236, 0.35);
}

.sound-card-footer {
  gap: 15px;
  transform: translateZ(20px);
}

.sound-progress {
  flex: 1;
  height: 4px;
  background: #3b4565;
  border-radius: 20px;
}

.sound-progress b {
  display: block;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, #8f8bff, #5fe2ec);
  border-radius: 20px;
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(30, 36, 64, 0.92);
  z-index: 10;
  border: 1px solid #575679;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  color: white;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform-style: preserve-3d;
  will-change: transform;
}

.top-badge {
  right: -10px;
  top: 10px;
  transform: translateZ(65px) rotate(4deg);
}

.top-badge .badge-icon {
  font-size: 18px;
  color: #a69bff;
}

.top-badge .online-dot {
  margin-left: 5px;
}

.bottom-badge {
  left: -5px;
  bottom: 15px;
  transform: translateZ(65px) rotate(-3deg);
  padding: 12px 18px;
}

.locale-orb {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #333963;
  border-radius: 9px;
  font-size: 18px;
}

.bottom-badge span:last-child {
  display: flex;
  flex-direction: column;
}

.bottom-badge small {
  color: #9ca8cb;
  font-size: 10px;
  font-weight: 400;
}

/* 3D Animations for devices supporting motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-3d-card-wrapper {
    animation: heroFloat3D 7s ease-in-out infinite alternate;
  }

  @keyframes heroFloat3D {
    0% {
      transform: rotateX(4deg) rotateY(-7deg) rotateZ(-2deg) translateY(0px);
    }
    50% {
      transform: rotateX(0deg) rotateY(3deg) rotateZ(1deg) translateY(-12px);
    }
    100% {
      transform: rotateX(-4deg) rotateY(7deg) rotateZ(2deg) translateY(-4px);
    }
  }

  .emblem-ring-one {
    animation: ringOrbitA 18s linear infinite;
  }

  .emblem-ring-two {
    animation: ringOrbitB 14s linear infinite reverse;
  }

  @keyframes ringOrbitA {
    0% { transform: translateZ(15px) rotateX(15deg) rotateZ(0deg); }
    100% { transform: translateZ(15px) rotateX(15deg) rotateZ(360deg); }
  }

  @keyframes ringOrbitB {
    0% { transform: translateZ(28px) rotateY(-20deg) rotateZ(0deg); }
    100% { transform: translateZ(28px) rotateY(-20deg) rotateZ(360deg); }
  }

  .wave-bars i {
    animation: waveBarsPulse3D 1.8s ease-in-out infinite alternate;
    animation-delay: calc(var(--wave-idx, 0) * 0.08s);
  }

  .wave-bars i:nth-child(odd) {
    animation-duration: 2.1s;
  }

  .wave-bars i:nth-child(3n) {
    animation-duration: 1.5s;
  }

  @keyframes waveBarsPulse3D {
    0% {
      transform: scaleY(0.7) translateZ(0);
      opacity: 0.75;
    }
    100% {
      transform: scaleY(1.15) translateZ(8px);
      opacity: 1;
    }
  }

  .ambient-one {
    animation: ambientFloatA 16s ease-in-out infinite alternate;
  }
  .ambient-two {
    animation: ambientFloatB 20s ease-in-out infinite alternate;
  }

  @keyframes ambientFloatA {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 40px) scale(1.08); }
  }

  @keyframes ambientFloatB {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -30px) scale(1.1); }
  }
}

/* ==========================================================================
   VOICE STUDIO SECTION
   ========================================================================== */
.studio-section {
  padding: clamp(50px, 8vw, 85px) 0 clamp(60px, 10vw, 100px);
  background: linear-gradient(180deg, #0e1629 0%, #0b1325 90%);
  border-top: 1px solid #202a45;
  border-bottom: 1px solid #202a45;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 35px;
}

.section-heading h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(26px, 1.2rem + 2.5vw, 42px);
  line-height: 1.2;
  letter-spacing: -1.4px;
  margin: 10px 0 9px;
}

.section-heading p {
  color: #9aa6be;
  margin: 0;
  max-width: 650px;
}

.period {
  color: #8f70ff;
}

.studio-status {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.studio-state {
  white-space: nowrap;
  color: #abc8db;
  font-size: 12px;
  border: 1px solid #334457;
  border-radius: 30px;
  padding: 8px 14px;
  background: #152536;
}

.studio-state i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #d1b44f;
  margin-right: 7px;
  border-radius: 50%;
}

.studio-state.connected i {
  background: #50dcad;
  box-shadow: 0 0 8px #50dcad;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: clamp(16px, 3vw, 24px);
  align-items: start;
}

.surface {
  background: #141e31;
  border: 1px solid #303b53;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.studio-input-panel {
  padding: clamp(20px, 4vw, 32px);
}

.panel-header, .voice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.panel-header {
  margin-bottom: 18px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-title h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.step-number {
  color: #a79bff;
  border: 1px solid #4c4686;
  background: #2d2b53;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.panel-caption {
  color: #677c9d;
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 800;
}

/* Sample tabs with smooth mobile scroll */
.sample-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sample-tabs::-webkit-scrollbar {
  display: none;
}

.sample-tab {
  background: #1e2b41;
  color: #9eabc5;
  border: 1px solid #303b52;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  min-height: 36px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sample-tab.active, .sample-tab:hover {
  background: #39375f;
  color: #d6ccff;
  border-color: #6c60ab;
}

.script-textarea {
  display: block;
  border: 1px solid #38445e;
  resize: vertical;
  min-height: 185px;
  width: 100%;
  color: #edf1ff;
  background: #0d1729;
  border-radius: 14px;
  padding: 18px;
  font-size: 14px;
  line-height: 1.8;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.script-textarea:focus {
  border-color: #7268d8;
  box-shadow: 0 0 0 3px rgba(114, 104, 216, 0.2);
}

.script-textarea::placeholder {
  color: #626d89;
}

.script-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0 17px;
  font-size: 11px;
  color: #8694b0;
  flex-wrap: wrap;
}

.character-count {
  color: #a6b9d3;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.character-count.over {
  color: #ff8eae;
  font-weight: 700;
}

.section-divider {
  height: 1px;
  background: #2c3650;
  margin: 8px 0 24px;
}

.muted-small {
  font-size: 11px;
  color: #8696b2;
}

.voice-header {
  margin-bottom: 16px;
}

/* Locale chip filter bar */
.locale-filters {
  display: flex;
  gap: 7px;
  max-width: 100%;
  overflow-x: auto;
  margin-bottom: 15px;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.locale-filters::-webkit-scrollbar {
  display: none;
}

.locale-chip {
  background: #1e2940;
  color: #9eabc6;
  border: 1px solid #37415b;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  min-height: 34px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.locale-chip.active, .locale-chip:hover {
  border-color: #8377e7;
  color: #dcd7ff;
  background: #383361;
}

.loading-shimmer {
  font-size: 12px;
  color: #899cba;
}

.voice-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 13px;
}

.language-search {
  grid-column: 1 / -1;
}

.engine-note {
  margin: 14px 0 0;
  color: #93a5c3;
  font-size: 12px;
  line-height: 1.6;
}

.format-group {
  margin-bottom: 16px;
}

.format-group label {
  display: flex;
  justify-content: space-between;
  color: #d4def0;
  font-weight: 700;
  font-size: 12px;
}

.format-group select {
  margin-top: 8px;
  height: 44px;
  width: 100%;
  background: #0d182b;
  border: 1px solid #37435a;
  border-radius: 10px;
  color: #dce5f7;
  padding: 0 12px;
}

.audio-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.audio-actions .download-button {
  margin-top: 0;
}

.select-wrap select, .search-wrap input {
  height: 44px;
  background: #0d182b;
  border: 1px solid #37435a;
  border-radius: 10px;
  color: #dce5f7;
  width: 100%;
  min-width: 0;
  padding: 0 12px;
  font-size: 12px;
  outline: none;
  transition: border-color 0.15s;
}

.select-wrap select:focus, .search-wrap input:focus {
  border-color: #7268d8;
}

.select-wrap select {
  appearance: auto;
}

.search-wrap {
  position: relative;
}

.search-wrap span {
  position: absolute;
  left: 12px;
  top: 4px;
  font-size: 24px;
  color: #7685a5;
  pointer-events: none;
}

.search-wrap input {
  padding-left: 38px;
}

/* Voice card grid */
.voice-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-height: 295px;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 4px;
}

.voice-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid #354058;
  border-radius: 13px;
  background: #19263c;
  color: #b8c5de;
  text-align: left;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  cursor: pointer;
}

.voice-card:hover {
  background: #25334f;
  border-color: #7773bb;
  transform: translateY(-1px);
}

.voice-card.selected {
  border-color: #9580ff;
  background: #282747;
  box-shadow: inset 0 0 0 1px #7061b9, 0 4px 14px rgba(112, 97, 185, 0.25);
}

.voice-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #375481, #5d3f86);
  font-size: 15px;
  color: white;
  font-weight: 800;
}

.voice-details {
  min-width: 0;
  flex: 1;
}

.voice-details strong {
  font-size: 13px;
  color: #eef1ff;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-details small {
  font-size: 10px;
  color: #93a0bc;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

.voice-preview {
  padding: 6px 8px;
  border: 1px solid #4b5680;
  border-radius: 8px;
  background: #2a3554;
  color: #b5b7ff;
  font-size: 13px;
  min-height: 32px;
}

.voice-preview:hover {
  background: #44436f;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 35px 16px;
  color: #8796b3;
  font-size: 12px;
}

.advanced-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #2c3650;
  margin-top: 22px;
  padding-top: 20px;
}

.advanced-toggle {
  border: 0;
  background: none;
  color: #ced6f6;
  padding: 0;
  font-weight: 700;
  font-size: 12px;
  min-height: var(--touch-target);
  display: inline-flex;
  align-items: center;
}

.advanced-toggle span {
  padding-left: 6px;
  font-size: 14px;
}

.advanced-panel {
  margin-top: 16px;
  background: #101b2e;
  padding: 20px;
  border: 1px solid #34415a;
  border-radius: 14px;
}

.slider-group + .slider-group {
  margin-top: 20px;
}

.slider-group label {
  display: flex;
  justify-content: space-between;
  color: #d4def0;
  font-weight: 700;
  font-size: 12px;
}

.slider-group label span {
  color: #9da1ff;
}

.slider-group input {
  margin: 14px 0 0;
  width: 100%;
  accent-color: #8c7af9;
  height: 24px;
}

.range-extents {
  display: flex;
  justify-content: space-between;
  color: #72819e;
  font-size: 10px;
}

.reset-settings {
  background: none;
  border: 0;
  color: #a79bff;
  padding: 14px 0 0;
  font-size: 11px;
}

.generate-button {
  margin-top: 22px;
  width: 100%;
  padding: 16px 20px;
  font-size: 14px;
  min-height: 52px;
}

.generate-arrow {
  margin-left: auto;
  font-size: 18px;
}

.usage-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #8d9db8;
  font-size: 11px;
  padding-top: 14px;
  flex-wrap: wrap;
}

.text-link {
  border: 0;
  background: none;
  color: #a79bff;
  font-weight: 700;
  font-size: 11px;
  padding: 0;
  white-space: nowrap;
}

/* --- Studio Output Panel & 3D Gyroscopic Audio Core --- */
.studio-output-panel {
  padding: clamp(20px, 4vw, 30px);
  position: sticky;
  top: 98px;
}

.output-number {
  color: #4bd5cd;
  background: #1b424d;
  border-color: #30646f;
}

.pill {
  background: #233447;
  border: 1px solid #33546a;
  color: #82b4c9;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 700;
}

.output-art {
  height: 295px;
  position: relative;
  margin: 24px 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 50%, #28317a 0%, #192b50 35%, #10233d 72%, #101c31 100%);
  perspective: 900px;
  -webkit-perspective: 900px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.output-art-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: linear-gradient(#5b6da4 1px, transparent 1px), linear-gradient(90deg, #5b6da4 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse, black 30%, transparent 80%);
}

.output-orbit {
  position: absolute;
  border-radius: 50%;
  transform-style: preserve-3d;
}

.output-orbit.outer {
  width: 255px;
  height: 255px;
  border: 1px solid rgba(95, 128, 188, 0.35);
}

.output-orbit.middle {
  width: 220px;
  height: 220px;
  border: 1px dashed rgba(118, 150, 217, 0.45);
}

.output-orbit.inner {
  width: 185px;
  height: 185px;
  border: 1px solid rgba(130, 160, 230, 0.6);
}

.output-art-symbol {
  display: grid;
  place-items: center;
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  color: white;
  font-size: 64px;
  background: linear-gradient(145deg, #8972f9, #527bd9 60%, #37b3c3);
  box-shadow: 0 0 0 12px rgba(118, 132, 232, 0.12), 0 0 45px rgba(119, 121, 255, 0.65);
  transform: translateZ(40px);
}

.output-sparkle {
  position: absolute;
  color: #80e4eb;
  font-size: 22px;
  text-shadow: 0 0 8px rgba(128, 228, 235, 0.8);
}

.star-a { left: 18%; top: 22%; }
.star-b { right: 18%; bottom: 22%; }
.star-c { left: 24%; bottom: 26%; font-size: 16px; color: #a498ff; }

.output-3d-pulse {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(112, 233, 231, 0.5);
  opacity: 0;
  pointer-events: none;
}

/* Gyroscopic 3D Rotations in output-art */
@media (prefers-reduced-motion: no-preference) {
  .output-orbit.outer {
    animation: gyroOuter3D 20s linear infinite;
  }
  .output-orbit.middle {
    animation: gyroMiddle3D 15s linear infinite reverse;
  }
  .output-orbit.inner {
    animation: gyroInner3D 11s linear infinite;
  }

  @keyframes gyroOuter3D {
    0% { transform: rotate3d(1, 0.4, 0, 0deg); }
    100% { transform: rotate3d(1, 0.4, 0, 360deg); }
  }

  @keyframes gyroMiddle3D {
    0% { transform: rotate3d(0.2, 1, 0.5, 0deg); }
    100% { transform: rotate3d(0.2, 1, 0.5, 360deg); }
  }

  @keyframes gyroInner3D {
    0% { transform: rotate3d(0.6, 0.2, 1, 0deg); }
    100% { transform: rotate3d(0.6, 0.2, 1, 360deg); }
  }

  .output-art-symbol {
    animation: symbolFloat3D 4s ease-in-out infinite alternate;
  }

  @keyframes symbolFloat3D {
    0% {
      transform: translateZ(35px) scale(0.97);
    }
    100% {
      transform: translateZ(50px) scale(1.03);
    }
  }

  /* Active state when audio is synthesizing */
  .output-art.synthesizing-3d .output-orbit.outer {
    animation-duration: 5s;
    border-color: rgba(95, 226, 236, 0.7);
  }

  .output-art.synthesizing-3d .output-orbit.middle {
    animation-duration: 4s;
    border-color: rgba(167, 155, 255, 0.8);
  }

  .output-art.synthesizing-3d .output-orbit.inner {
    animation-duration: 2.8s;
    border-color: rgba(112, 233, 231, 0.9);
  }

  .output-art.synthesizing-3d .output-3d-pulse {
    animation: pulseRing3D 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  }

  @keyframes pulseRing3D {
    0% {
      transform: scale(0.9) translateZ(10px);
      opacity: 0.9;
    }
    100% {
      transform: scale(2.2) translateZ(40px);
      opacity: 0;
    }
  }
}

.output-description {
  text-align: center;
  padding: 4px 10px 18px;
}

.output-description h3 {
  font-size: 18px;
  line-height: 1.35;
  margin: 7px 0 10px;
}

.output-description p {
  font-size: 12px;
  line-height: 1.8;
  color: #90a0bb;
  max-width: 325px;
  margin: auto;
}

.audio-wrap {
  padding: 14px;
  background: #0c172a;
  border: 1px solid #34415a;
  border-radius: 14px;
  margin-bottom: 20px;
}

.audio-wrap audio {
  width: 100%;
  height: 44px;
}

.download-button {
  width: 100%;
  padding: 13px;
  margin-top: 9px;
  font-size: 12px;
}

.output-benefits {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #80b9ae;
  padding: 18px 0;
  border-top: 1px solid #2c3650;
  margin-top: 20px;
}

.output-hint {
  border: 1px solid #35415a;
  background: #1a2942;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 12px;
  color: #93a5c3;
  line-height: 1.6;
  font-size: 11px;
}

.hint-icon {
  font-size: 21px;
  color: #9d95ff;
  flex-shrink: 0;
}

.alert-banner {
  margin-top: 18px;
  border: 1px solid #78465b;
  color: #ffc3cd;
  background: #412336;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 12px;
}

.alert-banner.success {
  background: #173d35;
  color: #aaf2d7;
  border-color: #386e65;
}

/* ==========================================================================
   FEATURES SECTION & 3D HOVER CARDS
   ========================================================================== */
.features-section {
  padding: clamp(60px, 10vw, 105px) 0;
}

.centered {
  display: block;
  text-align: center;
}

.centered p {
  margin: 0 auto;
}

.dim-text {
  color: #7787a9;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 46px;
}

.feature-card {
  padding: clamp(22px, 3.5vw, 32px) clamp(20px, 3vw, 28px);
  background: #111b2e;
  border: 1px solid #293550;
  border-radius: var(--radius);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}

.feature-card:hover {
  border-color: #675e9d;
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(103, 94, 157, 0.18);
}

.feature-icon {
  width: 53px;
  height: 53px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 27px;
  margin-bottom: 24px;
  font-weight: 800;
  transform: translateZ(12px);
}

.cyan-icon   { color: #70e9e7; background: #193e50; }
.violet-icon { color: #ad99ff; background: #342c5e; }
.amber-icon  { color: #f6c082; background: #45372b; }
.green-icon  { color: #85efc7; background: #24493e; }
.pink-icon   { color: #ee9bd9; background: #512d4d; }
.blue-icon   { color: #8bbdff; background: #243a5d; }

.feature-card h3 {
  font-size: 16px;
  margin: 0 0 10px;
  transform: translateZ(8px);
}

.feature-card p {
  color: #94a1bb;
  font-size: 13px;
  line-height: 1.85;
  margin: 0;
}

/* ==========================================================================
   HISTORY SECTION
   ========================================================================== */
.history-section {
  padding: 20px 0 80px;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-item {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #141e31;
  border: 1px solid #303b53;
  border-radius: 14px;
}

.history-item > div:first-child {
  min-width: 0;
}

.history-item strong {
  font-size: 13px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 620px;
}

.history-item small {
  font-size: 11px;
  color: #9ba8bd;
}

.history-actions {
  display: flex;
  gap: 8px;
}

.history-actions a, .history-actions button {
  padding: 9px 13px;
  font-size: 11px;
  background: #293754;
  border: 1px solid #4b5577;
  border-radius: 9px;
  color: #e3e7ff;
  white-space: nowrap;
}

.history-actions button:hover, .history-actions a:hover {
  background: #414a71;
}

/* ==========================================================================
   PRICING SECTION & 3D ELEVATION
   ========================================================================== */
.pricing-section {
  padding: clamp(60px, 9vw, 94px) 0;
  background: #10192b;
  border-block: 1px solid #25314c;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-top: 50px;
}

.price-card {
  border: 1px solid #333e56;
  border-radius: var(--radius);
  background: #152136;
  padding: clamp(24px, 4vw, 32px);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
  transform-style: preserve-3d;
}

.price-card:hover {
  transform: translateY(-4px);
  border-color: #5d6785;
}

.price-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 16px;
}

.price-label {
  font-size: 9px;
  color: #929cba;
  letter-spacing: 1.2px;
}

.price-card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 37px;
  margin: 16px 0 8px;
  letter-spacing: -1.4px;
}

.price-card h3 small {
  font-size: 12px;
  color: #93a2be;
  font-weight: 500;
  letter-spacing: 0;
}

.price-card > p {
  color: #9aa8bf;
  font-size: 12px;
  margin: 0 0 24px;
}

.price-card ul {
  list-style: none;
  margin: 0 0 27px;
  padding: 0;
  display: grid;
  gap: 15px;
  flex: 1;
}

.price-card li {
  font-size: 12px;
  color: #c1cce3;
  position: relative;
  padding-left: 22px;
}

.price-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #64dbc2;
  font-weight: 700;
}

.price-action {
  padding: 15px;
  width: 100%;
  font-size: 12px;
}

.featured-price {
  border-color: #9a81fe;
  box-shadow: 0 0 36px rgba(125, 92, 255, 0.22);
  background: linear-gradient(150deg, #292347 0%, #182439 70%);
}

.featured-price:hover {
  border-color: #b59fff;
  box-shadow: 0 0 45px rgba(125, 92, 255, 0.35);
}

.popular-flag {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #826aff, #b47ff7);
  white-space: nowrap;
  font-size: 9px;
  letter-spacing: 1.2px;
  padding: 7px 15px;
  border-radius: 20px;
  font-weight: 800;
}

.billing-hint {
  font-size: 10px;
  color: #8da1b6;
  text-align: center;
  margin-top: 12px;
}

.pricing-footnote {
  text-align: center;
  max-width: 700px;
  margin: 26px auto 0;
  font-size: 11px;
  color: #8394af;
  line-height: 1.6;
}

.api-panel {
  margin: 28px auto 0;
  max-width: 760px;
  text-align: left;
  background: #141e31;
  border: 1px solid #303b53;
  border-radius: 16px;
  padding: clamp(18px, 3.5vw, 24px);
}

.api-panel h3 {
  margin: 0 0 8px;
}

.api-panel p {
  color: #9aa6be;
  font-size: 13px;
}

.api-sample {
  white-space: pre-wrap;
  background: #0d1729;
  border-radius: 10px;
  padding: 14px;
  color: #dce7ff;
  font-size: 12px;
  overflow-x: auto;
}

.api-key-once {
  color: #b8ffd8;
  word-break: break-all;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
  padding: clamp(60px, 9vw, 105px) 0 clamp(50px, 8vw, 90px);
}

.faq-items {
  max-width: 790px;
  margin: 36px auto 0;
  border-top: 1px solid #303951;
}

.faq-items details {
  border-bottom: 1px solid #303951;
  padding: 22px 8px;
}

.faq-items summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  min-height: var(--touch-target);
}

.faq-items summary::-webkit-details-marker {
  display: none;
}

.faq-items summary span {
  font-size: 20px;
  color: #a498ff;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-items details[open] summary span {
  transform: rotate(45deg);
}

.faq-items p {
  color: #93a4be;
  font-size: 13px;
  line-height: 1.85;
  max-width: 660px;
  margin: 12px 0 0;
}

/* ==========================================================================
   CLOSING CTA & FOOTER
   ========================================================================== */
.closing {
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(50px, 8vw, 95px);
  min-height: 335px;
  border-radius: 24px;
  text-align: center;
  background: linear-gradient(115deg, #5c4ec5, #7551c9 54%, #3e80bb);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  border: 1px solid rgba(162, 157, 255, 0.38);
}

.closing .kicker {
  color: #d4d0ff;
}

.closing h2 {
  position: relative;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(28px, 1.4rem + 2.5vw, 42px);
  letter-spacing: -1.7px;
  margin: 6px 0 9px;
}

.closing p {
  position: relative;
  margin: 0 0 24px;
  color: #dedcff;
}

.closing .button {
  position: relative;
}

.closing-shape {
  position: absolute;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  right: -170px;
  top: -220px;
  box-shadow: 0 0 0 68px rgba(255, 255, 255, 0.03), 0 0 0 136px rgba(255, 255, 255, 0.03);
}

.footer {
  border-top: 1px solid #293249;
  padding: 28px 0;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  font-size: 20px;
}

.footer-brand span {
  color: #a68afa;
}

.footer-inner p, .footer-inner > span:last-child {
  font-size: 11px;
  color: #7f91ad;
}

/* ==========================================================================
   MODAL & TOAST
   ========================================================================== */
.modal-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  background: rgba(5, 8, 20, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  padding-top: calc(20px + env(safe-area-inset-top));
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

.modal {
  position: relative;
  background: #151e33;
  border: 1px solid #485477;
  max-width: 445px;
  width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(24px, 5vw, 36px);
  border-radius: 22px;
  box-shadow: 0 35px 110px rgba(0, 0, 0, 0.65);
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 14px;
  border: 0;
  background: none;
  color: #8e9eb8;
  font-size: 28px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.modal-brand {
  font-size: 12px;
  color: #a395ff;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.modal h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 28px;
  letter-spacing: -1px;
  margin: 0 0 4px;
}

.modal > p {
  margin: 0;
  color: #9baccc;
  font-size: 12px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  background: #0e182a;
  padding: 5px;
  border-radius: 10px;
  margin: 24px 0;
}

.auth-tabs button {
  background: none;
  border: 0;
  border-radius: 7px;
  padding: 10px;
  color: #95a3ba;
  font-size: 12px;
  font-weight: 700;
  min-height: 38px;
}

.auth-tabs button.active {
  background: #2e3559;
  color: white;
}

#auth-form label {
  font-size: 12px;
  display: block;
  color: #c4cde0;
  margin-bottom: 18px;
  font-weight: 700;
}

#auth-form input {
  display: block;
  height: 48px;
  padding: 0 14px;
  margin-top: 7px;
  width: 100%;
  background: #0d182b;
  border: 1px solid #3b4860;
  border-radius: 10px;
  color: white;
  outline: none;
}

.auth-submit {
  width: 100%;
  padding: 16px;
  margin-top: 4px;
  min-height: 48px;
}

.auth-disclaimer {
  display: block;
  font-size: 10px;
  line-height: 1.7;
  color: #7e8ba9;
  text-align: center;
  margin-top: 20px;
}

.form-error {
  padding: 10px;
  border-radius: 8px;
  background: #4d2636;
  color: #ffc1cd;
  font-size: 11px;
}

.toast {
  position: fixed;
  bottom: clamp(16px, 4vw, 28px);
  right: clamp(16px, 4vw, 28px);
  z-index: 110;
  padding: 14px 18px;
  max-width: min(340px, calc(100vw - 32px));
  background: #27375a;
  color: white;
  border: 1px solid #6873ad;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 12px;
}

/* ==========================================================================
   CONTENT & LANGUAGE PAGES
   ========================================================================== */
.answers-section {
  padding: clamp(50px, 8vw, 88px) 0 10px;
}

.answers-section h2, .languages-section h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(26px, 1.2rem + 2.5vw, 42px);
  line-height: 1.2;
  letter-spacing: -1.4px;
  margin: 10px 0 14px;
}

.answer-lead {
  color: #9aa6be;
  max-width: 760px;
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.8;
}

.languages-section {
  padding: 36px 0 10px;
}

.lang-group-title {
  margin: 22px 0 10px;
  font-size: 13px;
  letter-spacing: 0.4px;
  color: #c9d4ee;
}

.lang-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-cloud li {
  border: 1px solid #37415b;
  background: #1e2940;
  color: #d5def3;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 650;
}

.lang-note {
  margin-top: 18px;
}

.facts-checked {
  color: #7f91ad;
  font-size: 12px;
  margin: 8px 0 18px;
}

.howto-list {
  margin: 8px 0 0;
  padding-left: 18px;
  max-width: 760px;
  color: #c5d0e6;
}

.howto-list li {
  margin: 0 0 10px;
  line-height: 1.7;
}

.uses-section {
  padding: 28px 0 10px;
}

.lang-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 16px;
}

.lang-links a {
  color: #c9bfff;
  font-size: 13px;
  font-weight: 700;
}

.lang-index {
  list-style: none;
  padding: 0;
  margin: 18px 0 40px;
  display: grid;
  gap: 8px;
}

.lang-index li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #2c3650;
  padding: 8px 0;
}

.lang-index span {
  color: #8ea0bd;
  font-size: 12px;
}

.sample-line {
  font-size: 18px;
  color: #f4f7ff;
}

/* Language Page Enhancements */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #8ea0bd;
  margin-bottom: 20px;
}

.breadcrumbs a {
  color: #c9bfff;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span[aria-current="page"] {
  color: #e2e8f0;
}

.lang-spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 24px;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(30, 41, 64, 0.7);
  border: 1px solid #37415b;
  font-size: 12px;
  color: #c5d0e6;
}

.spec-pill strong {
  color: #ffffff;
}

.lang-scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 20px 0 32px;
}

.lang-scenario-card {
  background: #121829;
  border: 1px solid #28334e;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scenario-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(124, 92, 255, 0.15);
  color: #b7a4ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.scenario-title {
  font-size: 15px;
  font-weight: 700;
  color: #f4f7ff;
  margin: 0;
}

.scenario-script {
  font-size: 15px;
  line-height: 1.7;
  color: #ffffff;
  background: rgba(18, 24, 41, 0.8);
  border: 1px solid #222b40;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0;
}

.scenario-meaning {
  font-size: 13px;
  color: #8ea0bd;
  margin: 0;
  line-height: 1.6;
}

.lang-callout-box {
  background: rgba(18, 24, 41, 0.6);
  border: 1px solid #2b3855;
  border-left: 4px solid var(--accent, #7c5cff);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0 32px;
}

.lang-callout-box h3 {
  margin: 0 0 10px;
  font-size: 17px;
  color: #f4f7ff;
}

.lang-callout-box p {
  margin: 0;
  color: #a8b6d4;
  font-size: 14px;
  line-height: 1.8;
}

.code-snippet {
  background: #0b0f19;
  border: 1px solid #232d43;
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  color: #7dd3fc;
  line-height: 1.6;
  margin: 14px 0 28px;
}

.lang-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 36px;
}

.lang-faq-card {
  background: #121829;
  border: 1px solid #242e45;
  border-radius: 10px;
  padding: 18px 22px;
}

.lang-faq-card h3 {
  font-size: 16px;
  color: #f4f7ff;
  margin: 0 0 8px;
}

.lang-faq-card p {
  font-size: 14px;
  color: #9aa6be;
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet (<= 1100px) */
@media (max-width: 1100px) {
  .header-actions .nav-start {
    display: none;
  }
  .top-badge {
    right: -10px;
  }
  .main-nav {
    gap: 18px;
  }
  .voice-list {
    grid-template-columns: 1fr;
    max-height: 310px;
  }
}

/* Tablet & Mobile (<= 840px) */
@media (max-width: 840px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
    gap: 30px;
    padding-bottom: 50px;
  }
  .hero-visual {
    height: 380px;
  }
  .hero-sound-card {
    height: 300px;
    width: min(385px, 88vw);
  }
  .sound-emblem {
    height: 120px;
  }
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .studio-output-panel {
    position: static;
  }
  .voice-list {
    grid-template-columns: 1fr 1fr;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-inline: auto;
    gap: 28px;
  }
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-inner {
    flex-wrap: wrap;
  }
}

/* Mobile Screens (<= 560px) */
@media (max-width: 560px) {
  :root {
    --header-height: 64px;
  }

  .site-header .header-inner {
    min-height: var(--header-height);
  }

  .brand-symbol {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 20px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions #auth-open {
    font-size: 11px;
    padding: 8px 12px;
    min-height: 36px;
  }

  .hero {
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: clamp(32px, 8.5vw, 44px);
    letter-spacing: -1.8px;
  }

  .hero-description {
    font-size: 14px;
    margin-bottom: 22px;
  }

  .hero-actions {
    gap: 12px;
  }

  .hero-actions .button-large {
    width: 100%;
    padding: 16px;
  }

  .hero-proof {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
  }

  .hero-visual {
    height: 320px;
  }

  .hero-sound-card {
    height: 275px;
    padding: 20px;
    width: min(340px, 92vw);
  }

  .sound-emblem {
    height: 100px;
    margin-top: 10px;
  }

  .emblem-ring-one {
    width: 120px;
    height: 120px;
  }

  .emblem-ring-two {
    width: 85px;
    height: 85px;
  }

  .emblem-core {
    width: 56px;
    height: 56px;
    font-size: 36px;
  }

  .wave-bars {
    height: 42px;
    gap: 4px;
    margin: 4px 0 16px;
  }

  .top-badge {
    top: 0;
    right: -4px;
    font-size: 9px;
    padding: 8px 12px;
  }

  .bottom-badge {
    bottom: -5px;
    left: -4px;
    font-size: 10px;
    padding: 10px 14px;
  }

  .locale-orb {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }

  .studio-input-panel, .studio-output-panel {
    padding: 18px 16px;
  }

  .panel-title h3 {
    font-size: 15px;
  }

  .sample-tabs {
    gap: 5px;
  }

  .sample-tab {
    padding: 7px 10px;
    font-size: 10px;
  }

  .script-textarea {
    font-size: 13px;
    padding: 14px;
    min-height: 160px;
  }

  .voice-controls {
    grid-template-columns: 1fr;
  }

  .voice-list {
    grid-template-columns: 1fr;
    max-height: 270px;
  }

  .voice-card {
    min-height: 64px;
  }

  .output-art {
    height: 240px;
  }

  .output-orbit.outer {
    width: 200px;
    height: 200px;
  }

  .output-orbit.middle {
    width: 170px;
    height: 170px;
  }

  .output-orbit.inner {
    width: 140px;
    height: 140px;
  }

  .output-art-symbol {
    width: 90px;
    height: 90px;
    font-size: 48px;
  }

  .audio-actions {
    grid-template-columns: 1fr;
  }

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

  .feature-card {
    padding: 24px 20px;
  }

  .pricing-grid {
    gap: 20px;
  }

  .price-card {
    padding: 24px 20px;
  }

  .history-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .closing {
    margin-bottom: 40px;
    min-height: 260px;
    padding: 36px 18px;
  }

  .closing h2 {
    font-size: 30px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-inner > * {
    margin: 4px 0;
  }

  .modal {
    padding: 24px 18px;
  }

  .toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
}

/* ==========================================================================
   REDUCED MOTION OVERRIDES (WCAG 2.2.2 & 2.3.1 compliance)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero-3d-card-wrapper,
  .hero-sound-card,
  .emblem-ring,
  .emblem-core,
  .wave-bars i,
  .output-orbit,
  .output-art-symbol,
  .feature-card,
  .price-card {
    transform: none !important;
    animation: none !important;
  }

  .hero-card-glare {
    display: none;
  }
}
