/* mangaba.ai — Design System
   Brand Brief: Open Sans + JetBrains Mono, HSL tokens, warm palette, dark mode
*/
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

/* ── CSS TOKENS ── calibrado pixel-a-pixel com a referência mangaba.ai */
:root {
  /* Backgrounds creme quente */
  --background:         #FFF8F5;   /* off-white quente da arte */
  --background-warm:    #FFDAC2;
  --background-subtle:  #FFF8F5;
  --background-card:    #FFFFFF;

  /* Tipografia warm dark, não preto puro */
  --foreground:         #1E0D01;
  --foreground-muted:   #6B6560;
  --foreground-faint:   #9E9894;

  /* Laranja vivo da mangaba (lado direito da fruta) */
  --primary:            #F97518;
  --primary-hover:      #C25B11;
  --primary-fg:         #FFFFFF;
  --primary-subtle:     #FFE5D6;

  /* Acentos secundários */
  --mango-yellow:       #FFD83D;   /* lado esquerdo da fruta */
  --mango-amber:        #FF9C24;   /* transição */
  --leaf-green:         #7BBF26;   /* folha clara */
  --leaf-dark:          #689924;   /* folha sombra */
  --stem-olive:         #689924;   /* cabinho */

  --border:             rgba(249,117,24,0.16);
  --border-subtle:      rgba(249,117,24,0.08);

  --dark-bg:            #1A1410;
  --dark-surface:       hsl(20,8%,15%);
  --dark-border:        hsla(0,0%,100%,0.07);

  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --shadow-sm: 0 2px 8px rgba(249,117,24,0.07);
  --shadow:    0 6px 24px rgba(249,117,24,0.10);
  --shadow-lg: 0 16px 48px rgba(249,117,24,0.12);
  --shadow-orange: 0 4px 20px rgba(249,117,24,0.25);
  --transition: 0.18s ease;

  --font:      'Open Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

/* Dark mode overrides */
html.dark {
  --background:         #1A1410;
  --background-subtle:  hsl(20,8%,17%);
  --background-card:    hsl(20,7%,14%);
  --foreground:         hsl(48,38%,95%);
  --foreground-muted:   hsl(30,8%,62%);
  --foreground-faint:   hsl(30,6%,45%);
  --border:             rgba(249,117,24,0.2);
  --border-subtle:      hsl(20,5%,18%);
  --primary-subtle:     rgba(249,117,24,0.15);
}
html.dark .navbar {
  background: rgba(28,25,23,0.92);
}
html.dark .mobile-menu {
  background: hsl(20,7%,11%);
  border-color: hsl(20,6%,22%);
}
html.dark .stats-bar {
  background: hsl(20,8%,17%);
  border-color: rgba(249,117,24,0.15);
}
html.dark .footer {
  background: hsl(20,8%,17%);
  border-color: rgba(249,117,24,0.15);
}
html.dark .footer-bottom {
  border-color: hsl(20,6%,22%);
}
html.dark .search-input,
html.dark .filter-tab {
  background: hsl(20,7%,14%);
  border-color: hsl(20,6%,22%);
  color: hsl(48,38%,95%);
}
html.dark .models-table-wrap {
  border-color: hsl(20,6%,22%);
}
html.dark .models-table thead tr {
  background: hsl(20,8%,17%);
}
html.dark .models-table tbody tr:hover {
  background: hsl(20,8%,17%);
}
html.dark .ctx-badge {
  background: hsl(20,8%,17%);
  border-color: hsl(20,6%,22%);
}

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: radial-gradient(ellipse at 50% 0%, #FFF8F5 0%, #FFDAC2 100%);
  background-attachment: fixed;
  color: var(--foreground);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html.dark body {
  background: #1A1410;
  background-image: radial-gradient(circle, rgba(255,200,80,0.04) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  background-attachment: fixed;
  color: hsl(48,38%,95%);
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }
button { cursor: pointer; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }
img { max-width: 100%; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--background-subtle); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--foreground-faint); }

/* ── NAVBAR ── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,252,240,0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(249,117,24,0.12);
  padding: 0 32px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 1.15rem; font-weight: 600; color: var(--foreground);
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; letter-spacing: -0.015em;
}
.nav-logo .logo-text { display: flex; align-items: baseline; line-height: 1; }
.nav-logo .logo-main { color: var(--foreground); font-weight: 600; }
.nav-logo .logo-accent { color: var(--primary); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  color: var(--foreground-muted); padding: 6px 12px;
  border-radius: var(--radius); font-size: 0.875rem; font-weight: 500;
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--foreground); background: var(--background-subtle);
}
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* Dark mode toggle */
.theme-toggle {
  width: 34px; height: 34px; border-radius: var(--radius);
  background: none; border: 1px solid var(--border);
  color: var(--foreground-muted); display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: all var(--transition); cursor: pointer;
}
.theme-toggle:hover { background: var(--background-subtle); color: var(--foreground); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600; border: none;
  transition: all var(--transition); white-space: nowrap;
  cursor: pointer; text-decoration: none; line-height: 1;
}
/* Primary CTA: orange brand color */
.btn-primary {
  background: #F97518; color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(249,117,24,0.3);
}
.btn-primary:hover {
  background: #C25B11; color: #FFFFFF;
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(249,117,24,0.4);
}
html.dark .btn-primary {
  background: #F97518; color: #FFFFFF;
}
html.dark .btn-primary:hover {
  background: #C25B11;
}
/* Accent button: coral */
.btn-accent {
  background: var(--primary); color: var(--primary-fg);
  box-shadow: 0 1px 2px rgba(249,117,24,0.2);
}
.btn-accent:hover {
  background: var(--primary-hover); color: var(--primary-fg);
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(249,117,24,0.3);
}
.btn-secondary {
  background: var(--background-card); color: var(--foreground);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--background-subtle); border-color: var(--primary); color: var(--foreground);
}
.btn-ghost {
  background: transparent; color: var(--foreground-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--background-subtle); color: var(--foreground); }
.btn-sm  { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg  { padding: 13px 28px; font-size: 0.95rem; border-radius: var(--radius-lg); }

/* ── HAMBURGER / MOBILE ── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px; cursor: pointer;
}
.hamburger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--foreground-muted); border-radius: 2px; transition: all var(--transition);
}
.mobile-menu {
  display: none; position: fixed; top: 60px; left: 0; right: 0;
  background: var(--background); border-bottom: 1px solid var(--border);
  padding: 12px; z-index: 999; flex-direction: column; gap: 2px;
  box-shadow: var(--shadow);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--foreground-muted); padding: 10px 12px;
  border-radius: var(--radius); display: block; font-size: 0.9rem;
}
.mobile-menu a:hover { color: var(--foreground); background: var(--background-subtle); }

/* ── HERO ── */
.hero {
  padding: 72px 24px 64px; text-align: center;
  max-width: 860px; margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-subtle); border: 1px solid rgba(249,117,24,0.2);
  color: var(--primary-hover); padding: 5px 14px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 600; margin-bottom: 32px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: hsl(142,69%,44%); /* emerald */
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  font-weight: 800; line-height: 1.06; margin-bottom: 24px;
  color: var(--foreground); letter-spacing: -0.04em;
}
.hero h1 .accent-line { color: var(--primary); display: block; }
.hero > p.hero-sub {
  font-size: 1.05rem; color: var(--foreground-muted);
  max-width: 480px; margin: 0 auto 40px; line-height: 1.75;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.hero-proof {
  display: flex; gap: 24px; justify-content: center;
  flex-wrap: wrap; margin-top: 4px;
}
.hero-proof-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: #1C1A18; font-weight: 600;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(249,117,24,0.15);
  border-radius: 50px;
  padding: 6px 16px;
  box-shadow: 0 2px 12px rgba(249,117,24,0.08);
  backdrop-filter: blur(4px);
}
.hero-proof-item::before {
  content: ''; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--primary); opacity: 0.7; flex-shrink: 0;
}

/* Chat preview card */
.hero-chat-card {
  max-width: 520px; margin: 44px auto 0;
  background: var(--background-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  overflow: hidden; text-align: left;
}
.chat-card-header {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--background-subtle);
}
.chat-card-persona { display: flex; align-items: center; gap: 10px; }
.chat-card-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--mango-yellow) 0%, var(--primary) 70%, var(--primary-hover) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff; letter-spacing: -0.01em;
  flex-shrink: 0;
}
.chat-card-name { font-size: 0.82rem; font-weight: 600; color: var(--foreground); }
.chat-card-role { font-size: 0.72rem; color: var(--foreground-faint); }
.online-pill {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 600; color: hsl(142,60%,38%);
  background: hsl(142,60%,96%); border: 1px solid hsl(142,50%,85%);
  padding: 3px 9px; border-radius: 20px;
}
html.dark .online-pill {
  background: hsla(142,60%,40%,0.12); border-color: hsla(142,60%,40%,0.25);
  color: hsl(142,55%,55%);
}
.online-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: hsl(142,69%,44%);
  animation: pulse-dot 2s ease-in-out infinite;
}
.chat-card-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.chat-bubble-user {
  align-self: flex-end; max-width: 85%;
  background: var(--foreground); color: var(--background);
  padding: 9px 13px; border-radius: 14px 14px 3px 14px;
  font-size: 0.83rem; line-height: 1.55;
}
.chat-bubble-ai {
  align-self: flex-start; max-width: 92%;
  background: var(--background-subtle); border: 1px solid var(--border);
  padding: 9px 13px; border-radius: 14px 14px 14px 3px;
  font-size: 0.83rem; line-height: 1.6; color: var(--foreground);
}
.chat-bubble-ai ul { padding-left: 16px; margin-top: 6px; display: flex; flex-direction: column; gap: 3px; }
.chat-model-tag {
  font-size: 0.68rem; color: var(--foreground-faint); margin-top: 5px;
  font-family: var(--font-mono);
}
.chat-card-footer {
  padding: 10px 18px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.chat-card-input {
  flex: 1; font-size: 0.8rem; color: var(--foreground-faint);
  padding: 7px 11px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--background);
}
.chat-send-icon {
  width: 28px; height: 28px; border-radius: var(--radius);
  background: var(--foreground); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-send-icon svg { width: 12px; height: 12px; fill: var(--background); }

/* ── STATS BAR ── */
.stats-bar {
  border-top: 1px solid rgba(249,117,24,0.15); border-bottom: 1px solid rgba(249,117,24,0.15);
  background: linear-gradient(135deg, #FBF1DC 0%, #F4DDB0 100%); padding: 40px 24px;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px; max-width: 760px; margin: 0 auto; text-align: center;
}
.stat-value {
  font-size: 2.2rem; font-weight: 800; color: var(--primary);
  display: block; letter-spacing: -0.04em; line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--foreground-muted); margin-top: 6px; font-weight: 500; }

/* ── SECTIONS ── */
.section { padding: 96px 24px; }
.section-alt {
  background: linear-gradient(135deg, #FFF8F5 0%, #F5E8C8 100%);
  border-top: 1px solid rgba(249,117,24,0.1);
  border-bottom: 1px solid rgba(249,117,24,0.1);
}
html.dark .section-alt {
  background: hsl(20,8%,17%);
  border-color: rgba(249,117,24,0.12);
}
/* Explicit dark-mode card backgrounds (bypasses transition: all CSS var issue) */
html.dark .feature-card,
html.dark .persona-card,
html.dark .testimonial-card,
html.dark .price-card,
html.dark .model-card,
html.dark .faq-question,
html.dark .faq-item {
  background: hsl(20,7%,14%);
  border-color: hsl(20,6%,22%);
}
html.dark .faq-item.open .faq-answer {
  background: hsl(20,7%,14%);
}
html.dark .hero-chat-card {
  border-color: hsl(20,6%,22%);
}
html.dark .chat-card-header {
  background: hsl(20,8%,17%);
  border-color: hsl(20,6%,22%);
}
html.dark .chat-bubble-ai {
  background: hsl(20,8%,17%);
  border-color: hsl(20,6%,22%);
}
html.dark .chat-card-footer {
  border-color: hsl(20,6%,22%);
}
html.dark .chat-card-input {
  background: hsl(20,7%,11%);
  border-color: hsl(20,6%,22%);
  color: hsl(30,8%,62%);
}
.section-dark {
  background: #1A1410;
  background-image: radial-gradient(circle, rgba(255,200,80,0.06) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  color: hsl(48,38%,95%);
}
html.dark .section-dark {
  background: hsl(20,9%,7%);
  background-image: radial-gradient(circle, rgba(255,200,80,0.06) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  border-top: 1px solid rgba(249,117,24,0.12);
  border-bottom: 1px solid rgba(249,117,24,0.12);
}
.container { max-width: 1160px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  color: #F97518;
  background: #FFF0E0;
  border: 1px solid rgba(249,117,24,0.2);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800;
  margin-bottom: 14px; letter-spacing: -0.03em; color: var(--foreground);
  line-height: 1.15;
}
.section-dark .section-header h2 { color: hsl(48,38%,95%); }
.section-header p {
  color: var(--foreground-muted); font-size: 1rem;
  max-width: 480px; margin: 0 auto; line-height: 1.75;
}
.section-dark .section-header p { color: rgba(250,249,245,0.55); }

/* ── FEATURES ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
  background: #FFFFFF; border: 1px solid rgba(249,117,24,0.12);
  border-radius: 20px; padding: 28px 24px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 2px 12px rgba(249,117,24,0.06);
}
.feature-card:hover {
  border-color: rgba(249,117,24,0.35); transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(249,117,24,0.12);
}
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--primary-subtle); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 20px; height: 20px; stroke: var(--primary); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; color: var(--foreground); letter-spacing: -0.01em; }
.feature-card p { font-size: 0.85rem; color: var(--foreground-muted); line-height: 1.7; }

/* ── MODELS MARQUEE ── */
.models-marquee-section { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.marquee-label { text-align: center; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--foreground-faint); margin-bottom: 18px; }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-chip {
  display: flex; align-items: center; gap: 7px;
  background: var(--background-card); border: 1px solid var(--border);
  border-radius: 30px; padding: 7px 16px; white-space: nowrap;
  font-size: 0.82rem; font-weight: 500; color: var(--foreground-muted);
  transition: border-color var(--transition);
}
.marquee-chip:hover { border-color: var(--primary); color: var(--foreground); }
.marquee-chip-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex-shrink: 0;
}

/* ── HOW IT WORKS ── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 48px 32px; }
.step-card { position: relative; }
.step-number {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-subtle);
  border: 1px solid rgba(249,117,24,0.2);
  padding: 3px 10px; border-radius: 20px; display: inline-block; margin-bottom: 16px;
}
.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--foreground); letter-spacing: -0.01em; }
.step-card p { font-size: 0.875rem; color: var(--foreground-muted); line-height: 1.7; }

/* ── PERSONAS ── */
.personas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.persona-card {
  background: #FFFFFF; border: 1px solid rgba(249,117,24,0.12);
  border-radius: 20px; padding: 24px 20px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 2px 12px rgba(249,117,24,0.06); text-align: center;
}
.persona-card:hover {
  border-color: rgba(249,117,24,0.35); transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(249,117,24,0.12);
}
.persona-avatar {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
}
.persona-name { font-size: 0.9rem; font-weight: 700; color: var(--foreground); margin-bottom: 4px; letter-spacing: -0.01em; }
.persona-role { font-size: 0.76rem; color: var(--foreground-faint); margin-bottom: 12px; }
.persona-use { font-size: 0.82rem; color: var(--foreground-muted); line-height: 1.6; }

/* ── BENEFITS ── */
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; max-width: 960px; margin: 0 auto; }
.benefits-list { display: flex; flex-direction: column; gap: 20px; }
.benefit-item { display: flex; gap: 14px; align-items: flex-start; }
.benefit-check {
  width: 22px; height: 22px; border-radius: 50%; background: var(--primary-subtle);
  border: 1px solid rgba(249,117,24,0.25); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.benefit-check svg { width: 11px; height: 11px; stroke: var(--primary); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.benefit-item h4 { font-size: 0.9rem; font-weight: 700; color: var(--foreground); margin-bottom: 4px; }
.benefit-item p { font-size: 0.84rem; color: var(--foreground-muted); line-height: 1.65; }
.benefits-visual {
  background: var(--dark-bg); border-radius: var(--radius-xl);
  padding: 28px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.06);
}

/* ── CODE SECTION (TECH) ── */
.code-demo {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl); overflow: hidden; max-width: 680px; margin: 0 auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}
.code-demo-header {
  background: rgba(255,255,255,0.03); padding: 11px 18px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-demo-dots { display: flex; gap: 6px; }
.code-demo-dots span { width: 10px; height: 10px; border-radius: 50%; }
.code-demo-dots span:nth-child(1) { background: #FF5F57; }
.code-demo-dots span:nth-child(2) { background: #FEBC2E; }
.code-demo-dots span:nth-child(3) { background: #28C840; }
.code-demo-file { font-size: 0.74rem; color: rgba(250,249,245,0.28); font-family: var(--font-mono); }
.code-demo pre {
  padding: 24px; margin: 0; overflow-x: auto;
  font-size: 0.82rem; line-height: 1.85;
  font-family: var(--font-mono); color: #C4BAB2;
}
.code-demo .kw  { color: #F97518; }
.code-demo .str { color: #A3C98A; }
.code-demo .cmt { color: rgba(250,249,245,0.25); }
.code-demo .num { color: #E8C07A; }
.code-demo .fn  { color: #9DB4D4; }
.code-demo .var { color: hsl(48,38%,88%); }

/* ── TESTIMONIALS ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.testimonial-card {
  background: #FFFFFF; border: 1px solid rgba(249,117,24,0.12);
  border-radius: 20px; padding: 24px; box-shadow: 0 4px 20px rgba(249,117,24,0.07);
  transition: border-color var(--transition), transform var(--transition);
}
.testimonial-card:hover { border-color: rgba(249,117,24,0.35); transform: translateY(-2px); }
.testimonial-text { font-size: 0.9rem; color: var(--foreground-muted); line-height: 1.75; margin-bottom: 18px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff;
}
.testimonial-name { font-size: 0.85rem; font-weight: 700; color: var(--foreground); }
.testimonial-role { font-size: 0.76rem; color: var(--foreground-faint); }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 4px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; padding: 18px 20px;
  background: var(--background-card); border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 0.9rem; font-weight: 600; color: var(--foreground);
  transition: color var(--transition);
}
.faq-question:hover { background: var(--background-subtle); }
html.dark .faq-question:hover { background: hsl(20,9%,20%); }
.faq-icon { font-size: 0.8rem; color: var(--foreground-faint); transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--primary); }
.faq-item.open .faq-question { color: #F97518; }
.faq-item.open { border-color: rgba(249,117,24,0.3); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--background-card); padding: 0 20px;
  font-size: 0.875rem; color: var(--foreground-muted); line-height: 1.75;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 20px 18px; }

/* ── PRICING ── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; max-width: 880px; margin: 0 auto;
}
.price-card {
  background: #FFFFFF; border: 1px solid rgba(249,117,24,0.12);
  border-radius: var(--radius-xl); padding: 32px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 2px 12px rgba(249,117,24,0.06); position: relative;
}
.price-card.featured {
  background:
    radial-gradient(circle at 80% 20%, rgba(246,206,82,0.3), transparent 55%),
    linear-gradient(145deg, #F97518 0%, #C25B11 100%);
  border-color: transparent;
  box-shadow: 0 16px 48px rgba(249,117,24,0.35);
}
.price-card.featured .price-name,
.price-card.featured .price-val,
.price-card.featured .price-desc,
.price-card.featured .price-features li {
  color: #FFFFFF;
}
.price-card.featured .price-val small { color: rgba(255,255,255,0.75); }
.price-card.featured .price-features li::before { color: #FFFFFF; }
.price-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 0.68rem; font-weight: 700;
  padding: 3px 14px; border-radius: 20px; text-transform: uppercase; white-space: nowrap; letter-spacing: 0.05em;
}
.price-name { font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; color: var(--foreground); }
.price-val { font-size: 2.6rem; font-weight: 800; color: var(--primary); line-height: 1; letter-spacing: -0.04em; }
.price-val small { font-size: 0.88rem; color: var(--foreground-muted); font-weight: 400; }
.price-desc { font-size: 0.84rem; color: var(--foreground-faint); margin: 10px 0 24px; line-height: 1.6; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.price-features li {
  font-size: 0.875rem; color: var(--foreground-muted);
  display: flex; align-items: center; gap: 8px;
}
.price-features li::before { content: '✓'; color: var(--primary); font-weight: 700; font-size: 0.82rem; flex-shrink: 0; }

/* ── CTA SECTION ── */
.cta-section {
  background:
    radial-gradient(circle at 80% 20%, rgba(246,206,82,0.35), transparent 55%),
    linear-gradient(135deg, #F97518 0%, #C25B11 60%, #A84A06 100%);
  padding: 96px 24px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  pointer-events: none;
}
html.dark .cta-section {
  background: linear-gradient(135deg, #C25B11 0%, #A33409 100%);
  border-top: 1px solid rgba(249,117,24,0.2);
}
.cta-section h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800;
  color: hsl(48,38%,95%); margin-bottom: 16px; letter-spacing: -0.04em;
}
.cta-section p { color: rgba(250,249,245,0.55); font-size: 1rem; margin-bottom: 40px; line-height: 1.75; }
.btn-cta-light {
  background: hsl(48,38%,95%); color: hsl(20,7%,11%);
  font-weight: 700; padding: 13px 32px; border-radius: var(--radius-lg); font-size: 0.95rem;
  border: none; transition: all var(--transition); display: inline-flex;
  align-items: center; gap: 8px; cursor: pointer; text-decoration: none;
}
.btn-cta-light:hover {
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  color: var(--foreground);
}
.btn-cta-outline {
  background: transparent; color: rgba(250,249,245,0.7);
  border: 1.5px solid rgba(250,249,245,0.2); padding: 13px 32px;
  border-radius: var(--radius-lg); font-size: 0.95rem; font-weight: 600;
  transition: all var(--transition); display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; text-decoration: none;
}
.btn-cta-outline:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.35); color: #fff; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── SEARCH / FILTER (Models page) ── */
.search-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; flex-wrap: wrap; }
.search-input-wrap { flex: 1; min-width: 200px; position: relative; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--foreground-faint); pointer-events: none; font-size: 0.9rem; }
.search-input {
  width: 100%; padding: 9px 12px 9px 36px;
  background: var(--background-card); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--foreground); font-size: 0.875rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249,117,24,0.1); }
.search-input::placeholder { color: var(--foreground-faint); }
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tab {
  padding: 7px 14px; border-radius: 20px; background: var(--background-card);
  border: 1px solid var(--border); color: var(--foreground-muted);
  font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: all var(--transition);
}
.filter-tab:hover { border-color: var(--primary); color: var(--foreground); }
.filter-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }
.model-count-badge { background: rgba(255,255,255,0.3); border-radius: 10px; padding: 1px 6px; font-size: 0.7rem; }

/* ── MODEL CARDS (shared) ── */
.models-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.model-card {
  background: var(--background-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-sm);
}
.model-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(249,117,24,0.12); }
.model-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.model-name { font-size: 0.92rem; font-weight: 600; color: var(--foreground); line-height: 1.3; letter-spacing: -0.01em; }
.model-provider { font-size: 0.76rem; color: var(--foreground-faint); margin-top: 2px; }
.model-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.model-meta span { font-size: 0.76rem; color: var(--foreground-faint); }
.model-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border-subtle); }
.model-price { font-size: 0.78rem; color: var(--foreground-muted); }
.model-price strong { color: hsl(28,84%,44%); }
.price-free { color: hsl(130,42%,38%); font-weight: 700; }

.model-badge { font-size: 0.68rem; font-weight: 700; padding: 3px 8px; border-radius: 20px; text-transform: uppercase; white-space: nowrap; letter-spacing: 0.02em; }
.badge-free  { background: rgba(90,138,74,0.1); color: #5A8A4A; border: 1px solid rgba(90,138,74,0.2); }
.badge-cheap { background: var(--primary-subtle); color: hsl(28,84%,44%); border: 1px solid rgba(249,117,24,0.2); }
.badge-fast  { background: rgba(93,130,174,0.1); color: #5D82AE; border: 1px solid rgba(93,130,174,0.2); }
.badge-top   { background: rgba(249,117,24,0.12); color: hsl(28,84%,44%); border: 1px solid rgba(249,117,24,0.25); }

/* ── MODELS TABLE ── */
.models-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.models-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.models-table thead tr { background: var(--background-subtle); border-bottom: 1px solid var(--border); }
.models-table th { padding: 11px 16px; text-align: left; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--foreground-faint); cursor: pointer; user-select: none; white-space: nowrap; }
.models-table th:hover { color: var(--foreground); }
.models-table th.sorted { color: var(--primary); }
.models-table th .sort-arrow { margin-left: 3px; opacity: 0.5; }
.models-table tbody tr { border-bottom: 1px solid var(--border-subtle); transition: background var(--transition); }
.models-table tbody tr:hover { background: var(--background-subtle); }
.models-table tbody tr:last-child { border-bottom: none; }
.models-table td { padding: 12px 16px; vertical-align: middle; }
.model-name-cell { font-weight: 600; color: var(--foreground); font-size: 0.875rem; }
.ctx-badge { background: var(--background-subtle); border: 1px solid var(--border); border-radius: 4px; padding: 2px 7px; font-size: 0.74rem; font-family: var(--font-mono); }
.price-cell { font-family: var(--font-mono); font-size: 0.82rem; }

/* ── SKELETON ── */
.skeleton-card { background: var(--background-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.skeleton { background: linear-gradient(90deg, var(--background-subtle) 25%, var(--border) 50%, var(--background-subtle) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 4px; height: 14px; }
.skeleton.short { width: 40%; }
.skeleton.medium { width: 60%; }
.skeleton.long   { width: 90%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── PLAYGROUND ── */
.playground-layout { display: grid; grid-template-columns: 264px 1fr 210px; height: calc(100vh - 60px); overflow: hidden; }
.playground-sidebar { background: var(--dark-bg); border-right: 1px solid rgba(255,255,255,0.07); padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.playground-main { display: flex; flex-direction: column; overflow: hidden; background: var(--background); }
.playground-right { background: var(--dark-bg); border-left: 1px solid rgba(255,255,255,0.07); padding: 16px; overflow-y: auto; }
.sidebar-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(250,249,245,0.35); margin-bottom: 7px; }
.separator { border: none; border-top: 1px solid rgba(255,255,255,0.07); margin: 4px 0; }
.form-control { width: 100%; padding: 8px 11px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); color: hsl(48,38%,92%); font-size: 0.85rem; resize: vertical; transition: border-color var(--transition); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249,117,24,0.12); }
.form-control::placeholder { color: rgba(250,249,245,0.2); }
.form-group { margin-bottom: 0; }
body:not(.playground-page) .form-control { background: var(--background-card); border-color: var(--border); color: var(--foreground); }
body:not(.playground-page) .form-control::placeholder { color: var(--foreground-faint); }
body:not(.playground-page) .form-control:focus { border-color: var(--primary); }
.api-key-wrap { position: relative; }
.api-key-wrap .form-control { padding-right: 38px; }
.api-key-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; color: rgba(250,249,245,0.25); padding: 4px; font-size: 0.95rem; }
.api-key-toggle:hover { color: rgba(250,249,245,0.6); }
.slider-group { display: flex; flex-direction: column; gap: 5px; }
.slider-label { display: flex; justify-content: space-between; font-size: 0.78rem; color: rgba(250,249,245,0.4); }
input[type=range] { width: 100%; accent-color: var(--primary); cursor: pointer; }
.model-search-dropdown { position: relative; }
.model-search-list { display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 200; background: #2A2320; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); max-height: 220px; overflow-y: auto; box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.model-search-list.open { display: block; }
.model-option { padding: 9px 12px; cursor: pointer; transition: background var(--transition); }
.model-option:hover { background: rgba(249,117,24,0.1); }
.model-option-name { font-size: 0.85rem; font-weight: 600; color: hsl(48,38%,90%); }
.model-option-sub { font-size: 0.74rem; color: rgba(250,249,245,0.3); margin-top: 1px; }
.clear-btn { width: 100%; padding: 8px; border-radius: var(--radius); background: none; border: 1px solid rgba(255,255,255,0.08); color: rgba(250,249,245,0.3); font-size: 0.82rem; transition: all var(--transition); margin-top: auto; }
.clear-btn:hover { border-color: rgba(249,117,24,0.5); color: var(--primary); background: rgba(249,117,24,0.06); }
.chat-header { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: var(--background-card); }
.chat-model-name { font-size: 0.9rem; font-weight: 600; color: var(--foreground); letter-spacing: -0.01em; }
.chat-stats { font-size: 0.72rem; color: var(--foreground-faint); margin-top: 2px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 24px 20px; display: flex; flex-direction: column; gap: 16px; background: var(--background); }
.message { display: flex; flex-direction: column; gap: 5px; max-width: 80%; }
.message.user { align-self: flex-end; align-items: flex-end; }
.message.assistant { align-self: flex-start; align-items: flex-start; }
.message-role { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--foreground-faint); padding: 0 4px; }
.message-bubble { padding: 11px 15px; border-radius: var(--radius-lg); line-height: 1.65; font-size: 0.9rem; white-space: pre-wrap; word-break: break-word; }
.message.user .message-bubble { background: var(--primary); color: #fff; border-radius: var(--radius-lg) var(--radius-lg) 4px var(--radius-lg); }
.message.assistant .message-bubble { background: var(--background-card); border: 1px solid var(--border); color: var(--foreground); border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 4px; box-shadow: var(--shadow-sm); }
.message-actions { display: flex; gap: 6px; }
.msg-action-btn { background: none; border: none; font-size: 0.72rem; color: var(--foreground-faint); padding: 2px 6px; border-radius: 4px; cursor: pointer; transition: all var(--transition); }
.msg-action-btn:hover { color: var(--foreground); background: var(--background-subtle); }
.chat-input-area { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--background-card); }
.chat-input-row { display: flex; gap: 10px; align-items: flex-end; }
.chat-input { flex: 1; min-height: 42px; max-height: 140px; padding: 9px 14px; background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--foreground); font-size: 0.875rem; resize: none; line-height: 1.55; transition: border-color var(--transition), box-shadow var(--transition); }
.chat-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249,117,24,0.1); }
.chat-input::placeholder { color: var(--foreground-faint); }
.send-btn { width: 42px; height: 42px; border-radius: var(--radius-lg); border: none; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all var(--transition); }
.send-btn:hover { background: var(--primary-hover); transform: scale(1.04); }
.send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.chat-welcome { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; color: var(--foreground-faint); padding: 40px; }
.chat-welcome h3 { color: var(--foreground-muted); margin-bottom: 8px; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.chat-welcome p { font-size: 0.85rem; max-width: 300px; line-height: 1.7; }
.model-info-panel { display: flex; flex-direction: column; gap: 0; }
.info-section { padding: 8px 0; }
.info-title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(250,249,245,0.3); margin-bottom: 10px; }
.info-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; }
.info-key { font-size: 0.76rem; color: rgba(250,249,245,0.32); }
.info-val { font-size: 0.76rem; color: rgba(250,249,245,0.6); font-weight: 600; text-align: right; }

/* ── DOCS ── */
.docs-layout { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 60px); }
.docs-sidebar { background: var(--background-subtle); border-right: 1px solid var(--border); padding: 24px 0; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; }
.docs-nav-section { margin-bottom: 4px; }
.docs-nav-title { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--foreground-faint); padding: 8px 20px 4px; }
.docs-nav-link { display: block; padding: 7px 20px; font-size: 0.84rem; color: var(--foreground-muted); transition: all var(--transition); border-left: 2px solid transparent; }
.docs-nav-link:hover { color: var(--foreground); background: var(--background-subtle); }
.docs-nav-link.active { color: var(--primary); border-left-color: var(--primary); background: var(--primary-subtle); }
.docs-content { padding: 40px 48px; max-width: 800px; }
.docs-section { margin-bottom: 56px; }
.docs-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); color: var(--foreground); letter-spacing: -0.02em; }
.docs-section h3 { font-size: 1rem; font-weight: 600; margin: 24px 0 10px; color: var(--foreground); }
.docs-section p { color: var(--foreground-muted); line-height: 1.8; margin-bottom: 16px; }
.docs-section ul, .docs-section ol { color: var(--foreground-muted); padding-left: 20px; margin-bottom: 16px; line-height: 1.85; }
.docs-section code { background: var(--background-subtle); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; font-family: var(--font-mono); font-size: 0.85em; color: hsl(28,84%,44%); }
.code-block { background: var(--dark-bg); border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; }
.code-block-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.06); }
.code-lang { font-size: 0.72rem; color: rgba(250,249,245,0.35); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.copy-btn { font-size: 0.72rem; padding: 4px 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; color: rgba(250,249,245,0.4); cursor: pointer; transition: all var(--transition); }
.copy-btn:hover { color: rgba(250,249,245,0.9); border-color: rgba(255,255,255,0.25); }
.code-block pre { padding: 20px; margin: 0; overflow-x: auto; font-size: 0.82rem; line-height: 1.75; font-family: var(--font-mono); color: #C4BAB2; }
.alert { padding: 13px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 0.875rem; line-height: 1.65; display: flex; gap: 10px; }
.alert-info    { background: rgba(93,130,174,0.08); border: 1px solid rgba(93,130,174,0.2); color: #5D82AE; }
.alert-warning { background: var(--primary-subtle); border: 1px solid rgba(249,117,24,0.25); color: hsl(28,84%,44%); }
.alert-success { background: rgba(90,138,74,0.08); border: 1px solid rgba(90,138,74,0.2); color: #5A8A4A; }
.callout { padding: 13px 16px; border-radius: var(--radius); margin: 16px 0; font-size: 0.875rem; line-height: 1.65; border-left: 3px solid var(--primary); background: var(--primary-subtle); color: var(--foreground-muted); }
.docs-nav-heading { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--foreground-faint); padding: 8px 20px 4px; display: block; }
.docs-divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.code-block-wrap { background: var(--dark-bg); border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; }
.code-block-wrap .code-block-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.06); }
.code-block-wrap pre { padding: 20px; margin: 0; overflow-x: auto; font-size: 0.82rem; line-height: 1.75; font-family: var(--font-mono); color: #C4BAB2; }
.tabs { display: flex; gap: 4px; margin-bottom: 0; border-bottom: 1px solid var(--border); }
.tab { padding: 8px 14px; font-size: 0.82rem; font-weight: 500; background: none; border: none; color: var(--foreground-faint); cursor: pointer; border-bottom: 2px solid transparent; transition: all var(--transition); margin-bottom: -1px; }
.tab:hover { color: var(--foreground); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.hljs { background: transparent !important; font-size: 0.82rem !important; line-height: 1.75 !important; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--foreground-faint); }
.empty-state h3 { color: var(--foreground-muted); margin: 12px 0 6px; }

/* ── TOAST ── */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 16px; background: var(--dark-bg); color: hsl(48,38%,92%); border-radius: var(--radius); font-size: 0.85rem; box-shadow: var(--shadow-lg); animation: slideIn 0.2s ease; min-width: 180px; }
.toast.success { border-left: 3px solid #5A8A4A; }
.toast.error   { border-left: 3px solid #C06060; }
.toast.warning { border-left: 3px solid var(--primary); }
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }

/* ── FOOTER ── */
.footer { background: linear-gradient(180deg, #FBF1DC 0%, #F2E0B8 100%); border-top: 1px solid rgba(249,117,24,0.15); padding: 56px 24px 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; max-width: 1160px; margin: 0 auto; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand p { color: var(--foreground-faint); font-size: 0.875rem; margin-top: 14px; max-width: 240px; line-height: 1.75; }
.footer-col { display: flex; flex-direction: column; }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--foreground); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: var(--foreground-faint); font-size: 0.875rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--foreground); }
.footer-bottom { max-width: 1160px; margin: 32px auto 0; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: var(--foreground-faint); }

/* ── LOGOS BAR ── */
.logos-section {
  padding: 40px 24px; border-top: 1px solid rgba(249,117,24,0.1);
  border-bottom: 1px solid rgba(249,117,24,0.1);
  background: #FFF8F5;
}
.logos-label {
  text-align: center; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--foreground-faint); margin-bottom: 28px;
}
.logos-row {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap; max-width: 960px; margin: 0 auto;
}
.logo-item {
  font-size: 1.05rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--foreground-faint); opacity: 0.5;
  transition: opacity var(--transition);
  user-select: none; white-space: nowrap;
}
.logo-item:hover { opacity: 0.85; }
.logo-item span { color: var(--primary); }

/* ── CASE STUDIES ── */
.case-studies-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.case-card {
  background: #FFFFFF; border: 1px solid rgba(249,117,24,0.12);
  border-radius: var(--radius-xl); overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 2px 12px rgba(249,117,24,0.06);
}
.case-card:hover {
  border-color: rgba(249,117,24,0.35); transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(249,117,24,0.12);
}
.case-cover {
  height: 200px; background-size: cover; background-position: center;
  position: relative; overflow: hidden;
}
.case-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(28,25,23,0.1), rgba(28,25,23,0.55));
}
.case-industry {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--primary); color: #fff; padding: 3px 10px; border-radius: 20px;
}
.case-body { padding: 22px 22px 18px; }
.case-company { font-size: 0.75rem; color: var(--foreground-faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.case-title { font-size: 1rem; font-weight: 700; color: var(--foreground); margin-bottom: 10px; line-height: 1.3; letter-spacing: -0.01em; }
.case-text { font-size: 0.84rem; color: var(--foreground-muted); line-height: 1.65; margin-bottom: 18px; }
.case-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-bottom: 18px;
}
.case-metric {
  background: var(--background-subtle); border-radius: var(--radius);
  padding: 10px 8px; text-align: center;
}
.case-metric-val {
  font-size: 1.3rem; font-weight: 800; color: var(--primary); display: block;
  letter-spacing: -0.03em; line-height: 1;
}
.case-metric-label { font-size: 0.65rem; color: var(--foreground-faint); margin-top: 3px; line-height: 1.3; }
.case-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.case-person { display: flex; align-items: center; gap: 9px; }
.case-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--border);
}
.case-person-name { font-size: 0.8rem; font-weight: 700; color: var(--foreground); }
.case-person-role { font-size: 0.7rem; color: var(--foreground-faint); }
.case-link {
  font-size: 0.78rem; font-weight: 600; color: var(--primary);
  display: flex; align-items: center; gap: 3px;
}
.case-link:hover { color: var(--primary-hover); }
html.dark .case-card { background: hsl(20,7%,14%); border-color: hsl(20,6%,22%); }
html.dark .case-metric { background: hsl(20,8%,17%); }

/* ── DOTTED BACKGROUND UTILITY ── */
.dotted-bg {
  background-image: radial-gradient(circle, rgba(249,117,24,0.15) 1px, transparent 1px);
  background-size: 14px 14px;
}
.dark-dotted-bg {
  background-image: radial-gradient(circle, rgba(255,200,80,0.08) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
}

/* ── HERO SECTION GRADIENT ── */
.hero-section-bg {
  background: radial-gradient(ellipse at 50% -20%, rgba(249,117,24,0.12) 0%, transparent 55%),
              radial-gradient(ellipse at 80% 80%, rgba(90,158,47,0.06) 0%, transparent 40%);
}

/* ── VIDEO SECTION ── */
.video-section { padding: 96px 24px; background: linear-gradient(135deg, #FFF8F0 0%, #FFF2E4 100%); border-top: 1px solid rgba(249,117,24,0.1); border-bottom: 1px solid rgba(249,117,24,0.1); }
.video-player-wrap {
  position: relative; max-width: 840px; margin: 0 auto;
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18), 0 0 0 1px var(--border);
  cursor: pointer;
}
.video-thumb {
  width: 100%; display: block;
  aspect-ratio: 16/9; object-fit: cover;
}
.video-overlay {
  position: absolute; inset: 0;
  background: rgba(28,25,23,0.35);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.video-player-wrap:hover .video-overlay { background: rgba(28,25,23,0.2); }
.play-btn {
  width: 72px; height: 72px; border-radius: 50%;
  background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.video-player-wrap:hover .play-btn {
  transform: scale(1.08); box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.play-btn svg { margin-left: 4px; }
.video-iframe-wrap {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
}
.video-iframe-wrap iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: none;
}
.video-highlights {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; max-width: 840px; margin: 28px auto 0;
}
.video-highlight {
  background: var(--background-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 18px;
  display: flex; align-items: flex-start; gap: 12px;
}
html.dark .video-highlight { background: hsl(20,7%,14%); border-color: hsl(20,6%,22%); }
.video-highlight-num {
  font-size: 0.68rem; font-weight: 800; color: var(--primary);
  background: var(--primary-subtle); border: 1px solid rgba(249,117,24,0.2);
  width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; letter-spacing: 0;
}
.video-highlight h4 { font-size: 0.85rem; font-weight: 700; color: var(--foreground); margin-bottom: 3px; }
.video-highlight p { font-size: 0.78rem; color: var(--foreground-muted); line-height: 1.5; }

/* ── RICH TESTIMONIALS ── */
.testimonials-grid-rich {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.testimonial-card-rich {
  background: #FFFFFF; border: 1px solid rgba(249,117,24,0.12);
  border-radius: var(--radius-xl); padding: 28px;
  box-shadow: 0 4px 20px rgba(249,117,24,0.07);
  display: flex; flex-direction: column; gap: 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.testimonial-card-rich:hover { border-color: rgba(249,117,24,0.35); box-shadow: 0 4px 24px rgba(249,117,24,0.1); }
html.dark .testimonial-card-rich { background: hsl(20,7%,14%); border-color: hsl(20,6%,22%); }
.testimonial-quote {
  font-size: 1.5rem; color: var(--primary); line-height: 1; margin-bottom: 4px; font-family: Georgia, serif;
}
.testimonial-text-rich {
  font-size: 0.9rem; color: var(--foreground-muted); line-height: 1.75; font-style: italic; flex: 1;
}
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-photo {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--border);
}
.testimonial-name-rich { font-size: 0.88rem; font-weight: 700; color: var(--foreground); }
.testimonial-role-rich { font-size: 0.76rem; color: var(--foreground-faint); margin-top: 2px; }
.testimonial-company-tag {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--primary); background: var(--primary-subtle);
  border: 1px solid rgba(249,117,24,0.2); padding: 3px 9px; border-radius: 20px;
  display: inline-block; margin-top: 5px;
}

/* ── APP SCREENSHOTS ── */
.screenshots-section { background: linear-gradient(180deg, #FBF1DC 0%, #F4DDB0 100%); border-top: 1px solid rgba(249,117,24,0.1); border-bottom: 1px solid rgba(249,117,24,0.1); }

.screenshot-main {
  border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1), 0 0 0 1px var(--border-subtle);
  margin-bottom: 20px; background: var(--background-card);
}
.screenshot-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; background: var(--background-subtle);
  border-bottom: 1px solid var(--border);
}
.screenshot-bar-sm { padding: 8px 12px; }
.screenshot-dots { display: flex; gap: 5px; }
.screenshot-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border);
}
.screenshot-dots span:nth-child(1) { background: #FF5F57; }
.screenshot-dots span:nth-child(2) { background: #FFBD2E; }
.screenshot-dots span:nth-child(3) { background: #28CA42; }
.screenshot-url {
  font-size: 0.72rem; font-family: var(--font-mono);
  color: var(--foreground-faint); flex: 1; text-align: center;
}
.screenshot-img { width: 100%; display: block; object-fit: cover; }
.screenshot-main .screenshot-img { max-height: 460px; }
.screenshot-card .screenshot-img { max-height: 240px; }
.screenshot-caption {
  padding: 12px 18px; font-size: 0.8rem; color: var(--foreground-muted);
  display: flex; align-items: center; gap: 8px;
  border-top: 1px solid var(--border);
}
.screenshot-tag {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--primary); background: var(--primary-subtle);
  border: 1px solid rgba(249,117,24,0.2); padding: 2px 8px; border-radius: 20px;
  white-space: nowrap;
}
.screenshots-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.screenshot-card {
  border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden;
  background: var(--background-card);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.screenshot-card:hover {
  border-color: var(--primary); transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(249,117,24,0.1);
}
html.dark .screenshot-main,
html.dark .screenshot-card { background: hsl(20,7%,14%); border-color: hsl(20,6%,22%); }
html.dark .screenshot-bar { background: hsl(20,8%,17%); border-color: hsl(20,6%,22%); }
html.dark .screenshot-caption { border-color: hsl(20,6%,22%); }

/* Alias for case-cover badge */
.case-industry-badge {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--primary); color: #fff; padding: 3px 10px; border-radius: 20px;
}

/* case-footer inner layout */
.case-footer { display: flex; align-items: center; gap: 10px; }
.case-footer .case-avatar { flex-shrink: 0; }

/* video section two-column layout */
.video-layout {
  display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 860px; margin: 0 auto;
}
.video-highlight-title { font-size: 0.85rem; font-weight: 700; color: var(--foreground); margin-bottom: 3px; }
.video-highlight-desc { font-size: 0.78rem; color: var(--foreground-muted); line-height: 1.5; }
.video-duration {
  position: absolute; bottom: 14px; right: 14px; z-index: 2;
  font-size: 0.72rem; font-weight: 700; background: rgba(0,0,0,0.55);
  color: #fff; padding: 2px 8px; border-radius: 4px; font-family: var(--font-mono);
}

/* rich testimonial author row */
.testimonial-author-rich {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.testimonial-author-rich .testimonial-name { font-size: 0.88rem; font-weight: 700; color: var(--foreground); }
.testimonial-author-rich .testimonial-role { font-size: 0.76rem; color: var(--foreground-faint); margin-top: 1px; }
.testimonial-author-rich .testimonial-company-tag { margin-left: auto; }

/* ── PRODUCT PREVIEW (hero mockup) ── */
.hero-mockup {
  max-width: 760px; margin: 44px auto 0;
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.14), 0 0 0 1px var(--border);
  position: relative;
}
.hero-mockup-bar {
  background: var(--background-subtle); border-bottom: 1px solid var(--border);
  padding: 10px 16px; display: flex; align-items: center; gap: 10px;
}
.hero-mockup-dots { display: flex; gap: 5px; }
.hero-mockup-dots span { width: 9px; height: 9px; border-radius: 50%; }
.hero-mockup-dots span:nth-child(1) { background: #FF5F57; }
.hero-mockup-dots span:nth-child(2) { background: #FEBC2E; }
.hero-mockup-dots span:nth-child(3) { background: #28C840; }
.hero-mockup-url {
  flex: 1; background: var(--background-card); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 10px; font-size: 0.72rem; color: var(--foreground-faint);
  font-family: var(--font-mono); text-align: center; max-width: 240px; margin: 0 auto;
}
.hero-mockup img { width: 100%; display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .playground-right { display: none; }
  .playground-layout { grid-template-columns: 250px 1fr; }
  .docs-content { padding: 32px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefits-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .personas-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .personas-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .playground-layout { grid-template-columns: 1fr; }
  .playground-sidebar { display: none; position: fixed; left: 0; right: 0; bottom: 0; top: 60px; z-index: 100; overflow-y: auto; }
  .playground-sidebar.mobile-open { display: flex; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { display: none; }
  .docs-content { padding: 24px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .models-table th:nth-child(4), .models-table td:nth-child(4),
  .models-table th:nth-child(5), .models-table td:nth-child(5) { display: none; }
}
@media (max-width: 480px) {
  .hero { padding: 56px 16px 40px; }
  .section { padding: 56px 16px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .cta-btns { flex-direction: column; align-items: center; }
  .personas-grid { grid-template-columns: 1fr; }
  .hero-chat-card { margin-top: 32px; }
  .testimonials-grid { grid-template-columns: 1fr; }
}
