/* ═══════════════════════════════════════════════════════════
   KovelAI — Product Design System
   Evidence-First B2B Legal SaaS · 2026 Enterprise Aesthetic
   kovelai.com
   ═══════════════════════════════════════════════════════════ */

:root {
  --void:       #06060B;
  --charcoal:   #0E0E14;
  --surface:    #14141C;
  --elevated:   #1C1C28;
  --border:     rgba(255,255,255,0.06);
  --text:       #E8E6E1;
  --text-muted: #8A8880;
  --gold:       #C8A44E;
  --gold-glow:  rgba(200,164,78,0.15);
  --pass:       #3ECF71;
  --fail:       #E84855;
  --flagged:    #F4A529;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --space-xs: 0.5rem; --space-sm: 1rem; --space-md: 2rem;
  --space-lg: 4rem; --space-xl: 8rem; --space-2xl: 12rem;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 200ms; --duration-normal: 500ms; --duration-slow: 1000ms;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { background: var(--void); color: var(--text); font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; }
body::after { content: ''; position: fixed; inset: 0; background-image: 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.85' 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: 9999; }
a { color: var(--gold); text-decoration: none; } a:hover { opacity: 0.8; }
::selection { background: var(--gold); color: var(--void); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md); }
.container--narrow { max-width: 800px; }

/* ── Typography ──────────────────────────────── */
.display-xl { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 7rem); font-weight: 700; line-height: 0.95; letter-spacing: -0.03em; }
.display-lg { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 4.5rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
.display-md { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 500; line-height: 1.2; }
.body-lg { font-size: 1.25rem; line-height: 1.7; color: var(--text-muted); max-width: 600px; }
.overline { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.text-stroke { -webkit-text-stroke: 1.5px var(--gold); -webkit-text-fill-color: transparent; }
.kinetic-word { display: inline-block; opacity: 0; transform: translateY(40px) rotateX(-15deg); transition: all var(--duration-slow) var(--ease-out-expo); }
.kinetic-word.revealed { opacity: 1; transform: translateY(0) rotateX(0); }

/* ── Sections ────────────────────────────────── */
.section { min-height: 100vh; display: flex; align-items: center; padding: var(--space-xl) 0; position: relative; }
.section--half { min-height: 60vh; }
.section--auto { min-height: auto; }
.divider { width: 60px; height: 1px; background: var(--gold); margin: var(--space-md) 0; }
.grid-editorial { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: start; }

/* ── Nav ─────────────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: var(--space-sm) 0; transition: all var(--duration-normal) var(--ease-out-expo); }
.nav--scrolled { background: rgba(6,6,11,0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav__inner { display: flex; justify-content: space-between; align-items: center; }
.nav__logo { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--text); letter-spacing: 0.02em; }
.nav__links { display: flex; gap: var(--space-md); list-style: none; align-items: center; }
.nav__links a { color: var(--text-muted); font-size: 0.85rem; letter-spacing: 0.05em; transition: color var(--duration-fast); }
.nav__links a:hover { color: var(--gold); }

/* ── Hero ────────────────────────────────────── */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; filter: saturate(0.8); }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--void) 0%, transparent 30%, transparent 60%, var(--void) 100%), linear-gradient(90deg, var(--void) 0%, transparent 50%); }
.hero__content { position: relative; z-index: 1; padding: var(--space-xl) 0; }
.hero__tagline { margin-top: var(--space-md); max-width: 540px; }
.hero__cta-group { display: flex; gap: var(--space-sm); margin-top: var(--space-lg); flex-wrap: wrap; }

/* ── Trust Bar ───────────────────────────────── */
.trust-bar { background: var(--charcoal); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: var(--space-md) 0; }
.trust-bar__inner { display: flex; align-items: center; justify-content: center; gap: var(--space-lg); flex-wrap: wrap; }
.trust-stat { text-align: center; }
.trust-stat__number { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--gold); }
.trust-stat__label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ── Buttons ─────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 var(--space-md); border-radius: 4px; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; border: none; transition: all var(--duration-normal) var(--ease-out-expo); position: relative; overflow: hidden; }
.btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1)); opacity: 0; transition: opacity var(--duration-fast); }
.btn:hover::before { opacity: 1; }
.btn--primary { background: var(--gold); color: var(--void); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--gold-glow); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ── Glass Cards ─────────────────────────────── */
.glass-card { background: rgba(20,20,28,0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 16px; padding: var(--space-lg); position: relative; overflow: hidden; transition: all var(--duration-normal) var(--ease-out-expo); }
.glass-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(200,164,78,0.3), transparent); }
.glass-card:hover { border-color: rgba(200,164,78,0.2); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.glass-card__icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--gold-glow); color: var(--gold); font-size: 1.5rem; margin-bottom: var(--space-md); }
.glass-card__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: var(--space-xs); }
.glass-card__text { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-md); }

/* ── Mechanism Steps ─────────────────────────── */
.mechanism-step { display: flex; gap: var(--space-lg); align-items: flex-start; padding: var(--space-lg) 0; border-bottom: 1px solid var(--border); }
.mechanism-step:last-child { border-bottom: none; }
.mechanism-step__number { font-family: var(--font-display); font-size: 4rem; font-weight: 700; color: var(--gold); opacity: 0.3; line-height: 1; flex-shrink: 0; width: 80px; }
.mechanism-step__content { flex: 1; }
.mechanism-step__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: var(--space-xs); }
.mechanism-step__text { color: var(--text-muted); line-height: 1.7; }

/* ── ROI Calculator ──────────────────────────── */
.roi-calculator { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: var(--space-lg); }
.roi-calculator__inputs { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
.roi-input-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: var(--space-xs); text-transform: uppercase; letter-spacing: 0.1em; }
.roi-input-group input[type="range"] { width: 100%; -webkit-appearance: none; appearance: none; height: 4px; background: var(--elevated); border-radius: 2px; outline: none; }
.roi-input-group input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; background: var(--gold); border-radius: 50%; cursor: pointer; box-shadow: 0 2px 8px var(--gold-glow); }
.roi-value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--text); text-align: right; }
.roi-result { margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: 1px solid var(--border); text-align: center; }
.roi-result__number { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5rem); font-weight: 700; color: var(--gold); line-height: 1; }
.roi-result__label { font-size: 1rem; color: var(--text-muted); margin-top: var(--space-xs); }

/* ── Pricing ─────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.pricing-card { padding: var(--space-lg); }
.pricing-card--featured { border-color: rgba(200,164,78,0.3); background: rgba(200,164,78,0.04); }
.pricing-card__tier { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); }
.pricing-card__price { font-family: var(--font-display); font-size: 3rem; font-weight: 700; margin: var(--space-sm) 0; }
.pricing-card__period { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.pricing-card__features { list-style: none; margin: var(--space-md) 0; }
.pricing-card__features li { padding: var(--space-xs) 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--text-muted); }
.pricing-card__features li::before { content: '→ '; color: var(--gold); }

/* ── Footer ──────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: var(--space-lg) 0 var(--space-md); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-lg); }
.footer__brand { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: var(--space-sm); }
.footer__desc { color: var(--text-muted); font-size: 0.85rem; max-width: 280px; }
.footer__heading { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted); margin-bottom: var(--space-sm); }
.footer__links { list-style: none; }
.footer__links li { margin-bottom: var(--space-xs); }
.footer__links a { color: var(--text-muted); font-size: 0.9rem; transition: color var(--duration-fast); }
.footer__links a:hover { color: var(--gold); }
.footer__bottom { margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); }

/* ── Animations ──────────────────────────────── */
.reveal { opacity: 0; transform: translateY(60px); transition: all var(--duration-slow) var(--ease-out-expo); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .grid-editorial { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .mechanism-step { flex-direction: column; }
  .mechanism-step__number { font-size: 2.5rem; width: auto; }
  .hero__cta-group { flex-direction: column; }
  .btn { width: 100%; }
  .nav__links { display: none; }
}
