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

:root {
  --bg: #080a0e;
  --bg-elevated: #0e1218;
  --surface: #131a22;
  --surface-hover: #1a222c;
  --line: rgba(255, 255, 255, 0.06);
  --line-bright: rgba(255, 255, 255, 0.1);
  --txt: #f4f7fa;
  --muted: #8d9db3;
  --muted-dim: #5f6d80;
  --accent: #38bdf8;
  --accent-soft: #7dd3fc;
  --accent-deep: #0ea5e9;
  --accent-glow: rgba(56, 189, 248, 0.45);
  --on-accent: #041018;
  --blue: #6366f1;
  --blue-glow: rgba(99, 102, 241, 0.14);
  --run: #34d399;
  --warn: #fb923c;
  --steel: #131a22;
  --radius: 10px;
  --radius-lg: 14px;
  --max: 1140px;
  --nav-gap: max(14px, 1.25vw);
  --site-w: min(1120px, 90vw);
  --nav-h: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--txt);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Soft ambient backdrop */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background:
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 15%, transparent 80%);
}
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 40% at 80% -5%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(ellipse 45% 35% at 10% 100%, rgba(99, 102, 241, 0.08), transparent 50%);
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.shell { position: relative; z-index: 1; }

/* ---- Scroll progress ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 300;
  background: var(--accent);
  box-shadow: none;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ---- Header ---- */
.nav {
  position: fixed;
  top: var(--nav-gap);
  left: 50%;
  z-index: 200;
  width: var(--site-w);
  min-height: var(--nav-h);
  padding: max(10px, 0.7vw) max(14px, 1vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: max(14px, 1.2vw);
  margin-inline: auto;
  border-radius: var(--radius-lg);
  border: none;
  background: color-mix(in srgb, var(--bg-elevated) 65%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.75);
  font-family: inherit;
  transform: translateX(-50%) translateZ(0);
  backface-visibility: hidden;
  isolation: isolate;
  will-change: transform;
  transition: transform 0.5s var(--ease), background 0.5s var(--ease);
}
.nav::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -18px;
  height: 32px;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 55%, transparent), transparent 72%);
  filter: blur(14px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
}
.nav.is-hidden {
  transform: translateX(-50%) translateY(calc(-100% - var(--nav-gap) - 16px));
}
.nav.is-revealed { opacity: 1; }

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--txt);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.nav__logo-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: none;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  display: grid;
  place-items: center;
  color: var(--accent-soft);
  box-shadow: 0 0 24px -8px var(--accent-glow);
}
.nav__logo-text { line-height: 1; }

.nav__links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: max(4px, 0.4vw);
}
.nav__links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.nav__links a:hover,
.nav__links a.is-active {
  color: var(--txt);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.nav__end {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Floating language (globe) */
.lang-float {
  position: fixed;
  right: max(16px, 2vw);
  bottom: max(20px, 2.5vw);
  z-index: 180;
}
.lang-float__btn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg-elevated) 75%, transparent);
  backdrop-filter: blur(12px) saturate(1.4);
  color: var(--accent-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent),
    0 12px 32px -12px rgba(0, 0, 0, 0.6),
    0 0 28px -6px var(--accent-glow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.lang-float__btn:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent),
    0 16px 40px -12px rgba(0, 0, 0, 0.65),
    0 0 36px -4px var(--accent-glow);
}
.lang-float__btn.is-open {
  color: var(--txt);
  background: color-mix(in srgb, var(--accent) 18%, var(--bg-elevated));
}
.lang-float__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  min-width: 148px;
  padding: 6px;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.7), 0 0 32px -12px var(--accent-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.lang-float__menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.lang-float__menu button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-float__menu button:hover,
.lang-float__menu button.is-active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--txt);
}

/* Legacy lang-switch (footer fallback) */
.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-switch button.is-active {
  background: var(--surface);
  color: var(--txt);
}
.lang-switch button:not(.is-active):hover { color: var(--txt); }

/* CTA with fill hover (fx-fill) */
.fx-fill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  border-radius: var(--radius-lg);
  border: none;
  background: var(--txt);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 20px;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.4);
}
.fx-fill__fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-fill:hover .fx-fill__fill,
.fx-fill:focus-visible .fx-fill__fill {
  transform: translateY(0);
}
.fx-fill__label {
  position: relative;
  z-index: 1;
  transition: color 0.25s;
}
.fx-fill:not(.fx-fill--ghost):hover .fx-fill__label,
.fx-fill:not(.fx-fill--ghost):focus-visible .fx-fill__label {
  color: var(--bg);
}
.fx-fill--lg {
  padding: 14px 26px;
  font-size: 0.95rem;
}
.fx-fill--ghost {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--txt);
  box-shadow: inset 0 0 0 1px var(--line-bright);
}
.fx-fill--ghost .fx-fill__fill {
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
}
.fx-fill--ghost:hover .fx-fill__label,
.fx-fill--ghost:focus-visible .fx-fill__label {
  color: var(--txt);
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--txt);
  cursor: pointer;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
}
.nav__toggle-icon {
  width: 22px;
  height: 22px;
}
.nav__toggle-icon line {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
  transform-origin: center;
}
.nav.is-menu-open .nav__toggle-icon line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.nav.is-menu-open .nav__toggle-icon line:nth-child(2) {
  opacity: 0;
}
.nav.is-menu-open .nav__toggle-icon line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  top: calc(var(--nav-gap) + var(--nav-h) + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: var(--site-w);
  z-index: 199;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: none;
  background: color-mix(in srgb, var(--bg-elevated) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.75), 0 0 40px -16px var(--accent-glow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.nav-mobile.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-mobile a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 14px;
  border-radius: var(--radius);
}
.nav-mobile a:hover,
.nav-mobile a.is-active {
  color: var(--txt);
  background: var(--surface);
}
.nav-mobile .fx-fill {
  width: 100%;
  margin-top: 8px;
}

/* Legacy brand/btn — used in footer */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.brand-mark svg { color: var(--accent-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  font-family: inherit;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--txt);
  color: var(--bg);
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.5);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 12px 32px -12px var(--accent-glow);
}
.btn-ghost {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--txt);
  box-shadow: inset 0 0 0 1px var(--line-bright);
}
.btn-ghost:hover {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent-soft);
}
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }

/* ---- Layout ---- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) 24px;
}
.section-tight { padding-top: 56px; padding-bottom: 56px; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 18px;
}
h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.08; font-weight: 800; }
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); margin: 0 0 24px; }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.75rem); margin: 0 0 18px; }
h3 { font-size: 1.12rem; margin: 0 0 10px; font-weight: 700; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.2rem); margin: 0; max-width: 54ch; line-height: 1.7; }
.lead.center { margin-left: auto; margin-right: auto; }

/* ---- Hero ---- */
.hero {
  padding: calc(var(--nav-gap) + var(--nav-h) + 56px) 24px clamp(80px, 12vw, 120px);
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  position: relative;
  min-height: calc(100vh - 60px);
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-copy { position: relative; z-index: 2; }
.hero-copy .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-soft);
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 0.82rem; color: var(--muted); }

.hero-visual {
  position: relative;
  z-index: 2;
}
.hero-panel {
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  border: none;
  border-radius: calc(var(--radius-lg) + 4px);
  padding: 28px;
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 28px 60px -32px rgba(0, 0, 0, 0.65),
    0 0 48px -20px var(--accent-glow);
}
.machine-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: none;
  background: color-mix(in srgb, var(--bg) 50%, transparent);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.machine-row:last-child { margin-bottom: 0; }
.machine-name { font-weight: 600; }
.machine-meta { font-family: "JetBrains Mono", monospace; font-size: 0.75rem; color: var(--muted); }
.badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius);
}
.badge-run { background: rgba(34,197,94,.15); color: var(--run); }
.badge-idle { background: rgba(100,116,139,.2); color: #94a3b8; }
.badge-off { background: rgba(251, 146, 60, 0.15); color: var(--warn); }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--run);
  box-shadow: 0 0 0 0 rgba(34,197,94,.5);
  animation: pulse 2s infinite;
  display: inline-block;
  margin-right: 6px;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.45); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.hero-panel-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--muted-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ---- Cards ---- */
.grid-3 {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}
.card {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: none;
  border-radius: calc(var(--radius-lg) + 2px);
  padding: 32px;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent),
    0 24px 56px -32px rgba(0, 0, 0, 0.55),
    0 0 40px -20px var(--accent-glow);
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  border: none;
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-elevated));
  box-shadow: 0 0 24px -10px var(--accent-glow);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--accent-soft);
}
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* ---- Pipeline ---- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  padding-top: 8px;
}
.pipeline-track {
  position: absolute;
  top: 36px;
  left: 12.5%;
  right: 12.5%;
  height: 3px;
  background: var(--line);
  z-index: 0;
  overflow: hidden;
}
.pipeline-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.pipe-step {
  text-align: center;
  padding: 0 12px;
  position: relative;
  z-index: 1;
  opacity: 0.45;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.pipe-step.is-active {
  opacity: 1;
  transform: translateY(0);
}
.pipe-num {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 2px solid var(--line-bright);
  display: grid;
  place-items: center;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--muted);
  transition: border-color 0.35s, background 0.35s, color 0.35s, box-shadow 0.35s;
}
.pipe-step.is-active .pipe-num {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}
.pipe-step.is-active strong { color: var(--txt); }
.pipe-step p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.pipe-step strong { display: block; margin-bottom: 6px; font-size: 0.95rem; color: var(--muted); transition: color 0.35s; }

/* ---- Bento ---- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.bento-item {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: none;
  border-radius: calc(var(--radius-lg) + 2px);
  padding: 32px;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.bento-item:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 15%, transparent),
    0 20px 48px -28px rgba(0, 0, 0, 0.5);
}
.bento-item.accent-edge {
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent),
    0 0 48px -24px var(--accent-glow);
}
.bento-item.span-7 { grid-column: span 7; }
.bento-item.span-5 { grid-column: span 5; }
.bento-item.span-6 { grid-column: span 6; }
.bento-item.span-12 { grid-column: span 12; }
.bento-list { margin: 16px 0 0; padding: 0; list-style: none; }
.bento-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.bento-list li:last-child { border-bottom: 0; }
.bento-list li::before {
  content: "→";
  color: var(--accent-soft);
  font-family: "JetBrains Mono", monospace;
  flex-shrink: 0;
}

/* ---- Pricing ---- */
.billing-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 40px;
  padding: 0 8px;
}
.billing-toggle {
  display: inline-flex;
  align-items: stretch;
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
  max-width: 100%;
}
.billing-toggle__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.billing-toggle__btn.is-active {
  color: var(--txt);
  background: color-mix(in srgb, var(--bg-elevated) 90%, transparent);
  box-shadow: 0 4px 16px -8px rgba(0, 0, 0, 0.4), inset 0 0 0 1px var(--line-bright);
}
.billing-toggle__btn:not(.is-active):hover { color: var(--txt); }
.billing-toggle__save {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-soft);
  padding: 3px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  line-height: 1.2;
}
.price-amount small.price-suffix {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 2px;
}
.price-value {
  display: inline-block;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.price-value.is-switching {
  transform: translateY(-6px);
  opacity: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: none;
  border-radius: calc(var(--radius-lg) + 2px);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 15%, transparent),
    0 24px 56px -32px rgba(0, 0, 0, 0.55);
}
.price-card.featured {
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent),
    0 0 56px -20px var(--accent-glow);
}
.price-card .tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius);
}
.price-name { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}
.price-amount small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-period { color: var(--muted); font-size: 0.88rem; margin-bottom: 24px; }
.price-features { list-style: none; margin: 0 0 28px; padding: 0; flex: 1; }
.price-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--muted);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  display: flex;
  gap: 8px;
}
.price-features li::before { content: "✓"; color: var(--run); font-weight: 700; flex-shrink: 0; }
.price-note { text-align: center; color: var(--muted-dim); font-size: 0.85rem; margin-top: 28px; }

/* ---- Checkout ---- */
.checkout {
  padding-top: calc(var(--nav-gap) + var(--nav-h) + 32px);
  max-width: var(--max);
}
.checkout-head { max-width: 640px; margin-bottom: 40px; }
.checkout-steps {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  flex-wrap: wrap;
}
.checkout-steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-dim);
  font-size: 0.82rem;
  font-weight: 500;
}
.checkout-steps li span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
}
.checkout-steps li.is-active { color: var(--txt); }
.checkout-steps li.is-active span {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 20px -6px var(--accent-glow);
}
.checkout-steps li.is-done { color: var(--muted); }
.checkout-steps li.is-done span {
  color: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}
.checkout-steps li em { font-style: normal; }

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}
.checkout-summary {
  position: sticky;
  top: calc(var(--nav-gap) + var(--nav-h) + 16px);
  padding: 24px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: inset 0 0 0 1px var(--line), 0 0 40px -24px var(--accent-glow);
}
.checkout-summary h2 {
  font-size: 1rem;
  margin: 0 0 20px;
  font-weight: 700;
}
.checkout-summary__list { margin: 0; }
.checkout-summary__list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.checkout-summary__list dt { color: var(--muted); margin: 0; font-weight: 500; }
.checkout-summary__list dd { margin: 0; font-weight: 600; text-align: right; }
.checkout-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 20px;
  padding-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}
.checkout-summary__total strong {
  font-size: 1.35rem;
  color: var(--accent-soft);
  font-weight: 800;
}
.checkout-summary__change {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--accent-soft);
  text-decoration: none;
}
.checkout-summary__change:hover { text-decoration: underline; }

.checkout-panels { min-width: 0; }
.checkout-panel h3 { margin: 0 0 8px; font-size: 1.35rem; }
.checkout-panel__lead { color: var(--muted); margin: 0 0 24px; font-size: 0.95rem; }
.checkout-back {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.88rem;
  padding: 0;
  margin-bottom: 16px;
  cursor: pointer;
}
.checkout-back:hover { color: var(--txt); }
.checkout-stub {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-elevated));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
  font-size: 0.85rem !important;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.choice-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  padding: 22px;
  border: 0;
  border-radius: calc(var(--radius-lg) + 2px);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--txt);
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.choice-card:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent),
    0 16px 40px -28px rgba(0, 0, 0, 0.55);
}
.choice-card.is-selected {
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent),
    0 0 36px -16px var(--accent-glow);
}
.choice-card__icon {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-soft);
}
.choice-card strong { font-size: 1rem; font-weight: 700; }
.choice-card span:last-child { font-size: 0.86rem; color: var(--muted); line-height: 1.5; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-span { grid-column: 1 / -1; }
.field span { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  box-shadow: inset 0 0 0 1px var(--line-bright);
  color: var(--txt);
  font-family: inherit;
  font-size: 0.92rem;
  transition: box-shadow 0.2s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
.checkout-form__actions { margin-top: 24px; }
.checkout-preview { margin-top: 24px; }
.checkout-preview__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-dim);
  margin: 0 0 10px;
}
.checkout-preview__box {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg-elevated) 80%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ips-qr-placeholder {
  width: 88px;
  height: 88px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, var(--line) 50%, transparent 50%) 0 0 / 8px 8px,
    linear-gradient(var(--line) 50%, transparent 50%) 0 0 / 8px 8px;
  background-color: var(--bg);
}
.checkout-preview__box dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 0.88rem;
}
.checkout-preview__box dt { color: var(--muted); }
.checkout-preview__box dd { margin: 0; font-weight: 600; }
.checkout-result {
  margin-top: 24px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
}
.checkout-result__title { margin: 0 0 12px; font-weight: 700; }
.checkout-result__json {
  margin: 0;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--bg);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--accent-soft);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---- About page ---- */
.about-hero { padding-top: calc(var(--nav-gap) + var(--nav-h) + 48px); }
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}
.about-aside {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: none;
  border-radius: calc(var(--radius-lg) + 2px);
  padding: 28px;
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 0 48px -24px var(--accent-glow);
}
.about-aside dt {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-top: 16px;
}
.about-aside dt:first-child { margin-top: 0; }
.about-aside dd { margin: 4px 0 0; font-weight: 600; }
.values { display: grid; gap: 16px; margin-top: 32px; }
.value-item {
  padding: 20px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  border: none;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
}
.value-item p { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; }

/* ---- CTA band ---- */
.cta-band {
  max-width: var(--max);
  margin: 0 auto 80px;
  padding: 0 24px;
}
.cta-inner {
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: none;
  border-radius: calc(var(--radius-lg) + 6px);
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
  box-shadow:
    inset 0 0 0 1px var(--line-bright),
    0 0 60px -28px var(--accent-glow);
}
.cta-inner h2 { margin-bottom: 12px; }
.cta-inner p { color: var(--muted); margin: 0 auto 28px; max-width: 48ch; }
.cta-inner .actions { justify-content: center; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 24px 40px;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin: 12px 0 0; max-width: 32ch; }
.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent-soft); }
.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--muted-dim);
}

.footer-bottom .lang-switch button.is-active { background: var(--accent); color: var(--bg); }

.section, .hero, .cta-band {
  --scroll-p: 1;
  transform: translateY(calc((1 - var(--scroll-p)) * 18px));
  transition: transform 0.15s linear;
  will-change: transform;
}

/* ---- Premium scroll ---- */
.scroll-section {
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.scroll-section.is-inview {
  opacity: 1;
  transform: none;
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.reveal-scale {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  filter: blur(4px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* Section parallax marker */
[data-parallax] {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Outline accent on section heads */
.section-head h2 {
  position: relative;
}
.outline-word {
  -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 35%, transparent);
  color: transparent;
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale, .reveal-left, .reveal-right,
  .pipe-step, .pipeline-fill, .section, .hero, .cta-band {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
  .pipe-step { opacity: 1; }
  .pipe-step.is-active .pipe-num {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg);
  }
  .pipeline-fill { width: 100% !important; }
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-3, .pricing-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; gap: 24px; }
  .pipeline-track { display: none; }
  .bento-item.span-7,
  .bento-item.span-5,
  .bento-item.span-6,
  .bento-item.span-12 { grid-column: span 12; }
  .about-grid { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .choice-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav__links,
  .nav__end .fx-fill { display: none; }
  .nav__toggle { display: grid; }
  .nav__end { gap: 0; }
}
@media (max-width: 720px) {
  :root { --site-w: calc(100vw - 24px); --nav-h: 64px; }
  .hero { padding-top: calc(var(--nav-gap) + var(--nav-h) + 32px); min-height: auto; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .pipeline { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Premium polish (2026-07) — gradient headline, card hovers, mockup life
   ========================================================================== */

/* naslov: gradient akcenat u drugoj liniji */
h1 em {
  font-style: normal;
  background: linear-gradient(92deg, var(--accent-soft) 0%, var(--accent) 45%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* feature kartice: podizanje + svetlija ivica + sjaj ikonice */
.card {
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-bright);
  background: var(--surface-hover);
  box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(56, 189, 248, 0.08),
    0 0 44px -18px var(--accent-glow);
}
.card:hover .card-icon {
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25), 0 0 22px -6px var(--accent-glow);
}
.card-icon { transition: color 0.35s var(--ease), box-shadow 0.35s var(--ease); }

/* hero mockup: lagano "disanje" + živi progres na aktivnoj mašini */
.hero-panel {
  animation: panel-float 7s ease-in-out infinite;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85), 0 0 60px -24px var(--accent-glow);
}
@keyframes panel-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.machine-progress {
  height: 4px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.machine-progress i {
  display: block;
  height: 100%;
  width: 87%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-deep), var(--run));
  position: relative;
  overflow: hidden;
}
.machine-progress i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: progress-shine 2.6s ease-in-out infinite;
}
@keyframes progress-shine {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* sitni premium detalji */
::selection { background: rgba(56, 189, 248, 0.28); color: var(--txt); }
html { scrollbar-color: #2a3441 transparent; }
body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-thumb { background: #232c38; border-radius: 999px; }
body::-webkit-scrollbar-thumb:hover { background: #2e3947; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-panel { animation: none; }
  .machine-progress i::after { animation: none; }
  .card, .card:hover { transform: none; }
}
