/* ==========================================================
   KIVN — Consulting IA pour cabinets d'ingénierie
   Design 2026 : Light premium · Electric blue · Terracotta
   Inspirations : Linear · Vercel · Stripe · Anthropic
   ========================================================== */

:root {
  /* Couleurs principales */
  --bg: #FAFAF7;
  --bg-2: #F4F2EB;
  --bg-warm: #F7F3EB;
  --surface: #FFFFFF;
  --surface-2: #FAFAF7;
  --border: #E8E4DA;
  --border-strong: #D5CFBF;
  --text: #0B0F1A;
  --text-2: #3C4150;
  --muted: #6B7280;
  --muted-2: #9CA3AF;

  /* Accents */
  --blue: #2D5BFF;
  --blue-dark: #1E3EC9;
  --blue-soft: #E8EEFF;
  --terracotta: #E8764D;
  --terracotta-dark: #C6553A;
  --terracotta-soft: #FCEDE4;
  --green: #10B981;
  --green-soft: #D1FAE5;
  --purple: #8B5CF6;
  --purple-soft: #EDE9FE;

  /* Gradients */
  --grad-blue: linear-gradient(135deg, #3B5BFF 0%, #6366F1 100%);
  --grad-warm: linear-gradient(135deg, #FF9870 0%, #E8764D 100%);
  --grad-hero: linear-gradient(135deg, #2D5BFF 0%, #8B5CF6 50%, #E8764D 100%);
  --grad-card: linear-gradient(180deg, #FFFFFF 0%, #FAFAF7 100%);

  /* Radius */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(11, 15, 26, 0.04), 0 1px 1px rgba(11, 15, 26, 0.03);
  --shadow: 0 4px 16px rgba(11, 15, 26, 0.06), 0 2px 4px rgba(11, 15, 26, 0.04);
  --shadow-lg: 0 12px 40px rgba(11, 15, 26, 0.08), 0 4px 12px rgba(11, 15, 26, 0.04);
  --shadow-xl: 0 24px 64px rgba(11, 15, 26, 0.1), 0 8px 24px rgba(11, 15, 26, 0.06);
  --shadow-glow-blue: 0 20px 60px rgba(45, 91, 255, 0.2);
  --shadow-glow-warm: 0 20px 60px rgba(232, 118, 77, 0.2);

  /* Fonts */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: var(--font-body);
  font-feature-settings: 'ss01', 'ss02', 'cv05', 'cv11';
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--text);
  font-optical-sizing: auto;
}

p { color: var(--text-2); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--blue); color: white; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

/* ========== AMBIENT BG ========== */
.ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  overflow: hidden;
}
.ambient::before, .ambient::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(140px); opacity: 0.4; will-change: transform;
}
.ambient::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(45, 91, 255, 0.3), transparent 70%);
  top: -200px; left: -100px;
  animation: drift-1 30s ease-in-out infinite;
}
.ambient::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232, 118, 77, 0.25), transparent 70%);
  bottom: -200px; right: -100px;
  animation: drift-2 35s ease-in-out infinite;
}
@keyframes drift-1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(100px, 80px); }
}
@keyframes drift-2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-80px, -60px); }
}

/* ========== NAV ========== */
nav.main {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0;
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  background: rgba(250, 250, 247, 0.8);
  border-bottom: 1px solid rgba(232, 228, 218, 0.5);
}
nav.main .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
/* --- Icons agents Lucide (outline moderne) --- */
.agent-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
  transition: all 0.2s ease;
}
.agent-ico.op {
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
  box-shadow: inset 0 0 0 1px rgba(232, 118, 77, 0.12);
}
.agent-ico.planned {
  background: var(--bg-2);
  color: #5D4934;
  box-shadow: inset 0 0 0 1px var(--border);
}
.agent-card:hover .agent-ico.op {
  background: var(--terracotta);
  color: white;
  transform: scale(1.05);
}
.agent-card:hover .agent-ico.planned {
  background: #5D4934;
  color: white;
  transform: scale(1.05);
}
.agent-ico svg { display: block; }
/* Icons Lucide dans les cards services/bento */
.card .ico svg { display: block; width: 22px; height: 22px; }
.bento .card .ico { width: 44px; height: 44px; border-radius: 12px; }


/* --- LOGO : wordmark pur style Anthropic, palette warm brun/terracotta --- */
.logo {
  display: inline-flex; align-items: baseline; gap: 0;
  font-family: var(--font-display);
  font-size: 28px; font-weight: 500; font-style: italic;
  letter-spacing: -0.035em; line-height: 1;
  color: #5D4934;
  text-transform: lowercase;
  text-decoration: none;
}
.logo::after {
  /* Signature slash terracotta style Anthropic */
  content: "/";
  font-style: italic; font-weight: 500;
  color: var(--terracotta);
  margin-left: 3px;
  font-feature-settings: "ss01";
}
/* On masque le .logo-mark legacy — wordmark pur uniquement */
.logo-mark {
  display: none;
}
.nav-links { display: flex; gap: 8px; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px;
  color: var(--text-2); font-size: 14px; font-weight: 500;
  transition: all 0.15s;
}
.nav-links a:hover { background: var(--bg-2); color: var(--text); }
.nav-links a.active { color: var(--blue); }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; font-weight: 500;
  font-size: 14px; font-family: inherit; cursor: pointer;
  transition: all 0.15s; text-decoration: none;
  border: none; white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-primary {
  background: var(--text); color: var(--bg);
}
.btn-primary:hover {
  background: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(45, 91, 255, 0.25);
}
.btn-accent {
  background: var(--blue); color: white;
  box-shadow: 0 4px 12px rgba(45, 91, 255, 0.18);
}
.btn-accent:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(45, 91, 255, 0.3);
}
.btn-ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text); background: var(--bg); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--text); }
.btn .arrow { transition: transform 0.15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ========== PILL / BADGES ========== */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 100px;
  background: var(--blue-soft);
  color: var(--blue); font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em;
}
.pill.warm { background: var(--terracotta-soft); color: var(--terracotta-dark); }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ========== HERO ========== */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
/* Photo de fond cinématographique */
.hero-photo {
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
  overflow: hidden;
}
.hero-photo::before {
  content: ""; position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: saturate(1.1) contrast(1.05);
  /* Default : homepage - architecture moderne */
  background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2400&q=80');
}
/* Variantes par page */
.hero-photo.p-agents::before {
  background-image: url('https://images.unsplash.com/photo-1581092918056-0c4c3acd3789?auto=format&fit=crop&w=2400&q=80');
}
.hero-photo.p-services::before {
  background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=2400&q=80');
}
.hero-photo.p-methode::before {
  background-image: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=2400&q=80');
}
.hero-photo.p-tarifs::before {
  background-image: url('https://images.unsplash.com/photo-1486718448742-163732cd1544?auto=format&fit=crop&w=2400&q=80');
}
.hero-photo.p-cas::before {
  background-image: url('https://images.unsplash.com/photo-1511818966892-d7d671e672a2?auto=format&fit=crop&w=2400&q=80');
}
.hero-photo.p-insights::before {
  background-image: url('https://images.unsplash.com/photo-1497215842964-222b430dc094?auto=format&fit=crop&w=2400&q=80');
}
.hero-photo.p-contact::before {
  background-image: url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=2400&q=80');
}
/* Parallax subtil en desktop uniquement (iOS mobile bug évité) */
@media (min-width: 1024px) and (hover: hover) {
  .hero-photo::before { background-attachment: fixed; }
}
/* Overlay : spotlight très serré — photo quasi pleine + halo uniquement derrière le texte */
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 42% 38% at center 40%, rgba(250, 250, 247, 0.62) 0%, rgba(250, 250, 247, 0.18) 60%, rgba(250, 250, 247, 0) 100%),
    radial-gradient(ellipse at top right, rgba(232, 118, 77, 0.06) 0%, transparent 55%);
}
/* Hero : texte NOIR + halo cream très compact qui enveloppe chaque lettre */
.hero .lead {
  color: var(--text);
  font-weight: 500;
  text-shadow:
    0 0 10px rgba(250, 250, 247, 1),
    0 0 4px rgba(250, 250, 247, 1),
    0 1px 2px rgba(250, 250, 247, 0.95);
}
.hero h1 {
  color: var(--text);
  text-shadow:
    0 0 12px rgba(250, 250, 247, 1),
    0 0 5px rgba(250, 250, 247, 0.95);
}
/* Pill hero : légère opacité + blur pour rester net sur photo sans l'assombrir */
.hero .pill {
  background: rgba(232, 238, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* --- PHOTO BAND : bande immersive pleine largeur au milieu de page --- */
.photo-band {
  position: relative; overflow: hidden;
  min-height: 480px; display: flex; align-items: center;
  background-color: #0B0F1A;
  background-image:
    linear-gradient(100deg, rgba(11, 15, 26, 0.88) 0%, rgba(11, 15, 26, 0.62) 45%, rgba(45, 91, 255, 0.28) 100%),
    url('https://images.unsplash.com/photo-1433832597046-4f10e10ac764?auto=format&fit=crop&w=2400&q=80');
  background-size: cover; background-position: center;
}
/* Variantes par page */
.photo-band.b-agents {
  background-image:
    linear-gradient(100deg, rgba(11, 15, 26, 0.88) 0%, rgba(11, 15, 26, 0.62) 45%, rgba(45, 91, 255, 0.28) 100%),
    url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=2400&q=80');
}
.photo-band.b-services {
  background-image:
    linear-gradient(100deg, rgba(11, 15, 26, 0.88) 0%, rgba(11, 15, 26, 0.62) 45%, rgba(45, 91, 255, 0.28) 100%),
    url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=2400&q=80');
}
.photo-band.b-methode {
  background-image:
    linear-gradient(100deg, rgba(11, 15, 26, 0.88) 0%, rgba(11, 15, 26, 0.62) 45%, rgba(232, 118, 77, 0.25) 100%),
    url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=2400&q=80');
}
.photo-band.b-tarifs {
  background-image:
    linear-gradient(100deg, rgba(11, 15, 26, 0.88) 0%, rgba(11, 15, 26, 0.62) 45%, rgba(45, 91, 255, 0.28) 100%),
    url('https://images.unsplash.com/photo-1554224155-8d04cb21cd6c?auto=format&fit=crop&w=2400&q=80');
}
.photo-band.b-cas {
  background-image:
    linear-gradient(100deg, rgba(11, 15, 26, 0.88) 0%, rgba(11, 15, 26, 0.62) 45%, rgba(16, 185, 129, 0.25) 100%),
    url('https://images.unsplash.com/photo-1460472178825-e5240623afd5?auto=format&fit=crop&w=2400&q=80');
}
.photo-band.b-insights {
  background-image:
    linear-gradient(100deg, rgba(11, 15, 26, 0.88) 0%, rgba(11, 15, 26, 0.62) 45%, rgba(139, 92, 246, 0.28) 100%),
    url('https://images.unsplash.com/photo-1507146153580-69a1fe6d8aa1?auto=format&fit=crop&w=2400&q=80');
}
@media (min-width: 1024px) and (hover: hover) {
  .photo-band { background-attachment: fixed, fixed; }
}
.photo-band .band-inner {
  max-width: 960px; margin: 0 auto; padding: 100px 32px;
  color: white; position: relative; z-index: 2;
}
.photo-band .eyebrow {
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7); margin-bottom: 20px;
}
.photo-band h2 {
  font-family: var(--font-display); font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.025em; font-weight: 500; line-height: 1.12;
  color: white; margin-bottom: 24px;
}
.photo-band h2 em {
  font-style: italic; color: #FCEDE4;
  background: linear-gradient(120deg, #FCEDE4 0%, #F2B68D 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.photo-band p {
  font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, 0.88);
  max-width: 680px; margin-bottom: 36px;
}
.photo-band .band-meta {
  display: flex; gap: 48px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.photo-band .band-meta > div { color: white; }
.photo-band .band-meta .num {
  font-family: var(--font-display); font-size: 38px; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1;
}
.photo-band .band-meta .num.warm {
  background: linear-gradient(120deg, #F2B68D 0%, #FCEDE4 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.photo-band .band-meta .label {
  font-size: 12px; color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px;
}
/* Dégradé cream en bas pour liaison douce avec le reste du site */
.hero::before {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: 0; height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 1; pointer-events: none;
}
/* Grid overlay subtil par-dessus */
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(45, 91, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 91, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
}
/* S'assurer que le contenu passe par-dessus */
.hero-split { position: relative; z-index: 2; }
.hero .metrics { position: relative; z-index: 2; }
.hero-bg-wireframe { z-index: 1; opacity: 0.18; }
.hero-inner {
  max-width: 1040px; margin: 0 auto;
  text-align: center; position: relative;
}

/* Hero split (titre à gauche + dashboard à droite) */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.hero-split .hero-text {
  text-align: left;
}
.hero-split h1 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  font-weight: 500;
}
.hero-split .lead {
  font-size: 18px;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: 0;
  margin-right: 0;
}
.hero-split .cta-row { justify-content: flex-start; margin-bottom: 32px; }

/* Wireframe building background */
.hero-bg-wireframe {
  position: absolute;
  top: 0; right: -10%;
  width: 65%; height: 100%;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}
.hero-bg-wireframe svg {
  width: 100%; height: 100%;
}

/* ===== Dashboard mockup ===== */
.dashboard-mockup {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.dashboard-mockup:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg) translateY(-4px); }
.dashboard-mockup .dash-top {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.dashboard-mockup .dash-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong);
}
.dashboard-mockup .dash-title {
  flex: 1; font-size: 12px; color: var(--muted);
  font-family: var(--font-mono); text-align: center;
}
.dashboard-mockup .dash-body {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.dash-widget {
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.dash-widget.full { grid-column: span 2; }
.dash-widget .label {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted);
  font-weight: 600; margin-bottom: 8px;
}
.dash-widget .value {
  font-family: var(--font-display); font-size: 28px;
  font-weight: 500; letter-spacing: -0.025em;
  color: var(--text); line-height: 1;
}
.dash-widget .value .unit { color: var(--blue); font-size: 18px; margin-left: 2px; }
.dash-widget .trend {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 6px; font-size: 12px; color: var(--green); font-weight: 600;
}
.dash-widget.blue { background: var(--grad-blue); border-color: transparent; }
.dash-widget.blue .label, .dash-widget.blue .trend { color: rgba(255, 255, 255, 0.75); }
.dash-widget.blue .value { color: white; }
.dash-widget.blue .trend { color: #A7F3D0; }

/* Mini barchart */
.minichart {
  display: flex; align-items: flex-end; gap: 4px;
  height: 40px; margin-top: 12px;
}
.minichart .bar {
  flex: 1; background: var(--blue); border-radius: 3px;
  min-height: 20%;
  transition: background 0.3s;
  animation: bar-grow 1s ease-out;
}
.minichart .bar:nth-child(even) { background: var(--blue); opacity: 0.7; }
.minichart .bar.peak { background: var(--terracotta); }
@keyframes bar-grow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); }
}

/* Agent list mini */
.dash-agent-list {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 12px;
}
.dash-agent {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); font-size: 13px;
}
.dash-agent .agent-ico {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 11px; flex-shrink: 0;
}
.dash-agent .agent-status {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.8s infinite;
}

/* Floating animated stats */
.float-stat {
  position: absolute;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
  animation: float-soft 6s ease-in-out infinite;
}
.float-stat .ico {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.float-stat.f1 { top: -20px; right: -30px; animation-delay: 0s; }
.float-stat.f2 { bottom: 40px; left: -40px; animation-delay: 2s; }
.float-stat.f3 { top: 40%; right: -50px; animation-delay: 4s; }
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero .pill { margin-bottom: 32px; }
.hero h1 {
  font-size: clamp(44px, 7vw, 88px);
  letter-spacing: -0.04em; line-height: 0.98;
  margin-bottom: 28px; font-weight: 500;
}
.hero h1 .grad {
  background: var(--grad-hero);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: grad-shift 10s ease-in-out infinite;
}
@keyframes grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero .lead {
  font-size: clamp(18px, 2vw, 22px); color: var(--text-2);
  max-width: 680px; margin: 0 auto 40px; line-height: 1.5;
  font-weight: 400;
}
.hero .cta-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-trust {
  display: flex; gap: 48px; justify-content: center;
  flex-wrap: wrap; color: var(--muted); font-size: 13px;
}
.hero-trust span::before { content: "✓ "; color: var(--green); margin-right: 4px; }

/* ========== METRICS STRIP ========== */
.metrics {
  margin-top: 72px;
  padding: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
.metric {
  text-align: left;
}
.metric .num {
  font-family: var(--font-display); font-size: 44px;
  font-weight: 500; letter-spacing: -0.03em; line-height: 1;
  color: var(--text); margin-bottom: 8px;
}
.metric .num .unit { color: var(--blue); }
.metric .label {
  color: var(--muted); font-size: 14px; line-height: 1.4;
}

/* ========== SECTIONS ========== */
section { position: relative; }
section.pad { padding: 120px 0; }
section.pad-sm { padding: 80px 0; }
section.bg-white { background: var(--surface); }
section.bg-warm { background: var(--bg-warm); }

.section-head {
  max-width: 760px; margin: 0 auto 72px;
  text-align: center;
}
.section-head .eyebrow {
  color: var(--blue); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.035em; margin-bottom: 20px;
}
.section-head h2 em { font-style: italic; color: var(--blue); }
.section-head p {
  font-size: 18px; line-height: 1.55; color: var(--text-2);
}

/* ========== BENTO GRID ========== */
.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
}
.card {
  padding: 32px; border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: all 0.25s;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.card h3 {
  font-size: 22px; font-family: var(--font-display); font-weight: 500;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.card p { font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.card.dark {
  background: var(--text); color: var(--surface);
}
.card.dark h3, .card.dark p { color: var(--surface); }
.card.blue {
  background: var(--grad-blue); color: white;
}
.card.blue h3, .card.blue p { color: white; }
.card.warm {
  background: var(--grad-warm); color: white;
}
.card.warm h3, .card.warm p { color: white; }
.card.warm-soft {
  background: var(--terracotta-soft);
}
.card.blue-soft {
  background: var(--blue-soft);
}

.bento .span-2 { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .span-6 { grid-column: span 6; }
.bento .row-2 { grid-row: span 2; }

.card .ico {
  width: 46px; height: 46px; border-radius: 11px;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 24px;
}
.card.dark .ico, .card.blue .ico, .card.warm .ico {
  background: rgba(255, 255, 255, 0.15); color: white;
}
.card.warm-soft .ico { background: white; color: var(--terracotta); }

/* ========== AGENTS SHOWCASE ========== */
.agents-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.agent-card {
  padding: 28px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  cursor: pointer; transition: all 0.2s;
  display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
}
.agent-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-blue); opacity: 0; transition: opacity 0.2s;
}
.agent-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.agent-card:hover::before { opacity: 1; }
.agent-card .num {
  font-family: var(--font-mono); font-size: 12px; color: var(--blue);
  font-weight: 500; letter-spacing: 0.05em;
}
.agent-card h3 {
  font-family: var(--font-body); font-size: 17px; font-weight: 600;
  letter-spacing: -0.01em; margin: 0;
}
.agent-card p { font-size: 14px; color: var(--text-2); line-height: 1.5; flex: 1; }
.agent-card .saved {
  padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--green); font-weight: 600;
}

/* ========== DEMO WIDGET ========== */
.demo-frame {
  max-width: 960px; margin: 0 auto;
  border-radius: var(--r-2xl); overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
}
.demo-top {
  padding: 14px 20px; background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.demo-dots { display: flex; gap: 6px; }
.demo-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.demo-dot.r { background: #FF5F57; }
.demo-dot.y { background: #FEBC2E; }
.demo-dot.g { background: #28C840; }
.demo-title {
  flex: 1; text-align: center; font-family: var(--font-mono);
  color: var(--muted); font-size: 13px;
}
.demo-body {
  padding: 36px; min-height: 380px;
  display: flex; flex-direction: column; gap: 16px;
  background: var(--surface);
}
.chat-row { display: flex; gap: 12px; align-items: flex-start; }
.chat-row.user { flex-direction: row-reverse; }
.chat-avatar {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; font-family: var(--font-display);
}
.chat-avatar.user { background: var(--bg-2); color: var(--text); }
.chat-avatar.ai { background: var(--grad-blue); color: white; }
.chat-sublabel {
  font-size: 11px; color: var(--muted); margin-bottom: 6px;
  font-family: var(--font-mono); letter-spacing: 0.05em;
}
.chat-bubble {
  padding: 14px 18px; border-radius: var(--r);
  font-size: 14.5px; line-height: 1.6; max-width: 600px;
}
.chat-bubble.user { background: var(--bg-2); color: var(--text); }
.chat-bubble.ai {
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.chat-bubble strong { color: var(--blue); font-weight: 600; }
.chat-bubble em { color: var(--muted); font-style: italic; }
.demo-controls {
  display: flex; gap: 8px; margin-top: 20px;
  flex-wrap: wrap; justify-content: center;
}
.demo-btn {
  padding: 9px 16px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); font-size: 13px; cursor: pointer;
  transition: all 0.15s; font-family: inherit; font-weight: 500;
}
.demo-btn:hover { border-color: var(--blue); color: var(--blue); }
.demo-btn.active { background: var(--text); color: var(--surface); border-color: var(--text); }
.typing-dots { display: flex; gap: 4px; padding: 14px 18px; }
.typing-dots span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--muted);
  animation: typing 1.4s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.18s; }
.typing-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; }
  30% { opacity: 1; }
}

/* ========== STATS / BIG NUMBERS ========== */
.big-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 48px; margin-top: 72px;
}
.big-stat {
  padding: 36px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-xl);
  text-align: left;
}
.big-stat .num {
  font-family: var(--font-display); font-size: 72px;
  font-weight: 500; letter-spacing: -0.04em; line-height: 0.95;
  background: var(--grad-blue);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 12px;
}
.big-stat .num.warm {
  background: var(--grad-warm);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.big-stat h4 {
  font-family: var(--font-body); font-size: 17px; font-weight: 600;
  margin-bottom: 8px; letter-spacing: -0.01em;
}
.big-stat p { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ========== PROCESS / STEPS ========== */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; max-width: 1040px; margin: 0 auto;
}
.step {
  padding: 32px 28px;
  border-top: 3px solid var(--blue);
  background: var(--surface);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.step .num {
  font-family: var(--font-display); font-size: 48px; font-weight: 500;
  color: var(--blue); line-height: 1; letter-spacing: -0.03em;
  margin-bottom: 20px; opacity: 0.3;
}
.step h3 {
  font-family: var(--font-body); font-size: 18px; font-weight: 600;
  margin-bottom: 10px; letter-spacing: -0.01em;
}
.step p { font-size: 14px; color: var(--text-2); line-height: 1.55; }
.step .duration {
  display: inline-block; margin-top: 14px;
  padding: 3px 10px; background: var(--blue-soft);
  color: var(--blue); font-size: 12px; font-weight: 600; border-radius: 100px;
}

/* ========== PRICING ========== */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.price-card {
  padding: 44px 36px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; position: relative;
  transition: all 0.25s;
}
.price-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.price-card.featured {
  background: var(--text); color: var(--surface);
  border-color: var(--text); transform: scale(1.03);
  box-shadow: var(--shadow-xl);
}
.price-card.featured h3, .price-card.featured .amount { color: var(--surface); }
.price-card.featured p, .price-card.featured li { color: rgba(255, 255, 255, 0.8); }
.price-card.featured .pop-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 5px 14px; background: var(--terracotta); color: white;
  border-radius: 100px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
}
.price-card h3 { font-size: 20px; font-family: var(--font-body); font-weight: 600; margin-bottom: 6px; }
.price-card .desc { font-size: 14px; color: var(--muted); margin-bottom: 32px; min-height: 40px; }
.price-card .amount {
  font-family: var(--font-display); font-weight: 500; font-size: 52px;
  line-height: 1; letter-spacing: -0.035em; margin-bottom: 4px;
}
.price-card .amount .currency { font-size: 24px; margin-right: 4px; color: var(--muted); }
.price-card .period { font-size: 14px; color: var(--muted); margin-bottom: 36px; }
.price-card.featured .period { color: rgba(255, 255, 255, 0.6); }
.price-card ul { list-style: none; margin-bottom: 36px; flex: 1; }
.price-card li {
  padding: 9px 0; font-size: 14.5px; display: flex; gap: 12px;
  align-items: flex-start; color: var(--text-2);
}
.price-card li::before {
  content: "✓"; color: var(--blue); font-weight: 700; flex-shrink: 0;
}
.price-card.featured li::before { color: var(--terracotta); }
.price-card .btn { justify-content: center; width: 100%; padding: 14px; font-size: 15px; }
.price-card.featured .btn { background: var(--terracotta); color: white; }
.price-card.featured .btn:hover { background: var(--terracotta-dark); }

/* ========== TESTIMONIALS ========== */
.testimonials {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 1040px; margin: 0 auto;
}
.testimonial {
  padding: 40px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 24px;
}
.testimonial.featured {
  background: var(--grad-blue); color: white;
  grid-column: span 2;
}
.testimonial .quote {
  font-family: var(--font-display); font-size: 22px; font-weight: 400;
  line-height: 1.4; font-style: italic; letter-spacing: -0.015em;
  color: var(--text);
}
.testimonial.featured .quote {
  color: white; font-size: 28px;
}
.testimonial .author {
  display: flex; align-items: center; gap: 14px;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.testimonial.featured .author { border-top-color: rgba(255, 255, 255, 0.2); }
.testimonial .avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad-warm);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-family: var(--font-display);
}
.testimonial .author-info { flex: 1; }
.testimonial .author-name { font-weight: 600; font-size: 14.5px; color: var(--text); }
.testimonial.featured .author-name { color: white; }
.testimonial .author-role { font-size: 13px; color: var(--muted); }
.testimonial.featured .author-role { color: rgba(255, 255, 255, 0.75); }

/* ========== FAQ ========== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--r);
  margin-bottom: 10px; cursor: pointer; transition: all 0.2s;
  background: var(--surface);
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] { border-color: var(--blue); box-shadow: var(--shadow); }
.faq-item summary {
  padding: 22px 26px; font-size: 16px; font-weight: 500;
  list-style: none; display: flex;
  justify-content: space-between; align-items: center; gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 20px; color: var(--blue);
  transition: transform 0.2s; font-weight: 400;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--blue-soft);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 26px 24px; color: var(--text-2); line-height: 1.7; font-size: 15px;
}

/* ========== CTA FINAL ========== */
.cta-final {
  padding: 120px 40px; text-align: center;
  background: var(--grad-blue); color: white;
  border-radius: var(--r-2xl);
  margin: 80px 32px;
  position: relative; overflow: hidden;
}
.cta-final::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.15), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(232, 118, 77, 0.3), transparent 50%);
  pointer-events: none;
}
.cta-final > * { position: relative; z-index: 1; }
.cta-final h2 {
  color: white; font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.035em; margin-bottom: 20px;
}
.cta-final p {
  color: rgba(255, 255, 255, 0.85); font-size: 20px;
  max-width: 600px; margin: 0 auto 40px;
}
.cta-final .cta-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta-final .btn-accent {
  background: white; color: var(--text);
}
.cta-final .btn-accent:hover { background: var(--bg); }
.cta-final .btn-outline {
  color: white; border-color: rgba(255, 255, 255, 0.3);
}
.cta-final .btn-outline:hover {
  color: white; border-color: white; background: rgba(255, 255, 255, 0.1);
}

/* ========== FOOTER ========== */
footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-warm);
}
footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
footer .brand-col p {
  color: var(--muted); font-size: 14.5px; margin-top: 20px; max-width: 340px;
  line-height: 1.6;
}
footer .col-title {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text); margin-bottom: 18px;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul a {
  color: var(--text-2); font-size: 14.5px; transition: color 0.15s;
}
footer ul a:hover { color: var(--blue); }
footer .bottom {
  max-width: 1200px; margin: 60px auto 0;
  padding: 28px 32px 0;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: 13px; flex-wrap: wrap; gap: 16px;
}
footer .bottom .status {
  display: flex; align-items: center; gap: 8px;
}
footer .bottom .status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 12px var(--green);
  animation: pulse 2s infinite;
}

/* ========== MODAL ========== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(11, 15, 26, 0.4);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  z-index: 100; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
  padding: 28px;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--surface); border-radius: var(--r-2xl);
  max-width: 680px; width: 100%; max-height: 88vh; overflow-y: auto;
  position: relative; transform: scale(0.96) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-xl);
}
.modal-backdrop.open .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-2); border: none;
  color: var(--text); font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; z-index: 2;
}
.modal-close:hover { background: var(--text); color: white; transform: rotate(90deg); }
.modal-header {
  padding: 48px 40px 28px;
  background: linear-gradient(180deg, var(--blue-soft) 0%, var(--surface) 100%);
}
.modal-header .num {
  font-family: var(--font-mono); color: var(--blue); font-size: 12px;
  font-weight: 500; margin-bottom: 8px; letter-spacing: 0.08em;
}
.modal-header h3 {
  font-size: 32px; margin-bottom: 14px; letter-spacing: -0.03em;
}
.modal-header .tagline {
  font-family: var(--font-display); font-size: 18px; font-style: italic;
  color: var(--text-2); line-height: 1.5; font-weight: 400;
}
.modal-body { padding: 32px 40px; }
.modal-section-title {
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  color: var(--blue); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 14px; margin-top: 28px;
}
.modal-section-title:first-child { margin-top: 0; }
.modal-list { list-style: none; }
.modal-list li {
  padding: 8px 0; padding-left: 24px; position: relative;
  font-size: 14.5px; line-height: 1.6;
}
.modal-list.functions li::before {
  content: "→"; position: absolute; left: 0; color: var(--blue); font-weight: 700;
}
.modal-list.impact li::before {
  content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700;
}
.modal-footer {
  padding: 24px 40px; border-top: 1px solid var(--border);
  background: var(--bg-2); border-radius: 0 0 var(--r-2xl) var(--r-2xl);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.modal-footer .price-info {
  font-size: 13px; color: var(--muted);
}
.modal-footer .price-info strong { color: var(--text); font-weight: 600; }

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ========== RESPONSIVE ========== */
@media (max-width: 980px) {
  .hero-split { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-split .hero-text { text-align: center; }
  .hero-split .lead { margin-left: auto; margin-right: auto; }
  .hero-split .cta-row { justify-content: center; }
  .hero-split .hero-text > div[style*="justify-content"] { justify-content: center; }
  .dashboard-mockup { transform: none; }
  .dashboard-mockup:hover { transform: translateY(-4px); }
  .float-stat.f1, .float-stat.f3 { right: 10px; }
  .float-stat.f2 { left: 10px; }
  .hero-bg-wireframe { right: -30%; width: 80%; opacity: 0.15; }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento .span-3, .bento .span-4 { grid-column: span 3; }
  .bento .span-6 { grid-column: span 3; }
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .big-stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .testimonials { grid-template-columns: 1fr; }
  .testimonial.featured { grid-column: span 1; }
  footer .container { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  section.pad { padding: 72px 0; }
  .hero { padding: 50px 0 70px; }
  .hero-split { padding: 0 20px; }
  .float-stat { display: none; }
  .metrics { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
  .bento { grid-template-columns: 1fr; }
  .bento .span-2, .bento .span-3, .bento .span-4, .bento .span-6 { grid-column: span 1; }
  .big-stats, .steps { grid-template-columns: 1fr; }
  .cta-final { margin: 40px 20px; padding: 72px 24px; }
  footer .container { grid-template-columns: 1fr; }
  .modal-header, .modal-body, .modal-footer { padding-left: 24px; padding-right: 24px; }
  .product-view { padding: 28px 18px; }
  .product-view .screen { border-radius: 12px; }
}

/* ========== PRODUCT VIEW (grand mockup) ========== */
.product-view {
  max-width: 1100px; margin: 0 auto;
  padding: 8px;
  border-radius: var(--r-2xl);
  background: linear-gradient(135deg, #2D5BFF 0%, #8B5CF6 60%, #E8764D 100%);
  box-shadow: 0 30px 80px rgba(45, 91, 255, 0.25);
  position: relative;
}
.product-view::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(45, 91, 255, 0.15), transparent 60%);
  z-index: -1;
  border-radius: var(--r-2xl);
  filter: blur(40px);
}
.product-view .screen {
  background: var(--surface);
  border-radius: 24px;
  overflow: hidden;
}
.product-view .screen-top {
  padding: 14px 20px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
}
.product-view .screen-top .dots { display: flex; gap: 6px; }
.product-view .screen-top .dots span {
  width: 11px; height: 11px; border-radius: 50%;
}
.product-view .screen-top .dots span:nth-child(1) { background: #FF5F57; }
.product-view .screen-top .dots span:nth-child(2) { background: #FEBC2E; }
.product-view .screen-top .dots span:nth-child(3) { background: #28C840; }
.product-view .url-bar {
  flex: 1; padding: 7px 14px;
  background: var(--surface); border-radius: 100px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  text-align: center;
}
.product-view .screen-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 520px;
}
.product-view .sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
}
.product-view .sidebar .logo-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; margin-bottom: 20px;
}
.product-view .sidebar .sb-section {
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
  padding: 16px 8px 8px;
}
.product-view .sidebar .sb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  font-size: 13.5px; color: var(--text-2); cursor: default;
  transition: background 0.15s;
}
.product-view .sidebar .sb-item:hover { background: var(--bg); }
.product-view .sidebar .sb-item.active {
  background: var(--blue); color: white; font-weight: 500;
}
.product-view .sidebar .sb-item .num {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.product-view .sidebar .sb-item.active .num { background: rgba(255,255,255,0.2); color: white; }
.product-view .content-area {
  padding: 28px 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.product-view .page-title {
  font-family: var(--font-display); font-size: 22px;
  letter-spacing: -0.015em;
  display: flex; align-items: center; gap: 12px;
}
.product-view .page-title .status {
  padding: 4px 10px; background: var(--green-soft); color: var(--green);
  border-radius: 100px; font-size: 11px; font-weight: 600;
  font-family: var(--font-body);
}
.product-view .input-zone {
  padding: 20px; background: var(--bg-2);
  border: 2px dashed var(--border-strong); border-radius: var(--r);
  display: flex; align-items: center; gap: 14px;
}
.product-view .input-zone .file-ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--blue); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.product-view .input-zone .file-info { flex: 1; }
.product-view .input-zone .file-name { font-weight: 500; color: var(--text); font-size: 14px; }
.product-view .input-zone .file-size { color: var(--muted); font-size: 12px; font-family: var(--font-mono); }
.product-view .progress-line {
  height: 3px; background: var(--border); border-radius: 2px;
  overflow: hidden; margin-top: 8px;
}
.product-view .progress-line .fill {
  height: 100%; background: var(--grad-blue); width: 78%;
  animation: progress-anim 2s ease-out;
}
@keyframes progress-anim {
  from { width: 0; }
  to { width: 78%; }
}
.product-view .output {
  padding: 20px 24px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r);
  display: flex; flex-direction: column; gap: 14px;
}
.product-view .output-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.product-view .output-title {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
}
.product-view .output-meta {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
.product-view .tag-row {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.product-view .tag {
  padding: 4px 10px; background: var(--blue-soft); color: var(--blue);
  border-radius: 100px; font-size: 11px; font-weight: 500;
}
.product-view .tag.warm { background: var(--terracotta-soft); color: var(--terracotta-dark); }
.product-view .output-line {
  display: flex; gap: 8px; font-size: 13.5px; color: var(--text-2); line-height: 1.5;
}
.product-view .output-line strong { color: var(--text); font-weight: 600; }
.product-view .output-line.alert { color: var(--terracotta-dark); }

@media (max-width: 820px) {
  .product-view .screen-body { grid-template-columns: 1fr; }
  .product-view .sidebar { display: none; }
}
