/* ═══ AINPCEngine — impeccable.style Design System ═══ */
/* Based on bandsaas.com pattern: tinted neutrals, motion tokens, fluid type */

/* ═══ Design Tokens ═══ */
:root {
  /* Tinted neutrals (blue chroma — never pure #000 or #fff) */
  --bg-0: #0c0a12;
  --bg-1: #100e18;
  --bg-2: #16131e;
  --bg-3: #1e1a26;
  --bg-4: #2d2838;
  --border: #2d2838;
  --border-light: #3d3848;
  --text: #ece9f1;
  --text-muted: #9c96a8;
  --text-light: #b8b2c4;
  --white: #faf9f7;

  /* Brand */
  --accent: #4ade80;
  --accent-hover: #86efac;
  --accent-glow: rgba(74, 222, 128, 0.12);
  --accent-border: rgba(74, 222, 128, 0.25);
  --accent-dark: #22c55e;
  --cyan: #22d3ee;
  --gold: #fbbf24;
  --red: #ef4444;
  --purple: #a78bfa;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: clamp(1.125rem, 1.5vw + 0.5rem, 1.333rem);
  --text-xl: clamp(1.333rem, 2vw + 0.5rem, 1.777rem);
  --text-2xl: clamp(1.777rem, 3vw + 0.5rem, 2.369rem);
  --text-3xl: clamp(2rem, 3.5vw + 0.5rem, 3.157rem);
  --text-4xl: clamp(2.25rem, 5vw + 0.5rem, 4.209rem);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
  --space-section: 120px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Motion (ease-out-quart — no bounce/elastic) */
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro: 150ms;
  --dur-state: 250ms;
  --dur-layout: 400ms;
  --dur-entrance: 600ms;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 30px var(--accent-glow);
  --shadow-accent: 0 10px 30px rgba(74, 222, 128, 0.2);
}

/* ═══ Reset & Base ═══ */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; transition: color var(--dur-state) var(--ease); }
a:hover { color: var(--accent-hover); }

/* Touch targets (global, not mobile-only) */
a, button { min-height: 44px; }

/* Focus visible (accessibility) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ═══ Navbar ═══ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(12, 10, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0;
  transition: box-shadow var(--dur-state) var(--ease);
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); }
.navbar .container { height: 66px; display: flex; align-items: center; }
.navbar-brand { font-size: 18px; color: var(--white) !important; letter-spacing: -0.3px; }
.nav-link {
  font-size: 14px;
  color: var(--text-light) !important;
  font-weight: 500;
  padding: 8px 14px !important;
  transition: color var(--dur-state) var(--ease);
}
.nav-link:hover { color: var(--white) !important; }

/* ═══ Buttons ═══ */
.btn {
  font-weight: 600;
  border-radius: var(--radius);
  padding: 10px 22px;
  transition: all var(--dur-state) var(--ease);
  border: none;
  font-size: 14px;
  letter-spacing: 0.01em;
}
.btn:active { transform: scale(0.97); transition-duration: var(--dur-micro); }
.btn-accent {
  background: var(--accent);
  color: var(--bg-0);
}
.btn-accent:hover {
  background: var(--accent-hover);
  color: var(--bg-0);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}
.btn-outline-dim {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-light);
}
.btn-outline-dim:hover {
  background: rgba(74, 222, 128, 0.08);
  border-color: var(--accent-border);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-light {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-light);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--text-muted);
  color: var(--white);
}
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ═══ Hero ═══ */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-poster, .hero-bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-bg-poster { z-index: 1; }
.hero-bg-video { z-index: 2; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-bg-video--active { opacity: 1; }
.hero-bg-overlay {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(180deg, rgba(12, 10, 18, 0.4) 0%, rgba(12, 10, 18, 0.88) 100%);
}
.hero-bg-glow {
  position: absolute; inset: 0; z-index: 3;
  background: radial-gradient(ellipse at center top, rgba(74, 222, 128, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 4; }
.fw-900 { font-weight: 900; }
.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero badge */
.badge-pill {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1px solid var(--accent-border);
  letter-spacing: 0.02em;
}

/* Stats */
.stat-value { font-size: 24px; font-weight: 800; color: var(--white); }
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }

/* ═══ Scroll Fade-In (Staggered) ═══ */
.fade-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-entrance) var(--ease-enter), transform var(--dur-entrance) var(--ease-enter);
}
.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger delays via CSS variable */
.fade-section[style*="--i:1"] { transition-delay: 75ms; }
.fade-section[style*="--i:2"] { transition-delay: 150ms; }
.fade-section[style*="--i:3"] { transition-delay: 225ms; }
.fade-section[style*="--i:4"] { transition-delay: 300ms; }
.fade-section[style*="--i:5"] { transition-delay: 375ms; }

/* ═══ Sections ═══ */
.section-dark { background: var(--bg-1); }
.section-alt { background: var(--bg-2); }
.section-cta {
  background: linear-gradient(135deg, var(--bg-1) 0%, #0d1a12 50%, var(--bg-1) 100%);
}
.section-glow {
  position: relative;
}
.section-glow::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 600px; height: 300px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(74, 222, 128, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Section labels */
.section-label {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-desc {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 65ch;
}

/* ═══ Market stats bar ═══ */
.market-stat { text-align: center; padding: 20px; }
.market-stat .stat-value { font-size: 32px; font-weight: 900; }

/* ═══ Cards (universal) ═══ */
.card-dark {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--dur-state) var(--ease), transform var(--dur-state) var(--ease), box-shadow var(--dur-state) var(--ease);
}
.card-dark:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Pain cards */
.pain-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; height: 100%; transition: border-color var(--dur-state) var(--ease), transform var(--dur-state) var(--ease); }
.pain-card:hover { border-color: var(--accent-border); transform: translateY(-3px); }
.pain-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pain-icon { font-size: 28px; }
.pain-header h5 { margin-bottom: 0; font-weight: 700; }

/* Step cards */
.step-card { text-align: center; padding: 28px; }
.step-number {
  display: inline-flex; width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: var(--bg-0);
  font-weight: 800; font-size: 20px;
  align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(74, 222, 128, 0.25);
}

/* Expert cards */
.expert-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; height: 100%;
  transition: border-color var(--dur-state) var(--ease), transform var(--dur-state) var(--ease), box-shadow var(--dur-state) var(--ease);
}
.expert-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.expert-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.expert-icon { font-size: 28px; }
.expert-header h5 { margin-bottom: 0; font-weight: 700; }

/* Use case cards */
.use-case-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; height: 100%;
  transition: border-color var(--dur-state) var(--ease), transform var(--dur-state) var(--ease);
}
.use-case-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.use-case-icon { font-size: 36px; margin-bottom: 14px; }

/* ═══ Code ═══ */
.code-snippet {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 24px;
  color: var(--text-light); font-size: 13px;
  display: inline-block; text-align: left;
  max-width: 100%; overflow-x: auto;
}
.code-block {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  font-size: 14px; line-height: 1.7; overflow-x: auto;
}
.code-block code { color: var(--text); }
.code-comment { color: var(--text-muted); }

/* ═══ Pricing ═══ */
.price-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px 28px;
  text-align: center; height: 100%; position: relative;
  transition: border-color var(--dur-state) var(--ease), transform var(--dur-state) var(--ease), box-shadow var(--dur-state) var(--ease);
}
.price-card:hover { border-color: var(--border-light); transform: translateY(-4px); }
.price-popular {
  border-color: var(--accent) !important;
  box-shadow: var(--shadow-glow);
  transform: scale(1.03);
}
.price-popular:hover { transform: scale(1.05) translateY(-2px); }
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--bg-0);
  padding: 6px 20px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700; white-space: nowrap;
  letter-spacing: 0.04em;
}
.price-tier {
  font-size: 14px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600; margin-bottom: 8px;
}
.price-amount { font-size: var(--text-4xl); font-weight: 900; margin-bottom: 4px; color: var(--white); }
.price-period { font-size: 16px; font-weight: 400; color: var(--text-muted); margin-bottom: 28px; }
.price-features { list-style: none; padding: 0; margin-bottom: 28px; text-align: left; }
.price-features li { padding: 7px 0; font-size: 14px; color: var(--text-light); }
.price-features i { margin-right: 10px; }
.price-features .bi-check2 { color: var(--accent); }
.price-features .bi-x { color: var(--text-muted); }

/* ═══ Comparison Table ═══ */
.comparison-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.comparison-table th, .comparison-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.comparison-table thead th {
  background: var(--bg-3); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted);
}
.comparison-table .col-us { background: rgba(74, 222, 128, 0.04); }
.comparison-table .bi-check-circle-fill { color: var(--accent); }
.comparison-table .bi-x-circle { color: var(--text-muted); }

/* ═══ Tech badges ═══ */
.tech-badge {
  display: inline-block; background: var(--bg-3);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 16px; margin: 4px; font-size: 13px; font-weight: 500;
  transition: border-color var(--dur-state) var(--ease);
}
.tech-badge:hover { border-color: var(--accent-border); }
.tag-soon {
  background: var(--gold); color: var(--bg-0);
  padding: 2px 10px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700; margin-left: 6px;
}

/* ═══ FAQ ═══ */
.accordion-item {
  background: var(--bg-2) !important;
  border: 1px solid var(--border) !important;
  margin-bottom: 10px;
  border-radius: var(--radius) !important;
  overflow: hidden;
}
.accordion-button {
  background: var(--bg-2); color: var(--text);
  font-weight: 600; font-size: 15px;
  box-shadow: none !important;
  padding: 18px 24px;
}
.accordion-button:not(.collapsed) { background: var(--bg-3); color: var(--accent); }
.accordion-button::after { filter: invert(1); }
.accordion-body { font-size: 14px; line-height: 1.8; color: var(--text-light); padding: 4px 24px 20px; }

/* ═══ Footer ═══ */
footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding-top: 48px; padding-bottom: 32px;
}
footer a { color: var(--text-muted); text-decoration: none; transition: color var(--dur-state) var(--ease); }
footer a:hover { color: var(--white); }
footer h6 { color: var(--text-light); letter-spacing: 0.04em; }

/* ═══ Utilities ═══ */
.text-accent { color: var(--accent) !important; }
.text-light-muted { color: var(--text-light) !important; }
.feature-mini { padding: 14px; font-size: 14px; }
.fw-900 { font-weight: 900; }

/* KPI card (studio dashboard + landing) */
.kpi-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.kpi-value { font-size: 28px; font-weight: 800; }
.kpi-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }

/* ═══ Studio Dashboard Overrides ═══ */
.studio-topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}

/* ═══ Forms (auth, settings) ═══ */
.form-control, .form-select {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 10px 14px;
  transition: border-color var(--dur-state) var(--ease), box-shadow var(--dur-state) var(--ease);
}
.form-control:focus, .form-select:focus {
  background: var(--bg-2);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  color: var(--text);
}
.form-control::placeholder { color: var(--text-muted); }
.form-label { color: var(--text-light); font-weight: 500; font-size: 14px; margin-bottom: 6px; }

/* ═══ Responsive ═══ */
@media (max-width: 992px) {
  .navbar .container { height: 58px; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: var(--text-2xl); }
  .price-amount { font-size: 36px; }
  .stat-value { font-size: 20px; }
  .market-stat .stat-value { font-size: 24px; }
  section { padding-top: 64px !important; padding-bottom: 64px !important; }
}
@media (max-width: 576px) {
  .btn-lg { padding: 12px 22px; font-size: 14px; }
  .badge-pill { font-size: 12px; padding: 6px 14px; }
}
