/* vesyavto.kz — design tokens & base styles */

:root {
  /* color tokens — accent swaps via Tweaks */
  --accent:        #D97706;
  --accent-2:      #F59E0B;
  --accent-dark:   #B45309;
  --accent-bg:     #FFF5E8;
  --accent-glow:   rgba(217, 119, 6, 0.18);

  --dark:          #1A1F2E;
  --darker:        #0B1220;
  --bg:            #F6F7F9;
  --panel:         #FFFFFF;
  --panel-2:       #FAFBFC;
  --text:          #0D1117;
  --text-muted:    #5A6478;
  --text-dim:      #8A94A6;
  --success:       #047A55;
  --danger:        #DC2626;
  --border:        #E5E7EB;
  --border-strong: #D4D8DE;

  --r-card: 14px;
  --r-btn:  10px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(13, 17, 23, 0.05), 0 0 0 1px rgba(13, 17, 23, 0.04);
  --shadow-md: 0 8px 24px rgba(13, 17, 23, 0.06), 0 1px 2px rgba(13, 17, 23, 0.04);
  --shadow-lg: 0 24px 60px rgba(13, 17, 23, 0.12), 0 2px 4px rgba(13, 17, 23, 0.04);
  --shadow-glow: 0 0 0 1px rgba(217, 119, 6, 0.2), 0 12px 40px var(--accent-glow);

  --maxw: 1200px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-feature-settings: "tnum" 1, "zero" 1; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.025em; color: var(--text); }
h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.03em; }
h3 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.25; }
h4 { font-size: 18px; line-height: 1.3; }
p  { margin: 0; color: var(--text-muted); }
a  { color: inherit; text-decoration: none; }

/* eyebrow */
.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.eyebrow-accent { color: var(--accent); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border-radius: var(--r-btn);
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 22px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 12px 28px var(--accent-glow); }
.btn-outline {
  background: transparent; color: var(--text); border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--text); }
.btn-outline-dark {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.22);
}
.btn-outline-dark:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.04); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-bg); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }

/* badges / pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px;
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600;
  background: var(--accent-bg); color: var(--accent-dark);
  border: 1px solid rgba(217, 119, 6, 0.18);
}
.pill-dark {
  background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.12);
}
.pill-new { background: rgba(217,119,6,0.12); color: var(--accent); border-color: rgba(217,119,6,0.25); }
.pill-hit { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }

/* card */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.card-dark {
  background: #11182A;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-card);
}

/* section */
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }
.section-dark {
  background: var(--dark);
  color: #E8ECF3;
}
.section-darker {
  background: var(--darker);
  color: #E8ECF3;
}
.section-dark p, .section-darker p { color: rgba(232,236,243,0.66); }
.section-dark h1, .section-dark h2, .section-dark h3,
.section-darker h1, .section-darker h2, .section-darker h3 { color: #fff; }

/* tech pattern for AI sections */
.tech-grid {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
  background-size: 24px 24px;
}
.tech-grid-light {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(13,17,23,0.06) 1px, transparent 0);
  background-size: 24px 24px;
}

/* dividers, lines */
.hr-soft { height: 1px; background: var(--border); border: 0; }
.hr-dark { height: 1px; background: rgba(255,255,255,0.08); border: 0; }

/* link */
.link {
  color: var(--accent); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s ease;
}
.link:hover { gap: 10px; }

/* shimmer for AI metrics */
.glow-num {
  color: var(--accent);
  text-shadow: 0 0 24px var(--accent-glow);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* scroll-reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* bounding-box pulse */
@keyframes bb-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow), 0 0 0 1.5px var(--accent); }
  50%      { box-shadow: 0 0 16px 2px var(--accent-glow), 0 0 0 1.5px var(--accent); }
}
.bb { animation: bb-pulse 1.6s ease-in-out infinite; }

/* shine */
@keyframes shine {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(220%); }
}
.shine-host { position: relative; overflow: hidden; }
.shine-host::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}
.shine-host:hover::after { animation: shine 1s ease forwards; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #fff;
}
.nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: rgba(232,236,243,0.72);
  transition: color .15s ease;
}
.nav-links a:hover { color: #fff; }

/* hero */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 60% 80% at 70% 30%, rgba(217,119,6,0.10), transparent 60%),
    radial-gradient(ellipse 40% 60% at 0% 80%, rgba(56,89,255,0.06), transparent 60%),
    var(--darker);
  color: #fff;
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}

/* kpi numbers */
.kpi { font-family: "JetBrains Mono", monospace; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* problem / solution columns */
.bg-prob { background: linear-gradient(180deg, #FFF4F4, #FEF2F2); }
.bg-sol  { background: linear-gradient(180deg, #F2FBF5, #F0FDF4); }

/* table-like rows */
.tbl-row {
  display: grid; align-items: center;
  padding: 10px 14px; border-top: 1px solid var(--border);
  font-size: 13px;
}
.tbl-row:first-child { border-top: 0; }
.tbl-row.head {
  background: #F8FAFC; color: var(--text-muted);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
  border-top: 0; border-bottom: 1px solid var(--border);
}

/* heatmap cell */
.heat-cell { width: 100%; aspect-ratio: 1; border-radius: 3px; }

/* footer */
.footer { background: var(--darker); color: rgba(232,236,243,0.7); padding: 72px 0 36px; }
.footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; font-weight: 600; }
.footer a { display: block; padding: 6px 0; color: rgba(232,236,243,0.7); font-size: 14px; }
.footer a:hover { color: #fff; }

/* sticky mobile cta */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px;
  z-index: 40; display: none;
}

/* responsive */
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .sticky-cta { display: flex; }
  .sticky-cta .btn { flex: 1; }
}

/* utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.grid { display: grid; }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.relative { position: relative; }
