/* ============================================================
   Ideal.Bio — Futuristic Glassmorphism Design System
   ============================================================ */

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

:root {
  --bg: #050510;
  --bg-card: rgba(15, 15, 35, 0.6);
  --bg-card-hover: rgba(25, 25, 55, 0.7);
  --bg-card-solid: #0f0f23;
  --bg-surface: rgba(12, 12, 30, 0.5);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  --border: rgba(168, 85, 247, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text: #c8d6e5;
  --text-muted: #7b8ca8;
  --text-heading: #f0f4f8;
  --purple: #A855F7;
  --purple-light: #C084FC;
  --purple-dark: #7C3AED;
  --purple-glow: rgba(168, 85, 247, 0.3);
  --cyan: #22d3ee;
  --cyan-glow: rgba(34, 211, 238, 0.25);
  --green: #34d399;
  --green-dark: #059669;
  --blue: #60a5fa;
  --pink: #f472b6;
  --orange: #fb923c;
  --red: #f87171;
  --yellow: #fbbf24;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 60px rgba(168, 85, 247, 0.15), 0 0 120px rgba(168, 85, 247, 0.05);
  --shadow-cyan: 0 0 60px rgba(34, 211, 238, 0.1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Satoshi', 'Inter', sans-serif;
  --max-width: 1200px;
  --header-h: 72px;
  --blur: blur(20px);
  --blur-heavy: blur(40px);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* --- Noise Texture Overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 10000;
  opacity: 0.4;
}

/* --- Grid Lines Background --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
}

a { color: var(--purple-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cyan); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

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

/* --- Floating Orbs (Background Decoration) --- */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  will-change: transform;
}
.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15), transparent 70%);
  top: -200px;
  right: -200px;
  animation: orb-float-1 20s ease-in-out infinite;
}
.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.1), transparent 70%);
  bottom: -100px;
  left: -200px;
  animation: orb-float-2 25s ease-in-out infinite;
}
.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.08), transparent 70%);
  top: 50%;
  left: 50%;
  animation: orb-float-3 30s ease-in-out infinite;
}

@keyframes orb-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-80px, 60px) scale(1.1); }
  66% { transform: translate(40px, -40px) scale(0.95); }
}
@keyframes orb-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -80px) scale(1.05); }
  66% { transform: translate(-40px, 40px) scale(0.9); }
}
@keyframes orb-float-3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  33% { transform: translate(-45%, -55%) scale(1.15); }
  66% { transform: translate(-55%, -45%) scale(0.85); }
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  color: var(--text-heading);
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 700;
}
h1 { font-size: clamp(40px, 5.5vw, 72px); letter-spacing: -0.04em; }
h2 { font-size: clamp(30px, 4.5vw, 52px); letter-spacing: -0.03em; }
h3 { font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.02em; }
h4 { font-size: 22px; }
h5 { font-size: 16px; }

.gradient-text {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--cyan) 50%, var(--pink) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.text-glow {
  text-shadow: 0 0 40px rgba(168, 85, 247, 0.3), 0 0 80px rgba(168, 85, 247, 0.1);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(168, 85, 247, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple), 0 0 16px var(--purple-glow);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--purple), 0 0 16px var(--purple-glow); }
  50% { opacity: 0.6; box-shadow: 0 0 4px var(--purple), 0 0 8px var(--purple-glow); }
}

.section-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Glass Card Base --- */
.glass {
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

/* --- Animated Gradient Borders --- */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes border-rotate {
  to { --angle: 360deg; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  box-shadow: 0 4px 24px var(--purple-glow), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 40px rgba(168, 85, 247, 0.5), 0 0 80px rgba(168, 85, 247, 0.2), inset 0 1px 0 rgba(255,255,255,0.15);
  color: #fff;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--purple-light), var(--cyan), var(--purple));
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-primary:hover::after { opacity: 1; }

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  color: var(--text);
  border: 1px solid var(--glass-border);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--glass-border-hover);
  color: #fff;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}
.btn-outline {
  background: transparent;
  color: var(--purple-light);
  border: 1px solid rgba(168, 85, 247, 0.3);
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--purple);
  color: #fff;
  box-shadow: 0 0 30px var(--purple-glow);
}
.btn-lg { padding: 18px 40px; font-size: 17px; }
.btn-sm { padding: 10px 22px; font-size: 13px; }

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}
.header.header-scrolled {
  background: rgba(5, 5, 16, 0.8);
  backdrop-filter: blur(30px) saturate(1.2);
  -webkit-backdrop-filter: blur(30px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  display: flex;
  align-items: center;
}
.header-logo img {
  height: 40px;
  width: auto;
}
.header-nav { display: flex; align-items: center; gap: 32px; }
.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  position: relative;
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: 1px;
  transition: width var(--transition);
}
.header-nav a:hover { color: #fff; }
.header-nav a:hover::after { width: 100%; }
.header-nav a.active { color: #fff; }
.header-nav a.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn-login {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 8px 16px;
  transition: color var(--transition);
}
.header-actions .btn-login:hover { color: #fff; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  padding: 8px;
}

/* --- Hero --- */
.hero {
  padding: calc(var(--header-h) + 100px) 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Aurora Background */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(168, 85, 247, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 30% 10%, rgba(34, 211, 238, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 70% 15%, rgba(244, 114, 182, 0.06) 0%, transparent 50%);
  pointer-events: none;
  animation: aurora 15s ease-in-out infinite alternate;
}

@keyframes aurora {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0.8; }
  50% { transform: translate(-2%, 2%) rotate(1deg); opacity: 1; }
  100% { transform: translate(2%, -1%) rotate(-1deg); opacity: 0.9; }
}

/* Horizon glow line */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.3), rgba(34, 211, 238, 0.2), transparent);
}

.hero h1 {
  margin-bottom: 24px;
  position: relative;
}
.hero .section-subtitle {
  margin-bottom: 48px;
  position: relative;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
  position: relative;
}
.hero-visual {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* --- Section --- */
.section {
  padding: 120px 0;
  position: relative;
}
.section-header {
  text-align: center;
  margin-bottom: 72px;
}
.section-header h2 { margin-bottom: 16px; }

.section-alt {
  background: rgba(8, 8, 24, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.section-border { border-top: 1px solid rgba(255, 255, 255, 0.04); }

/* Section divider glow */
.section-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-glow), transparent);
}

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

.feature-card {
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

/* Shimmer effect on hover */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  transition: left 0.6s ease;
}
.feature-card:hover::before { left: 100%; }

/* Top accent glow */
.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover::after { opacity: 0.6; }

.feature-card:hover {
  border-color: rgba(168, 85, 247, 0.25);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

.feature-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 24px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.15);
  position: relative;
}
.feature-card-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  background: radial-gradient(circle, var(--purple-glow), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover .feature-card-icon::after { opacity: 1; }

.feature-card h4 { margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.feature-card .feature-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 16px;
  letter-spacing: 0.02em;
}
.tag-free {
  background: rgba(52, 211, 153, 0.08);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.2);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.1);
}
.tag-pro {
  background: rgba(168, 85, 247, 0.08);
  color: var(--purple-light);
  border: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.1);
}
.tag-new {
  background: rgba(34, 211, 238, 0.08);
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.2);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.1);
}
.tag-soon {
  background: rgba(148, 163, 184, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
}

/* --- Feature Showcase (alternating left/right) --- */
.feature-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
}
.feature-showcase:nth-child(even) .showcase-content { order: 2; }
.feature-showcase:nth-child(even) .showcase-visual { order: 1; }
.showcase-content .section-label { margin-bottom: 12px; }
.showcase-content h3 { margin-bottom: 16px; }
.showcase-content p { color: var(--text-muted); margin-bottom: 28px; line-height: 1.7; }
.showcase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}
.showcase-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
}
.showcase-list li::before {
  content: '>';
  color: var(--cyan);
  font-weight: 700;
  font-family: monospace;
  flex-shrink: 0;
  margin-top: 1px;
  text-shadow: 0 0 8px var(--cyan-glow);
}

.showcase-visual {
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* Corner accents */
.showcase-visual::before {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 60px;
  height: 60px;
  border-top: 2px solid rgba(168, 85, 247, 0.3);
  border-right: 2px solid rgba(168, 85, 247, 0.3);
  border-radius: 0 var(--radius-xl) 0 0;
}
.showcase-visual::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: 60px;
  height: 60px;
  border-bottom: 2px solid rgba(34, 211, 238, 0.2);
  border-left: 2px solid rgba(34, 211, 238, 0.2);
  border-radius: 0 0 0 var(--radius-xl);
}

.showcase-mockup {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- Pricing --- */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
}
.pricing-toggle span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.pricing-toggle span.active { color: var(--text-heading); }
.toggle-switch {
  width: 56px;
  height: 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  transition: all var(--transition);
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: var(--purple);
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 0 12px var(--purple-glow);
}
.toggle-switch.active::after { transform: translateX(26px); }
.toggle-switch.active { border-color: rgba(168, 85, 247, 0.3); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  position: relative;
  transition: all var(--transition-slow);
}
.pricing-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Popular card glow */
.pricing-card.popular {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: var(--shadow-glow);
  background: rgba(20, 15, 40, 0.7);
}
.pricing-card.popular::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px var(--purple-glow);
}
/* Animated border for popular */
.pricing-card.popular::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  background: conic-gradient(from var(--angle, 0deg), transparent 60%, var(--purple) 80%, var(--cyan) 90%, transparent 100%);
  z-index: -1;
  animation: border-rotate 4s linear infinite;
  opacity: 0.4;
}

.pricing-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}
.pricing-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}
.pricing-price .amount {
  font-size: 52px;
  font-weight: 900;
  color: var(--text-heading);
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}
.pricing-price .period {
  font-size: 14px;
  color: var(--text-muted);
}
.pricing-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}
.pricing-features li::before {
  content: '>';
  color: var(--cyan);
  font-weight: 700;
  font-family: monospace;
  flex-shrink: 0;
  text-shadow: 0 0 8px var(--cyan-glow);
}
.pricing-features li.disabled {
  color: var(--text-muted);
  opacity: 0.4;
}
.pricing-features li.disabled::before {
  content: '—';
  color: var(--text-muted);
  text-shadow: none;
}
.pricing-card .btn { width: 100%; }

/* --- Comparison Table --- */
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table th,
.compare-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.compare-table th {
  background: rgba(10, 10, 30, 0.8);
  color: var(--text-heading);
  font-weight: 600;
  position: sticky;
  top: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.compare-table td { color: var(--text); }
.compare-table tr:hover td { background: rgba(168, 85, 247, 0.04); }
.compare-table .check {
  color: var(--cyan);
  font-weight: 700;
  text-shadow: 0 0 8px var(--cyan-glow);
}
.compare-table .dash { color: var(--text-muted); opacity: 0.3; }
.compare-table .feat-name { font-weight: 500; color: var(--text-heading); }

/* --- Stats Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 56px 0;
}
.stat-item {
  text-align: center;
  position: relative;
}
.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--glass-border), transparent);
}
.stat-item:last-child::after { display: none; }

.stat-value {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 900;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #fff 0%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 64px;
  font-family: Georgia, serif;
  color: rgba(168, 85, 247, 0.1);
  line-height: 1;
}
.testimonial-card:hover {
  border-color: rgba(168, 85, 247, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
.testimonial-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}
.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
}
.testimonial-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Use Case Pills --- */
.use-case-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.uc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  cursor: pointer;
}
.uc-pill:hover, .uc-pill.active {
  border-color: var(--purple);
  background: rgba(168, 85, 247, 0.1);
  color: #fff;
  box-shadow: 0 0 24px var(--purple-glow);
}

/* --- CTA Section --- */
.cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background:
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(168, 85, 247, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 30% 40% at 40% 40%, rgba(34, 211, 238, 0.06) 0%, transparent 50%);
  pointer-events: none;
  animation: cta-pulse 8s ease-in-out infinite;
}
@keyframes cta-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.cta-section h2, .cta-section p, .cta-section .hero-actions { position: relative; }
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { color: var(--text-muted); margin-bottom: 40px; font-size: 18px; }

/* --- Footer --- */
.footer {
  padding: 80px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.3), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand { max-width: 300px; }
.footer-brand .header-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.footer-col h5 {
  color: var(--text-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 5px 0;
  transition: all var(--transition);
}
.footer-col a:hover {
  color: #fff;
  transform: translateX(4px);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: var(--text-muted);
}
.footer-socials { display: flex; gap: 16px; }
.footer-socials a {
  font-size: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  transition: all var(--transition);
}
.footer-socials a:hover {
  color: #fff;
  border-color: var(--purple);
  background: rgba(168, 85, 247, 0.1);
  box-shadow: 0 0 20px var(--purple-glow);
}

/* --- Phone Mockup --- */
.phone-mockup {
  width: 280px;
  height: 560px;
  background: rgba(8, 8, 20, 0.9);
  border-radius: 40px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(168, 85, 247, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 42px;
  background: conic-gradient(from 0deg, rgba(168, 85, 247, 0.2), transparent 30%, rgba(34, 211, 238, 0.15), transparent 60%, rgba(244, 114, 182, 0.1), transparent 90%, rgba(168, 85, 247, 0.2));
  z-index: -1;
  animation: phone-glow 10s linear infinite;
}
@keyframes phone-glow {
  to { transform: rotate(360deg); }
}

.phone-notch {
  width: 100px;
  height: 24px;
  background: rgba(8, 8, 20, 0.95);
  border-radius: 0 0 14px 14px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15, 15, 35, 1) 0%, rgba(8, 8, 20, 1) 100%);
  overflow-y: auto;
  padding: 40px 16px 16px;
}

/* --- FAQ --- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item:hover { border-color: rgba(168, 85, 247, 0.15); }
.faq-item.open { border-color: rgba(168, 85, 247, 0.25); box-shadow: 0 0 30px rgba(168, 85, 247, 0.05); }
.faq-q {
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-heading);
  font-size: 15px;
  transition: color var(--transition);
}
.faq-q::after {
  content: '+';
  font-size: 22px;
  color: var(--purple);
  transition: all var(--transition);
  text-shadow: 0 0 8px var(--purple-glow);
}
.faq-item.open .faq-q::after { transform: rotate(45deg); color: var(--cyan); text-shadow: 0 0 8px var(--cyan-glow); }
.faq-a {
  padding: 0 28px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}
.faq-item.open .faq-a {
  padding: 0 28px 24px;
  max-height: 500px;
}

/* --- Integrations/Logo Bar --- */
.logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 56px 0;
  opacity: 0.35;
  transition: opacity var(--transition);
}
.logo-bar:hover { opacity: 0.6; }
.logo-bar span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Scroll Reveal Animation --- */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card,
.pricing-card,
.testimonial-card,
.faq-item {
  animation: fade-up 0.6s ease both;
}

.feature-card:nth-child(1) { animation-delay: 0s; }
.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.3s; }
.feature-card:nth-child(5) { animation-delay: 0.4s; }
.feature-card:nth-child(6) { animation-delay: 0.5s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .mobile-toggle { display: block; }
  .hero { padding: calc(var(--header-h) + 56px) 0 56px; }
  .section { padding: 80px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-showcase {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature-showcase:nth-child(even) .showcase-content { order: 1; }
  .feature-showcase:nth-child(even) .showcase-visual { order: 2; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stat-item::after { display: none; }
  .hero-actions { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .btn-lg { padding: 16px 32px; font-size: 15px; }
  .pricing-card { padding: 32px 24px; }
  .phone-mockup { width: 240px; height: 480px; border-radius: 32px; }
  .phone-mockup::before { border-radius: 34px; }
  .orb-1, .orb-2, .orb-3 { display: none; }
}
