/* ==========================================================================
   VIRA DESIGN SYSTEM - PREMIUM CORE CSS (SPLASHSCREEN & CORPORATE EXPANDED)
   ========================================================================== */

/* Typography & CSS Variables Setup */
:root {
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Color Palette (Deep Space & Tech Cyan/Emerald) */
  --bg-deep: #070911;
  --bg-dark: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.45);
  --bg-card-hover: rgba(30, 41, 59, 0.7);
  --border-light: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(6, 182, 212, 0.45);

  --color-primary: #06b6d4;      /* Cyber Cyan */
  --color-secondary: #10b981;    /* Tech Emerald */
  --color-text-main: #f8fafc;    /* Off White */
  --color-text-muted: #94a3b8;   /* Slate Gray */
  --color-accent-red: #ef4444;   /* Crimson Alert */
  
  --grad-primary: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
  --grad-dark: linear-gradient(180deg, #0f172a 0%, #070911 100%);
  
  --shadow-premium: 0 10px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-neon: 0 0 25px rgba(6, 182, 212, 0.4);

  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-tilt: transform 0.1s ease-out;
}

/* Base Styles & Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-deep);
  color: var(--color-text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

img, canvas {
  max-width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.text-success {
  color: var(--color-secondary) !important;
}

.text-cyan {
  color: var(--color-primary) !important;
}

.text-emerald {
  color: var(--color-secondary) !important;
}

.w-100 {
  width: 100%;
}

.relative-z {
  position: relative;
  z-index: 2;
}

.flex-align-center {
  display: flex;
  align-items: center;
}

.gap-10 {
  gap: 10px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

/* ==========================================================================
   PREMIUM SPLASHSCREEN ENTRY (GATED ENTRANCE GATEWAY)
   ========================================================================== */
#splashScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #060810;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#splashScreen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.splash-orb {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(6,182,212,0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(80px);
}

.splash-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.gate-scenery {
  position: relative;
  width: 460px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gate-post {
  width: 18px;
  height: 90px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
}

.gate-pluma-left {
  width: 180px;
  height: 8px;
  background: #ef4444; /* stripes later */
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 2px;
  position: relative;
  transform-origin: left center;
  transition: transform 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 3px 6px rgba(0,0,0,0.5);
}

.gate-pluma-right {
  width: 180px;
  height: 8px;
  background: #ef4444;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 2px;
  position: relative;
  transform-origin: right center;
  transition: transform 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 3px 6px rgba(0,0,0,0.5);
}

/* Pluma stripes styling */
.pluma-stripes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    #ffffff,
    #ffffff 15px,
    #ef4444 15px,
    #ef4444 30px
  );
}

/* Gate opening rotate animations */
.gate-pluma-left.open {
  transform: rotate(-90deg) translate(-5px, -5px);
  background: #10b981;
}

.gate-pluma-left.open .pluma-stripes {
  background: repeating-linear-gradient(
    -45deg,
    #ffffff,
    #ffffff 15px,
    #10b981 15px,
    #10b981 30px
  );
}

.gate-pluma-right.open {
  transform: rotate(90deg) translate(5px, -5px);
  background: #10b981;
}

.gate-pluma-right.open .pluma-stripes {
  background: repeating-linear-gradient(
    -45deg,
    #ffffff,
    #ffffff 15px,
    #10b981 15px,
    #10b981 30px
  );
}

/* Gate central validator scanner */
.gate-scanner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.scanner-icon {
  font-size: 20px;
  color: var(--color-primary);
  z-index: 22;
  transition: var(--transition-smooth);
}

.scanner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  opacity: 0.8;
  z-index: 21;
  animation: radarScan 2.5s infinite linear;
}

@keyframes radarScan {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Validator scan glow trigger */
.gate-scanner.authorized {
  border-color: var(--color-secondary);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.gate-scanner.authorized .scanner-icon {
  color: var(--color-secondary);
  transform: scale(1.15);
}

.gate-scanner.authorized .scanner-ring {
  border-color: var(--color-secondary);
  animation: radarScan 1s infinite linear;
}

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

.splash-text h2 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.15em;
  color: var(--color-text-main);
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.splash-text p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  height: 20px;
}

.badge-status-pwa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.badge-status-pwa.green {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--color-secondary);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

/* Buttons and Links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  gap: 8px;
}

.btn-large {
  padding: 16px 36px;
  font-size: 17px;
}

.btn-primary {
  background: var(--grad-primary);
  color: #0b0f19;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-neon);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--color-text-main);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

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

.btn-glow:hover::after {
  left: 125%;
  opacity: 1;
}

/* Glassmorphism generic style */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

.hover-glow:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 15px 35px -10px rgba(6, 182, 212, 0.2);
}

.interactive-tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Background Parallax elements styling */
.parallax-bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  pointer-events: none;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--color-primary);
  top: -100px;
  right: -100px;
}

.orb-2 {
  width: 550px;
  height: 550px;
  background: var(--color-secondary);
  bottom: 5%;
  left: -200px;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
}

.parallax-shape {
  position: absolute;
  border: 1px solid rgba(6, 182, 212, 0.1);
  background: rgba(6, 182, 212, 0.01);
  border-radius: 12px;
  pointer-events: none;
  display: block;
}

.shape-hex-1 {
  width: 120px;
  height: 120px;
  top: 15%;
  right: 15%;
  transform: rotate(15deg);
  border-radius: 50%;
  border-style: dashed;
}

.shape-hex-2 {
  width: 180px;
  height: 180px;
  bottom: 25%;
  left: 10%;
  transform: rotate(-30deg);
  border-radius: 50%;
  border-style: dotted;
  border-width: 2px;
}

/* Header Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 9, 17, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(7, 9, 17, 0.95);
  box-shadow: var(--shadow-premium);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--color-text-main);
}

.logo-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  gap: 20px;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link i {
  font-size: 12px;
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-text-main);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-main);
  font-size: 22px;
  cursor: pointer;
}

/* Samsung Assembling Hero Section */
.hero-section {
  position: relative;
  padding: 185px 0 125px 0;
  overflow: hidden;
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  position: relative;
}

.hero-title {
  font-size: 56px;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

/* Assembling Container & Depth Elements */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
}

.assembling-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.1s ease-out;
}

.assemble-part {
  position: absolute;
  transition: transform 0.1s ease-out, opacity 0.3s ease;
  will-change: transform;
}

.main-mockup {
  width: 320px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

/* Floating micro cards */
.floating-mockup-1 {
  width: 190px;
  bottom: 20px;
  left: -30px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-color: rgba(6, 182, 212, 0.15);
  background: rgba(15, 23, 42, 0.9);
  z-index: 3;
}

.floating-mockup-2 {
  width: 200px;
  top: 30px;
  right: -30px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-color: rgba(16, 185, 129, 0.15);
  background: rgba(15, 23, 42, 0.9);
  z-index: 3;
}

.card-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.floating-text h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.floating-text p {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* Logo Showcase proposals */
.logo-showcase-section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.proposals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.proposal-card {
  padding: 40px;
  text-align: center;
  cursor: pointer;
  border-color: var(--border-light);
}

.proposal-card.active {
  border-color: var(--color-primary);
  background: rgba(6, 182, 212, 0.04);
  box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.25);
}

.proposal-svg {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.proposal-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.proposal-card p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  min-height: 60px;
}

/* Section Header Titles */
.section-header {
  margin-bottom: 60px;
  transition: var(--transition-smooth);
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.section-title i {
  color: var(--color-primary);
  font-size: 32px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* Capabilities & Tabs */
.features-section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.tab-container {
  margin-top: 40px;
}

.tab-navigation {
  display: flex;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 6px;
  border-radius: 40px;
  max-width: 850px;
  margin: 0 auto 50px auto;
  gap: 6px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  color: var(--color-text-main);
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  color: #0b0f19;
  background: var(--grad-primary);
  box-shadow: var(--shadow-neon);
}

.tab-content-wrapper {
  position: relative;
  min-height: 380px;
}

.tab-pane {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.08);
  color: var(--color-primary);
  border: 1px solid rgba(6, 182, 212, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(6, 182, 212, 0.06);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(6, 182, 212, 0.1);
}

/* Modules Section */
.modules-section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.module-card {
  position: relative;
  padding: 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.module-popular-badge {
  position: absolute;
  top: -15px;
  right: 30px;
  background: var(--grad-primary);
  color: #0b0f19;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: var(--shadow-neon);
}

.module-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 24px;
  margin-bottom: 28px;
}

.module-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.module-header h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.module-price {
  font-size: 32px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-text-main);
}

.price-period {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-muted);
}

.module-body {
  flex-grow: 1;
}

.module-features-list li {
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.module-features-list i {
  color: var(--color-secondary);
  font-size: 16px;
}

/* ==========================================================================
   PWA RESIDENT & ENTERPRISE APP SHOWCASE STYLING
   ========================================================================== */
.app-showcase-section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
  background: radial-gradient(circle at 10% 50%, rgba(6,182,212,0.04) 0%, transparent 60%);
}

.app-showcase-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  margin-top: 40px;
  align-items: center;
}

.app-showcase-grid.reverse-layout {
  grid-template-columns: 1.15fr 0.85fr;
}

/* Interactive phone frame simulation */
.phone-showcase-container {
  position: relative;
  height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  width: 240px;
  height: 440px;
  border-radius: 36px;
  padding: 10px;
  background: #0f172a;
  border: 4px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(6, 182, 212, 0.15);
  position: relative;
  overflow: hidden;
}

.phone-frame.border-emerald {
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(16, 185, 129, 0.15);
}

.phone-camera-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  background: #000;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  background: #070911;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-screen.bg-black {
  background: #040509;
}

.phone-screen-header {
  height: 46px;
  padding: 14px 18px 0 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.phone-screen-header.border-emerald-fade {
  border-bottom-color: rgba(16, 185, 129, 0.1);
}

.phone-screen-body {
  flex-grow: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-mini-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
  border-radius: 10px;
}

.phone-mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.badge-pwa-paid {
  font-size: 8px;
  font-weight: 700;
  color: var(--color-secondary);
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}

.pwa-text-small {
  font-size: 9px;
  color: var(--color-text-muted);
}

.phone-mini-qr {
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed rgba(6, 182, 212, 0.2);
  padding: 14px;
  border-radius: 10px;
  text-align: center;
}

.phone-mini-qr i {
  font-size: 40px;
  color: var(--color-primary);
  margin-bottom: 8px;
  animation: qrGlow 2s infinite alternate;
}

@keyframes qrGlow {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 1; }
}

@keyframes faceScan {
  0% { transform: scale(1); opacity: 0.7; color: #10b981; }
  50% { transform: scale(1.1); opacity: 1; color: #34d399; text-shadow: 0 0 10px rgba(16,185,129,0.3); }
  100% { transform: scale(1); opacity: 0.7; color: #10b981; }
}

.phone-mini-qr p {
  font-size: 9px;
  color: var(--color-text-muted);
}

/* Floating micro screens around device */
.phone-float-card {
  position: absolute;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 190px;
  background: rgba(15, 23, 42, 0.95);
  z-index: 5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: 12px;
}

.phone-float-card.float-1 {
  top: 50px;
  left: -20px;
  border-color: rgba(16, 185, 129, 0.2);
}

.phone-float-card.float-2 {
  bottom: 80px;
  right: -20px;
  border-color: rgba(6, 182, 212, 0.2);
}

.phone-float-card h5 {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.phone-float-card p {
  font-size: 10px;
  color: var(--color-text-muted);
}

.app-details-container h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
}

.app-desc-main {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-bottom: 30px;
}

.app-feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-feature-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 16px;
}

.app-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.app-feature-text h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.app-feature-text p {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Timeline progress bar */
.timeline-section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.timeline-wrapper {
  position: relative;
  margin-top: 60px;
  padding: 20px 0;
}

.timeline-bar {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-progress {
  width: 0%;
  height: 100%;
  background: var(--grad-primary);
  box-shadow: 0 0 10px var(--color-primary);
  transition: width 0.1s linear;
}

.timeline-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 2;
}

.timeline-item {
  padding: 28px;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
}

.timeline-dot {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 3px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin: -50px auto 20px auto;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
}

.timeline-item.active .timeline-dot {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.timeline-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.timeline-item p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.timeline-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

/* Budget Calculator Section styling */
.calculator-section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.calculator-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  margin-top: 40px;
}

.calculator-inputs {
  padding: 40px;
  border-color: rgba(255, 255, 255, 0.05);
}

.calculator-inputs h3 {
  font-size: 18px;
  margin-bottom: 24px;
  border-left: 3px solid var(--color-primary);
  padding-left: 12px;
}

.calculator-inputs h3:not(:first-child) {
  margin-top: 44px;
}

.input-group {
  margin-bottom: 28px;
}

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

.range-header label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.range-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-primary);
  background: rgba(6, 182, 212, 0.08);
  padding: 2px 12px;
  border-radius: 6px;
  border: 1px solid rgba(6, 182, 212, 0.15);
}

.badge-volume-discount {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
}

.badge-volume-discount.discount-active {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--color-secondary);
}

/* Premium Range styling */
.premium-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.premium-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.premium-range::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

/* Select inputs for Panic coverage */
.premium-select {
  background: rgba(9, 12, 21, 0.8);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--color-text-main);
  font-family: var(--font-primary);
  font-size: 14px;
  outline: none;
  cursor: pointer;
  flex-grow: 1;
}

.premium-select:focus {
  border-color: var(--color-primary);
}

.badge-coverage-status {
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  border: 1px solid transparent;
  gap: 8px;
}

.badge-coverage-status.green {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--color-secondary);
}

.badge-coverage-status.red {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--color-accent-red);
}

/* ==========================================================================
   DEDICATED ALIGNED ITEMIZED BREAKDOWN OF COSTS (FIXED MISALIGNMENTS)
   ========================================================================== */
.itemized-breakdown-wrapper {
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 24px;
  padding-right: 8px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 20px;
}

.itemized-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--color-text-muted);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  gap: 16px;
}

.itemized-row span:first-child {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  white-space: normal;
  overflow: visible;
  line-height: 1.4;
}

.itemized-row span:first-child i {
  color: var(--color-primary);
  font-size: 13px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.itemized-row span:last-child {
  font-weight: 600;
  color: var(--color-text-main);
  font-family: var(--font-display);
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Checkbox modules active state */
.checkbox-card {
  display: flex;
  align-items: flex-start;
  padding: 16px 20px;
  cursor: pointer;
  gap: 14px;
}

.checkbox-card input[type="checkbox"] {
  accent-color: var(--color-primary);
  margin-top: 4px;
  width: 18px;
  height: 18px;
}

.chk-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 2px;
}

.chk-desc {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
}

.checkbox-card.active {
  border-color: rgba(6, 182, 212, 0.25);
  background: rgba(6, 182, 212, 0.03);
}

/* Calculator Results Box styles */
.calculator-results {
  padding: 40px;
  display: flex;
  flex-direction: column;
  border-color: rgba(255, 255, 255, 0.06);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.5) 0%, rgba(7, 9, 17, 0.5) 100%);
  height: fit-content;
  position: sticky;
  top: 110px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.results-header h3 {
  font-size: 20px;
}

.badge-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
}

.results-breakdown {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--color-text-muted);
}

.breakdown-row span:last-child {
  font-weight: 700;
  color: var(--color-text-main);
  font-family: var(--font-display);
  font-size: 15px;
}

.breakdown-row.highlight-yellow {
  border-left: 4px solid #eab308;
}
.breakdown-row.highlight-yellow span:last-child {
  color: #eab308;
}

.breakdown-row.highlight-cyan {
  border-left: 4px solid var(--color-primary);
}
.breakdown-row.highlight-cyan span:last-child {
  color: var(--color-primary);
}

.breakdown-row.highlight {
  border-top: none;
  border-left: 4px solid var(--color-secondary);
  background: rgba(16, 185, 129, 0.03);
  padding: 14px 18px;
  margin-top: 0;
}

.breakdown-row.highlight span:last-child {
  font-size: 20px;
  color: var(--color-secondary);
}

.results-actions {
  margin-top: auto;
}

.results-note {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 16px;
  line-height: 1.4;
}

/* Modal Styling */
.quote-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 9, 17, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.quote-modal {
  width: 100%;
  max-width: 600px;
  padding: 44px;
  position: relative;
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.quote-modal-overlay.active .quote-modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--color-text-main);
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.modal-icon {
  font-size: 32px;
  color: var(--color-primary);
  margin-bottom: 12px;
  display: inline-block;
}

.modal-header h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.modal-header p {
  font-size: 14px;
  color: var(--color-text-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.form-group input {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--color-text-main);
  font-family: var(--font-primary);
  font-size: 14px;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group input:focus {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.04);
}

.summary-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-light);
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 28px;
}

.summary-box h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.summary-box p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-box i {
  color: var(--color-secondary);
}

/* Success Modal State */
.modal-success-state {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  font-size: 54px;
  color: var(--color-secondary);
  margin-bottom: 20px;
  display: inline-block;
  animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.modal-success-state h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.modal-success-state p {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Comparison Table Styling */
.comparison-section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.table-container-responsive {
  margin-top: 40px;
  overflow-x: auto;
  border-color: rgba(255, 255, 255, 0.05);
}

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

.comparison-table th, .comparison-table td {
  padding: 24px 28px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.01);
}

.comparison-table tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

.comparison-table .char-title {
  font-weight: 600;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.comparison-table .char-title i {
  font-size: 14px;
  color: var(--color-primary);
}

.comparison-table .highlight-column {
  background: rgba(6, 182, 212, 0.03);
  border-left: 1px solid rgba(6, 182, 212, 0.12);
  border-right: 1px solid rgba(6, 182, 212, 0.12);
}

.comparison-table td.highlight-column {
  font-weight: 500;
}

.comparison-table td i {
  margin-right: 6px;
}

/* Testimonials Section */
.testimonials-section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  padding: 40px;
}

.testimonial-card .stars {
  color: #f59e0b;
  margin-bottom: 20px;
  font-size: 16px;
}

.testimonial-card .quote {
  font-size: 15px;
  color: #cbd5e1;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 24px;
}

.testimonial-card .author h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-main);
}

.testimonial-card .author span {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   FAQ ACCORDION FIXED STACKED OVERFLOW
   ========================================================================== */
.faq-section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.faq-accordion {
  max-width: 800px;
  margin: 40px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px; /* clear card gaps */
}

.faq-item {
  border-color: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
  display: block;
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  color: var(--color-text-main);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  gap: 20px;
  position: relative;
  z-index: 5;
}

.faq-trigger span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-trigger span i {
  color: var(--color-primary);
  font-size: 15px;
}

.faq-trigger i.fa-chevron-down {
  color: var(--color-primary);
  transition: transform 0.3s ease;
  font-size: 14px;
}

.faq-item.active .faq-trigger i.fa-chevron-down {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 4;
  transition: max-height 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-answer p {
  padding: 0 28px 24px 28px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
  display: block;
}

/* Footer Styling */
.footer {
  background: #05060b;
  padding: 80px 0 30px 0;
  border-top: 1px solid var(--border-light);
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  max-width: 280px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 16px;
}

.social-icons a:hover {
  background: var(--grad-primary);
  color: #0b0f19;
  border-color: transparent;
  transform: translateY(-2px);
}

.footer-links h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}

.footer-links p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 30px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

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

  .app-showcase-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .app-showcase-grid.reverse-layout {
    grid-template-columns: 1fr;
  }

  .phone-showcase-container {
    height: 380px;
  }

  .phone-float-card.float-1 {
    left: 20px;
  }

  .phone-float-card.float-2 {
    right: 20px;
  }

  .proposals-grid, .modules-grid, .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .proposals-grid > *:last-child, .modules-grid > *:last-child {
    grid-column: span 2;
  }

  .timeline-bar {
    display: none;
  }

  .timeline-items {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .timeline-item {
    text-align: left;
    padding-left: 80px;
  }

  .timeline-dot {
    position: absolute;
    top: 50%;
    left: 20px;
    margin: 0;
    transform: translateY(-50%);
  }

  .calculator-wrapper {
    grid-template-columns: 1fr;
  }

  .calculator-results {
    position: static;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .navbar {
    padding: 12px 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: #070911;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
    gap: 32px;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--border-light);
  }

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

  .nav-actions .btn {
    display: none; /* Hide header CTA */
  }

  .tab-navigation {
    flex-direction: column;
    border-radius: 16px;
    padding: 10px;
  }

  .tab-btn {
    width: 100%;
    justify-content: center;
  }

  .proposals-grid, .modules-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .proposals-grid > *:last-child, .modules-grid > *:last-child {
    grid-column: span 1;
  }

  .checkbox-modules {
    grid-template-columns: 1fr;
  }

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

  .quote-modal {
    padding: 24px;
    margin: 16px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .gate-scenery {
    width: 320px;
  }
  
  }

/* ==========================================================================
   VIRA LIVE CHAT WIDGET (CLIENT VISITOR WINDOW)
   ========================================================================== */
.chat-widget-container {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  z-index: 999999 !important;
  transform: translate3d(0, 0, 0) !important;
  will-change: transform !important;
}

.chat-bubble-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--grad-primary);
  border: none;
  color: #070911;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.35);
  transition: var(--transition-smooth);
  position: relative;
}

.chat-bubble-btn:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 15px 35px rgba(6, 182, 212, 0.5);
}

.chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  background: var(--color-accent-red);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #070911;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.chat-window-card {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 330px;
  height: 430px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  transform-origin: bottom right;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-premium);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

.chat-window-card.active {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

.chat-window-header {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 16px;
}

.agent-info h4 {
  font-size: 13.5px;
  color: #fff;
  font-weight: 600;
}

.agent-info span {
  font-size: 11px;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.agent-info span::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-secondary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px var(--color-secondary);
}

.chat-close-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.chat-close-btn:hover {
  color: #fff;
}

.chat-messages-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}

.chat-msg.admin {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--color-text-main);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-msg.client {
  background: var(--grad-primary);
  color: #0b0f19;
  font-weight: 500;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-input-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
  background: rgba(0,0,0,0.15);
}

.chat-input-text {
  flex-grow: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.02);
  color: #fff;
  font-size: 13px;
}
.chat-input-text:focus {
  outline: none;
  border-color: var(--color-primary);
}

.chat-send-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.chat-send-btn:hover {
  transform: scale(1.15);
  color: var(--color-secondary);
}

/* ==========================================================================
   VIRA CRM PARTNER SALES & CHAT DASHBOARD
   ========================================================================== */
.crm-dashboard-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #060810;
  z-index: 99998;
  display: grid;
  grid-template-columns: 280px 1fr;
  color: var(--color-text-main);
  overflow: hidden;
  font-family: var(--font-primary);
  animation: scaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.crm-sidebar {
  background: rgba(15, 23, 42, 0.95);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.crm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.crm-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.crm-nav-btn {
  background: none;
  border: 1px solid transparent;
  padding: 12px 18px;
  border-radius: 8px;
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14.5px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-smooth);
}

.crm-nav-btn i {
  font-size: 15px;
}

.crm-nav-btn:hover, .crm-nav-btn.active {
  color: #fff;
  background: rgba(6, 182, 212, 0.04);
  border-color: rgba(6, 182, 212, 0.15);
}

.crm-nav-btn.active {
  border-left: 3px solid var(--color-primary);
}

.crm-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-primary);
}

.crm-badge.bg-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.crm-sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.crm-user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crm-avatar {
  font-size: 28px;
  color: var(--color-primary);
}

.crm-main-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

.crm-header {
  padding: 30px 40px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(7, 9, 17, 0.3);
}

.crm-header h2 {
  font-size: 24px;
}
.crm-header p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.crm-tab-pane {
  padding: 40px;
  flex-grow: 1;
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.crm-tab-pane.active {
  display: block;
}

.crm-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.crm-metric-card {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.crm-metric-card.border-cyan:hover { border-color: var(--color-primary); }
.crm-metric-card.border-emerald:hover { border-color: var(--color-secondary); }
.crm-metric-card.border-yellow:hover { border-color: #f59e0b; }
.crm-metric-card.border-pink:hover { border-color: #ec4899; }

.metric-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.metric-info span {
  font-size: 12px;
  color: var(--color-text-muted);
}
.metric-info h3 {
  font-size: 22px;
  margin-top: 2px;
}

.crm-chart-card h4 {
  font-size: 15px;
  color: #fff;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.crm-stat-bar-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crm-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--color-text-muted);
}

.crm-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  overflow: hidden;
}

.crm-bar-fill {
  height: 100%;
  border-radius: 4px;
}

/* CRM Table overrides */
.crm-table th, .crm-table td {
  padding: 16px 20px;
  font-size: 13.5px;
}

.crm-table tr:hover {
  background: rgba(6, 182, 212, 0.02);
}

/* CRM Live Chat Panel list styling */
.crm-active-chat-item {
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.01);
  transition: var(--transition-smooth);
  position: relative;
  width: 100%;
  text-align: left;
}

.crm-active-chat-item:hover, .crm-active-chat-item.selected {
  border-color: var(--color-primary);
  background: rgba(6, 182, 212, 0.03);
}

.chat-item-dot {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 8px;
  height: 8px;
  background: var(--color-accent-red);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--color-accent-red);
}

.crm-dialog-body .chat-msg {
  max-width: 60%;
}
.crm-dialog-body .chat-msg.admin {
  align-self: flex-end;
  background: var(--grad-primary);
  color: #0b0f19;
  font-weight: 500;
  border-bottom-right-radius: 2px;
}
.crm-dialog-body .chat-msg.client {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--color-text-main);
  border-bottom-left-radius: 2px;
}

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