/* ============================================================
   PromptGPT.io — Design System & Custom Styles
   Premium Dark Theme · Glassmorphism · Smooth Animations
   ============================================================ */

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

/* ── Design Tokens (CSS Custom Properties) ────────────────── */
:root {
  /* Primary Palette */
  --primary:        #7C3AED;
  --primary-light:  #8B5CF6;
  --primary-dark:   #6D28D9;
  --primary-50:     rgba(124, 58, 237, 0.08);
  --primary-100:    rgba(124, 58, 237, 0.15);
  --primary-200:    rgba(124, 58, 237, 0.25);
  --primary-glow:   rgba(124, 58, 237, 0.4);

  /* Accent */
  --accent:         #22C55E;
  --accent-light:   #4ADE80;
  --accent-dark:    #16A34A;
  --accent-glow:    rgba(34, 197, 94, 0.35);

  /* Surfaces */
  --bg:             #0F172A;
  --bg-alt:         #0B1120;
  --surface:        #1E293B;
  --surface-light:  #334155;
  --surface-lighter: #475569;

  /* Text */
  --text-primary:   #F8FAFC;
  --text-secondary: #94A3B8;
  --text-tertiary:  #64748B;
  --text-muted:     #475569;

  /* Borders */
  --border:         rgba(148, 163, 184, 0.1);
  --border-light:   rgba(148, 163, 184, 0.18);
  --border-focus:   rgba(124, 58, 237, 0.5);

  /* Status */
  --success:        #22C55E;
  --error:          #EF4444;
  --warning:        #F59E0B;
  --info:           #3B82F6;

  /* Shadows */
  --shadow-sm:      0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:      0 4px 14px rgba(0,0,0,0.35);
  --shadow-lg:      0 10px 40px rgba(0,0,0,0.4);
  --shadow-xl:      0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow:    0 0 30px rgba(124,58,237,0.25);
  --shadow-glow-lg: 0 0 60px rgba(124,58,237,0.3);

  /* Radii */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;

  /* Typography */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background: var(--primary);
  color: #fff;
}

::-moz-selection {
  background: var(--primary);
  color: #fff;
}

/* ── Custom Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-light);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--surface-light) var(--bg);
}

/* ── Typography Utilities ─────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
}

.gradient-text-static {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-glow {
  text-shadow: 0 0 20px var(--primary-glow), 0 0 40px rgba(124,58,237,0.15);
}

/* ── Glassmorphism Cards ──────────────────────────────────── */
.glass-card {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--duration-base) var(--ease-smooth);
}

.glass-card-hover:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: var(--border-light);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.glass-surface {
  background: rgba(30, 41, 59, 0.35);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.glass-input {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all var(--duration-base) var(--ease-smooth);
}

.glass-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50), var(--shadow-glow);
}

/* ── Keyframe Animations ──────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
  }
  50% {
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.35), 0 0 60px rgba(124, 58, 237, 0.15);
  }
}

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

@keyframes typing {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes blink {
  0%, 50% { border-color: var(--primary); }
  51%, 100% { border-color: transparent; }
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes particle-float {
  0%   { transform: translate(0, 0) scale(1);     opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translate(var(--tx, 80px), var(--ty, -120px)) scale(0.3); opacity: 0; }
}

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

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes ripple {
  0%   { transform: scale(0); opacity: 0.5; }
  100% { transform: scale(4); opacity: 0; }
}

@keyframes orbit {
  from { transform: rotate(0deg) translateX(var(--orbit-radius, 120px)) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(var(--orbit-radius, 120px)) rotate(-360deg); }
}

@keyframes wave {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-5px) rotate(1deg); }
  75%      { transform: translateY(3px) rotate(-1deg); }
}

/* ── Scroll Reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Staggered delay utilities */
.delay-100 { transition-delay: 100ms !important; }
.delay-200 { transition-delay: 200ms !important; }
.delay-300 { transition-delay: 300ms !important; }
.delay-400 { transition-delay: 400ms !important; }
.delay-500 { transition-delay: 500ms !important; }
.delay-600 { transition-delay: 600ms !important; }
.delay-700 { transition-delay: 700ms !important; }

/* ── Navigation ───────────────────────────────────────────── */
.nav-main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--duration-base) var(--ease-smooth);
  background: transparent;
}

.nav-main.scrolled {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-smooth);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: all var(--duration-base) var(--ease-smooth);
  transform: translateX(-50%);
}

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

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-logo .io-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-left: 4px;
  letter-spacing: 0.5px;
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-base) var(--ease-smooth);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 8px;
    transition: right var(--duration-base) var(--ease-smooth);
    border-left: 1px solid var(--border);
    z-index: 999;
  }
  .nav-links.open {
    right: 0;
  }
  .nav-link {
    font-size: 1rem;
    padding: 12px 16px;
    width: 100%;
  }
}

/* ── Button Styles ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--duration-base) var(--ease-smooth);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1.4;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

/* Primary */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 6px 25px rgba(124, 58, 237, 0.45), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary */
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-light);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--primary-50);
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.15);
}

/* Accent */
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: 0 6px 25px rgba(34, 197, 94, 0.4);
  transform: translateY(-2px);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 10px 20px;
}

.btn-ghost:hover {
  background: var(--primary-50);
  color: var(--text-primary);
}

/* Button Sizes */
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-xl { padding: 18px 44px; font-size: 1.1rem; border-radius: var(--radius-lg); }

/* ── Hero Section ─────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 20px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 20% 60%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  z-index: 0;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

/* Floating Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: particle-float linear infinite;
}

.particle-violet {
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
}

.particle-green {
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
}

.particle-blue {
  background: radial-gradient(circle, rgba(59,130,246,0.3), transparent 70%);
}

/* Hero floating decorative circles */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(124, 58, 237, 0.15);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(34, 197, 94, 0.1);
  bottom: 10%;
  left: -5%;
  animation-delay: -3s;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(59, 130, 246, 0.12);
  top: 40%;
  right: 15%;
  animation-delay: -5s;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 28px;
  animation: fadeInDown 0.8s var(--ease-out) both;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  animation: fadeInUp 0.8s var(--ease-out) 0.15s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s var(--ease-out) 0.45s both;
}

.hero-trust-line {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-bottom: 40px;
  animation: fadeInUp 0.8s var(--ease-out) 0.55s both;
}

.hero-models {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 44px;
  animation: fadeInUp 0.8s var(--ease-out) 0.65s both;
}

.model-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--duration-base) var(--ease-smooth);
}

.model-badge:hover {
  border-color: var(--primary-100);
  color: var(--text-primary);
  background: var(--primary-50);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out) 0.75s both;
}

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

.hero-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ── Feature Cards ────────────────────────────────────────── */
.feature-card {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  transition: all var(--duration-slow) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-smooth);
}

.feature-card:hover {
  background: rgba(30, 41, 59, 0.65);
  border-color: rgba(124, 58, 237, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 30px rgba(124,58,237,0.1);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all var(--duration-base) var(--ease-smooth);
}

.feature-card:hover .feature-card-icon {
  background: var(--primary-100);
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--primary-glow);
}

.feature-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Testimonial Cards ────────────────────────────────────── */
.testimonial-card {
  background: rgba(30, 41, 59, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  min-width: 340px;
  max-width: 400px;
  flex-shrink: 0;
  transition: all var(--duration-base) var(--ease-smooth);
}

.testimonial-card:hover {
  border-color: var(--primary-100);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  fill: #FBBF24;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ── Template Card ────────────────────────────────────────── */
.template-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: var(--radius-full);
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-smooth);
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.template-card:hover {
  background: var(--primary-50);
  border-color: var(--primary-100);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.15);
}

.template-card-icon {
  font-size: 1.15rem;
}

.template-card-count {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  background: rgba(148, 163, 184, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ── Stat Card ────────────────────────────────────────────── */
.stat-card {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid var(--border);
  transition: all var(--duration-base) var(--ease-smooth);
}

.stat-card:hover {
  background: rgba(30, 41, 59, 0.5);
  border-color: var(--primary-100);
  transform: translateY(-4px);
}

.stat-card-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-card-label {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ── Input Styles ─────────────────────────────────────────── */
.input-dark {
  width: 100%;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all var(--duration-base) var(--ease-smooth);
  outline: none;
}

.input-dark::placeholder {
  color: var(--text-muted);
}

.input-dark:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50), 0 0 20px rgba(124, 58, 237, 0.1);
}

textarea.input-dark {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* ── FAQ Accordion ────────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(30, 41, 59, 0.3);
  transition: all var(--duration-base) var(--ease-smooth);
  margin-bottom: 12px;
}

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

.faq-item.active {
  border-color: var(--primary-100);
  background: rgba(30, 41, 59, 0.5);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  transition: color var(--duration-fast) var(--ease-smooth);
  user-select: none;
  gap: 16px;
}

.faq-question:hover {
  color: var(--primary-light);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--duration-base) var(--ease-smooth);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-smooth),
              padding var(--duration-slow) var(--ease-smooth);
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.75;
}

/* ── Score Meter (Radial Progress) ────────────────────────── */
.score-meter {
  position: relative;
  width: 100px;
  height: 100px;
}

.score-meter svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.score-meter-bg {
  fill: none;
  stroke: var(--surface-light);
  stroke-width: 8;
}

.score-meter-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1.5s var(--ease-out);
}

.score-meter-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* ── Loading Spinner ──────────────────────────────────────── */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin-slow 0.8s linear infinite;
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.spinner-inline {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin-slow 0.6s linear infinite;
  vertical-align: middle;
}

/* ── Toast Notifications ──────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: fadeInDown 0.4s var(--ease-out) both;
  pointer-events: auto;
  max-width: 400px;
}

.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--error); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-info    { border-left: 3px solid var(--info); }

.toast-exit {
  animation: fadeOut 0.3s var(--ease-smooth) forwards;
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateX(30px); }
}

/* ── Modal Overlay ────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-base) var(--ease-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--duration-base) var(--ease-bounce);
  box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--surface-light);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.modal-close:hover {
  background: var(--error);
  color: #fff;
}

/* ── Tooltip ──────────────────────────────────────────────── */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-fast) var(--ease-smooth);
  pointer-events: none;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ── Section Common ───────────────────────────────────────── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ── Comparison Section ───────────────────────────────────── */
.comparison-card {
  border-radius: var(--radius-xl);
  padding: 32px;
  background: rgba(30, 41, 59, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}

.comparison-card.bad {
  border-color: rgba(239, 68, 68, 0.15);
}

.comparison-card.good {
  border-color: rgba(34, 197, 94, 0.15);
}

.comparison-card.bad:hover {
  border-color: rgba(239, 68, 68, 0.3);
}

.comparison-card.good:hover {
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.08);
}

/* ── Steps / How It Works ─────────────────────────────────── */
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
  flex-shrink: 0;
}

.step-connector {
  position: absolute;
  top: 50%;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--primary-200) 0 6px,
    transparent 6px 14px
  );
  z-index: 0;
}

/* ── Testimonial Carousel ─────────────────────────────────── */
.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s var(--ease-smooth);
  will-change: transform;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-base) var(--ease-smooth);
}

.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-light);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-smooth);
}

.carousel-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* ── Use Case Card ────────────────────────────────────────── */
.usecase-card {
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all var(--duration-base) var(--ease-smooth);
  cursor: default;
}

.usecase-card:hover {
  background: rgba(30, 41, 59, 0.55);
  border-color: var(--primary-100);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.usecase-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  display: block;
  animation: bounce-subtle 3s ease-in-out infinite;
}

.usecase-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.usecase-desc {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* ── CTA Section ──────────────────────────────────────────── */
.cta-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark), #4C1D95, var(--primary));
  background-size: 300% 300%;
  animation: gradient-shift 8s ease infinite;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(34, 197, 94, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 80% at 80% 20%, rgba(59, 130, 246, 0.12) 0%, transparent 50%);
}

/* ── Live Demo ────────────────────────────────────────────── */
.demo-container {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(30, 41, 59, 0.5);
  border-bottom: 1px solid var(--border);
}

.demo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.demo-output {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  min-height: 160px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-wrap: break-word;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--primary);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer-main {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.footer-link {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--duration-fast) var(--ease-smooth);
}

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

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--duration-base) var(--ease-smooth);
  text-decoration: none;
}

.social-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

/* ── Expertise Selector ───────────────────────────────────── */
.expertise-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(30, 41, 59, 0.3);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-smooth);
}

.expertise-pill:hover,
.expertise-pill.active {
  background: var(--primary-100);
  border-color: var(--primary);
  color: var(--text-primary);
}

/* ── Responsive Utilities ─────────────────────────────────── */
@media (max-width: 640px) {
  .hero-section {
    padding: 100px 16px 60px;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stat-value {
    font-size: 1.3rem;
  }

  .feature-card {
    padding: 28px 22px;
  }

  .testimonial-card {
    min-width: 280px;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 0.92rem;
  }

  .toast-container {
    top: auto;
    bottom: 20px;
    right: 16px;
    left: 16px;
  }

  .toast {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .model-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
  }
}

/* ── Misc Utilities ───────────────────────────────────────── */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

.animate-bounce-subtle {
  animation: bounce-subtle 3s ease-in-out infinite;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hide scrollbar for horizontal scroll containers */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Shimmer loading effect */
.shimmer {
  background: linear-gradient(90deg,
    var(--surface) 25%,
    var(--surface-light) 50%,
    var(--surface) 75%
  );
  background-size: 400% 100%;
  animation: shimmer 1.5s infinite;
}
