/* ==========================================================================
   WRITE GENIUS - PREMIUM CSS DESIGN SYSTEM (WITH LIGHT/DARK THEME & IMG BG)
   Inspirasi: ClayAI Framer (Glassmorphism, Electric Glows)
   ========================================================================== */

/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Design Tokens & Variables - Dark Mode (Default) */
:root {
  /* Colors */
  --bg-base: hsl(354, 18%, 6%);
  --bg-surface: hsla(354, 15%, 10%, 0.65);
  --bg-surface-hover: hsla(354, 15%, 14%, 0.85);
  --bg-card: hsla(354, 15%, 10%, 0.45);
  
  /* Raw HSL values for opacity manipulation */
  --primary-raw: 3, 38%, 66%;     /* #C98986 - Clay Rose/Terracotta */
  --secondary-raw: 354, 23%, 44%; /* #8B575C - Rosewood */
  --accent-raw: 339, 73%, 85%;    /* #F6BDD1 - Soft Pink */

  --primary: hsl(var(--primary-raw));
  --primary-glow: hsla(var(--primary-raw), 0.15);
  --primary-border: hsla(var(--primary-raw), 0.2);
  --primary-border-hover: hsla(var(--primary-raw), 0.5);

  --secondary: hsl(var(--secondary-raw));
  --secondary-glow: hsla(var(--secondary-raw), 0.15);

  --accent: hsl(var(--accent-raw));
  --accent-glow: hsla(var(--accent-raw), 0.15);
  --accent-border: hsla(var(--accent-raw), 0.2);
  
  --whatsapp: hsl(142, 70%, 50%);
  --whatsapp-glow: hsla(142, 70%, 50%, 0.2);
  --telegram: hsl(200, 90%, 50%);
  --telegram-glow: hsla(200, 90%, 50%, 0.2);

  --text-primary: hsl(0, 0%, 98%);
  --text-secondary: hsl(354, 15%, 75%);
  --text-muted: hsl(354, 10%, 55%);
  
  --border-light: hsla(354, 15%, 90%, 0.08);
  --border-glow: hsla(var(--primary-raw), 0.15);
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Shadows & Blur */
  --blur-glass: 16px;
  --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode Overrides */
body.light-theme {
  --bg-base: hsl(0, 0%, 96%); /* #F4F4F4 */
  --bg-surface: hsla(300, 47%, 93%, 0.75); /* #F6E4F6 */
  --bg-surface-hover: hsla(300, 47%, 88%, 0.9);
  --bg-card: hsla(300, 47%, 95%, 0.6);

  /* Swapped roles and adjusted for readability in light mode */
  --primary-raw: 354, 23%, 44%;   /* #8B575C - Rosewood as primary */
  --secondary-raw: 3, 38%, 66%;   /* #C98986 - Clay Rose as secondary */
  --accent-raw: 339, 73%, 55%;    /* Darker Soft Pink for contrast */

  --primary: hsl(var(--primary-raw));
  --primary-glow: hsla(var(--primary-raw), 0.08);
  --primary-border: hsla(var(--primary-raw), 0.15);
  --primary-border-hover: hsla(var(--primary-raw), 0.4);

  --secondary: hsl(var(--secondary-raw));
  --secondary-glow: hsla(var(--secondary-raw), 0.08);

  --accent: hsl(var(--accent-raw));
  --accent-glow: hsla(var(--accent-raw), 0.15);
  --accent-border: hsla(var(--accent-raw), 0.15);

  --text-primary: hsl(354, 30%, 15%);
  --text-secondary: hsl(354, 20%, 30%);
  --text-muted: hsl(354, 15%, 45%);

  --border-light: hsla(354, 20%, 20%, 0.12);
  --border-glow: hsla(var(--primary-raw), 0.16);

  --shadow-premium: 0 25px 50px -12px rgba(139, 87, 92, 0.12);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 4. BACKGROUND IMAGE INTEGRATION (Removed for premium performance optimization. Relying entirely on CSS ambient glows) */

/* Ambient Glow Backgrounds */
.ambient-glows {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.glow-1 {
  position: absolute;
  top: -10%;
  left: 15%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  filter: blur(100px);
}

.glow-2 {
  position: absolute;
  top: 30%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
  filter: blur(120px);
}

.glow-3 {
  position: absolute;
  top: 65%;
  left: -15%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(130px);
}

/* Reusable UI Components */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.glass-panel {
  background: var(--bg-surface);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--primary-border);
  box-shadow: 0 25px 50px -12px rgba(124, 58, 237, 0.15), var(--shadow-premium);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  gap: 0.5rem;
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: 0 8px 20px -6px hsla(var(--primary-raw), 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -4px hsla(var(--primary-raw), 0.6);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-25deg);
  transition: 0.75s;
}

.btn-primary:hover::after {
  left: 125%;
}

.btn-secondary {
  background: hsla(240, 20%, 15%, 0.6);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}

body.light-theme .btn-secondary {
  background: hsla(240, 20%, 85%, 0.6);
}

.btn-secondary:hover {
  background: hsla(240, 20%, 20%, 0.8);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

body.light-theme .btn-secondary:hover {
  background: hsla(240, 20%, 80%, 0.8);
}

.btn-telegram {
  background: var(--telegram);
  color: white;
  box-shadow: 0 8px 20px -6px var(--telegram-glow);
}

.btn-telegram:hover {
  background: hsl(200, 90%, 45%);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -4px var(--telegram-glow);
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 20%, var(--primary) 60%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1rem;
  background: hsla(263, 90%, 60%, 0.1);
  border: 1px solid var(--primary-border);
  border-radius: 99px;
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

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

/* Theme Toggle Button */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
  outline: none;
}

body.light-theme .theme-toggle-btn {
  background: rgba(0, 0, 0, 0.03);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-border-hover);
  color: var(--primary);
  transform: scale(1.05);
}

body.light-theme .theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--primary);
}

.theme-toggle-btn svg {
  transition: transform 0.5s ease;
}

.theme-toggle-btn:hover svg {
  transform: rotate(30deg);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 0;
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 0.75rem 0;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-light);
}

header.scrolled .nav-wrapper {
  border-color: transparent;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0.5rem 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.25rem;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px hsla(var(--primary-raw), 0.3);
}

.logo-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-text span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.5rem;
}

/* Hero Section */
.hero {
  padding: 10rem 0 6rem 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.price-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.price-badge-group .badge-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: hsla(190, 95%, 50%, 0.12);
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.08);
}

body.light-theme .price-badge-group .badge-title {
  background: hsla(190, 95%, 40%, 0.08);
}

.price-badge-group .badge-title svg {
  width: 13px;
  height: 13px;
}

.price-badge-group .badge-rate-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-fast);
}

body.light-theme .price-badge-group .badge-rate-pill {
  background: rgba(0, 0, 0, 0.02);
}

.price-badge-group .badge-rate-pill:hover {
  border-color: var(--primary-border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-content p {
  color: var(--text-secondary);
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.trust-elements {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trust-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

body.light-theme .trust-item-icon {
  background: rgba(0, 0, 0, 0.03);
}

.trust-item-info h4 {
  font-size: 1.1rem;
  font-family: var(--font-heading);
  font-weight: 700;
}

.trust-item-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* Hero Interactive Promo Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.floating-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1 / 1;
}

.promo-card {
  width: 100%;
  height: 100%;
  padding: 2.5rem;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.promo-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.promo-card-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.promo-card-value {
  margin: 2rem 0;
}

.promo-card-value .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.promo-card-value .price-big {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
}

.promo-card-value .price-big span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-left: 0.5rem;
}

.comparison-pills {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.comp-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-size: 0.9rem;
}

body.light-theme .comp-pill {
  background: rgba(0, 0, 0, 0.02);
}

.comp-pill.genius {
  border-color: hsla(var(--accent-raw), 0.3);
  background: hsla(var(--accent-raw), 0.03);
}

.comp-pill.genius .value {
  color: var(--accent);
  font-weight: 700;
}

.comp-pill.market .value {
  color: var(--text-muted);
  text-decoration: line-through;
}

.promo-card-bottom {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.promo-card-bottom svg {
  color: var(--accent);
}

/* Background elements for promo card */
.hero-visual::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, hsla(var(--primary-raw), 0.12) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

/* Calculator Section */
.calculator-section {
  padding: 8rem 0;
  position: relative;
}

.calculator-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.input-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.input-label span {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Custom Segmented Control for Service Type */
.service-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.service-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0.8rem 0.5rem;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

body.light-theme .service-btn {
  background: rgba(0, 0, 0, 0.02);
}

.service-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

body.light-theme .service-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.service-btn.active {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--text-primary);
  box-shadow: inset 0 0 12px hsla(var(--primary-raw), 0.1);
}

/* Custom Range Slider */
.slider-container {
  position: relative;
  width: 100%;
}

.slider-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.word-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  cursor: pointer;
  transition: background 0.3s;
}

body.light-theme .word-slider {
  background: rgba(0, 0, 0, 0.08);
}

.word-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: 2px solid var(--bg-base);
  box-shadow: 0 4px 10px hsla(var(--primary-raw), 0.4);
  cursor: pointer;
  transition: transform 0.1s ease;
}

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

.word-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: 2px solid var(--bg-base);
  box-shadow: 0 4px 10px hsla(var(--primary-raw), 0.4);
  cursor: pointer;
  transition: transform 0.1s ease;
}

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

/* Number Input Box */
.word-number-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  position: relative;
  transition: var(--transition-fast);
}

body.light-theme .word-number-wrapper {
  background: rgba(0, 0, 0, 0.02);
}

.word-number-wrapper:focus-within {
  border-color: var(--primary-border-hover);
}

.word-number-wrapper input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  width: 100%;
  padding-right: 3rem;
}

.word-number-wrapper span {
  position: absolute;
  right: 1.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Calculator Result Panel */
.calc-results {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

body.light-theme .calc-results {
  background: rgba(0, 0, 0, 0.01);
}

.calc-results::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.result-header {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.result-price-box {
  margin-bottom: 2rem;
}

.result-price {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  text-shadow: 0 4px 20px hsla(var(--primary-raw), 0.15);
}

.result-price span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-left: 0.5rem;
}

.savings-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: rgba(142, 230, 160, 0.08);
  border: 1px solid rgba(142, 230, 160, 0.18);
  border-radius: 8px;
  color: hsl(142, 70%, 45%);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.6rem;
}

body.light-theme .savings-badge {
  background: rgba(142, 230, 160, 0.15);
  color: hsl(142, 70%, 35%);
}

.savings-badge svg {
  width: 14px;
  height: 14px;
}

.calc-details-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.25rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

.calc-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.calc-detail-row .label {
  color: var(--text-secondary);
}

.calc-detail-row .val {
  font-weight: 600;
  color: var(--text-primary);
}

.calc-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Services Section */
.services-section {
  padding: 8rem 0;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

body.light-theme .service-icon {
  background: rgba(0, 0, 0, 0.02);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 20px hsla(var(--primary-raw), 0.3);
  transform: translateY(-2px);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features svg {
  color: var(--accent);
  width: 14px;
  height: 14px;
}

/* Comparison Section */
.comparison-section {
  padding: 8rem 0;
  position: relative;
}

.comparison-wrapper {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 1.5rem 2rem;
}

.comparison-table th {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

body.light-theme .comparison-table td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .feature-col {
  width: 40%;
  color: var(--text-primary);
  font-weight: 500;
}

.comparison-table .genius-col {
  width: 30%;
  background: hsla(var(--primary-raw), 0.04);
  color: var(--accent);
  font-weight: 700;
  text-align: center;
}

body.light-theme .comparison-table .genius-col {
  background: hsla(var(--primary-raw), 0.02);
}

.comparison-table th.genius-col {
  background: hsla(var(--primary-raw), 0.06);
  border-bottom: 2px solid var(--primary-border-hover);
  color: var(--text-primary);
  font-size: 1.25rem;
}

.comparison-table .market-col {
  width: 30%;
  color: var(--text-muted);
  text-align: center;
}

.comparison-table td.genius-col svg {
  color: var(--accent);
}

.comparison-table td.market-col svg {
  color: var(--text-muted);
}

/* How It Works Section */
.process-section {
  padding: 8rem 0;
  position: relative;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 1.75rem;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, hsla(var(--primary-raw), 0.1) 0%, hsla(var(--accent-raw), 0.3) 50%, hsla(var(--primary-raw), 0.1) 100%);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

.process-step:hover .step-number {
  border-color: var(--accent);
  box-shadow: 0 0 20px hsla(var(--accent-raw), 0.3);
  transform: translateY(-2px);
  color: var(--accent);
}

.process-step h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 280px;
  margin: 0 auto;
}

/* Testimonial Section & Sliding Marquee */
.testimonials-section {
  padding: 8rem 0;
  position: relative;
}

.marquee-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  display: flex;
  margin-top: 1rem;
  padding: 1.5rem 0;
  z-index: 1;
  mask-image: linear-gradient(to right, transparent, white 15%, white 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, white 15%, white 85%, transparent);
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scroll-left 70s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0 {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.testimonial-card-marquee {
  width: 320px;
  flex-shrink: 0;
  padding: 1.75rem;
  background: var(--bg-surface);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  border: 1px solid var(--border-light);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-fast);
}

.testimonial-card-marquee:hover {
  border-color: var(--primary-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -10px hsla(var(--primary-raw), 0.2), var(--shadow-premium);
}

.stars {
  color: hsl(45, 100%, 55%);
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.stars svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.testimonial-card-marquee p {
  font-size: 0.9rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.student-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.student-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: white;
  font-size: 0.85rem;
}

.student-name h4 {
  font-size: 0.9rem;
  font-weight: 600;
}

.student-name p {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: normal;
  margin-bottom: 0;
  margin-top: 0.1rem;
}

/* FAQ Accordion Section */
.faq-section {
  padding: 8rem 0;
  position: relative;
}

.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: hsla(240, 20%, 8%, 0.35);
  overflow: hidden;
  transition: var(--transition-smooth);
}

body.light-theme .faq-item {
  background: hsla(240, 20%, 95%, 0.35);
}

.faq-header {
  padding: 1.5rem;
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
}

.faq-icon-box {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

body.light-theme .faq-icon-box {
  background: rgba(0, 0, 0, 0.02);
}

.faq-item:hover {
  border-color: hsla(var(--primary-raw), 0.3);
}

.faq-item:hover .faq-icon-box {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid transparent;
}

/* FAQ Active state */
.faq-item.active {
  border-color: var(--primary-border-hover);
  background: hsla(240, 20%, 10%, 0.5);
}

body.light-theme .faq-item.active {
  background: hsla(240, 20%, 90%, 0.5);
}

.faq-item.active .faq-icon-box {
  transform: rotate(45deg);
  background: var(--primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 0 10px hsla(var(--primary-raw), 0.4);
}

.faq-item.active .faq-body {
  max-height: 500px;
}

/* Footer Section */
footer {
  background: hsl(240, 25%, 3%);
  border-top: 1px solid var(--border-light);
  padding: 5rem 0 3rem 0;
  position: relative;
}

body.light-theme footer {
  background: hsl(240, 20%, 93%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-links-group h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

body.light-theme .contact-pill {
  background: rgba(0, 0, 0, 0.02);
}

.contact-pill.whatsapp:hover {
  border-color: var(--whatsapp);
  background: var(--whatsapp-glow);
  color: var(--text-primary);
}

.contact-pill.telegram {
  background: var(--telegram);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--telegram-glow);
}

body.light-theme .contact-pill.telegram {
  background: var(--telegram);
  color: white;
  border-color: transparent;
}

.contact-pill.telegram:hover {
  background: hsl(200, 90%, 45%);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--telegram-glow);
}

.contact-pill svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition-fast);
  cursor: pointer;
}

.footer-bottom-links a:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   TERMS & CONDITIONS MODAL
   ========================================================================== */
.toc-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  padding: 1.5rem;
}

.toc-modal.open {
  opacity: 1;
  pointer-events: all;
}

.toc-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 4, 8, 0.75);
  backdrop-filter: blur(8px);
}

.toc-container {
  width: 100%;
  max-width: 680px;
  max-height: 80vh;
  background: var(--bg-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  z-index: 2;
  transform: scale(0.95);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.toc-modal.open .toc-container {
  transform: scale(1);
  border-color: var(--primary-border-hover);
}

.toc-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.toc-header {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toc-header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.toc-close {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

body.light-theme .toc-close {
  background: rgba(0, 0, 0, 0.03);
}

.toc-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  transform: rotate(90deg);
}

.toc-content {
  padding: 2rem;
  overflow-y: auto;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.toc-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-content h3::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.toc-content h3:first-of-type {
  margin-top: 0;
}

.toc-content p {
  margin-bottom: 1rem;
}

.toc-content ul {
  list-style: none;
  margin-bottom: 1.5rem;
  padding-left: 0.5rem;
}

.toc-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
}

.toc-content li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.toc-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
}

/* Scrollbar styling for TOC modal */
.toc-content::-webkit-scrollbar {
  width: 6px;
}

.toc-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.toc-content::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 99px;
}

.toc-content::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3.25rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .nav-contact-btn {
    display: none !important; /* Hide navbar Telegram button on mobile to prevent navbar crowding */
  }

  .comparison-wrapper {
    overflow-x: auto; /* Enable premium swipeable horizontal scroll on mobile */
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
  }

  .comparison-table {
    min-width: 650px; /* Prevent table text from squishing and merging columns together */
  }

  .comparison-table th, .comparison-table td {
    padding: 1rem 0.75rem; /* Make table cell padding more compact on mobile */
  }
  
  .menu-btn {
    display: block;
  }
  
  .hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .trust-elements {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .hero-visual {
    order: -1;
    margin-bottom: 2.5rem; /* Memberikan ruang pernafasan antara kad dan teks hero di bawahnya */
  }

  .floating-card-wrapper {
    aspect-ratio: auto; /* Membenarkan ketinggian kad berkembang secara dinamik mengikut panjang teks */
    height: auto;
  }
  
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .process-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .process-grid::before {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .hero-ctas {
    flex-direction: column;
  }
  
  .service-selector {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .calc-results {
    padding: 1.5rem;
  }
  
  .result-price {
    font-size: 2.75rem;
  }
}

/* ==========================================================================
   5. PREMIUM FLUID ENTRIES & SCROLL REVEALS (Framer ClayAI Style)
   ========================================================================== */

@keyframes fluid-entrance {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.hero-content {
  animation: fluid-entrance 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-visual {
  animation: fluid-entrance 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.15s;
  opacity: 0;
}

.reveal-fluid {
  opacity: 0;
  transform: translateY(50px) scale(0.97);
  filter: blur(8px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal-fluid.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.stagger-item {
  opacity: 0;
  transform: translateY(35px) scale(0.98);
  filter: blur(5px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.stagger-item.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Calculator Dynamic Deliverables Checklist */
.calc-checklist {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.checklist-item svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

/* About / Writer Section */
.about-section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  box-shadow: 0 15px 35px hsla(var(--primary-raw), 0.3), var(--shadow-premium);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px; /* Enable 3D space depth */
  transition: var(--transition-smooth);
}

.about-image-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 45px hsla(var(--primary-raw), 0.45), var(--shadow-premium);
}

/* 3D Flip Card Inner */
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Premium bounce timing curve */
  transform-style: preserve-3d;
  border-radius: 50%;
  cursor: pointer;
}

/* Trigger Y-rotation on hover or click active flipped class */
.about-image-wrapper:hover .card-inner,
.about-image-wrapper.flipped .card-inner {
  transform: rotateY(180deg);
}

/* Front & Back Faces */
.card-front, .card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; /* Hide back face when turned */
  -webkit-backface-visibility: hidden;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--bg-base);
}

body.light-theme .card-front, 
body.light-theme .card-back {
  border-color: var(--bg-base);
}

.card-front {
  background-color: var(--bg-surface);
  z-index: 2;
}

.card-back {
  background-color: var(--bg-surface);
  transform: rotateY(180deg); /* Pre-rotated card back */
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-badge {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 0.4rem 1.1rem;
  border-radius: 99px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 6px 15px hsla(var(--primary-raw), 0.4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 5;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.about-stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: var(--transition-smooth);
}

body.light-theme .about-stat-card {
  background: rgba(0, 0, 0, 0.02);
}

.about-stat-card:hover {
  border-color: var(--primary-border);
  background: var(--primary-glow);
  transform: translateY(-2px);
}

.about-stat-card h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}

.about-stat-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-visual {
    order: -1;
  }
  .about-image-wrapper {
    max-width: 280px;
    aspect-ratio: 1 / 1;
    height: auto;
  }
}

/* ==========================================================================
   6. SKELETON UI & SHIMMER LOADING EFFECT
   ========================================================================== */
.skeleton-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--bg-surface) 25%,
    var(--bg-surface-hover) 50%,
    var(--bg-surface) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
  z-index: 3;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.skeleton-circle {
  border-radius: 50%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Skeleton Card Placeholders for Testimonials Marquee */
.skeleton-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: fadeIn 0.4s ease-out;
}

.skeleton-card {
  pointer-events: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.75rem;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skeleton-bar {
  background: var(--bg-surface-hover);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.skeleton-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
}

.skeleton-stars {
  height: 14px;
  width: 80px;
  margin-bottom: 0.5rem;
}

.skeleton-text-line {
  height: 12px;
  margin-bottom: 0.5rem;
}

.skeleton-text-line.short {
  width: 60%;
}

.skeleton-text-line.medium {
  width: 85%;
}

.skeleton-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.skeleton-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-name-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}

.skeleton-name {
  height: 12px;
  width: 45%;
}

.skeleton-meta {
  height: 10px;
  width: 75%;
}

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

.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scroll-left 70s linear infinite, fadeIn 0.5s ease-out forwards;
  will-change: transform;
}

/* ==========================================================================
   RATING SUMMARY CARD STYLING (v1.0.21)
   ========================================================================== */
.rating-summary-card {
  max-width: 600px;
  margin: 2rem auto 3.5rem auto;
  padding: 2.25rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  justify-content: center;
  border-radius: 20px;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

.rating-summary-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-border-hover);
}

.rating-big-score {
  text-align: center;
  flex-shrink: 0;
}

.rating-big-score .score-num {
  font-size: 4rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1;
}

.rating-big-score .stars {
  color: hsl(45, 100%, 55%);
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  margin: 0.75rem 0;
}

.rating-big-score .stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.rating-big-score .score-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.rating-bars {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.rating-bar-row .bar-label {
  width: 65px;
  text-align: right;
  font-weight: 600;
}

.rating-bar-row .bar-bg {
  flex-grow: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: 99px;
  overflow: hidden;
}

body.light-theme .rating-bar-row .bar-bg {
  background: rgba(0, 0, 0, 0.04);
}

.rating-bar-row .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 99px;
}

.rating-bar-row .bar-percent {
  width: 35px;
  font-weight: 600;
  text-align: left;
}

@media (max-width: 576px) {
  .rating-summary-card {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  .rating-bars {
    width: 100%;
  }
}

/* ==========================================================================
   MOBILE PERFORMANCE OPTIMIZATIONS (v1.0.22)
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Disable expensive backdrop blurs (completely invisible since BG image was removed) */
  .glass-panel,
  .testimonial-card-marquee,
  .btn-secondary,
  .toc-modal,
  .promo-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  /* 2. Disable layout-recalculation-inducing scroll reveal blur filters */
  .reveal-fluid,
  .stagger-item {
    filter: none !important;
    will-change: opacity, transform;
  }
  
  .reveal-fluid.revealed,
  .stagger-item.revealed {
    filter: none !important;
  }

  /* 3. Hide large blurred floating background elements to stop heavy compositing overhead */
  .ambient-glows {
    display: none !important;
  }
}




