/* ==========================================================================
   MARMELO.TECH — GLOBAL PRODUCT DESIGN SYSTEM
   High-performance dark theme, glassmorphism, responsive grid & animations.
   ========================================================================== */

:root {
  /* Core Palette */
  --bg-primary: #06080E;
  --bg-secondary: #0B0F19;
  --bg-tertiary: #111726;
  
  --card-bg: rgba(14, 20, 34, 0.75);
  --card-bg-hover: rgba(20, 28, 48, 0.85);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(255, 210, 95, 0.35);

  /* Brand Accents */
  --brand-yellow: #FFC01E;
  --brand-gold: #E6A700;
  --brand-light: #FFE382;
  --brand-gradient: linear-gradient(135deg, #FFC01E 0%, #FFD666 50%, #E6A700 100%);
  --brand-glow: rgba(255, 192, 30, 0.25);

  --accent-blue: #3B82F6;
  --accent-cyan: #06B6D4;
  --accent-purple: #8B5CF6;
  --accent-green: #10B981;

  /* Typography */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  /* Dimensions & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --container-max: 1240px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Glows & Grid */
.ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.22;
}

.orb-1 {
  top: -15%;
  left: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--brand-yellow) 0%, transparent 70%);
}

.orb-2 {
  top: 35%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
}

.orb-3 {
  bottom: -15%;
  left: 5%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
}

.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 1;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Header & Navigation */
header.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(6, 8, 14, 0.8);
  border-bottom: 1px solid var(--card-border);
  transition: var(--transition);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(255, 192, 30, 0.3));
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 192, 30, 0.15);
  color: var(--brand-yellow);
  border: 1px solid rgba(255, 192, 30, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language & Currency Pill */
.selector-pill {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  padding: 0.25rem 0.4rem;
  gap: 0.2rem;
}

.selector-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}

.selector-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #05070B;
  box-shadow: 0 4px 20px var(--brand-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 192, 30, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

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

.btn-ghost:hover {
  color: var(--text-primary);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
section.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 192, 30, 0.08);
  border: 1px solid rgba(255, 192, 30, 0.25);
  padding: 0.45rem 1.25rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-light);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.hero-pill .sparkle {
  color: var(--brand-yellow);
}

h1.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

p.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 740px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

/* Proton-Inspired Hero Apps Dock */
.hero-apps-dock {
  margin: 0 auto 3.5rem;
  max-width: 960px;
  width: 100%;
}

.apps-dock-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.15rem;
  padding: 1.75rem 1.5rem;
  background: rgba(14, 18, 30, 0.65);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.app-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 1 145px;
  min-width: 115px;
  padding: 1.15rem 0.65rem 0.95rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.app-dock-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 192, 30, 0.4);
  box-shadow: 0 12px 30px -5px rgba(255, 192, 30, 0.2);
}

.app-dock-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

.app-dock-item:hover .app-dock-icon {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 192, 30, 0.45);
  box-shadow: 0 8px 20px -3px rgba(255, 192, 30, 0.25);
}

.app-dock-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
}

.app-dock-icon.icon-emoji {
  font-size: 2.25rem;
  line-height: 1;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.app-dock-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #F8FAFC;
  text-align: center;
  white-space: nowrap;
}

.app-dock-cat {
  font-size: 0.72rem;
  color: #94A3B8;
  margin-top: 0.25rem;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .apps-dock-grid {
    gap: 0.75rem;
    padding: 1rem 0.75rem;
  }
  .app-dock-item {
    flex: 0 1 calc(33.333% - 0.75rem);
    min-width: 95px;
    padding: 0.9rem 0.4rem 0.75rem;
  }
  .app-dock-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    margin-bottom: 0.5rem;
  }
  .app-dock-icon img {
    width: 36px;
    height: 36px;
  }
  .app-dock-icon.icon-emoji {
    font-size: 1.9rem;
  }
  .app-dock-name {
    font-size: 0.78rem;
  }
  .app-dock-cat {
    font-size: 0.65rem;
  }
}

/* Hero Stats Bar */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 820px;
  margin: 0 auto;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.stat-value.highlight {
  color: var(--brand-yellow);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Bento Grid Products Section */
section.products {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-yellow);
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  background: var(--card-bg-hover);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Bento Card Variants */
.col-8 { grid-column: span 8; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-12 { grid-column: span 12; }

.card-top {
  margin-bottom: 1.8rem;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.card-badge.gold {
  background: rgba(255, 192, 30, 0.12);
  color: var(--brand-light);
  border: 1px solid rgba(255, 192, 30, 0.25);
}

.card-badge.cyan {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.card-badge.purple {
  background: rgba(139, 92, 246, 0.12);
  color: #A78BFA;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.card-badge.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.card-badge.indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #818CF8;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.card-badge.blue {
  background: rgba(59, 130, 246, 0.12);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.card-badge.amber {
  background: rgba(245, 158, 11, 0.12);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Product Card Elements */
.prod-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.prod-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px;
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.4);
}

.card-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.card-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-light);
  margin-bottom: 0.65rem;
  line-height: 1.4;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-features-list {
  list-style: none;
  margin: 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.card-feature-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.86rem;
  color: var(--text-primary);
  font-weight: 500;
}

.card-feature-item .feat-icon {
  color: var(--brand-yellow);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 192, 30, 0.12);
  flex-shrink: 0;
}

.card-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.store-badges {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}

.store-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: var(--transition);
}

.store-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

/* Shepherd Flagship Showcase */
.shepherd-card {
  background: linear-gradient(135deg, rgba(20, 24, 42, 0.85) 0%, rgba(14, 18, 32, 0.95) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 20px 50px -15px rgba(139, 92, 246, 0.15);
}

.shepherd-card:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 25px 60px -15px rgba(139, 92, 246, 0.25);
}

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

@media (max-width: 960px) {
  .shepherd-modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .shepherd-modules-grid {
    grid-template-columns: 1fr;
  }
}

.shepherd-module-card {
  background: rgba(8, 12, 22, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.1rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.shepherd-module-card:hover {
  background: rgba(22, 28, 48, 0.85);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.5);
}

.shepherd-module-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
}

.shepherd-module-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.shepherd-module-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Interactive Previews inside cards */
.interactive-mockup {
  background: rgba(6, 8, 14, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-top: 1.5rem;
}

/* Call preview in Shep Connect card */
.call-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.call-tile {
  background: #111726;
  border-radius: var(--radius-sm);
  padding: 1.5rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.call-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.av-1 { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.av-2 { background: linear-gradient(135deg, #10B981, #047857); }

.call-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.speaking-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

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

.calc-container {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.5rem;
  background: var(--card-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

/* Mode Tabs */
.tab-pills {
  display: flex;
  background: rgba(6, 8, 14, 0.7);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  padding: 0.4rem;
  gap: 0.4rem;
  width: fit-content;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.65rem 1.6rem;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--brand-gradient);
  color: #05070B;
  box-shadow: 0 2px 10px var(--brand-glow);
}

/* Slider Controls */
.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

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

.slider-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.slider-value-display {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-yellow);
}

input[type="range"].custom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 100px;
  background: #182035;
  outline: none;
  transition: var(--transition);
}

input[type="range"].custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-yellow);
  cursor: pointer;
  box-shadow: 0 0 14px var(--brand-glow);
  transition: transform 0.15s ease;
}

input[type="range"].custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Feature Checkboxes / Switches */
.features-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.toggle-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.toggle-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #1e293b;
  transition: .3s;
  border-radius: 34px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider-round {
  background: var(--brand-gradient);
}

input:checked + .slider-round:before {
  transform: translateX(20px);
  background-color: #05070B;
}

/* Calculator Summary Card */
.calc-summary {
  background: rgba(6, 8, 14, 0.85);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.calc-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-gradient);
}

.summary-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.billing-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.price-box {
  margin: 1.5rem 0 2rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.currency-sym {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand-yellow);
}

.price-amount {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

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

.billing-note {
  font-size: 0.82rem;
  color: var(--accent-green);
  margin-top: 0.4rem;
  font-weight: 600;
}

.included-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  border-top: 1px solid var(--card-border);
  padding-top: 1.5rem;
}

.included-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.check-icon {
  color: var(--brand-yellow);
  font-weight: 700;
}

/* Security Section */
section.security-section {
  padding: 6rem 0;
}

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

.sec-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: var(--transition);
}

.sec-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

.sec-icon {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  display: inline-block;
}

.sec-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.sec-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Modal Dialog */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  width: 100%;
  max-width: 520px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-header {
  margin-bottom: 2rem;
  text-align: center;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--brand-yellow);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 192, 30, 0.15);
}

.form-legal {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.6rem;
  line-height: 1.5;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 4rem 0 2rem;
  background: var(--bg-primary);
  position: relative;
  z-index: 2;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.footer-brand-col {
  max-width: 380px;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 1rem 0 1.5rem;
}

.latam-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--brand-yellow);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.latam-link:hover {
  text-decoration: underline;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  color: #CBD5E1;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 192, 30, 0.4);
  color: #F8FAFC;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-btn svg {
  color: #94A3B8;
  transition: color 0.2s ease;
}

.social-btn:hover svg {
  color: #FFC01E;
}

.footer-links-group {
  display: flex;
  gap: 4rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 100px;
  color: #34D399;
  font-weight: 600;
  font-size: 0.75rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 6px #34D399;
}
/* Component Helper & Mockup Classes */
.card-icon-emoji {
  font-size: 1.8rem;
  line-height: 1;
}

.mockup-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
}

.channel-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: #F8FAFC;
}

.active-indicator {
  font-size: 0.75rem;
  color: #10B981;
}

.audio-note-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border-left: 3px solid #FFC01E;
}

.audio-note-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.highlight-yellow {
  color: #FFC01E;
  font-size: 0.8rem;
}

.badge-success {
  font-size: 0.75rem;
  color: #10B981;
  font-weight: 700;
}

.badge-success-small {
  font-size: 0.68rem;
  color: #10B981;
}

.badge-subtle-small {
  font-size: 0.68rem;
  color: #94A3B8;
}

.audio-quote {
  font-style: italic;
  color: #E2E8F0;
  font-size: 0.78rem;
  line-height: 1.4;
}

.text-2xl {
  font-size: 2rem !important;
}

.text-lg {
  font-size: 1.15rem !important;
}

.max-w-prose {
  max-width: 960px;
}

.tag-pink {
  color: #E879F9 !important;
}

.tag-gold {
  color: #FBBF24 !important;
}

.auth-chips-row {
  display: flex;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: #34D399;
  font-family: monospace;
}

.auth-chip {
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.telemetry-box {
  font-family: monospace;
  font-size: 0.72rem;
  color: #818CF8;
  background: rgba(99, 102, 241, 0.08);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.4rem;
}

.legal-framework-pill {
  font-size: 0.72rem;
  color: #34D399;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.pill-highlight {
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: #34D399 !important;
}

.mockup-item-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  color: #94A3B8;
}

.sso-status-row {
  display: flex;
  gap: 0.6rem;
  font-size: 0.72rem;
  color: #FBBF24;
}

.text-white {
  color: #F8FAFC !important;
}

.font-bold {
  font-weight: 700 !important;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .calc-container {
    grid-template-columns: 1fr;
    padding: 2.5rem;
  }
  .col-8, .col-4, .col-6 {
    grid-column: span 12;
  }
  .security-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-links-group {
    flex-direction: column;
    gap: 2rem;
  }
  .footer-top {
    flex-direction: column;
  }
  .calc-container {
    padding: 1.5rem;
  }
  .modal-card {
    padding: 2rem 1.5rem;
  }
}
