/* ==========================================================================
   Cormigra Enterprise - Modern Stylesheet & Design System
   Google Drive Migration Services & Cloud Platform
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  /* Color Palette */
  --bg-dark: #070B14;
  --bg-surface: #090F1E;
  --bg-card: #0D1424;
  --bg-card-hover: #131E35;
  --bg-card-glass: rgba(13, 20, 36, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(99, 102, 241, 0.3);
  --border-glow: rgba(59, 130, 246, 0.5);

  --primary: #3B82F6;
  --primary-glow: rgba(59, 130, 246, 0.25);
  --primary-hover: #2563EB;
  --indigo: #6366F1;
  --indigo-glow: rgba(99, 102, 241, 0.3);
  --cyan: #06B6D4;
  --emerald: #10B981;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --amber: #F59E0B;
  --rose: #F43F5E;

  --text-main: #F8FAFC;
  --text-heading: #FFFFFF;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --text-inverse: #0F172A;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 50px -10px rgba(99, 102, 241, 0.3);
  --shadow-glow-cyan: 0 0 50px -10px rgba(6, 182, 212, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode Theme Variables */
[data-theme="light"] {
  --bg-dark: #F8FAFC;
  --bg-surface: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-card-glass: rgba(255, 255, 255, 0.92);
  --border-subtle: #E2E8F0;
  --border-accent: rgba(59, 130, 246, 0.35);
  --border-glow: rgba(59, 130, 246, 0.12);

  --text-main: #0F172A;
  --text-heading: #0F172A;
  --text-muted: #475569;
  --text-dim: #64748B;
  --text-inverse: #FFFFFF;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 4px 25px rgba(59, 130, 246, 0.12);
}

[data-theme="light"] body {
  background: radial-gradient(circle at 50% 0%, #EFF6FF 0%, #F8FAFC 70%);
}

[data-theme="light"] .header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #E2E8F0;
}

[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #0F172A 20%, #1D4ED8 60%, #4338CA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .bg-ambient-orb {
  opacity: 0.12;
}

[data-theme="light"] .bg-grid-overlay {
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .footer {
  background: #F1F5F9;
  border-top: 1px solid #E2E8F0;
}

[data-theme="light"] .pipeline-visualizer {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .pipeline-node {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

[data-theme="light"] .pipeline-tag {
  background: #F1F5F9;
  color: #475569;
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A;
}

[data-theme="light"] .trust-bar {
  background: rgba(255, 255, 255, 0.9);
  border-color: #E2E8F0;
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .btn-secondary {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #1E293B;
}

[data-theme="light"] .btn-secondary:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
}

[data-theme="light"] .calc-container {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .calc-summary-card {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

[data-theme="light"] .range-slider {
  background: #E2E8F0;
}

[data-theme="light"] .comparison-table-wrap {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

[data-theme="light"] .rate-highlight-box {
  background: #FFFFFF;
  border-color: #BFDBFE;
}

[data-theme="light"] .card-glass {
  background: rgba(255, 255, 255, 0.9);
  border-color: #E2E8F0;
}

[data-theme="light"] .mobile-drawer {
  background: #FFFFFF;
  border-left: 1px solid #E2E8F0;
}

[data-theme="light"] .mobile-drawer .brand-logo {
  color: #0F172A;
}

[data-theme="light"] .drawer-close-btn {
  color: #0F172A !important;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-accent);
  color: var(--primary);
}

[data-theme="light"] .theme-toggle-btn {
  background: #FFFFFF;
  border-color: #E2E8F0;
  color: #0F172A;
}

[data-theme="light"] .theme-toggle-btn:hover {
  background: #F1F5F9;
  color: var(--primary);
}

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

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

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #111C38 0%, #070B14 70%);
}

/* Background Ambient Orbs */
.bg-ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: pulse-glow 10s ease-in-out infinite alternate;
}

.bg-ambient-orb-1 {
  top: -150px;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--indigo) 0%, transparent 70%);
}

.bg-ambient-orb-2 {
  top: 30%;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  animation-delay: -5s;
}

.bg-ambient-orb-3 {
  bottom: 10%;
  left: 5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

/* Grid Overlay */
.bg-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1200px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
  pointer-events: none;
  z-index: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

/* Container & Layout */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.section-sm {
  padding: 3.5rem 0;
}

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

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-header h2 {
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 20%, #93C5FD 50%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-text-accent {
  background: linear-gradient(135deg, #60A5FA 0%, #A78BFA 50%, #34D399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Badges & Pills */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #A5B4FC;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

.pill-badge.pill-emerald {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6EE7B7;
}

.pill-badge.pill-amber {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #FCD34D;
}

.pill-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse-dot 1.8s infinite;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
  box-shadow: var(--shadow-sm);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.brand-logo svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
  filter: drop-shadow(0 0 12px var(--primary-glow));
}

.brand-logo .brand-badge {
  font-size: 0.65rem;
  background: linear-gradient(135deg, var(--primary), var(--indigo));
  color: white;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-left: 0.25rem;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--indigo));
  border-radius: 2px;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #4338CA 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

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

.btn-emerald {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.btn-emerald:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

/* Cards & Surfaces */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: var(--transition);
  backdrop-filter: blur(12px);
}

.card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.card-glass {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
}

/* Hero Section */
.hero-section {
  padding-top: 9.5rem;
  padding-bottom: 5rem;
  position: relative;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-lead {
  font-size: 1.25rem;
  max-width: 720px;
  margin: 1.75rem auto 2.5rem auto;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Trust Bar / Stats */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(13, 20, 36, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  margin-top: 3.5rem;
}

.stat-item {
  text-align: center;
  border-right: 1px solid var(--border-subtle);
}

.stat-item:last-child {
  border-right: none;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

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

/* Pipeline Architecture Diagram / Visualizer */
.pipeline-visualizer {
  margin: 4rem auto 0 auto;
  background: #0B101D;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.pipeline-node {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.pipeline-node:hover {
  border-color: var(--primary);
  transform: scale(1.02);
}

.pipeline-node.bridge,
.pipeline-node.engine {
  border-color: rgba(99, 102, 241, 0.5);
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.15), var(--bg-card));
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

.pipeline-node-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.pipeline-node-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

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

.pipeline-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.pipeline-arrow {
  width: 70px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--indigo));
  position: relative;
}

.pipeline-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--indigo);
  border-right: 2px solid var(--indigo);
  transform: rotate(45deg);
}

.pipeline-packet {
  position: absolute;
  top: -4px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: packet-flow 2s infinite linear;
}

.pipeline-tag {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--text-muted);
}

/* Feature Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

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

.feature-card {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--primary);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.feature-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.feature-card .card-link:hover {
  color: #93C5FD;
  gap: 0.75rem;
}

/* Interactive Calculator */
.calc-container {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-glow);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

.calc-control {
  margin-bottom: 2rem;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.calc-label {
  font-weight: 600;
  color: var(--text-main);
  font-size: 1rem;
}

.calc-value-badge {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(59, 130, 246, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.range-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #1E293B;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid white;
  cursor: pointer;
  box-shadow: 0 0 12px var(--primary-glow);
  transition: transform 0.15s ease;
}

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

.calc-summary-card {
  background: linear-gradient(145deg, #0B1120 0%, #151F33 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-price-lead {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.calc-price-amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0.25rem 0;
  line-height: 1;
}

.calc-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.calc-meta-row:last-child {
  border-bottom: none;
}

/* Stepper (5-Stage Framework) */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.step-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.step-row:hover {
  border-color: var(--border-accent);
  transform: translateX(6px);
}

.step-badge {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #A5B4FC;
}

.step-body h3 {
  margin-bottom: 0.5rem;
}

.step-body p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.step-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Live Terminal Simulation */
.terminal-window {
  background: #050811;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  font-family: var(--font-mono);
}

.terminal-header {
  background: #0B101D;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-controls {
  display: flex;
  gap: 0.5rem;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

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

.terminal-body {
  padding: 1.5rem;
  height: 340px;
  overflow-y: auto;
  font-size: 0.85rem;
  line-height: 1.7;
}

.log-line {
  margin-bottom: 0.35rem;
  display: flex;
  gap: 0.75rem;
  opacity: 0;
  animation: log-fade-in 0.3s forwards;
}

.log-tag {
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.75rem;
}

.tag-info { background: rgba(59, 130, 246, 0.2); color: #93C5FD; }
.tag-bridge { background: rgba(99, 102, 241, 0.25); color: #C7D2FE; }
.tag-success { background: rgba(16, 185, 129, 0.2); color: #6EE7B7; }
.tag-warn { background: rgba(245, 158, 11, 0.2); color: #FDE68A; }

/* Comparison Table */
.comparison-table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

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

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

.comparison-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table th.col-highlight,
.comparison-table td.col-highlight {
  background: rgba(59, 130, 246, 0.06);
  border-left: 1px solid rgba(59, 130, 246, 0.2);
  border-right: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--text-main);
  font-weight: 600;
}

/* FAQ Accordion */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.faq-question {
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: var(--primary);
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.35s ease;
  padding: 0 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active {
  border-color: var(--border-accent);
}

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

.faq-item.active .faq-answer {
  max-height: 400px;
  padding-bottom: 1.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #080E1B;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 2.5rem;
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, var(--bg-card) 40%);
  position: relative;
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--indigo));
  color: white;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-features {
  list-style: none;
  margin: 2rem 0;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  color: var(--text-muted);
}

.pricing-features li svg {
  color: var(--emerald);
  flex-shrink: 0;
}

/* Footer */
.footer {
  background: #04070E;
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2.5rem 0;
  position: relative;
  z-index: 10;
}

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

.footer-brand p {
  max-width: 320px;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

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

/* Animations */
@keyframes pulse-glow {
  0% { transform: scale(1) translateY(0); opacity: 0.3; }
  100% { transform: scale(1.15) translateY(30px); opacity: 0.45; }
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes packet-flow {
  0% { left: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes log-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .trust-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  .calc-container {
    grid-template-columns: 1fr;
  }
  .pipeline-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .pipeline-connector {
    transform: rotate(90deg);
    margin: 1rem 0;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-secondary {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .hero-section {
    padding-top: 7.5rem;
  }
  .step-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: #0B1120;
  border-left: 1px solid var(--border-subtle);
  padding: 2rem;
  z-index: 200;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}


/* ==========================================================================
   3D Animated Tabs & Interactive Perspective Cards
   ========================================================================== */

.tabs-3d-wrap {
  perspective: 1200px;
  width: 100%;
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tabs-3d-nav {
  display: inline-flex;
  align-items: center;
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.35rem;
  gap: 0.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform-style: preserve-3d;
  transition: all 0.3s ease;
  max-width: 100%;
  overflow-x: auto;
}

[data-theme="light"] .tabs-3d-nav {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.tab-3d-btn {
  position: relative;
  z-index: 2;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: color 0.25s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
  outline: none;
  white-space: nowrap;
}

.tab-3d-btn:hover {
  color: var(--text-heading);
  transform: translateY(-2px) translateZ(10px);
}

.tab-3d-btn:active {
  transform: translateY(1px) scale(0.97);
}

.tab-3d-btn.active {
  color: #FFFFFF;
}

[data-theme="light"] .tab-3d-btn.active {
  color: #FFFFFF;
}

/* 3D Indicator Pill */
.tab-3d-indicator {
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 0;
  background: linear-gradient(135deg, #3B82F6, #6366F1);
  border-radius: var(--radius-full);
  z-index: 1;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

/* 3D Content Container */
.tabs-3d-stage {
  position: relative;
  width: 100%;
  margin-top: 2rem;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.tab-3d-panel {
  display: none;
  width: 100%;
  transform-origin: 50% 0%;
  opacity: 0;
  transform: perspective(1200px) rotateX(12deg) translateY(24px) scale(0.96);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  pointer-events: none;
}

.tab-3d-panel.active {
  display: block;
  opacity: 1;
  transform: perspective(1200px) rotateX(0deg) translateY(0) scale(1);
  pointer-events: auto;
  animation: tab3dEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tab3dEntrance {
  0% {
    opacity: 0;
    transform: perspective(1200px) rotateX(14deg) translateY(24px) scale(0.96);
  }
  60% {
    opacity: 0.9;
    transform: perspective(1200px) rotateX(-2.5deg) translateY(-2px) scale(1.005);
  }
  100% {
    opacity: 1;
    transform: perspective(1200px) rotateX(0deg) translateY(0) scale(1);
  }
}

.tab-3d-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .tab-3d-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* 3D Interactive Tilt Card (Parallax on mouse move) */
.card-3d-tilt {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out, box-shadow 0.3s ease;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.card-3d-tilt::before {
  content: '';
  position: absolute;
  inset: -100%;
  background: radial-gradient(circle 400px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.12), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

[data-theme="light"] .card-3d-tilt::before {
  background: radial-gradient(circle 400px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 130, 246, 0.12), transparent 70%);
}

.card-3d-tilt:hover::before {
  opacity: 1;
}

.card-3d-tilt:hover {
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 35px rgba(99, 102, 241, 0.25);
}

[data-theme="light"] .card-3d-tilt:hover {
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 0 25px rgba(59, 130, 246, 0.15);
}

.card-3d-inner {
  transform: translateZ(30px);
  transform-style: preserve-3d;
}

.badge-3d-float {
  transform: translateZ(50px);
  display: inline-block;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
