/* ==========================================================================
   SAUTI SAFI BRAND DESIGN SYSTEM & CONSTANTS
   ========================================================================== */
:root {
  --bg-canvas: #FFFDF9;
  --bg-card: #FFFFFF;
  --bg-card-alt: #FFF6EF;
  --border-color: #F0E2D5;
  --border-focus: #FF6B35;
  
  --text-main: #1F1A17;
  --text-muted: #6C5F57;
  --text-light: #9B8D85;
  
  --brand-primary: #FF6B35;
  --brand-primary-hover: #E85A24;
  --brand-soft-orange: #FFE8DD;
  --brand-light-orange: #FFF0E8;
  --brand-gradient: linear-gradient(135deg, #FF6B35 0%, #FA541C 100%);
  
  --accent-green: #10B981;
  --accent-green-bg: #ECFDF5;
  
  --shadow-sm: 0 4px 12px rgba(31, 26, 23, 0.04);
  --shadow-md: 0 12px 32px rgba(31, 26, 23, 0.08);
  --shadow-lg: 0 20px 48px rgba(255, 107, 53, 0.14);
  --shadow-active-word: 0 4px 14px rgba(255, 107, 53, 0.35);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   SVG ICON SYSTEM
   ========================================================================== */
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon-sm {
  width: 15px;
  height: 15px;
}

.icon-lg {
  width: 32px;
  height: 32px;
  stroke-width: 1.75;
}

.logo-svg {
  width: 26px;
  height: 26px;
  stroke: var(--brand-primary);
}

.badge-icon-box {
  width: 36px;
  height: 36px;
  background: var(--brand-soft-orange);
  color: var(--brand-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-canvas);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body.menu-open {
  overflow: hidden;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.25);
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
}

.btn-secondary:hover {
  color: var(--brand-primary);
  background: var(--brand-soft-orange);
}

.btn-outline {
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--bg-card-alt);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-soft-orange);
  color: var(--brand-primary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand-primary);
  border-radius: 50%;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(255, 107, 53, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

/* ==========================================================================
   STICKY NAVBAR & MOBILE NAVIGATION
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  transition: all 0.2s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.brand-logo:hover .logo-svg {
  transform: rotate(-8deg);
  transition: transform 0.25s ease;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--brand-primary);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hamburger Button */
.hamburger {
  display: none;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  transition: all 0.2s ease;
}

.hamburger:hover {
  border-color: var(--brand-primary);
}

.hamburger span {
  width: 22px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

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

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}

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

/* Nav Backdrop Overlay */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 14, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   HERO SECTION & FLOATING BADGES
   ========================================================================== */
.hero-section {
  padding: 80px 0 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text-main);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.65;
}

.hero-testimonial {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card-alt);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  border: 1px solid var(--border-color);
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.quote {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

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

/* Visual Stage with Device Frame */
.mockup-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.device-frame {
  width: 100%;
  max-width: 388px;
  height: 800px;
  background: #1F1A17;
  border-radius: 40px;
  padding: 0px;
  box-shadow: var(--shadow-lg);
  box-sizing: border-box;
}

.device-screen {
  background: var(--bg-canvas);
  height: 100%;
  border-radius: 40px;
  border: 10px solid black;
  box-shadow: var(--shadow-lg);
  display: flex;
  overflow: hidden;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-primary);
}

.search-bar-sim {
  background: var(--bg-card);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.transcript-card-sim {
  background: var(--bg-card);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-status {
  color: var(--brand-primary);
  background: var(--brand-soft-orange);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

.card-preview {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.45;
}

.card-footer-sim {
  display: flex;
  gap: 16px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.card-footer-sim span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.record-box-sim {
  margin-top: auto;
  background: var(--bg-card-alt);
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px dashed var(--brand-primary);
}

.waveform-sim {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-bottom: 8px;
  height: 20px;
}

.waveform-sim .bar {
  width: 3px;
  background: var(--brand-primary);
  border-radius: 2px;
  animation: waveBar 1.2s infinite ease-in-out alternate;
}

.waveform-sim .bar:nth-child(1) { height: 8px; animation-delay: 0.1s; }
.waveform-sim .bar:nth-child(2) { height: 16px; animation-delay: 0.3s; }
.waveform-sim .bar:nth-child(3) { height: 12px; animation-delay: 0.2s; }
.waveform-sim .bar:nth-child(4) { height: 18px; animation-delay: 0.4s; }
.waveform-sim .bar:nth-child(5) { height: 6px; animation-delay: 0.15s; }

@keyframes waveBar {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.2); }
}

.rec-button {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.rec-dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand-primary);
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: var(--bg-card);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  animation: floatAnim 4s ease-in-out infinite alternate;
  white-space: nowrap;
}

.floating-badge strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-main);
}

.floating-badge small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.badge-1 { top: 20px; left: -36px; }
.badge-2 { top: 160px; left: -48px; animation-delay: 1s; }
.badge-3 { bottom: 120px; right: -36px; animation-delay: 2s; }
.badge-4 { top: 60px; right: -40px; animation-delay: 1.5s; }

@keyframes floatAnim {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

/* ==========================================================================
   PLATFORMS & FEATURES
   ========================================================================== */
.platforms-section, .features-section, .demo-section {
  padding: 80px 0;
}

.section-subtitle {
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.platform-grid, .feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.platform-card, .feature-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.platform-card:hover, .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.platform-icon, .f-icon {
  color: var(--brand-primary);
  margin-bottom: 16px;
}

.platform-card h3, .feature-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.platform-card p, .feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   INTERACTIVE LIVE DEMO PLAYER WITH WORD-BY-WORD HIGHLIGHTING
   ========================================================================== */
.demo-player-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 36px 36px 28px;
  box-shadow: var(--shadow-md);
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

/* Player Header Bar */
.player-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.audio-file-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-wave-icon {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 22px;
  width: 20px;
  padding-bottom: 3px;
  background: var(--brand-soft-orange);
  padding: 6px;
  border-radius: 8px;
}

.audio-wave-icon .bar-s {
  width: 3px;
  background: var(--brand-primary);
  border-radius: 2px;
  height: 4px;
  transition: height 0.2s ease;
}

.audio-wave-icon.playing .bar-s:nth-child(1) { animation: soundWave 0.8s ease-in-out infinite alternate; }
.audio-wave-icon.playing .bar-s:nth-child(2) { animation: soundWave 0.6s ease-in-out infinite 0.2s alternate; }
.audio-wave-icon.playing .bar-s:nth-child(3) { animation: soundWave 0.9s ease-in-out infinite 0.4s alternate; }
.audio-wave-icon.playing .bar-s:nth-child(4) { animation: soundWave 0.7s ease-in-out infinite 0.15s alternate; }

@keyframes soundWave {
  0% { height: 4px; }
  100% { height: 16px; }
}

.audio-file-text {
  display: flex;
  flex-direction: column;
}

.audio-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.audio-meta-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sync-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg-card-alt);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.sync-status-badge.active {
  background: var(--accent-green-bg);
  color: var(--accent-green);
  border-color: rgba(16, 185, 129, 0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background 0.2s ease;
}

.pulse-dot.active {
  background: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
  100% { transform: scale(0.95); opacity: 1; }
}

/* Timeline & Scrubber */
.player-timeline-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.timeline-container {
  flex: 1;
  height: 24px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  touch-action: none;
}

.timeline-track {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: var(--radius-pill);
  position: relative;
  overflow: visible;
  transition: height 0.15s ease;
}

.timeline-container:hover .timeline-track {
  height: 8px;
}

.timeline-buffered {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #E8D9CE;
  border-radius: var(--radius-pill);
  width: 0%;
  pointer-events: none;
}

.timeline-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--brand-gradient);
  border-radius: var(--radius-pill);
  width: 0%;
  pointer-events: none;
}

.timeline-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  background: #FFFFFF;
  border: 2px solid var(--brand-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.timeline-container:hover .timeline-handle,
.timeline-container:active .timeline-handle {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.2);
}

.timeline-tooltip {
  position: absolute;
  top: -28px;
  transform: translateX(-50%);
  background: var(--text-main);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.time-readout {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.time-current {
  color: var(--brand-primary);
}

.time-separator {
  color: var(--border-color);
}

/* Toolbar Controls */
.player-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.playback-controls {
  gap: 10px;
}

.play-btn {
  background: var(--brand-gradient);
  color: #FFFFFF;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 130px;
  justify-content: center;
}

.play-btn:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.play-btn .icon {
  stroke: #FFFFFF;
}

.ctrl-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ctrl-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-soft-orange);
}

.tool-btn {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-btn:hover {
  color: var(--text-main);
  border-color: var(--brand-primary);
}

.tool-btn.active {
  background: var(--brand-soft-orange);
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.tool-btn.copied {
  background: var(--accent-green-bg);
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.tool-btn-icon {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-btn-icon:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.volume-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-slider {
  width: 70px;
  height: 4px;
  accent-color: var(--brand-primary);
  cursor: pointer;
  border-radius: var(--radius-pill);
}

/* Transcript Search Filter */
.transcript-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  margin-bottom: 16px;
  position: relative;
  transition: border-color 0.2s ease;
}

.transcript-search-bar:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.15);
}

.transcript-search-bar .icon {
  color: var(--text-muted);
}

.transcript-search-bar input {
  border: none;
  background: transparent;
  width: 100%;
  font-family: var(--font-family);
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
}

.search-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-primary);
  white-space: nowrap;
}

.search-clear-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

/* Transcript Editor / Preview Box */
.transcript-editor-preview {
  background: var(--bg-canvas);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  max-height: 420px;
  overflow-y: auto;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

/* Custom Scrollbar for Transcript Box */
.transcript-editor-preview::-webkit-scrollbar {
  width: 6px;
}

.transcript-editor-preview::-webkit-scrollbar-track {
  background: transparent;
}

.transcript-editor-preview::-webkit-scrollbar-thumb {
  background: #E5D5C6;
  border-radius: var(--radius-pill);
}

.transcript-editor-preview::-webkit-scrollbar-thumb:hover {
  background: var(--brand-primary);
}

/* Speaker Blocks */
.speaker-block {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(240, 226, 213, 0.7);
}

.speaker-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.speaker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.speaker-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.speaker-avatar {
  width: 24px;
  height: 24px;
  background: var(--brand-soft-orange);
  color: var(--brand-primary);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.speaker-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
}

.speaker-dialect {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
}

.timestamp-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.timestamp-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-soft-orange);
}

.transcript-text {
  font-size: 1.05rem;
  line-height: 2.1;
  color: var(--text-muted);
}

/* ==========================================================================
   INTERACTIVE WORD HIGHLIGHTING SYSTEM
   ========================================================================== */
.word {
  display: inline-block;
  padding: 2px 5px;
  margin: 1px 1px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.word:hover {
  background-color: var(--brand-soft-orange);
  color: var(--brand-primary);
  transform: translateY(-1px);
}

/* Karaoke Spoken Active Word */
.word.active-word {
  background: var(--brand-gradient) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  transform: translateY(-1px) scale(1.08) !important;
  box-shadow: var(--shadow-active-word) !important;
  z-index: 5;
}

/* Spoken previous words */
.word.played-word {
  color: var(--text-main);
  font-weight: 500;
}

/* Search match highlights */
.word.search-matched {
  background-color: #FEF08A;
  color: #854D0E;
  font-weight: 700;
  box-shadow: 0 0 0 1px #FACC15;
}

.player-footer-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 10px 14px;
  background: var(--bg-card-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.player-footer-hint .icon {
  stroke: var(--brand-primary);
}

/* ==========================================================================
   CTA BANNER & FOOTER
   ========================================================================== */
.cta-banner-section {
  background: var(--bg-card-alt);
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.cta-banner-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-banner-section p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-main);
}

.footer-left .icon {
  stroke: var(--brand-primary);
}

.footer-center {
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  gap: 20px;
}

.footer-right a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-right a:hover {
  color: var(--brand-primary);
}

/* ==========================================================================
   CONTACT PAGE STYLES
   ========================================================================== */
.contact-hero {
  padding: 60px 0 40px;
}

.contact-main-title {
  font-size: clamp(2.2rem, 4.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
}

.contact-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.contact-section {
  padding: 40px 0 80px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.contact-icon-box {
  width: 56px;
  height: 56px;
  background: var(--brand-soft-orange);
  color: var(--brand-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.contact-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-main);
}

.card-note {
  font-size: 0.85rem;
  color: var(--brand-primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.whatsapp-link, .email-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 14px;
  background: var(--bg-card-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.whatsapp-link:hover, .email-link:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.response-time-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.form-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.form-header p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-canvas);
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--text-main);
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.15);
}

.form-alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-bottom: 20px;
  display: none;
}

.form-alert.success {
  background: var(--accent-green-bg);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #065F46;
}

/* ==========================================================================
   PRICING PAGE STYLES
   ========================================================================== */
.pricing-hero {
  padding: 60px 0 40px;
}

.pricing-main-title {
  font-size: clamp(2.2rem, 4.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
}

.pricing-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.pricing-section {
  padding: 40px 0 80px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border: 2px solid var(--brand-primary);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-primary);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
}

.card-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-main);
}

.tag-sub {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 40px;
}

.price-container {
  margin: 20px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.check-icon {
  stroke: var(--brand-primary);
  flex-shrink: 0;
}

.btn-block {
  width: 100%;
}

.payment-methods-section {
  padding-bottom: 80px;
}

.payment-box {
  background: var(--bg-card-alt);
  border: 1px dashed var(--border-color);
  padding: 32px;
  border-radius: var(--radius-md);
  max-width: 600px;
  margin: 0 auto;
}

.payment-box .icon {
  stroke: var(--brand-primary);
  margin-bottom: 12px;
}

.payment-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.payment-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN (DESKTOP & MOBILE FRIENDLY)
   ========================================================================== */

/* Laptop & Narrow Desktop (max-width: 1200px) */
@media (max-width: 1200px) {
  .badge-1 { left: -10px; }
  .badge-2 { left: -15px; }
  .badge-3 { right: -10px; }
  .badge-4 { right: -15px; }
}

/* Tablet Landscape & Below (max-width: 992px) */
@media (max-width: 992px) {
  /* Navbar & Mobile Drawer */
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 290px;
    max-width: 82vw;
    height: 100vh;
    background: var(--bg-card);
    z-index: 999;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 84px 24px 32px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.12);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu a {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 600;
    display: block;
    border-bottom: 1px solid rgba(240, 226, 213, 0.4);
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    background: var(--bg-card-alt);
    color: var(--brand-primary);
  }

  .nav-menu a.active::after {
    display: none;
  }

  /* Hero Section */
  .hero-section {
    padding: 60px 0 80px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-testimonial {
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .floating-badge {
    display: none;
  }

  .mockup-stage {
    margin: 0 auto;
  }

  /* Grids */
  .platform-grid, .feature-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Tablet Portrait & Small Screens (max-width: 768px) */
@media (max-width: 768px) {
  .demo-player-box {
    padding: 24px 20px;
  }

  .player-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .toolbar-group {
    justify-content: center;
    flex-wrap: wrap;
  }

  .playback-controls {
    width: 100%;
    justify-content: center;
  }

  .secondary-controls {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

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

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: 32px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Mobile Screens (max-width: 640px) */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .nav-actions .btn-secondary {
    display: none;
  }

  .hero-section {
    padding: 40px 0 60px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-testimonial {
    flex-direction: column;
    text-align: center;
  }

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

  .pricing-card {
    padding: 24px 18px;
  }

  .demo-player-box {
    padding: 20px 14px;
    border-radius: var(--radius-md);
  }

  .player-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .transcript-editor-preview {
    padding: 16px 12px;
    max-height: 360px;
  }

  .transcript-text {
    font-size: 0.98rem;
    line-height: 2.0;
  }

  .speaker-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .device-frame {
    max-width: 388px;
    height: 800px;
    padding: 0px;
  }

  .cta-banner-section {
    padding: 60px 0;
  }
}

/* Very Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .brand-logo {
    font-size: 1.2rem;
  }

  .nav-actions .btn-primary {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .player-timeline-wrapper {
    gap: 10px;
  }

  .time-readout {
    font-size: 0.78rem;
  }

  .play-btn {
    padding: 9px 18px;
    font-size: 0.9rem;
    min-width: 115px;
  }

  .volume-slider {
    width: 50px;
  }

  .tool-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .contact-form-wrapper {
    padding: 24px 16px;
  }
}

.platform-btn {
   display: inline-block;
   margin-top: 15px;
   padding: 8px 16px;
   background-color: var(--brand-primary); /* Adjust to match Sauti Safi brand color */
   color: #ffffff;
   text-decoration: none;
   border-radius: 20px;
   font-size: 14px;
   font-weight: 500;
   transition: background-color 0.2s;
 }

.platform-btn:hover {
  border-radius: 20px;
  background-color: var(--brand-soft-orange);
}

.platform-btn.outline {
  background-color: transparent;
  color: var(--brand-primary);
  border-radius: 20px;
  border: 1px solid var(--brand-primary);
}

.platform-btn.outline:hover {
  border-radius: 20px;
  background-color: #FFFDF9;
}

.download-actions {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  gap: 10px;
  margin-top: 15px;
}