/* ==========================================================================
   Medicine Vault — Premium Promotional Web Application Design System
   Brand: Medicine Vault (medicinevault.app)
   Color Palette: Deep Emerald Green (#059669), Mint (#10b981), Red Medical Accent (#ef4444)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  /* Color System */
  --primary-hue: 160;
  --primary: #059669;
  --primary-hover: #047857;
  --primary-active: #065f46;
  --primary-light: #ecfdf5;
  --primary-subtle: #d1fae5;
  --primary-border: #6ee7b7;
  --primary-dark: #064e3b;
  --primary-gradient: linear-gradient(135deg, #059669 0%, #10b981 50%, #0d9488 100%);

  --accent-mint: #10b981;
  --accent-teal: #0f766e;
  
  --accent-red: #ef4444;
  --accent-red-hover: #dc2626;
  --accent-red-light: #fef2f2;
  --accent-red-border: #fecaca;
  
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-inverse: #ffffff;

  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-glow: rgba(16, 185, 129, 0.3);

  --shadow-sm: 0 2px 4px 0 rgb(0 0 0 / 0.04);
  --shadow-md: 0 6px 12px -2px rgb(0 0 0 / 0.08), 0 3px 6px -3px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 12px 24px -4px rgb(0 0 0 / 0.1), 0 6px 12px -6px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 24px 48px -12px rgb(0 0 0 / 0.18);
  --shadow-glow: 0 0 35px -5px rgba(5, 150, 105, 0.3);
  --shadow-shield: 0 0 50px -10px rgba(16, 185, 129, 0.4);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-full: 9999px;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  color-scheme: light dark;
}

[data-theme="dark"] {
  --bg-main: #080f1a;
  --bg-surface: #0f192b;
  --bg-subtle: #18253b;
  --bg-elevated: #162238;
  --bg-glass: rgba(15, 25, 43, 0.85);

  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-subtle: #94a3b8;

  --border-light: #1e2f4a;
  --border-medium: #2d4366;
  --border-glow: rgba(52, 211, 153, 0.35);

  --primary-light: #064e3b;
  --primary-subtle: #047857;
  --primary-border: #059669;

  --shadow-glow: 0 0 45px -5px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   Reset & Base Typography
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p, li, blockquote {
  text-wrap: pretty;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-mint);
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

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

.section {
  padding: 5.5rem 0;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding: 7.5rem 0;
  }
}

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

/* Badges & Pills */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-border);
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.12);
}

[data-theme="dark"] .badge-tag {
  color: #6ee7b7;
  background: rgba(5, 150, 105, 0.2);
}

.badge-tag.badge-privacy {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border-color: #34d399;
}

[data-theme="dark"] .badge-tag.badge-privacy {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.25);
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3.25rem;
  }
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Gradient Text Highlight */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

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

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1.5px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-light);
  transition: background-color var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.75rem;
}

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

.brand-icon-wrapper {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-icon-wrapper {
  transform: scale(1.05);
}

.brand-title-group {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand-title span {
  color: var(--primary);
}

.brand-domain {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-subtle);
  letter-spacing: 0.02em;
}

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

@media (min-width: 960px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.nav-dropdown {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: -0.5rem;
}

.nav-dropdown .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  padding: 0.5rem 0;
}

.nav-dropdown .caret {
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
}

.nav-dropdown:hover .caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -0.5rem;
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 0.75rem 0;
  min-width: 220px;
  list-style: none;
  display: none;
  flex-direction: column;
  z-index: 200;
  backdrop-filter: blur(16px);
  animation: fadeInDown 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Invisible hit-test bridge between toggle link and dropdown container */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  width: 100%;
  height: 16px;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: flex;
}

.dropdown-menu li a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.dropdown-menu li a:hover,
.dropdown-menu li a.active {
  background-color: var(--primary-light);
  color: var(--primary);
  padding-left: 1.5rem;
}

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

.theme-toggle-btn {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--primary);
  background-color: var(--primary-light);
  border-color: var(--primary-border);
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
}

@media (min-width: 960px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 4.75rem;
  left: 0;
  width: 100%;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 1.75rem;
  box-shadow: var(--shadow-xl);
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 99;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer .nav-link {
  font-size: 1.1rem;
  padding: 0.5rem 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  padding: 4.5rem 0 6.5rem 0;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.18) 0%, rgba(5, 150, 105, 0.08) 45%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-pill-privacy {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1.2rem;
  background-color: var(--bg-surface);
  border: 1.5px solid var(--primary-border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.15);
  margin-bottom: 1.75rem;
}

[data-theme="dark"] .hero-pill-privacy {
  color: #6ee7b7;
  background-color: rgba(6, 78, 59, 0.4);
}

.hero-pill-shield-icon {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-headline {
  font-size: 2.85rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

@media (min-width: 768px) {
  .hero-headline {
    font-size: 3.85rem;
  }
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 620px;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.75rem;
}

.hero-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  list-style: none;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-light);
  width: 100%;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

.hero-feature-icon {
  color: var(--primary);
  flex-shrink: 0;
}

/* Phone Mockup Frame */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame-glow {
  position: absolute;
  inset: -15px;
  background: var(--primary-gradient);
  border-radius: 60px;
  opacity: 0.25;
  filter: blur(20px);
  z-index: 0;
}

.phone-frame {
  position: relative;
  width: 100%;
  max-width: 325px;
  background: #090d16;
  border-radius: 50px;
  padding: 12px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12);
  z-index: 1;
}

.phone-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background-color: #000000;
  border-radius: 38px;
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background-color: #090d16;
  border-radius: 12px;
  z-index: 10;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Floating Hero Badges */
.hero-badge-floating {
  position: absolute;
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 5;
  animation: float 4s ease-in-out infinite;
}

.hero-badge-floating.badge-top-right {
  top: 6%;
  right: -15px;
}

.hero-badge-floating.badge-bottom-left {
  bottom: 10%;
  left: -25px;
  animation-delay: 2s;
}

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

.badge-icon-alert {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background-color: var(--accent-red-light);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-icon-shield {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

/* ==========================================================================
   PRIVACY-FIRST HIGHLIGHT SECTION (PRIMARY MARKETING FOCUS)
   ========================================================================== */

.privacy-section {
  background: linear-gradient(135deg, #044e3a 0%, #065f46 50%, #047857 100%);
  color: white;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.privacy-section-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  .privacy-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.privacy-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #a7f3d0;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.privacy-title {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .privacy-title {
    font-size: 3.25rem;
  }
}

.privacy-lead {
  color: #d1fae5;
  font-size: 1.2rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.privacy-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.privacy-card-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  backdrop-filter: blur(12px);
  transition: transform var(--transition-fast);
}

.privacy-card-item:hover {
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.privacy-card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.privacy-card-h {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.privacy-card-p {
  font-size: 0.95rem;
  color: #a7f3d0;
  line-height: 1.5;
}

/* Shield Visual Container */
.privacy-shield-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.privacy-shield-graphic {
  position: relative;
  width: 280px;
  height: 320px;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.3) 0%, rgba(5, 150, 105, 0.1) 100%);
  border: 2px solid #34d399;
  clip-path: polygon(50% 0%, 100% 20%, 100% 75%, 50% 100%, 0% 75%, 0% 20%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-shield);
}

.shield-lock-icon {
  width: 5rem;
  height: 5rem;
  color: #6ee7b7;
  margin-bottom: 1rem;
}

.shield-text-bold {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  text-align: center;
}

.shield-text-sub {
  font-size: 0.9rem;
  color: #a7f3d0;
  text-align: center;
}

/* ==========================================================================
   Problem / Solution Banner
   ========================================================================== */

.problem-solution-section {
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-subtle) 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.ps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .ps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ps-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.ps-card.problem {
  border-left: 5px solid var(--accent-red);
}

.ps-card.solution {
  border-left: 5px solid var(--primary);
}

.ps-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.ps-icon-wrapper {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.problem .ps-icon-wrapper {
  background-color: var(--accent-red-light);
  color: var(--accent-red);
}

.solution .ps-icon-wrapper {
  background-color: var(--primary-light);
  color: var(--primary);
}

.ps-title {
  font-size: 1.5rem;
  font-weight: 800;
}

.ps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.ps-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.ps-bullet {
  margin-top: 0.2rem;
  flex-shrink: 0;
  font-weight: 800;
}

.problem .ps-bullet { color: var(--accent-red); }
.solution .ps-bullet { color: var(--primary); }

/* ==========================================================================
   Features Grid
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.feature-icon-box {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.feature-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.6;
}

.feature-badge-pro {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

/* Feature Spotlights */
.spotlight-section {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .spotlight-grid {
    grid-template-columns: 1fr 1fr;
  }

  .spotlight-grid.reverse {
    direction: rtl;
  }

  .spotlight-grid.reverse > * {
    direction: ltr;
  }
}

.spotlight-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.spotlight-title {
  font-size: 2.35rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.spotlight-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.spotlight-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spotlight-point {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.spotlight-point-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
}

.spotlight-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1.5px solid var(--border-light);
  background-color: var(--bg-surface);
}

.spotlight-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Screenshot Gallery
   ========================================================================== */

.gallery-section {
  background-color: var(--bg-subtle);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #000000;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  aspect-ratio: 9 / 19;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  color: white;
  opacity: 0.95;
  transition: opacity var(--transition-fast);
}

.gallery-caption {
  font-size: 1rem;
  font-weight: 700;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
}

.lightbox-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.9);
}

.lightbox-close {
  position: absolute;
  top: -3.5rem;
  right: 0;
  color: white;
  font-size: 2.25rem;
  cursor: pointer;
}

/* ==========================================================================
   Free vs Pro Comparison Table
   ========================================================================== */

.comparison-section {
  padding: 6.5rem 0;
}

.comparison-wrapper {
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  overflow-x: auto;
}

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

.comparison-table th, 
.comparison-table td {
  padding: 1.35rem 1.65rem;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  background-color: var(--bg-subtle);
}

.comparison-table th.col-feature {
  width: 42%;
}

.comparison-table th.col-free {
  width: 29%;
  text-align: center;
}

.comparison-table th.col-pro {
  width: 29%;
  text-align: center;
  background: var(--primary-light);
  color: var(--primary-dark);
  position: relative;
}

[data-theme="dark"] .comparison-table th.col-pro {
  color: #6ee7b7;
  background: rgba(5, 150, 105, 0.25);
}

.comparison-table th.col-pro .pro-header-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--primary-gradient);
  color: white;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  margin-top: 0.35rem;
}

.comparison-table td.col-free,
.comparison-table td.col-pro {
  text-align: center;
}

.comparison-table td.col-pro {
  background-color: rgba(5, 150, 105, 0.04);
  font-weight: 700;
}

.feature-title-cell {
  font-weight: 700;
  color: var(--text-main);
  font-size: 1.05rem;
}

.feature-subtitle-cell {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.15rem;
}

.check-icon {
  color: var(--primary);
  font-weight: 900;
  font-size: 1.35rem;
}

.cross-icon {
  color: var(--text-subtle);
  font-size: 1.35rem;
}

.table-badge-highlight {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 800;
}

/* ==========================================================================
   FAQ Accordion Section
   ========================================================================== */

.faq-section {
  background-color: var(--bg-subtle);
}

.faq-accordion {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.faq-item {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  background: none;
}

.faq-toggle-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  font-size: 0.85rem;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
  background: var(--primary-light);
  color: var(--primary);
}

.faq-answer {
  padding: 0 1.6rem 1.6rem 1.6rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  display: none;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   CTA Banner Section
   ========================================================================== */

.cta-banner-section {
  padding: 6.5rem 0;
}

.cta-banner-card {
  position: relative;
  background: linear-gradient(135deg, #044e3a 0%, #059669 50%, #10b981 100%);
  border-radius: var(--radius-xl);
  padding: 4.5rem 2rem;
  text-align: center;
  color: white;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-banner-card h2 {
  color: white;
  font-size: 2.75rem;
  font-weight: 900;
  margin-bottom: 1.15rem;
}

.cta-banner-card p {
  color: #d1fae5;
  font-size: 1.25rem;
  max-width: 640px;
  margin: 0 auto 2.5rem auto;
}

.cta-banner-card .btn-primary {
  background: #ffffff;
  color: #044e3a;
  font-size: 1.15rem;
  padding: 1.1rem 2.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-banner-card .btn-primary:hover {
  background: #f0fdf4;
  color: #047857;
  transform: translateY(-3px);
}

/* ==========================================================================
   Footer Section
   ========================================================================== */

.footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: 4.5rem 0 2.5rem 0;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 340px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-heading {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

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

.footer-link {
  color: var(--text-muted);
  font-size: 0.925rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-subtle);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}
