/* =====================================================
   PVAStack.com - Global Stylesheet
   White + Royal Indigo Luxury Design System
   ===================================================== */

/* CSS Variables */
:root {
  --white: #FFFFFF;
  --off-white: #F4F7FB;
  --soft-indigo: #EEF2FF;
  --slate: #1E293B;
  --royal-indigo: #312E81;
  --primary-cta: #4F46E5;
  --indigo-light: #6366F1;
  --muted: #94A3B8;
  --success: #22C55E;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(30, 41, 59, 0.08);
  --shadow-lg: 0 12px 40px rgba(30, 41, 59, 0.12);
  --shadow-xl: 0 20px 60px rgba(49, 46, 129, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--white);
  color: var(--slate);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--slate); }
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p { color: var(--muted); font-size: 1rem; line-height: 1.7; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Info Strip */
.top-strip {
  background: linear-gradient(90deg, var(--royal-indigo), var(--primary-cta));
  color: var(--white);
  padding: 8px 0;
  font-size: 0.8rem;
  font-weight: 500;
}
.top-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.top-strip span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-strip .badge {
  background: rgba(255,255,255,0.2);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
}
.top-strip a { color: var(--white); opacity: 0.9; }
.top-strip a:hover { opacity: 1; text-decoration: underline; }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(238, 242, 255, 0.8);
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--royal-indigo);
  letter-spacing: -0.5px;
}
.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-cta), var(--indigo-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-cta);
  transition: var(--transition);
  border-radius: 2px;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--primary-cta); }

/* Mega Dropdown */
.dropdown {
  position: relative;
  padding-bottom: 8px;
}
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.dropdown-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s;
}
.dropdown:hover .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 24px;
  min-width: 720px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 1001;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.dropdown-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 12px;
}
.dropdown-col a {
  display: block;
  font-size: 0.85rem;
  padding: 6px 0;
  color: var(--slate);
  border-radius: 6px;
  transition: var(--transition);
}
.dropdown-col a:hover {
  color: var(--primary-cta);
  padding-left: 8px;
}

/* CTA Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-cta), var(--indigo-light));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.45);
}
.btn-outline {
  background: transparent;
  color: var(--primary-cta);
  border: 2px solid var(--primary-cta);
}
.btn-outline:hover {
  background: var(--primary-cta);
  color: var(--white);
}
.btn-ghost {
  background: transparent;
  color: var(--slate);
  border: 1px solid rgba(148, 163, 184, 0.3);
}
.btn-ghost:hover {
  background: var(--soft-indigo);
  border-color: var(--indigo-light);
}
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: transparent;
  border: none;
  z-index: 1002;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--slate);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease, background 0.3s;
  transform-origin: center;
}
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 45%, #24243e 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(99,102,241,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(139,92,246,0.14) 0%, transparent 55%);
  pointer-events: none;
}
/* Animated background orbs */
.hero-bg-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  animation: orbFloat 12s ease-in-out infinite;
}
.orb-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #6366f1, #4f46e5);
  top: -120px; right: -80px;
  animation-duration: 14s;
}
.orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #8b5cf6, #7c3aed);
  bottom: -60px; left: -60px;
  animation-duration: 10s; animation-delay: -4s;
}
.orb-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, #06b6d4, #0891b2);
  top: 40%; left: 40%;
  animation-duration: 18s; animation-delay: -7s;
  opacity: 0.3;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.97); }
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.95);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.3);
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0.15); }
}
.hero h1 {
  margin-bottom: 20px;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-highlight {
  background: linear-gradient(135deg, #a78bfa, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 28px;
  max-width: 480px;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
}
/* Hero stats row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}
.hero-stat span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-stat-divider {
  width: 1px; height: 36px;
  background: rgba(255,255,255,0.15);
}
/* Hero buttons */
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-btn-main {
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  border: none !important;
  box-shadow: 0 8px 32px rgba(99,102,241,0.45), 0 2px 8px rgba(0,0,0,0.2) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #fff !important;
  transition: all 0.25s ease !important;
}
.hero-btn-main:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 40px rgba(99,102,241,0.55), 0 4px 12px rgba(0,0,0,0.25) !important;
  background: linear-gradient(135deg, #7c3aed, #6366f1) !important;
}
.hero-btn-ghost {
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  color: rgba(255,255,255,0.9) !important;
  backdrop-filter: blur(8px) !important;
}
.hero-btn-ghost:hover {
  background: rgba(255,255,255,0.18) !important;
  border-color: rgba(255,255,255,0.4) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-img-wrapper {
  position: relative;
  display: inline-flex;
}
.hero-img-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.35) 0%, transparent 70%);
  border-radius: 32px;
  z-index: -1;
  filter: blur(20px);
}
.hero-visual .floating-card {
  position: absolute;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
  animation: float 6s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-visual .floating-card:nth-child(1) { top: 10%; right: 10%; animation-delay: 0s; }
.hero-visual .floating-card:nth-child(2) { bottom: 20%; left: 5%; animation-delay: 2s; }
.hero-visual .floating-card:nth-child(3) { top: 50%; right: 0; animation-delay: 4s; }
.hero-visual .card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.hero-visual .card-info h4 { font-size: 0.8rem; margin-bottom: 2px; color: rgba(255,255,255,0.95); font-weight: 600; }
.hero-visual .card-info span { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.hero-visual .price-chip {
  background: linear-gradient(135deg, var(--success), #16a34a);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

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

/* Section Base */
.section {
  padding: 80px 0;
  position: relative;
}
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 1.05rem; }
.section-alt { background: var(--off-white); }

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.2);
}

/* Platform Grid */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.platform-card {
  background: var(--white);
  border: 1px solid rgba(238, 242, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.platform-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--indigo-light);
}
.platform-card .icon-wrap {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.platform-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.platform-card p { font-size: 0.85rem; }

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(238, 242, 255, 0.6);
  transition: var(--transition);
}
.feature-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--indigo-light);
}
.feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 10px;
  background: var(--soft-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cta);
  font-size: 1.2rem;
}
.feature-item h4 { font-size: 1rem; margin-bottom: 4px; }
.feature-item p { font-size: 0.85rem; }

/* Product Cards / Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.pricing-card {
  background: var(--white);
  border: 1px solid rgba(238, 242, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.pricing-card.popular {
  border-color: var(--primary-cta);
  box-shadow: 0 0 0 1px var(--primary-cta), var(--shadow-lg);
}
.pricing-card .popular-badge {
  position: absolute;
  top: 16px;
  right: -32px;
  background: linear-gradient(135deg, var(--primary-cta), var(--indigo-light));
  color: white;
  padding: 4px 40px;
  font-size: 0.7rem;
  font-weight: 700;
  transform: rotate(45deg);
}
.pricing-card .card-header {
  margin-bottom: 24px;
}
.pricing-card .card-header h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.pricing-card .price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--royal-indigo);
  line-height: 1;
}
.pricing-card .price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}
.pricing-card .features { margin-bottom: 24px; }
.pricing-card .features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--slate);
}
.pricing-card .features li::before {
  content: '';
  width: 18px;
  height: 18px;
  background: var(--success);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Quantity Selector */
.qty-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.qty-selector button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: var(--white);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.qty-selector button:hover {
  background: var(--soft-indigo);
  border-color: var(--indigo-light);
}
.qty-selector input {
  width: 60px;
  text-align: center;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  padding: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate);
}

/* Tab System */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: var(--white);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.tab-btn:hover { background: var(--soft-indigo); }
.tab-btn.active {
  background: linear-gradient(135deg, var(--primary-cta), var(--indigo-light));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.4s ease; }

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

/* Carousel */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 0 40px;
}
.carousel {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
}
.carousel-card {
  min-width: 280px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(238, 242, 255, 0.8);
  padding: 24px;
  transition: var(--transition);
}
.carousel-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(148, 163, 184, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 10;
  transition: var(--transition);
}
.carousel-nav:hover { background: var(--soft-indigo); }
.carousel-nav.prev { left: 0; }
.carousel-nav.next { right: 0; }

/* Steps / Timeline */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  text-align: center;
  position: relative;
}
.step::after {
  content: '';
  position: absolute;
  top: 28px;
  right: -12px;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-cta), var(--indigo-light));
}
.step:last-child::after { display: none; }
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--soft-indigo), var(--white));
  border: 2px solid var(--indigo-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-cta);
  margin: 0 auto 16px;
}
.step h4 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: 0.85rem; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid rgba(238, 242, 255, 0.8);
  padding: 20px 0;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  padding-right: 8px;
}
.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
  color: var(--primary-cta);
  flex-shrink: 0;
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-top: 12px;
}
.faq-answer p { font-size: 0.95rem; }

/* Blog Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(238, 242, 255, 0.8);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.blog-card .blog-img {
  height: 180px;
  background: linear-gradient(135deg, var(--soft-indigo), var(--off-white));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.blog-card .blog-content { padding: 24px; }
.blog-card .blog-content h3 { font-size: 1.1rem; margin-bottom: 8px; }
.blog-card .blog-content p { font-size: 0.9rem; margin-bottom: 12px; }
.blog-card .blog-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Footer */
.footer {
  background: var(--slate);
  color: var(--white);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .brand {
  color: var(--white);
  margin-bottom: 16px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 300px;
}
.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: var(--white);
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 6px 0;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--white); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.85rem; color: var(--muted); }

/* Floating Action Buttons */
.fab-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.fab:hover { transform: scale(1.1); }
.fab-whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); }
.fab-telegram { background: linear-gradient(135deg, #0088cc, #005f8a); }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-xl);
}
.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.modal-header h3 { font-size: 1.3rem; }
.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: var(--soft-indigo); }
.modal-body { margin-bottom: 24px; }
.modal-body .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(238, 242, 255, 0.8);
}
.modal-body .detail-row span:first-child { color: var(--muted); }
.modal-body .detail-row span:last-child { font-weight: 600; color: var(--slate); }
.modal-body .total-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--royal-indigo);
  border-top: 2px solid var(--soft-indigo);
  margin-top: 8px;
}
.modal-footer { display: flex; flex-direction: column; gap: 12px; }
.modal-footer .btn { width: 100%; }

/* Order Page Specific */
.order-summary {
  background: var(--soft-indigo);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
}
.order-instructions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.order-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(238, 242, 255, 0.8);
}
.order-card .order-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info .info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(238, 242, 255, 0.8);
}
.contact-info .info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--soft-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cta);
  font-size: 1.2rem;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--slate);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--indigo-light);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* Breadcrumb */
.breadcrumb {
  background: var(--off-white);
  padding: 16px 0;
}
.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumb a:hover { color: var(--primary-cta); }
.breadcrumb .sep { color: var(--muted); }

/* Service Page Hero */
.service-hero {
  background: linear-gradient(135deg, var(--soft-indigo), var(--white));
  padding: 60px 0 40px;
  text-align: center;
}
.service-hero h1 { margin-bottom: 12px; }
.service-hero p { max-width: 600px; margin: 0 auto; }

/* Related Services */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.related-card {
  background: var(--white);
  border: 1px solid rgba(238, 242, 255, 0.8);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}
.related-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--indigo-light);
}
.related-card .r-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.related-card h4 { font-size: 0.9rem; }

/* Responsive */
@media (max-width: 1024px) {
  .dropdown-menu { min-width: 600px; }
  .dropdown-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .container { gap: 40px; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    flex-direction: column;
    padding: 96px 24px 32px;
    gap: 0;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
    overflow-y: auto;
    z-index: 1001;
  }
  .nav-links.active { transform: translateX(0); }
  .nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }
  .nav-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
  }
  .nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 16px 24px;
    width: 100%;
    text-align: center;
    border-radius: 12px;
    transition: all 0.2s ease;
  }
  .nav-links a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
  }
  .nav-links .btn-primary {
    background: var(--white);
    color: var(--primary-cta);
    margin-top: 16px;
    width: 100%;
    justify-content: center;
  }
  .nav-links .btn-primary:hover {
    transform: translateY(-2px);
  }
  .dropdown-menu {
    position: static;
    transform: none;
    min-width: auto;
    box-shadow: none;
    border: none;
    padding: 0 0 0 24px;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), padding 0.3s ease;
    background: transparent;
    backdrop-filter: none;
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .dropdown-menu a {
    padding: 8px 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
  }
  .dropdown-menu a:hover {
    padding-left: 12px;
    color: var(--white);
  }
  .dropdown.open .dropdown-menu {
    display: grid;
    max-height: 70vh;
    padding: 8px 0 16px 24px;
  }
  .dropdown.open > .dropdown-toggle svg {
    transform: rotate(180deg);
  }
  .dropdown-grid { grid-template-columns: 1fr; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin: 0 auto 28px; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: flex; width: 100%; min-height: 280px; margin-top: 40px; }
  .hero-visual img { max-width: 100%; width: 100%; border-radius: 16px !important; }
  .hero-stat strong { font-size: 1.15rem; }
  .hero-visual .floating-card { font-size: 0.75rem; padding: 8px 12px; }
  .hero-buttons { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .top-strip .container { justify-content: center; }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; gap: 12px; }
  .platform-grid { grid-template-columns: 1fr; gap: 12px; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .modal { padding: 24px; }
  .fab-container { bottom: 16px; left: 16px; }
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utilities */
.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--primary-cta), var(--royal-indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.gap-4 { gap: 24px; }

/* ── Nav close button: hidden on desktop ── */
.nav-close { display: none; }

/* ── Pricing cards inside tabs must always be visible ── */
.account-tab-panel .pricing-card-v2,
.aged-subtab-panel .pricing-card-v2 {
  opacity: 1 !important;
  transform: none !important;
}

/* ── Reveal cards inside active tab panels are always visible ── */
.tab-panel.active .reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* ── Mobile: ensure pricing grid stacks and is always visible ── */
@media (max-width: 768px) {
  .tab-panel.active .pricing-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  .tab-panel.active .pricing-card {
    opacity: 1 !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
  }
}

/* =====================================================
   MOBILE MENU - BULLETPROOF FIX
   ===================================================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    z-index: 1100;
    position: relative;
  }
  /* Navbar itself stays fixed/sticky so hamburger is always reachable */
  .navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
  }
  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--slate);
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: linear-gradient(160deg, #312E81 0%, #4F46E5 100%) !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 80px 24px 32px !important;
    gap: 0 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow-y: auto !important;
    z-index: 1050 !important;
    display: flex !important;
  }
  .nav-links.active {
    transform: translateX(0) !important;
  }
  .nav-close {
    display: flex !important;
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255,255,255,0.4) !important;
    background: rgba(255,255,255,0.1) !important;
    color: white !important;
    font-size: 1.6rem !important;
    cursor: pointer !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1060 !important;
    transition: background 0.2s ease !important;
  }
  .nav-close:hover { background: rgba(255,255,255,0.25) !important; }

  .nav-links > a {
    color: rgba(255,255,255,0.9) !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    padding: 14px 24px !important;
    width: 100% !important;
    text-align: center !important;
    border-radius: 12px !important;
    transition: background 0.2s !important;
  }
  .nav-links > a:hover { background: rgba(255,255,255,0.12) !important; color: white !important; }
  .nav-links > a::after { display: none !important; }

  .nav-links .btn-primary {
    background: white !important;
    color: var(--primary-cta) !important;
    margin-top: 12px !important;
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Dropdown in mobile */
  .dropdown {
    width: 100% !important;
    padding-bottom: 0 !important;
  }
  .dropdown-toggle {
    color: rgba(255,255,255,0.9) !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    padding: 14px 24px !important;
    width: 100% !important;
    justify-content: center !important;
    border-radius: 12px !important;
    cursor: pointer !important;
  }
  .dropdown-toggle svg { stroke: white !important; }
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    min-width: 0 !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
    background: rgba(255,255,255,0.08) !important;
    backdrop-filter: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.35s ease, padding 0.3s ease !important;
  }
  .dropdown.open .dropdown-menu {
    max-height: 2000px !important;
    padding: 16px !important;
  }
  .dropdown-grid { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
  .dropdown-col h4 { color: rgba(255,255,255,0.6) !important; font-size: 0.75rem !important; text-transform: uppercase; margin-bottom: 8px !important; }
  .dropdown-menu a {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.9rem !important;
    padding: 6px 0 !important;
    display: block !important;
  }
  .dropdown-menu a:hover { color: white !important; }

  /* ── Mobile: all pricing grids stack to 1 column ── */
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .pricing-grid .pricing-card {
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .dropdown-grid { grid-template-columns: 1fr !important; }
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}
