/* ═══════════════════════════════════════════════════════════
   kogantest.org — Cloudflare-styled CSS
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cf-orange: #F6821F;
  --cf-blue:   #0051FF;
  --cf-dark:   #0a0f1e;
  --cf-darker: #060a14;
  --cf-panel:  #0d1525;
  --cf-border: #1e2d4a;
  --cf-text:   #e2e8f0;
  --cf-muted:  #64748b;
  --cf-purple: #7c3aed;
  --cf-green:  #059669;
  --cf-cyan:   #0891b2;
  --radius:    12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--cf-dark);
  color: var(--cf-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(6, 10, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--cf-border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-brand { font-size: 15px; font-weight: 600; color: var(--cf-text); }
.nav-badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500;
  color: var(--cf-orange);
  background: rgba(246,130,31,0.1);
  border: 1px solid rgba(246,130,31,0.2);
  padding: 4px 12px; border-radius: 100px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cf-orange);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ─── HERO ─── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; padding: 100px 24px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(246,130,31,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(0,81,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(124,58,237,0.06) 0%, transparent 60%),
    var(--cf-darker);
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(30,45,74,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,45,74,0.4) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-pill {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cf-orange);
  background: rgba(246,130,31,0.1);
  border: 1px solid rgba(246,130,31,0.25);
  padding: 6px 16px; border-radius: 100px; margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff; margin-bottom: 20px;
}
.hero-gradient {
  background: linear-gradient(135deg, var(--cf-orange) 0%, #ff6b00 50%, var(--cf-blue) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 18px; color: var(--cf-muted); max-width: 580px;
  margin: 0 auto 36px; line-height: 1.7;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-bottom: 56px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--cf-orange); color: #fff;
}
.btn-primary:hover { background: #e5731a; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(246,130,31,0.35); }
.btn-ghost {
  background: transparent; color: var(--cf-text);
  border: 1px solid var(--cf-border);
}
.btn-ghost:hover { background: var(--cf-panel); border-color: var(--cf-orange); color: var(--cf-orange); }

.hero-stats {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
  justify-content: center;
  background: rgba(13,21,37,0.8);
  border: 1px solid var(--cf-border);
  border-radius: var(--radius);
  padding: 20px 32px;
  backdrop-filter: blur(10px);
}
.stat { text-align: center; padding: 0 24px; }
.stat-num { display: block; font-size: 28px; font-weight: 800; color: #fff; line-height: 1; }
.stat-label { display: block; font-size: 12px; color: var(--cf-muted); margin-top: 4px; }
.stat--live .stat-num { font-size: 22px; }  /* slightly smaller for dynamic values */
.stat-pop { color: var(--cf-orange) !important; }
.stat-divider { width: 1px; height: 40px; background: var(--cf-border); }
.scroll-hint {
  position: absolute; bottom: 32px;
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--cf-muted);
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ─── BUILT ON BANNER ─── */
.built-on {
  background: linear-gradient(135deg, rgba(246,130,31,0.08), rgba(0,81,255,0.06));
  border-top: 1px solid rgba(246,130,31,0.2);
  border-bottom: 1px solid rgba(246,130,31,0.2);
  padding: 16px 24px;
}
.built-on-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.built-on-icon { flex-shrink: 0; }
.built-on-text { font-size: 14px; line-height: 1.5; }
.built-on-text strong { color: var(--cf-orange); }
.built-on-tools { color: var(--cf-muted); }

/* ─── TAB PANEL SYSTEM (replaces broken horizontal slide) ─── */
.slides-section {
  padding: 60px 0 80px;
  background: var(--cf-darker);
}
.slides-header {
  text-align: center; padding: 0 24px; margin-bottom: 32px;
}
.slides-header h2 {
  font-size: 36px; font-weight: 800; color: #fff; letter-spacing: -0.02em;
}
.slides-header p { color: var(--cf-muted); margin-top: 8px; }

/* Tab strip */
.slides-nav {
  display: flex; gap: 4px; justify-content: center; flex-wrap: wrap;
  padding: 0 24px; margin-bottom: 0;
  border-bottom: 2px solid var(--cf-border);
  max-width: 1200px; margin-left: auto; margin-right: auto;
}
.slide-nav-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 20px;
  font-size: 13px; font-weight: 500;
  background: transparent; border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  color: var(--cf-muted); cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.slide-nav-btn:hover { color: var(--cf-text); }
.slide-nav-btn.active {
  color: #fff;
  border-bottom-color: var(--cf-orange);
  font-weight: 600;
}

/* Arrow buttons — repurposed as prev/next tab buttons */
.slides-track-wrapper { position: relative; }
.slide-arrow {
  position: fixed; top: 50%; z-index: 100;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cf-panel); border: 1px solid var(--cf-border);
  color: var(--cf-text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; transform: translateY(-50%);
}
.slide-arrow:hover { background: var(--cf-orange); border-color: var(--cf-orange); color: #fff; }
.slide-arrow-left  { left: 12px; }
.slide-arrow-right { right: 12px; }

/* Track: stack panels, show only the active one */
.slides-track { width: 100%; }

.slide {
  display: none;           /* hidden by default */
  padding: 32px 24px 40px;
  animation: fadePanel 0.2s ease;
}
.slide.active { display: block; } /* JS adds this class */

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

.slide-inner {
  max-width: 1100px; margin: 0 auto; width: 100%;
  background: var(--cf-panel);
  border: 1px solid var(--cf-border);
  border-radius: 16px; padding: 40px 48px;
}
.slide-inner--map {
  padding: 24px 32px 24px;
}
@media (max-width: 768px) {
  .slide { padding: 16px 12px 32px; }
  .slide-inner { padding: 20px; }
  .slide-inner--map { padding: 16px; }
  .slide-arrow { display: none; }
}
/* Map slide: no min-height cap */
#slide-0 .slide-inner { min-height: 0; }

.slide-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cf-orange); margin-bottom: 12px;
}
.slide-title {
  font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.slide-desc { font-size: 16px; color: var(--cf-muted); margin-bottom: 36px; }

/* ─── MAP ─── */
.cf-map-container {
  width: 100%;
  /* Height is driven by flex-grow in slide-inner--map; fallback for non-flex contexts */
  height: 600px;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--cf-border);
  margin-bottom: 14px;
  background: #0a0f1e;
}
@media (max-width: 768px) {
  .cf-map-container { height: 320px; }
}

/* Override MapLibre attribution to match dark theme */
.maplibregl-ctrl-attrib { background: rgba(6,10,20,0.8) !important; }
.maplibregl-ctrl-attrib a { color: #64748b !important; }
.maplibregl-popup-content {
  background: #0d1525 !important;
  border: 1px solid #1e2d4a !important;
  border-radius: 8px !important;
  color: #e2e8f0 !important;
  padding: 10px 14px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5) !important;
}
.maplibregl-popup-tip { border-top-color: #1e2d4a !important; }
.maplibregl-popup-close-button { color: #64748b !important; font-size: 16px !important; }

/* Blinking AZ PoP pulse rings — injected via JS as DOM elements */
@keyframes az-pulse {
  0%   { transform: scale(1);   opacity: 0.9; }
  50%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(1);   opacity: 0; }
}
@keyframes az-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.25; }
}
.az-marker-core {
  width: 12px; height: 12px;
  background: #F6821F;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  animation: az-blink 1.2s ease-in-out infinite;
  position: relative; z-index: 2;
}
.az-marker-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  background: rgba(246, 130, 31, 0.5);
  border-radius: 50%;
  animation: az-pulse 1.8s ease-out infinite;
  z-index: 1;
}
.az-marker-ring-2 {
  animation-delay: 0.6s;
}

.map-legend {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 13px; color: var(--cf-muted);
}
.map-legend-item { display: flex; align-items: center; gap: 7px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend-dot--pop { background: #F6821F; opacity: 0.75; }
.legend-dot--az  { background: #F6821F; border: 2px solid #fff; animation: az-blink 1.2s ease-in-out infinite; }

.map-callouts { display: flex; gap: 16px; flex-wrap: wrap; }
.callout {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--cf-border);
  border-radius: 10px; padding: 14px 20px; flex: 1; min-width: 220px;
}
.callout-az { border-color: rgba(246,130,31,0.3); }
.callout-nl { border-color: rgba(0,81,255,0.3); }
.callout-flag { font-size: 28px; }
.callout strong { display: block; color: #fff; font-size: 14px; font-weight: 600; }
.callout span { font-size: 12px; color: var(--cf-muted); }

/* ═══ SLIDE 2 — PRODUCTS ═══════════════════════════════════════════ */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }

.prod-legend {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--cf-muted);
  margin-bottom: 14px;
}
.prod-legend-dot {
  width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0;
  background: rgba(246,130,31,0.07);
  border-left: 2px solid var(--cf-orange);
  display: inline-block;
}

.prod-col {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--cf-border);
  border-radius: 10px; padding: 16px;
  transition: border-color 0.2s;
}
.prod-col:hover { border-color: var(--c, var(--cf-orange)); }

.prod-col-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; color: var(--c, #fff);
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--cf-border);
  line-height: 1.3;
}
.prod-col-icon {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

.prod-list { list-style: none; }
.prod-list li {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--cf-muted);
  padding: 3.5px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  border-radius: 4px;
  transition: background 0.15s;
}
.prod-list li:last-child { border-bottom: none; }
.prod-list svg { width: 6px; height: 6px; flex-shrink: 0; }

/* Products used on this site — orange highlight */
.prod-list li.used {
  color: var(--cf-orange);
  background: rgba(246,130,31,0.07);
  border-bottom-color: rgba(246,130,31,0.1);
  font-weight: 600;
  padding-left: 6px;
  border-left: 2px solid var(--cf-orange);
  margin-left: -2px;
}
.prod-list li.used svg circle { fill: var(--cf-orange) !important; }

/* ═══ SLIDE 3 — SECURITY ════════════════════════════════════════════ */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.sec-card2 {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--cf-border);
  border-radius: 12px; padding: 18px;
  transition: border-color 0.2s, transform 0.15s;
}
.sec-card2:hover { border-color: var(--ic); transform: translateY(-2px); }

/* Cards that contain a demo box switch to full-width column layout */
.sec-card2:has(.demo-box) {
  flex-direction: column;
  gap: 0;
}

/* Inner row: icon + text side by side (used when demo box is a sibling) */
.sec-card2-top {
  display: flex; gap: 14px; align-items: flex-start;
  width: 100%;
}

.sec-card2-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: var(--ib);
  display: flex; align-items: center; justify-content: center;
}

.sec-card2-body { flex: 1; min-width: 0; width: 100%; }
.sec-card2-body h3 {
  font-size: 14px; font-weight: 700; color: #fff;
  margin-bottom: 6px; line-height: 1.3;
}

/* Clickable card — the card element itself becomes an <a> */
a.sec-card2, a.zt-card, a.dev-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.sec-card2:hover, a.zt-card:hover, a.dev-card:hover {
  border-color: var(--cf-orange);
  transform: translateY(-2px);
}
.sec-card2-body p {
  font-size: 12.5px; color: var(--cf-muted); line-height: 1.55;
  margin-bottom: 10px;
}
.sec-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.sec-tags span {
  font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ic); background: var(--ib);
  border-radius: 4px; padding: 2px 7px;
}

/* Separator line between card text and demo box */
.sec-card2-body .demo-box:first-of-type {
  margin-top: 14px;
  padding-top: 0;
  border-top: 1px solid var(--cf-border);
}

/* ═══ SLIDE 4 — ZERO TRUST ══════════════════════════════════════════ */
.zt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.zt-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--cf-border);
  border-radius: 12px; padding: 20px;
  transition: border-color 0.2s, transform 0.15s;
}
.zt-card:hover { border-color: var(--ic); transform: translateY(-2px); }

.zt-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: color-mix(in srgb, var(--ic) 12%, transparent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}

.zt-card h3 {
  font-size: 14px; font-weight: 700; color: #fff;
  margin-bottom: 8px;
}
.zt-card p {
  font-size: 12.5px; color: var(--cf-muted);
  line-height: 1.55; margin-bottom: 12px;
}
.zt-pill {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ic); background: color-mix(in srgb, var(--ic) 10%, transparent);
  border-radius: 4px; padding: 3px 8px;
}

/* ═══ SLIDE 5 — DEVELOPER PLATFORM ═════════════════════════════════ */
.dev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.dev-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--cf-border);
  border-radius: 12px; padding: 20px;
  transition: border-color 0.2s, transform 0.15s;
}
.dev-card:hover { border-color: var(--ic); transform: translateY(-2px); }

.dev-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--ib);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}

.dev-card h3 {
  font-size: 14px; font-weight: 700; color: #fff;
  margin-bottom: 7px;
}
.dev-card p {
  font-size: 12.5px; color: var(--cf-muted);
  line-height: 1.55; margin-bottom: 12px;
}
.dev-card code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px; background: rgba(255,255,255,0.06);
  border-radius: 3px; padding: 1px 5px; color: #a5b4fc;
}
.dev-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.dev-tags span {
  font-size: 10px; font-weight: 600;
  color: var(--ic); background: var(--ib);
  border-radius: 4px; padding: 2px 7px;
}

/* ═══ DEMO WINDOWS ══════════════════════════════════════════════════ */
.demo-box {
  margin-top: 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
}
.demo-header {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.demo-label {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: #94a3b8;
  flex: 1 1 100%;   /* full row on first line */
  min-width: 0;
  margin-bottom: 2px;
}
/* controls row sits below the label */
.demo-header .demo-select,
.demo-header .demo-run,
.demo-header .demo-clear { flex-shrink: 0; }
.demo-select {
  font-size: 11px; font-family: var(--font);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px; color: var(--cf-text);
  padding: 3px 6px; cursor: pointer;
}
.demo-run {
  font-size: 11px; font-weight: 700; font-family: var(--font);
  background: var(--dc, var(--cf-orange));
  color: #fff; border: none; border-radius: 5px;
  padding: 4px 12px; cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.demo-run:hover { opacity: 0.85; }
.demo-run:disabled { opacity: 0.4; cursor: not-allowed; }
.demo-clear {
  font-size: 11px; font-weight: 700; font-family: var(--font);
  background: rgba(255,255,255,0.06);
  color: var(--cf-muted); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px; padding: 4px 9px; cursor: pointer;
  transition: all 0.15s; line-height: 1;
}
.demo-clear:hover { background: rgba(239,68,68,0.15); color: #f87171; border-color: rgba(239,68,68,0.3); }
.demo-desc {
  font-size: 11px; color: var(--cf-muted); line-height: 1.5;
  padding: 6px 12px 8px;
}
.demo-desc code {
  font-family: 'SF Mono','Fira Code',monospace;
  font-size: 10px; background: rgba(255,255,255,0.07);
  border-radius: 3px; padding: 1px 4px; color: #a5b4fc;
}
.demo-output {
  font-family: 'SF Mono','Fira Code',monospace;
  font-size: 11px; line-height: 1.55;
  display: none;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  max-height: 260px; overflow-y: auto;
  white-space: pre-wrap; word-break: break-word;
}
.demo-output.visible { display: block; }
.demo-output.loading {
  display: block;
  color: #64748b;
}

/* Full demo link button */
.demo-full-btn {
  display: flex; align-items: center; gap: 7px;
  margin-top: 10px; padding: 9px 14px;
  background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(16,185,129,0.04));
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 8px;
  font-size: 12px; font-weight: 600; color: #34d399;
  text-decoration: none;
  transition: all 0.2s;
}
.demo-full-btn:hover {
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.4);
  transform: translateY(-1px);
}

/* Syntax-highlighted output tokens */
.demo-output .tok-key   { color: #93c5fd; }  /* field names */
.demo-output .tok-str   { color: #86efac; }  /* string values */
.demo-output .tok-num   { color: #fca5a5; }  /* numbers */
.demo-output .tok-bool  { color: #f9a8d4; }  /* true/false */
.demo-output .tok-block { color: #f97316; font-weight:700; } /* BLOCK */
.demo-output .tok-rule  { color: #fbbf24; }  /* rule expression */

/* ensure first tab button shows active before JS runs */
.slide-nav-btn:first-child { color: #fff; border-bottom-color: var(--cf-orange); font-weight: 600; }

/* ─── DOTS ─── */
.slides-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 28px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cf-border); cursor: pointer;
  transition: all 0.2s;
}
.dot.active { background: var(--cf-orange); width: 24px; border-radius: 4px; }

/* ─── AI SECTION ─── */
.ai-section {
  padding: 80px 24px;
  background: var(--cf-dark);
  border-top: 1px solid var(--cf-border);
}
.ai-inner { max-width: 720px; margin: 0 auto; }
.ai-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--cf-purple);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px;
}
.ai-inner h2 { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.ai-inner p { color: var(--cf-muted); margin-bottom: 28px; }
.ai-chat {
  background: var(--cf-panel);
  border: 1px solid var(--cf-border);
  border-radius: 16px; overflow: hidden;
}
.ai-messages {
  min-height: 180px; max-height: 320px;
  overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.ai-msg {
  max-width: 85%; padding: 12px 16px;
  border-radius: 12px; font-size: 14px; line-height: 1.5;
}
.ai-msg-bot {
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.2);
  color: var(--cf-text); align-self: flex-start;
}
.ai-msg-user {
  background: var(--cf-orange);
  color: #fff; align-self: flex-end;
}
.ai-input-row {
  display: flex; gap: 0;
  border-top: 1px solid var(--cf-border);
}
.ai-input {
  flex: 1; background: transparent;
  border: none; outline: none;
  padding: 16px 20px; font-size: 14px;
  font-family: var(--font); color: var(--cf-text);
}
.ai-input::placeholder { color: var(--cf-muted); }
.ai-send {
  width: 52px; background: var(--cf-orange); border: none;
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.ai-send:hover { background: #e5731a; }

/* ─── FOOTER ─── */
.footer {
  background: var(--cf-darker);
  border-top: 1px solid var(--cf-border);
  padding: 40px 24px 20px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.footer-logo { font-size: 18px; font-weight: 700; color: #fff; display: block; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; color: var(--cf-muted); max-width: 420px; line-height: 1.6; }
.footer-info { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.footer-info-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--cf-muted);
}
.footer-bottom {
  border-top: 1px solid var(--cf-border); padding-top: 20px;
  text-align: center; font-size: 13px; color: var(--cf-muted);
}
.footer-bottom a { color: var(--cf-orange); text-decoration: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .hero-stats { flex-direction: column; gap: 20px; }
  .stat-divider { display: none; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .slide-inner { padding: 20px; }
  .zt-diagram { flex-direction: column; }
  .zt-arrow { transform: rotate(90deg); }
}
