/* ==========================================================================
   BizCalc Pro — Modern Landing Page Design System
   Aesthetic: Sleek Dark Mode, Glassmorphism, Micro-interactions, Clean Grid
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #07090e;
  --bg-surface: #0e121b;
  --bg-surface-elevated: #151b28;
  --bg-card: rgba(21, 27, 40, 0.7);
  --bg-card-hover: rgba(28, 36, 53, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(99, 102, 241, 0.4);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Accent Gradients & Colors */
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --secondary: #06b6d4;
  --accent-amber: #f59e0b;
  --accent-green: #10b981;
  --accent-rose: #f43f5e;
  --accent-purple: #a855f7;

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 35px var(--primary-glow);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Ambient Glows */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.glow-top {
  width: 600px;
  height: 450px;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, rgba(139, 92, 246, 0.15) 50%, transparent 80%);
}

.glow-middle {
  width: 500px;
  height: 500px;
  top: 1300px;
  right: -100px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, rgba(99, 102, 241, 0.1) 60%, transparent 80%);
}

.glow-bottom {
  width: 700px;
  height: 550px;
  bottom: 100px;
  left: -150px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(236, 72, 153, 0.1) 60%, transparent 80%);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Typography Utilities */
.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-accent {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 9, 14, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-base), border-color var(--transition-base);
}

.site-header.scrolled {
  background: rgba(7, 9, 14, 0.92);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  transition: transform var(--transition-fast);
}

.brand-link:hover {
  transform: translateY(-1px);
}

.brand-icon {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Nav Menu */
.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

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

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

.download-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mobile-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

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

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

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


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}

.btn-sm {
  font-size: 0.85rem;
  padding: 9px 18px;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7174f8 0%, #5b53f0 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-main);
}

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

/* Store Badge Buttons */
.store-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #0f1422;
  border: 1px solid var(--border-light);
  padding: 10px 22px;
  border-radius: 14px;
  text-decoration: none;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.store-badge-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transition: left 0.6s ease;
}

.store-badge-btn:hover::before {
  left: 100%;
}

.store-badge-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(99, 102, 241, 0.25);
}

.apple-badge:hover {
  background: #141b2d;
}

.google-badge:hover {
  background: #141b2d;
}

.store-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-sub {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.1;
}

.store-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 60px 0 90px;
  position: relative;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.badge-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #c7d2fe;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 22px;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

/* Trust Proof Row */
.trust-proof-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-item strong {
  color: var(--text-main);
}

.trust-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-light);
}

/* ==========================================================================
   Hero Device Showcase & Switcher
   ========================================================================== */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.device-switcher {
  display: flex;
  background: rgba(14, 18, 27, 0.85);
  border: 1px solid var(--border-light);
  padding: 4px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.switcher-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.switcher-tab:hover {
  color: var(--text-main);
}

.switcher-tab.active {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.5);
}

.mockup-stage {
  position: relative;
  width: 100%;
  max-width: 340px;
  display: flex;
  justify-content: center;
}

/* Floating Badges */
.floating-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(14, 18, 27, 0.9);
  border: 1px solid var(--border-light);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md), 0 0 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  z-index: 15;
  transition: transform var(--transition-base);
  animation: floatUpDown 4s ease-in-out infinite alternate;
}

.pill-left {
  top: 18%;
  left: -48px;
  animation-delay: 0.5s;
}

.pill-right {
  bottom: 22%;
  right: -52px;
  animation-delay: 1.5s;
}

@keyframes floatUpDown {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.pill-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.pill-icon-circle.green {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.pill-icon-circle.blue {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.pill-info {
  display: flex;
  flex-direction: column;
}

.pill-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.pill-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Phone Frame */
.device-frame {
  position: relative;
  width: 310px;
  height: 640px;
  background: #11151f;
  border-radius: 48px;
  padding: 11px;
  box-shadow: 
    0 0 0 2px rgba(255, 255, 255, 0.12),
    0 25px 60px -10px rgba(0, 0, 0, 0.8),
    0 0 45px rgba(99, 102, 241, 0.25);
  overflow: hidden;
}

.device-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
}

.dynamic-island {
  width: 96px;
  height: 24px;
  background: #000000;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000000;
  border-radius: 38px;
  overflow: hidden;
}

.screen-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--transition-base), transform var(--transition-base);
  transform: scale(0.98);
}

.screen-img.active {
  opacity: 1;
  transform: scale(1);
}

.device-glass-reflection {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
  border-radius: 48px 48px 0 0;
}

/* ==========================================================================
   Metrics Ribbon
   ========================================================================== */
.metrics-ribbon {
  padding: 30px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(14, 18, 27, 0.45);
}

.ribbon-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.metric-card {
  text-align: center;
  padding: 10px;
}

.metric-number {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 6px;
}

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

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
  margin-bottom: 50px;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #818cf8;
  background: rgba(99, 102, 241, 0.12);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.tag-green {
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}

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

/* ==========================================================================
   Interactive Calculator Section
   ========================================================================== */
.interactive-calc-section {
  padding: 90px 0;
  position: relative;
}

.calc-widget-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(99, 102, 241, 0.15);
  backdrop-filter: blur(20px);
}

.calc-inputs-pane {
  padding: 40px;
  border-right: 1px solid var(--border-subtle);
  background: rgba(14, 18, 27, 0.6);
}

.calc-mode-selector {
  display: flex;
  background: rgba(7, 9, 14, 0.7);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  margin-bottom: 28px;
}

.mode-btn {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mode-btn:hover {
  color: var(--text-main);
}

.mode-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

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

.calc-form-group.hidden {
  display: none;
}

.input-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.input-affix-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-affix-wrapper .affix {
  position: absolute;
  left: 16px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.1rem;
  pointer-events: none;
}

.input-affix-wrapper input {
  width: 100%;
  background: rgba(7, 9, 14, 0.8);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px 12px 36px;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-affix-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.preset-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.preset-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #ffffff;
}

/* Results Pane */
.calc-results-pane {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(10, 14, 22, 0.85);
}

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

.results-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-dim);
}

.results-time {
  font-size: 0.75rem;
  color: var(--accent-green);
  font-weight: 600;
}

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

.results-grid.hidden {
  display: none;
}

.result-box {
  background: rgba(18, 24, 38, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.result-box:hover {
  border-color: var(--border-light);
  transform: translateX(4px);
}

.result-box.primary {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.35);
}

.result-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.result-value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
}

.result-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: right;
  display: none;
}

.calc-cta-callout {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-cta-callout p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Features Grid
   ========================================================================== */
.features-section {
  padding: 90px 0;
  position: relative;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(99, 102, 241, 0.15);
}

.highlight-card {
  border-color: rgba(139, 92, 246, 0.45);
  background: linear-gradient(180deg, rgba(30, 27, 75, 0.4) 0%, rgba(21, 27, 40, 0.7) 100%);
}

.card-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.7rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.card-icon-bubble {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: #ffffff;
}

.gradient-blue { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35); }
.gradient-purple { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35); }
.gradient-amber { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35); }
.gradient-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35); }
.gradient-rose { background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%); box-shadow: 0 4px 15px rgba(244, 63, 94, 0.35); }
.gradient-cyan { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35); }

.card-title {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  color: var(--text-main);
}

.card-feature-list li {
  position: relative;
  padding-left: 18px;
}

.card-feature-list li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1;
}

.status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

.status-draft { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }
.status-sent { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.status-paid { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }

/* ==========================================================================
   Showcase Gallery
   ========================================================================== */
.showcase-section {
  padding: 90px 0;
  background: rgba(10, 14, 22, 0.4);
}

.showcase-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.showcase-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.showcase-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

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

.showcase-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000000;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition-base);
}

.showcase-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(99, 102, 241, 0.2);
}

.showcase-card.hidden {
  display: none;
}

.showcase-card-inner {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #080b12;
}

.showcase-card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.showcase-card:hover .showcase-card-inner img {
  transform: scale(1.04);
}

.showcase-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 18px;
  background: linear-gradient(0deg, rgba(7, 9, 14, 0.95) 0%, rgba(7, 9, 14, 0.7) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(10px);
  opacity: 0.9;
  transition: all var(--transition-fast);
}

.showcase-card:hover .showcase-card-overlay {
  transform: translateY(0);
  opacity: 1;
}

.zoom-icon {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.showcase-card-overlay h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.showcase-card-overlay p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Comparison Table Section
   ========================================================================== */
.why-section {
  padding: 90px 0;
}

.comparison-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow-x: auto;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

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

.comparison-table th,
.comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
}

.comparison-table th {
  font-size: 0.95rem;
  font-weight: 700;
  background: rgba(14, 18, 27, 0.85);
  color: var(--text-muted);
}

.comparison-table th.brand-col {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.15);
  border-left: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
}

.brand-cell {
  background: rgba(99, 102, 241, 0.08);
  border-left: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
  color: #ffffff;
  font-weight: 600;
}

.check-icon {
  color: var(--accent-green);
  font-weight: 800;
  margin-right: 6px;
}

.cross-icon {
  color: var(--accent-rose);
  font-weight: 800;
  margin-right: 6px;
}

/* Responsive Visibility Utilities */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

/* Mobile Comparison Cards Stack */
.mobile-comparison-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-compare-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.mobile-compare-card:hover {
  border-color: var(--border-accent);
}

.m-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.m-feature-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.m-badge-bizcalc {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.m-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
}

.m-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
  color: var(--text-main);
}

.m-row.text-dim {
  color: var(--text-muted);
}


/* ==========================================================================
   Security & Privacy Section
   ========================================================================== */
.security-section {
  padding: 80px 0;
}

.security-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(21, 27, 40, 0.8) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xl);
  padding: 50px;
  box-shadow: var(--shadow-lg);
}

.security-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.sec-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.sec-icon {
  font-size: 1.5rem;
}

.sec-item strong {
  display: block;
  font-size: 0.98rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.sec-item p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

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

.shield-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(7, 9, 14, 0.8) 70%);
  border: 2px dashed rgba(16, 185, 129, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-green);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.2);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 80px 0;
}

.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-light);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-trigger:hover {
  color: #818cf8;
}

.faq-icon {
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-answer p {
  padding: 0 24px 22px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Bottom CTA Banner
   ========================================================================== */
.download-cta-section {
  padding: 80px 0 100px;
}

.cta-banner {
  background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.35) 0%, rgba(99, 102, 241, 0.2) 40%, rgba(14, 18, 27, 0.95) 80%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 50px rgba(99, 102, 241, 0.2);
  position: relative;
  overflow: hidden;
}

.cta-app-icon {
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  margin-bottom: 24px;
}

.cta-title {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

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

.cta-buttons-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */
.lightbox-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: opacity var(--transition-base);
}

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

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
}

.lightbox-dialog {
  position: relative;
  z-index: 10;
  max-width: 440px;
  width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-image-container {
  width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  border: 1px solid var(--border-light);
}

.lightbox-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.lightbox-caption {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #05070a;
  padding: 60px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.footer-logo img {
  border-radius: 8px;
}

.footer-motto {
  font-size: 0.88rem;
  color: var(--text-dim);
  max-width: 320px;
  line-height: 1.6;
}

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

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-links-group a:hover {
  color: #818cf8;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto 36px;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .trust-proof-row {
    justify-content: center;
  }

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

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

  .calc-widget-card {
    grid-template-columns: 1fr;
  }

  .calc-inputs-pane {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .security-card {
    grid-template-columns: 1fr;
  }

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

/* ==========================================================================
   Mobile Sticky Quick-Action Bar
   ========================================================================== */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(10, 14, 22, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-light);
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
  transform: translateY(115%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.mobile-sticky-bar.visible {
  transform: translateY(0);
}

.sticky-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 600px;
  margin: 0 auto;
  gap: 12px;
}

.sticky-app-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sticky-app-info img {
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.sticky-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}

.sticky-sub {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 500;
}

.sticky-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sticky-store-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.sticky-store-btn:hover,
.sticky-store-btn:active {
  background: rgba(99, 102, 241, 0.3);
  color: #ffffff;
  transform: scale(1.05);
}

.sticky-actions .btn {
  padding: 8px 16px;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  /* Body padding to prevent sticky bar overlap */
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  /* Visibility switches */
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
  }

  .mobile-sticky-bar {
    display: block;
  }

  /* Form iOS auto-zoom prevention: minimum 16px */
  input,
  select,
  textarea,
  .input-affix-wrapper input {
    font-size: 16px !important;
  }

  .hero-title {
    font-size: 2.4rem;
    line-height: 1.15;
  }

  .desktop-break {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 74px;
    left: 0;
    width: 100%;
    height: calc(100vh - 74px);
    overflow-y: auto;
    background: rgba(7, 9, 14, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-light);
    padding: 28px 24px calc(28px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--transition-base), transform var(--transition-base);
  }

  .main-nav.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: block;
  }

  .ribbon-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

  .showcase-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 40px auto 0;
  }

  .mockup-stage {
    max-width: 310px;
  }

  .device-frame {
    width: min(295px, 86vw);
    height: calc(min(295px, 86vw) * 2.06);
    border-radius: 42px;
    padding: 9px;
  }

  .device-screen {
    border-radius: 34px;
  }

  .floating-pill {
    display: none; /* Hide floating pills on small screens to prevent overflow */
  }

  .calc-inputs-pane,
  .calc-results-pane {
    padding: 26px 20px;
  }

  .security-card {
    padding: 32px 20px;
  }

  .cta-banner {
    padding: 44px 22px;
  }

  .cta-title {
    font-size: 2.1rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .header-container {
    height: 64px;
  }

  .main-nav {
    top: 64px;
    height: calc(100vh - 64px);
    padding: 20px 16px;
  }

  .hero-title {
    font-size: 1.95rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 28px;
  }

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

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

  .trust-proof-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .trust-divider {
    display: none;
  }

  .ribbon-container {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .metric-number {
    font-size: 1.8rem;
  }

  .metric-label {
    font-size: 0.78rem;
  }

  .calc-mode-selector {
    flex-direction: column;
    border-radius: var(--radius-md);
  }

  .mode-btn {
    border-radius: var(--radius-sm);
  }

  .result-value {
    font-size: 1.35rem;
  }

  .cta-buttons-wrapper {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons-wrapper .store-badge-btn {
    width: 100%;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ==========================================================================
   Accessibility & Motion Preferences
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

