/* ==========================================================================
   STAJKO CAR CHECK — Tehnički pregled
   Dark, red-accented adaptation of an Apple-style editorial design system:
   oversized display type, negative tracking, pill buttons, tinted flat
   surfaces (no borders/shadows for separation), generous section rhythm.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  /* ---- Surfaces (dark, tint-separated like the reference's white/fog/paper/smoke stack) ---- */
  --bg-canvas: #08080a;
  --bg-raised: #131317;
  --bg-raised-2: #1b1b20;
  --bg-raised-3: #232329;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.14);

  /* ---- Ink ---- */
  --ink-primary: #f5f5f7;
  --ink-secondary: #a6a6ad;
  --ink-tertiary: #6f6f77;

  /* ---- Accent: brand red ---- */
  --red-500: #e21f2b;
  --red-400: #ff3b45;
  --red-600: #b7141e;
  --red-glow: rgba(226, 31, 43, 0.45);
  --red-wash: rgba(226, 31, 43, 0.1);

  /* ---- Type scale (mirrors the reference's display/text split) ---- */
  --text-display: clamp(2.75rem, 2rem + 3.6vw, 5.5rem);
  --text-heading-lg: clamp(2.1rem, 1.7rem + 1.8vw, 3.5rem);
  --text-heading: clamp(1.7rem, 1.5rem + 1vw, 2.5rem);
  --text-heading-sm: 1.75rem;
  --text-subheading: 1.3125rem;
  --text-body: 1.0625rem;
  --text-body-sm: 0.875rem;
  --text-caption: 0.75rem;

  /* ---- Layout ---- */
  --page-max: 1280px;
  --section-gap: clamp(72px, 9vw, 140px);
  --card-padding: 40px;
  --radius-card: 28px;
  --radius-pill: 980px;
  --radius-sm: 12px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--ink-primary);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: var(--text-body); }

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

::selection { background: var(--red-500); color: #fff; }

/* ---- Film grain overlay: keeps the flat dark canvas from feeling sterile ---- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Cursor light: a red glow that follows the pointer across the first screen ---- */
.cursor-light {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: radial-gradient(650px circle at var(--cx, 50%) var(--cy, 0%), rgba(226, 31, 43, 0.18), transparent 70%);
}
.cursor-light.is-active { opacity: 1; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---- Shell ---- */
.shell {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-400);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-500);
  box-shadow: 0 0 0 3px var(--red-wash);
  animation: dot-pulse 2.4s ease-in-out infinite;
}
.eyebrow-index {
  color: var(--ink-tertiary);
  border: 1px solid var(--hairline-strong);
  border-radius: 5px;
  padding: 1px 6px;
  margin-right: 2px;
  font-size: 0.6875rem;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--red-wash); }
  50% { box-shadow: 0 0 0 6px var(--red-wash); }
}

/* ==========================================================================
   Scroll progress bar
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 200;
  background: linear-gradient(90deg, var(--red-600), var(--red-400));
  box-shadow: 0 0 12px var(--red-glow);
  transition: width 0.12s linear;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding 0.4s var(--ease-out-expo), background 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 14px 0;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom-color: var(--hairline);
}
.nav .shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
}
.brand-logo {
  height: 30px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-secondary);
  letter-spacing: -0.01em;
  position: relative;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--red-500);
  transition: right 0.3s var(--ease-out-expo);
}
.nav-links a:hover { color: var(--ink-primary); }
.nav-links a:hover::after { right: 0; }

.nav-links .nav-admin {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-tertiary);
  padding-left: 14px;
  margin-left: 4px;
  border-left: 1px solid var(--hairline-strong);
}
.nav-admin svg { width: 14px; height: 14px; }
.nav-links .nav-admin:hover { color: var(--red-400); }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-tel {
  display: none;
  font-size: 0.875rem;
  color: var(--ink-secondary);
}

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-raised);
  border: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 4px;
}
.nav-burger span {
  width: 18px;
  height: 2px;
  background: var(--ink-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out-expo), opacity 0.3s var(--ease-out-expo);
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Mobile drawer ---- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 8, 10, 0.98);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo), visibility 0.35s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-menu a {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo), color 0.25s ease;
}
.mobile-menu a:active { color: var(--red-400); }
.mobile-menu.is-open a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.is-open a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu .btn {
  margin-top: 12px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease-out-expo) 0.32s, transform 0.4s var(--ease-out-expo) 0.32s;
}
.mobile-menu.is-open .btn { opacity: 1; transform: translateY(0); }

.mobile-menu .mobile-menu-admin {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-tertiary);
  letter-spacing: normal;
  transition-delay: 0.38s, 0.38s, 0.25s;
}
.mobile-menu .mobile-menu-admin:active { color: var(--red-400); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 13px 26px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo), background 0.25s ease;
}
.btn:active { transform: scale(0.96); }
.btn-primary {
  background: var(--red-500);
  color: #fff;
  box-shadow: 0 0 0 0 var(--red-glow);
  animation: pulse-glow 3.2s ease-in-out infinite;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 45%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s var(--ease-out-expo);
}
.btn-primary:hover::after { left: 125%; }
.btn-primary:hover {
  background: var(--red-400);
  transform: translateY(-2px);
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 var(--red-glow); }
  50% { box-shadow: 0 0 26px 2px var(--red-glow); }
}
.btn-ghost {
  background: var(--bg-raised);
  color: var(--ink-primary);
  border: 1px solid var(--hairline-strong);
}
.btn-ghost:hover {
  background: var(--bg-raised-2);
  transform: translateY(-2px);
}
.btn-sm { padding: 10px 20px; font-size: 0.8125rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-primary);
  padding-bottom: 1px;
  border-bottom: 1px solid var(--hairline-strong);
  transition: border-color 0.25s ease, color 0.25s ease, gap 0.25s ease;
}
.link-arrow:hover {
  color: var(--red-400);
  border-color: var(--red-400);
  gap: 10px;
}
.link-arrow.on-dark { color: var(--ink-primary); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 180px 0 110px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero-glow--a {
  width: 620px; height: 620px;
  top: -220px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  opacity: 0.55;
}
.hero-glow--b {
  width: 420px; height: 420px;
  bottom: -160px; right: -100px;
  background: radial-gradient(circle, rgba(226,31,43,0.28) 0%, transparent 70%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 40%, transparent 100%);
}

.hero .shell {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Hero entrance sequence (staggered load-in) ---- */
.hero-eyebrow,
.hero h1,
.hero-sub,
.hero-actions,
.hero-visual,
.capabilities {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}
.hero.is-ready .hero-eyebrow { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.hero.is-ready h1 { opacity: 1; transform: translateY(0); transition-delay: 0.16s; }
.hero.is-ready .hero-sub { opacity: 1; transform: translateY(0); transition-delay: 0.28s; }
.hero.is-ready .hero-actions { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.hero.is-ready .hero-visual { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
.hero.is-ready .capabilities { opacity: 1; transform: translateY(0); transition-delay: 0.62s; }

.hero-eyebrow { margin-bottom: 26px; }

.hero h1 {
  font-size: var(--text-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 16ch;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--red-400), var(--red-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 26px;
  max-width: 46ch;
  font-size: 1.1875rem;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.hero-actions {
  margin-top: 42px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- Scan visual: car silhouette with a sweeping scan beam ---- */
.hero-visual {
  position: relative;
  margin-top: 76px;
  width: 100%;
  max-width: 620px;
}
.scan-rings {
  position: absolute;
  inset: -60px 0 0 0;
  display: grid;
  place-items: center;
  z-index: 0;
}
.scan-ring {
  position: absolute;
  border: 1px solid var(--red-glow);
  border-radius: 50%;
  opacity: 0;
  animation: scan-ripple 3.6s var(--ease-out-expo) infinite;
}
.scan-ring:nth-child(1) { width: 140px; height: 140px; animation-delay: 0s; }
.scan-ring:nth-child(2) { width: 140px; height: 140px; animation-delay: 1.2s; }
.scan-ring:nth-child(3) { width: 140px; height: 140px; animation-delay: 2.4s; }
@keyframes scan-ripple {
  0% { width: 90px; height: 90px; opacity: 0.7; }
  100% { width: 520px; height: 520px; opacity: 0; }
}

.car-wrap {
  position: relative;
  z-index: 1;
}
.car-wrap svg { width: 100%; height: auto; overflow: visible; }
.car-outline {
  fill: none;
  stroke: rgba(245, 245, 247, 0.5);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.car-fill { fill: var(--bg-raised-2); }
.car-glass { fill: rgba(245, 245, 247, 0.12); }
.car-wheel-rim { fill: var(--bg-canvas); stroke: rgba(245,245,247,0.35); stroke-width: 1.4; }

.scan-beam {
  animation: sweep 3.6s var(--ease-out-expo) infinite;
}
@keyframes sweep {
  0% { transform: translateX(-60px); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translateX(420px); opacity: 1; }
  62% { opacity: 0; }
  100% { transform: translateX(420px); opacity: 0; }
}

.hero-checks {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-check {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-secondary);
  background: rgba(19, 19, 23, 0.85);
  border: 1px solid var(--hairline-strong);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  opacity: 0;
  animation: check-pop 3.6s var(--ease-out-expo) infinite;
}
.hero-check svg { width: 12px; height: 12px; color: var(--red-400); }
.hero-check--1 { top: 6%; left: 4%; animation-delay: 0.9s; }
.hero-check--2 { top: 12%; right: 2%; animation-delay: 1.7s; }
.hero-check--3 { bottom: 10%; left: 10%; animation-delay: 2.5s; }
@keyframes check-pop {
  0%, 20% { opacity: 0; transform: translateY(6px); }
  28%, 68% { opacity: 1; transform: translateY(0); }
  78%, 100% { opacity: 0; transform: translateY(-4px); }
}

/* ---- Inspection stamp seal: the signature illustration ---- */
.stamp {
  position: absolute;
  z-index: 2;
  bottom: -20px;
  right: -14px;
  width: 118px;
  height: 118px;
  color: var(--red-400);
  filter: drop-shadow(0 0 18px rgba(226, 31, 43, 0.25));
  transform: rotate(-11deg);
  animation: stamp-drift 7s ease-in-out infinite;
  transition: transform 0.5s var(--ease-out-expo), filter 0.5s ease;
}
.stamp svg { width: 100%; height: 100%; overflow: visible; }
.stamp:hover {
  animation-play-state: paused;
  transform: rotate(0deg) scale(1.08);
  filter: drop-shadow(0 0 26px rgba(226, 31, 43, 0.4));
}
@keyframes stamp-drift {
  0%, 100% { transform: rotate(-11deg) translateY(0); }
  50% { transform: rotate(-8deg) translateY(-6px); }
}

/* ---- Capability strip ---- */
.capabilities {
  margin-top: 90px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.cap-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-right: 6px;
}
.chip {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-secondary);
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.chip:hover {
  border-color: var(--red-500);
  color: var(--ink-primary);
  background: var(--bg-raised-2);
}

/* ==========================================================================
   Ticker — scrolling brand strip
   ========================================================================== */
.ticker {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-raised);
  overflow: hidden;
  padding: 16px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 26s linear infinite;
}
.ticker-set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ticker-set span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
  white-space: nowrap;
  padding: 0 18px;
}
.ticker-dot { color: var(--red-500) !important; padding: 0 !important; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ==========================================================================
   Manifesto — editorial pull-quote
   ========================================================================== */
.manifesto {
  padding: calc(var(--section-gap) * 0.75) 0;
}
.manifesto-text {
  max-width: 20ch;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink-secondary);
}
.manifesto-text .strike {
  position: relative;
  color: var(--ink-tertiary);
}
.manifesto-text .strike::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 52%;
  height: 2px;
  background: var(--red-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out-expo) 0.2s;
}
.manifesto-text.in-view .strike::after { transform: scaleX(1); }
.manifesto-text .accent-text { color: var(--ink-primary); }

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
section { position: relative; }
.section-pad { padding: var(--section-gap) 0; }
.section-pad-tight { padding: calc(var(--section-gap) * 0.6) 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: var(--text-heading-lg);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 18ch;
}
.section-head .section-copy {
  max-width: 60ch;
  color: var(--ink-secondary);
  margin-top: 18px;
  font-size: 1.0625rem;
}
.section-head-center {
  text-align: center;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}
.section-head-center h2 { max-width: 22ch; }
.section-head-center .section-copy { margin-left: auto; margin-right: auto; }

/* ---- Reveal-on-scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Staggered entrance for grid children — pure CSS, no JS timing dependency */
.services-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.services-grid .reveal:nth-child(2) { transition-delay: 70ms; }
.services-grid .reveal:nth-child(3) { transition-delay: 140ms; }
.services-grid .reveal:nth-child(4) { transition-delay: 210ms; }
.services-grid .reveal:nth-child(5) { transition-delay: 280ms; }
.services-grid .reveal:nth-child(6) { transition-delay: 350ms; }

.why-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.why-grid .reveal:nth-child(2) { transition-delay: 90ms; }
.why-grid .reveal:nth-child(3) { transition-delay: 180ms; }
.why-grid .reveal:nth-child(4) { transition-delay: 270ms; }

.process-grid .reveal:nth-child(2) { transition-delay: 0ms; }
.process-grid .reveal:nth-child(3) { transition-delay: 90ms; }
.process-grid .reveal:nth-child(4) { transition-delay: 180ms; }
.process-grid .reveal:nth-child(5) { transition-delay: 270ms; }

/* ---- Cursor tilt + spotlight (desktop hover only) ---- */
.tilt {
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform-style: preserve-3d;
}
.tilt::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(226, 31, 43, 0.18), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.tilt:hover::before { opacity: 1; }

/* ==========================================================================
   Services grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  transition: transform 0.45s var(--ease-out-expo), border-color 0.45s var(--ease-out-expo), background 0.45s var(--ease-out-expo), opacity 0.8s var(--ease-out-expo);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--red-500);
  background: var(--bg-raised-2);
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--red-wash);
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  transition: background 0.4s ease, transform 0.4s var(--ease-out-expo);
}
.service-card:hover .service-icon {
  background: var(--red-500);
  transform: scale(1.06) rotate(-4deg);
}
.service-icon svg { width: 24px; height: 24px; color: var(--red-400); transition: color 0.4s ease; }
.service-card:hover .service-icon svg { color: #fff; }
.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--ink-secondary);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin-bottom: 22px;
}

/* ==========================================================================
   Process timeline
   ========================================================================== */
.process {
  position: relative;
  background: var(--bg-raised);
  border-radius: 32px;
  padding: clamp(40px, 6vw, 72px);
}

/* ---- Blueprint corner brackets: technical-drawing flavor ---- */
.blueprint .corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--red-glow);
  opacity: 0.7;
  pointer-events: none;
}
.blueprint .corner-tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.blueprint .corner-tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.blueprint .corner-bl { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.blueprint .corner-br { bottom: 14px; right: 14px; border-left: none; border-top: none; }
.blueprint-tag {
  position: absolute;
  top: 14px;
  right: 42px;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--ink-tertiary);
  pointer-events: none;
}
.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.process-line {
  position: absolute;
  top: 27px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--hairline-strong);
  overflow: hidden;
}
.process-line-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red-600), var(--red-400));
  transition: width 1.4s var(--ease-out-expo);
}
.process-grid.in-view .process-line-fill { width: 100%; }

.process-step { position: relative; }
.process-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-raised-3);
  border: 1px solid var(--hairline-strong);
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink-primary);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}
.process-step:hover .process-num {
  background: var(--red-500);
  border-color: var(--red-500);
}
.process-step h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.process-step p {
  color: var(--ink-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* ==========================================================================
   Why us
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.why-item {
  background: var(--bg-canvas);
  padding: 40px 28px;
  transition: background 0.4s ease, transform 0.4s var(--ease-out-expo), opacity 0.8s var(--ease-out-expo);
}
.why-item:hover { background: var(--bg-raised); transform: translateY(-4px); }
.why-icon svg {
  width: 26px;
  height: 26px;
  color: var(--red-400);
  margin-bottom: 20px;
  transition: transform 0.45s var(--ease-out-expo);
}
.why-item:hover .why-icon svg { transform: scale(1.15) rotate(-6deg); }
.why-item h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.why-item p {
  color: var(--ink-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  position: relative;
  border-radius: 32px;
  padding: clamp(56px, 8vw, 96px) clamp(24px, 6vw, 64px);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(226,31,43,0.35) 1px, transparent 1.4px) 0 0/22px 22px,
    linear-gradient(160deg, #1c0507 0%, #0d0102 60%, #08080a 100%);
  border: 1px solid rgba(226,31,43,0.25);
}
.cta-banner::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--red-glow), transparent 70%);
  top: -220px; left: 50%;
  transform: translateX(-50%);
  filter: blur(20px);
  opacity: 0.7;
}
.cta-banner-inner { position: relative; z-index: 1; }
.cta-banner h2 {
  font-size: var(--text-heading-lg);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 20ch;
  margin: 0 auto 20px;
  line-height: 1.1;
}
.cta-banner p {
  color: var(--ink-secondary);
  font-size: 1.0625rem;
  max-width: 48ch;
  margin: 0 auto 36px;
}
.cta-banner .hero-actions { margin-top: 0; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.contact-grid-single {
  grid-template-columns: 1fr;
  max-width: 560px;
  margin: 0 auto;
}
.contact-card {
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
}
.info-list { display: flex; flex-direction: column; gap: 24px; margin-top: 8px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; }
.info-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--red-wash);
  display: grid; place-items: center;
  flex: none;
}
.info-icon svg { width: 18px; height: 18px; color: var(--red-400); }
.info-row h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.info-row p, .info-row a { color: var(--ink-secondary); font-size: 0.9375rem; line-height: 1.5; }
.info-row a:hover { color: var(--red-400); }

.map-link {
  margin-top: 28px;
  display: inline-flex;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 48px;
}
.footer-brand p {
  margin-top: 16px;
  color: var(--ink-secondary);
  max-width: 32ch;
  font-size: 0.9375rem;
  line-height: 1.55;
}
.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--ink-secondary); font-size: 0.9375rem; transition: color 0.25s ease; }
.footer-col a:hover { color: var(--red-400); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-tertiary);
  font-size: 0.8125rem;
}
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.footer-socials a:hover { border-color: var(--red-500); background: var(--bg-raised-2); }
.footer-socials svg { width: 16px; height: 16px; color: var(--ink-secondary); }

/* ==========================================================================
   Mobile sticky CTA bar
   ========================================================================== */
.mobile-cta {
  display: none;
}

/* ==========================================================================
   Touch feedback (no-hover devices)
   ========================================================================== */
@media (hover: none) {
  .btn:active { transform: scale(0.95); }
  .service-card:active,
  .why-item:active,
  .contact-card:active { transform: scale(0.985); }
  .chip:active { background: var(--bg-raised-2); border-color: var(--red-500); }
  .service-card, .why-item { transition-duration: 0.2s; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 640px) {
  .nav-tel { display: block; }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-tel { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .process-line { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root {
    --card-padding: 26px;
    --section-gap: 60px;
  }

  body { padding-bottom: 78px; }

  .shell { padding: 0 18px; }
  .hero { padding: 120px 0 64px; }
  .hero-glow--a { width: 380px; height: 380px; top: -140px; filter: blur(60px); }
  .hero-glow--b { width: 280px; height: 280px; filter: blur(60px); }
  .hero-visual { margin-top: 56px; }
  .stamp { width: 80px; height: 80px; bottom: -12px; right: 0; }
  .hero-check { font-size: 0.625rem; padding: 5px 9px; }
  .brand-logo { height: 22px; }
  .capabilities { margin-top: 56px; gap: 10px; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head-center { align-items: center; }
  .footer-top { flex-direction: column; }
  .footer-cols { gap: 40px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn, .hero-actions .link-arrow { width: 100%; justify-content: center; }

  /* Cards lose their JS tilt on touch — keep the lift snappy via CSS alone */
  .tilt::before { display: none; }

  /* ---- Vertical timeline for "Kako radi" ---- */
  .process { padding: 32px 22px; border-radius: 24px; }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .process-step {
    position: relative;
    padding: 0 0 32px 58px;
  }
  .process-step:last-child { padding-bottom: 0; }
  .process-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    font-size: 0.8125rem;
    margin-bottom: 0;
  }
  .process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 19px;
    top: 44px;
    bottom: 4px;
    width: 2px;
    background: var(--hairline-strong);
  }

  /* ---- Sticky mobile CTA ---- */
  .mobile-cta {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 95;
    gap: 10px;
    align-items: center;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(8, 8, 10, 0.85);
    backdrop-filter: saturate(1.6) blur(16px);
    -webkit-backdrop-filter: saturate(1.6) blur(16px);
    border-top: 1px solid var(--hairline-strong);
    transform: translateY(100%);
    transition: transform 0.45s var(--ease-out-expo);
  }
  .mobile-cta.is-visible { transform: translateY(0); }
  .mobile-cta-call {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-raised-2);
    border: 1px solid var(--hairline-strong);
    display: grid;
    place-items: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
  }
  .mobile-cta-call:active { transform: scale(0.92); border-color: var(--red-500); }
  .mobile-cta-call svg { width: 19px; height: 19px; color: var(--ink-primary); }
  .mobile-cta-book { flex: 1; animation: none; }
}
