/* VisiO Tech — Website UI kit styles
   Distilled from the production main.css / components.css / blog.css,
   built on top of colors_and_type.css for tokens.
   ========================================================================== */

@import url('colors_and_type.css');

* { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(99,102,241,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 30%, rgba(163,230,53,0.04) 0%, transparent 60%),
    var(--bg-1);
  background-attachment: fixed;
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
/* subtle noise + grid texture overlay across the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 75%, transparent 100%);
}
/* AURORA — three drifting orbs, brand colors only, heavily blurred */
body::after {
  content: '';
  position: fixed;
  inset: -10%;
  background:
    radial-gradient(ellipse 600px 480px at 18% 8%,   rgba(99,102,241,0.16), transparent 55%),
    radial-gradient(ellipse 500px 380px at 82% 22%,  rgba(163,230,53,0.05), transparent 55%),
    radial-gradient(ellipse 700px 500px at 60% 68%,  rgba(79, 70,229,0.10), transparent 55%),
    radial-gradient(ellipse 420px 340px at 10% 95%,  rgba(129,140,248,0.08), transparent 55%);
  filter: blur(50px) saturate(1);
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  animation: aurora-drift 36s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
  0%   { transform: translate(0%, 0%)   scale(1);    }
  50%  { transform: translate(-2.5%, 2%) scale(1.08); }
  100% { transform: translate(2%, -1.5%) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}
main, .site-header, .site-footer { position: relative; z-index: 1; }

/* =================================================================
   AUTOMATION DEMO — side-by-side "Ručně vs S AI" pipeline
   ================================================================= */
.auto-demo {
  max-width: 720px;
  margin: 40px auto 0;
  padding: 18px 22px 16px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,0.10) 0%, transparent 70%),
    var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 60px -20px rgba(99,102,241,0.35);
}
.auto-demo::before {
  content:''; position:absolute; top:0; left:24px; right:24px; height:1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.6), transparent);
}
.auto-demo-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.auto-demo-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--fg-1);
  letter-spacing: -0.01em;
}
.auto-demo-meta {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--fg-3);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.auto-demo-stage {
  display: flex; flex-direction: column; gap: 8px;
}
.auto-demo-foot {
  display: flex; gap: 14px; align-items: center; justify-content: center;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--border-1);
  font-size: 12px; color: var(--fg-3);
}
.auto-demo-foot .dot-sep { width: 3px; height: 3px; border-radius: 9999px; background: var(--border-2); }

/* ----- Lanes ----- */
.lane {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 8px;
  border-radius: 10px;
  position: relative;
}
.lane-manual { background: rgba(255,255,255,0.02); border: 1px dashed var(--border-1); }
.lane-ai     { background: rgba(99,102,241,0.05); border: 1px solid rgba(163,230,53,0.25); }
.lane-ai::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(90deg, transparent, rgba(163,230,53,0.05), transparent);
  border-radius: 10px; pointer-events:none;
  animation: ai-shimmer 4s ease-in-out infinite;
}
@keyframes ai-shimmer {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.lane-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--fg-2);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.lane-tag .lane-tag-icon { display: inline-flex; color: var(--fg-3); }
.lane-tag.ai { color: var(--color-signal-400); }
.lane-tag.ai .lane-tag-icon { color: var(--color-signal-500); filter: drop-shadow(0 0 4px rgba(163,230,53,0.5)); }
.lane-tag-time {
  display: block;
  font-size: 10px; font-weight: 500; color: var(--fg-3);
  letter-spacing: 0;
  margin-top: 2px;
  text-transform: none;
}

/* ----- Track ----- */
.lane-track {
  display: grid;
  grid-template-columns: 36px 1fr 70px;
  gap: 10px;
  align-items: center;
  position: relative;
  height: 44px;
}
.lane-source, .lane-output {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  z-index: 2;
}
.lane-output-rate {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-3);
  font-weight: 600;
}
.lane-output-rate.ai { color: var(--color-signal-400); }

/* The path — visualized as a horizontal line */
.lane-path {
  position: relative;
  height: 44px;
  display: flex; align-items: center;
}
.lane-path::before {
  content:'';
  position: absolute; top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--border-1);
  transform: translateY(-50%);
}
.lane-ai .lane-path::before {
  background: linear-gradient(90deg, rgba(99,102,241,0.4), rgba(163,230,53,0.6), rgba(99,102,241,0.4));
  height: 2px;
  box-shadow: 0 0 8px rgba(163,230,53,0.4);
}

/* Step markers (manual lane shows discrete steps) */
.lane-manual .step {
  position: absolute;
  top: 50%; transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  border-radius: 9999px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
}
.step-0 { left: 20%; }
.step-1 { left: 40%; }
.step-2 { left: 60%; }
.step-3 { left: 80%; }

/* Packets flying along the path */
.packet {
  position: absolute;
  top: 50%; left: 0;
  transform: translate(0, -50%);
  z-index: 1;
}
.packet-manual {
  animation: flow-manual 9s linear infinite;
  opacity: 0.6;
  filter: grayscale(0.5);
}
.packet-ai {
  animation: flow-ai 1.6s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}
@keyframes flow-manual {
  0%   { left: -6%; opacity: 0; }
  6%   { opacity: 0.7; }
  94%  { opacity: 0.7; }
  100% { left: 102%; opacity: 0; }
}
@keyframes flow-ai {
  0%   { left: -6%; opacity: 0; transform: translate(0, -50%) scale(0.8); }
  10%  { opacity: 1; transform: translate(0, -50%) scale(1); }
  90%  { opacity: 1; transform: translate(0, -50%) scale(1); }
  100% { left: 102%; opacity: 0; transform: translate(0, -50%) scale(0.8); }
}

/* AI scanning beam */
.ai-beam {
  position: absolute;
  top: 50%; left: 0; transform: translateY(-50%);
  width: 60px; height: 22px;
  background: linear-gradient(90deg, transparent, rgba(163,230,53,0.35), transparent);
  filter: blur(8px);
  animation: beam 1.6s linear infinite;
  pointer-events: none;
}
@keyframes beam {
  0%   { left: -10%; }
  100% { left: 110%; }
}
.ai-sparkle {
  position: absolute;
  top: -16px; right: 8px;
  color: var(--color-signal-500);
  filter: drop-shadow(0 0 6px rgba(163,230,53,0.6));
  animation: sparkle-pop 1.6s ease-in-out infinite;
}
@keyframes sparkle-pop {
  0%, 100% { opacity: 0.3; transform: scale(0.9) rotate(0deg); }
  50%      { opacity: 1; transform: scale(1.1) rotate(15deg); }
}

@media (prefers-reduced-motion: reduce) {
  .packet, .ai-beam, .ai-sparkle, .lane-ai::after { animation: none; }
}

@media (max-width: 640px) {
  .auto-demo { padding: 14px; }
  .lane { grid-template-columns: 64px 1fr; gap: 10px; }
  .lane-track { grid-template-columns: 28px 1fr 56px; gap: 8px; }
  .lane-tag { font-size: 10px; }
}

img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* ---- Site header ---- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(11, 12, 30, 0.7);
  border-bottom: 1px solid var(--border-1);
  padding: 12px 0;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.site-header::after {
  content:''; position:absolute; bottom:-1px; left:0; right:0; height:1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.4), transparent);
}
.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.site-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700; letter-spacing: -0.025em;
  color: var(--fg-1);
}
.site-brand img { height: 22px; display: none; }
.site-brand .logo-tile {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-800) 100%);
  border: 1px solid var(--color-primary-500);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 0 12px rgba(99,102,241,0.4);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 15px; letter-spacing: -0.04em;
}
.site-brand-meta {
  font-family: var(--font-mono);
  font-size: 9px; color: var(--fg-3);
  letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; align-items: center; gap: 5px;
  line-height: 1;
  margin-top: 2px;
}
.site-brand-meta .pulse {
  width: 4px; height: 4px; border-radius: 9999px;
  background: var(--color-signal-500);
  box-shadow: 0 0 6px var(--color-signal-500);
  /* removed infinite hero-pulse — costed ~1-2fps with constant compositor invalidation */
}
.nav-menu { display: flex; gap: 4px; }
.nav-link {
  padding: 8px 16px; border-radius: 8px;
  font-size: 16px; font-weight: 500; color: var(--fg-2);
  transition: color 150ms, background-color 150ms;
}
.nav-link:hover { color: var(--fg-1); background: var(--bg-elevated); }
.nav-link.active { color: var(--color-primary-400); }
.nav-cta { margin-left: 8px; }
.nav-phone { display: flex; align-items: center; margin-left: 8px; }
.nav-phone-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--fg-2);
  font-variant-numeric: tabular-nums;
  transition: color 150ms, background-color 150ms;
}
.nav-phone-link:hover { color: var(--color-primary-400); background: var(--bg-elevated); }
@media (max-width: 900px) {
  .nav-phone { width: 100%; margin-left: 0; }
  .nav-phone-link { width: 100%; justify-content: center; padding: 12px 16px; font-size: 16px; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 24px;
  font-family: var(--font-sans); font-size: 16px; font-weight: 500;
  line-height: 1.25; border: 1px solid transparent; border-radius: 8px;
  cursor: pointer; min-height: 44px;
  transition: all 150ms ease-in-out;
}
.btn:focus-visible { outline: 2px solid var(--color-primary-500); outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(180deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
  color: #fff;
  border-color: var(--color-primary-600);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 1px 0 0 rgba(0,0,0,0.4),
    0 0 0 1px rgba(99,102,241,0.4),
    0 8px 24px -8px rgba(99,102,241,0.5);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--color-primary-400) 0%, var(--color-primary-500) 100%); }
.btn-primary:active { background: var(--color-primary-700); }
.btn-primary .sparkle { color: var(--color-signal-500); filter: drop-shadow(0 0 4px rgba(163,230,53,0.6)); }
.btn-secondary { background: transparent; color: var(--fg-1); border-color: var(--border-2); }
.btn-secondary:hover { background: var(--bg-elevated); border-color: var(--border-1); }
.btn-ghost { background: transparent; color: var(--fg-2); }
.btn-ghost:hover { background: var(--bg-elevated); color: var(--fg-1); }
.btn-large { padding: 16px 32px; font-size: 18px; min-height: 52px; }
.btn-small { padding: 8px 16px; font-size: 14px; min-height: 36px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Hero ---- */
.hero-section {
  padding: 120px 0 80px;
  text-align: center;
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(99,102,241,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(163,230,53,0.06) 0%, transparent 70%),
    var(--bg-1);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(190, 242, 100, 0.04) 1px, transparent 0),
    linear-gradient(rgba(99,102,241,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.08) 1px, transparent 1px);
  background-size: 24px 24px, 56px 56px, 56px 56px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero-section::after {
  content:''; position:absolute; top:0; left:0; right:0; height:1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.5), transparent);
  pointer-events:none;
}
.hero-content { max-width: 760px; margin: 0 auto; padding: 0 24px; position: relative; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; margin-bottom: 24px;
  background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.35);
  border-radius: 9999px;
  font-size: 13px; color: var(--color-primary-300);
  font-weight: 500;
  backdrop-filter: blur(8px);
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 9999px; background: var(--color-signal-500); box-shadow: 0 0 10px var(--color-signal-500); }
/* hero-pulse keyframes removed — were causing constant repaint */
.hero-title {
  font-size: 64px; font-weight: 700; line-height: 1.05; letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-title .grad {
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-description {
  font-size: 20px; color: var(--fg-2); line-height: 1.5;
  margin: 0 auto 32px; max-width: 600px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-meta {
  margin-top: 32px;
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
  font-size: 13px; color: var(--fg-3);
}
.hero-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta-item svg { color: var(--color-success); }

/* ---- Section header ---- */
.section { padding: 96px 0; position: relative; }
.section--lit { background: var(--bg-2); }
.section--lit::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 100% 50%, rgba(99,102,241,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 30%, rgba(163,230,53,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.section--lit > .container { position: relative; z-index: 1; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-size: 42px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 18px; color: var(--fg-2); max-width: 600px; margin: 0 auto;
}
.section-eyebrow {
  display: inline-block;
  font-size: 13px; color: var(--color-primary-400); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* ---- Calculator ---- */
.calc-card {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: 16px;
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
}
.calc-progress {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px; position: relative; max-width: 520px; margin-left: auto; margin-right: auto;
}
.calc-progress::before {
  content:''; position: absolute; top: 18px; left: 36px; right: 36px;
  height: 2px; background: var(--border-1); z-index: 0;
}
.calc-progress-fill {
  position: absolute; top: 18px; left: 36px; height: 2px; background: var(--color-primary-600); z-index: 0;
  transition: width 300ms ease-in-out;
}
.calc-step-indicator {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.calc-circle {
  width: 36px; height: 36px; border-radius: 9999px;
  background: var(--bg-elevated); border: 1px solid var(--border-1);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-3); font-weight: 600; transition: all 150ms;
}
.calc-circle.active { background: var(--color-primary-600); border-color: var(--color-primary-600); color: #fff; }
.calc-circle.done { background: var(--color-primary-600); border-color: var(--color-primary-600); color: #fff; }
.calc-step-label { font-size: 13px; color: var(--fg-3); }
.calc-step-label.active { color: var(--fg-1); }

.calc-step h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 24px; }

.calc-textarea {
  width: 100%; padding: 16px;
  background: var(--bg-3); border: 1px solid var(--border-1);
  border-radius: 8px; color: var(--fg-1); font-size: 16px;
  resize: vertical; min-height: 120px;
  transition: border-color 150ms, box-shadow 150ms;
}
.calc-textarea:focus { outline: none; border-color: var(--color-primary-500); box-shadow: var(--ring-primary); }
.calc-textarea::placeholder { color: var(--fg-3); }
.calc-hint { display: block; margin-top: 8px; font-size: 13px; color: var(--fg-3); }

.calc-examples-label { font-size: 13px; color: var(--fg-3); margin: 16px 0 10px; display: block; }
.calc-examples { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-pill {
  background: var(--bg-3); border: 1px solid var(--border-1);
  color: var(--fg-2); padding: 8px 14px; border-radius: 9999px;
  font-size: 13px; cursor: pointer; transition: all 150ms;
}
.calc-pill:hover { border-color: var(--color-primary-500); color: var(--fg-1); }

.calc-rate-group { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.calc-rate-input {
  width: 200px; padding: 14px 16px;
  background: var(--bg-3); border: 1px solid var(--border-1);
  border-radius: 8px; color: var(--fg-1); font-size: 20px; font-weight: 600;
  font-family: var(--font-mono);
}
.calc-rate-input:focus { outline: none; border-color: var(--color-primary-500); box-shadow: var(--ring-primary); }
.calc-rate-currency { font-size: 16px; color: var(--fg-3); }

.calc-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; background: var(--border-1); border-radius: 9999px; outline: none;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 9999px;
  background: var(--fg-1); border: 2px solid var(--color-primary-600);
  cursor: pointer;
}
.calc-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 9999px;
  background: var(--fg-1); border: 2px solid var(--color-primary-600);
  cursor: pointer;
}
.calc-slider-labels {
  display: flex; justify-content: space-between; margin-top: 8px;
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-3);
}

.calc-radio-group { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.calc-radio {
  flex: 1; min-width: 120px;
  background: var(--bg-3); border: 1px solid var(--border-1);
  color: var(--fg-2); padding: 14px 16px;
  border-radius: 8px; font: 500 16px var(--font-sans); cursor: pointer;
  display: flex; align-items: center; gap: 10px; transition: all 150ms;
}
.calc-radio:hover { border-color: var(--border-2); color: var(--fg-1); }
.calc-radio.selected { background: rgb(37 99 235 / 0.15); border-color: var(--color-primary-500); color: var(--fg-1); }
.calc-radio-dot {
  width: 18px; height: 18px; border-radius: 9999px; border: 2px solid var(--border-2);
  display: inline-flex; align-items: center; justify-content: center;
}
.calc-radio.selected .calc-radio-dot { border-color: var(--color-primary-500); }
.calc-radio.selected .calc-radio-dot::before {
  content:''; width: 8px; height: 8px; border-radius: 9999px; background: var(--color-primary-500);
}

.calc-hours-group {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-3); border: 1px solid var(--border-1); border-radius: 8px;
  padding: 14px 16px;
}
.calc-hours-group label { font-size: 15px; color: var(--fg-2); }
.calc-hours-group input {
  flex: 1; min-width: 0; background: transparent; border: none; color: var(--fg-1);
  font-size: 18px; font-weight: 600; font-family: var(--font-mono); text-align: right;
}
.calc-hours-group input:focus { outline: none; }

.calc-nav { display: flex; justify-content: space-between; margin-top: 32px; gap: 12px; }

/* Calculator results */
.calc-results {
  background: var(--bg-2); border: 1px solid var(--border-1);
  border-radius: 16px; padding: 40px; max-width: 720px; margin: 0 auto;
}
.calc-results h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 24px; }
.calc-feasibility {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgb(34 197 94 / 0.15); color: var(--color-success);
  padding: 8px 16px; border-radius: 9999px;
  font-size: 14px; font-weight: 500;
  margin-bottom: 12px;
}
.calc-feasibility-explanation { font-size: 15px; color: var(--fg-2); margin-bottom: 24px; line-height: 1.6; }
.calc-cost-breakdown {
  background: var(--bg-3); border: 1px solid var(--border-1);
  border-radius: 10px; padding: 16px; margin-bottom: 24px;
}
.calc-cost-breakdown h4 { font-size: 14px; color: var(--fg-3); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.calc-cost-breakdown p { font-size: 15px; color: var(--fg-2); line-height: 1.5; }
.calc-savings-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px;
}
.calc-savings-item {
  background: var(--bg-3); border: 1px solid var(--border-1); border-radius: 10px;
  padding: 16px; text-align: center;
}
.calc-savings-label { display: block; font-size: 12px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.calc-savings-value { display: block; font-size: 22px; font-weight: 700; color: var(--fg-1); font-family: var(--font-mono); letter-spacing: -0.025em; }
.calc-savings-value.green { color: var(--color-success); }

.calc-pricing { margin-bottom: 28px; }
.calc-pricing h4 { font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.calc-pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-pricing-card {
  background: var(--bg-3); border: 1px solid var(--border-1);
  border-radius: 12px; padding: 20px;
}
.calc-pricing-card.featured { border-color: var(--color-primary-600); }
.calc-pricing-card h5 { font-size: 14px; color: var(--fg-3); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.calc-pricing-value { font-size: 28px; font-weight: 700; color: var(--fg-1); font-family: var(--font-mono); letter-spacing: -0.025em; margin-bottom: 14px; }
.calc-pricing-card ul { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--fg-2); }
.calc-pricing-card li { display: flex; gap: 8px; align-items: flex-start; }
.calc-pricing-card li svg { flex: 0 0 16px; margin-top: 2px; color: var(--color-success); }

.calc-form .calc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.calc-form input[type=text], .calc-form input[type=email], .calc-form input[type=tel] {
  width: 100%; padding: 12px 16px;
  background: var(--bg-3); border: 1px solid var(--border-1); border-radius: 8px;
  color: var(--fg-1); font-size: 15px;
}
.calc-form input:focus { outline: none; border-color: var(--color-primary-500); box-shadow: var(--ring-primary); }
.calc-form .checkbox-row { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 13px; color: var(--fg-2); line-height: 1.5; }
.calc-form input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--color-primary-500); margin-top: 2px; }
.calc-submit-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 20px; }

/* ---- Why us ---- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 64px; }
.stat-card {
  background: var(--bg-2); border: 1px solid var(--border-1);
  border-radius: 12px; padding: 24px; text-align: center;
  transition: transform 150ms, border-color 150ms, box-shadow 150ms;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content:''; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.5), transparent);
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--color-primary-500); box-shadow: var(--shadow-glow); }
.stat-number {
  display: block; font-size: 42px; font-weight: 700; line-height: 1.1; letter-spacing: -0.025em;
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: 8px;
  font-feature-settings: "tnum";
}
.stat-label { font-size: 14px; color: var(--fg-2); }

.tech-stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 64px; }
.tech-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  background: var(--bg-elevated); border: 1px solid var(--border-2);
  border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--fg-2);
  transition: all 150ms;
}
.tech-badge:hover { border-color: var(--color-primary-500); color: var(--fg-1); transform: scale(1.02); }
.tech-badge svg { color: var(--color-primary-400); }

.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 800px; margin: 0 auto; }
.industry-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--border-1); border-radius: 12px;
  padding: 24px 16px; text-align: center;
  transition: border-color 150ms;
}
.industry-card:hover { border-color: var(--color-primary-600); }
.industry-card svg { color: var(--color-primary-400); }
.industry-card .label { font-size: 14px; font-weight: 500; color: var(--fg-2); }

.subsection-title { font-size: 22px; font-weight: 600; text-align: center; margin-bottom: 32px; color: var(--fg-1); }

/* ---- Testimonials ---- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testimonial-card {
  background: var(--bg-2); border: 1px solid var(--border-1);
  border-radius: 12px; padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color 150ms;
}
.testimonial-card:hover { border-color: var(--color-primary-600); }
.testimonial-quote { font-size: 15px; line-height: 1.6; color: var(--fg-1); }
.testimonial-quote::before { content: '"'; font-size: 32px; color: var(--color-primary-400); line-height: 0; }
.testimonial-footer { display: flex; gap: 12px; align-items: center; }
.testimonial-avatar { width: 36px; height: 36px; border-radius: 9999px; background: var(--bg-elevated); border: 1px solid var(--border-1); display: flex; align-items: center; justify-content: center; color: var(--color-primary-400); font-weight: 600; font-size: 14px; }
.testimonial-author { display: block; font-size: 14px; font-weight: 500; color: var(--fg-1); }
.testimonial-company { display: block; font-size: 13px; color: var(--fg-3); }

/* ---- Case studies ---- */
.case-studies-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.case-card {
  background: var(--bg-2); border: 1px solid var(--border-1);
  border-radius: 16px; padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
  transition: border-color 150ms, transform 150ms;
}
.case-card:hover { border-color: var(--color-primary-600); transform: translateY(-2px); }
.case-industry-badge {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  background: rgb(37 99 235 / 0.15); color: var(--color-primary-400);
  padding: 4px 12px; border-radius: 9999px;
  font-size: 12px; font-weight: 500;
}
.case-section .case-label {
  display: block; font-size: 12px; color: var(--fg-3);
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; margin-bottom: 6px;
}
.case-section p { font-size: 14px; color: var(--fg-2); line-height: 1.6; }
.case-results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.case-result {
  background: var(--bg-3); border: 1px solid var(--border-1);
  border-radius: 10px; padding: 14px 10px; text-align: center;
}
.case-result-icon { color: var(--color-primary-400); display: flex; justify-content: center; margin-bottom: 6px; }
.case-result-value { display: block; font-size: 18px; font-weight: 700; color: var(--fg-1); letter-spacing: -0.025em; font-family: var(--font-mono); }
.case-result-desc { display: block; font-size: 11px; color: var(--fg-3); line-height: 1.3; margin-top: 4px; }

/* ---- Timeline ---- */
.timeline { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; position: relative; padding-left: 8px; }
.timeline::before { content:''; position: absolute; left: 25px; top: 28px; bottom: 28px; width: 2px; background: var(--border-1); }
.timeline-step { display: flex; gap: 24px; align-items: flex-start; position: relative; }
.timeline-num {
  flex: 0 0 52px; height: 52px;
  background: var(--bg-2); border: 1px solid var(--color-primary-600); border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary-400); font-size: 18px; font-weight: 700;
  font-family: var(--font-mono); position: relative; z-index: 1;
  box-shadow: 0 0 0 4px var(--bg-1);
}
.timeline-content { flex: 1; padding-top: 4px; }
.timeline-content h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.timeline-content h3 svg { color: var(--color-primary-400); }
.timeline-content p { font-size: 15px; color: var(--fg-2); line-height: 1.5; margin-bottom: 8px; }
.timeline-duration { font-size: 12px; color: var(--fg-3); font-family: var(--font-mono); }

/* ---- FAQ ---- */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-2); border: 1px solid var(--border-1);
  border-radius: 12px; overflow: hidden;
  transition: border-color 150ms;
}
.faq-item.open { border-color: var(--color-primary-600); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; background: transparent; border: none; color: var(--fg-1);
  padding: 18px 22px; cursor: pointer; text-align: left;
  font-size: 16px; font-weight: 500;
}
.faq-question svg { transition: transform 200ms; flex: 0 0 20px; color: var(--fg-3); }
.faq-item.open .faq-question svg { transform: rotate(45deg); color: var(--color-primary-400); }
.faq-answer { padding: 0 22px 20px; font-size: 14px; color: var(--fg-2); line-height: 1.65; }

/* ---- Trust signals row ---- */
.trust-signals {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  margin-top: 24px;
}
.trust-signal { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-3); }
.trust-signal svg { color: var(--color-success); flex: 0 0 16px; }

/* ---- Footer ---- */
.site-footer {
  padding: 64px 0 24px;
  border-top: 1px solid var(--border-1);
  background: var(--bg-2);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.footer-brand-col p { font-size: 14px; color: var(--fg-3); line-height: 1.6; margin: 12px 0 24px; max-width: 320px; }
.footer-brand-col h4, .footer-nav-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; color: var(--fg-1); }
.footer-nav-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-col a { font-size: 14px; color: var(--fg-2); transition: color 150ms; }
.footer-nav-col a:hover { color: var(--color-primary-400); }
.social-links { display: flex; gap: 10px; }
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: var(--bg-elevated); border-radius: 8px;
  color: var(--fg-2); transition: all 150ms;
}
.social-link:hover { background: var(--color-primary-600); color: var(--fg-1); }
.footer-bottom {
  max-width: 1200px; margin: 32px auto 0; padding: 24px 24px 0;
  border-top: 1px solid var(--border-1);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--fg-3);
}
.tech-badges-small { display: flex; gap: 8px; flex-wrap: wrap; }
.tech-badge-small {
  padding: 4px 10px; background: var(--bg-elevated); border: 1px solid var(--border-1);
  border-radius: 6px; font-size: 11px; color: var(--fg-3); font-family: var(--font-mono);
}

/* ---- Mobile menu toggle (always present, only visible <900px) ---- */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-1);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  color: var(--fg-1);
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, border-color 200ms ease;
}
.mobile-menu-toggle:hover { background: var(--bg-elevated); border-color: var(--color-signal-400); }
.mobile-menu-toggle:focus-visible { outline: 3px solid var(--color-signal-400); outline-offset: 2px; }
.mobile-menu-toggle svg { display: block; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .mobile-menu-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 16px;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border-1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    z-index: 199;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu .nav-link {
    display: block;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 16px;
  }
  .nav-menu .nav-link::after { display: none; } /* underline doesn't fit stacked layout */
  .nav-menu .nav-cta { margin-left: 0; margin-top: 8px; }
  .nav-menu .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-menu .nav-theme { margin-top: 4px; align-self: flex-end; }
  .hero-title { font-size: 44px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .case-studies-grid { grid-template-columns: 1fr; }
  .case-results { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-savings-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
  .calc-card, .calc-results { padding: 24px; }
  .section { padding: 64px 0; }
}

/* === Hero grid (2-column on desktop) === */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }
  .hero-content {
    text-align: left;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .hero-cta {
    justify-content: flex-start;
  }
  .hero-meta {
    justify-content: flex-start;
  }
  .hero-description {
    margin: 0 0 32px;
  }
}

.hero-visual {
  display: flex;
  justify-content: center;
}

/* === Terminal visual === */
.terminal-visual {
  width: 100%;
  max-width: 480px;
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.5);
  font-family: var(--font-mono);
  font-size: 14px;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border-1);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.terminal-dot--red    { background: #ff5f56; }
.terminal-dot--yellow { background: #ffbd2e; }
.terminal-dot--green  { background: #27c93f; }

.terminal-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.terminal-line {
  display: flex;
  gap: 8px;
  color: var(--fg-2);
  margin-bottom: 6px;
}

.terminal-prompt {
  color: var(--color-signal-400);
}

.terminal-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--fg-2);
  font-size: 13px;
}

.terminal-row--result {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-1);
  font-size: 14px;
}

.terminal-label  { color: var(--fg-3); }
.terminal-value  { color: var(--fg-1); font-weight: 600; }
.terminal-value--accent { color: var(--color-signal-400); }

.terminal-bar {
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}

.terminal-bar-fill {
  height: 100%;
  background: var(--color-signal-400);
  border-radius: 3px;
  transition: width 1.2s ease-out;
}

.terminal-bar--manual .terminal-bar-fill {
  background: linear-gradient(90deg, #ef4444, #f97316);
}

@media (prefers-reduced-motion: reduce) {
  .terminal-bar-fill {
    transition: none;
  }
}

/* === Primary CTA: lime accent (overrides purple gradient) === */
.btn-primary {
  background: var(--color-signal-400);
  color: var(--bg-1);
  border: 1px solid var(--color-signal-400);
  background-image: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 8px 24px -8px rgba(190, 242, 100, 0.4);
}

.btn-primary:hover {
  background: var(--color-signal-300);
  border-color: var(--color-signal-300);
  background-image: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 12px 32px -8px rgba(190, 242, 100, 0.5);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--color-signal-400);
  outline-offset: 2px;
}

.btn-primary:active {
  transform: translateY(1px);
}

/* === Services (Co umíme) === */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: border-color 200ms ease, transform 200ms ease;
  font: inherit;
  color: inherit;
}

.service-card:hover {
  border-color: var(--color-signal-400);
  transform: translateY(-2px);
}

.service-card:focus-visible {
  outline: 3px solid var(--color-signal-400);
  outline-offset: 2px;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-signal-400) 10%, transparent);
  color: var(--color-signal-400);
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--fg-1);
}

.service-description {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-2);
  margin: 0 0 12px;
}

.service-example {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-3);
  margin: 0 0 16px;
  font-style: italic;
}

.service-cta {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-signal-400);
}

@media (prefers-reduced-motion: reduce) {
  .service-card { transition: none; }
  .service-card:hover { transform: none; }
}

/* === Live reference === */
.reference-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  border-radius: 16px;
  padding: 32px;
  margin-top: 32px;
}

@media (min-width: 1024px) {
  .reference-card {
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    padding: 40px;
  }
}

.reference-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--border-1);
}

.reference-text h3 {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-signal-400);
  margin: 0 0 16px;
}

.reference-text p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-2);
  margin: 0 0 16px;
}

.reference-quote {
  font-style: italic;
  color: var(--fg-1);
  border-left: 3px solid var(--color-signal-400);
  padding-left: 16px;
  margin: 24px 0;
}

/* Placeholder browser-style preview (until real screenshot is available) */
.reference-placeholder {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--font-mono);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.5);
}

.reference-placeholder-browser {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border-1);
  font-size: 12px;
  color: var(--fg-3);
}

.reference-placeholder-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.reference-placeholder-url {
  margin-left: 12px;
  letter-spacing: 0.04em;
}

.reference-placeholder-body {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13px;
  color: var(--fg-2);
}

.reference-placeholder-label {
  color: var(--color-signal-400);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.reference-placeholder-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed var(--border-1);
  border-radius: 8px;
}

.reference-placeholder-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.reference-placeholder-row span:first-child {
  color: var(--fg-3);
}

.reference-placeholder-value {
  color: var(--fg-1);
  font-weight: 600;
}

.reference-placeholder-value--accent {
  color: var(--color-signal-400);
}

.reference-placeholder-status {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-1);
  color: var(--color-signal-400);
  font-size: 12px;
}

/* === Scroll fade-in animation === */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.fade-in-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-on-scroll,
  .fade-in-on-scroll.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* === Calculator analysis area (streamed LLM response) === */
.calc-analysis {
  margin: 16px 0 24px;
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  min-height: 80px;
}

.calc-analysis-text { white-space: pre-wrap; margin: 0; }
.calc-analysis-error { color: #f87171; margin: 0; }

.calc-cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--color-signal-400);
  animation: calc-cursor-blink 1s steps(2, start) infinite;
}

@keyframes calc-cursor-blink {
  to { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .calc-cursor { animation: none; }
}

.calc-form-success {
  background: var(--bg-3);
  border: 1px solid var(--color-signal-400);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.calc-form-success h4 {
  margin: 0;
  color: var(--color-signal-400);
  font-size: 18px;
}

/* === New pricing offer card (replaces 2-column SaaS vs One-time) === */
.calc-offer {
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  border-radius: 14px;
  padding: 24px 26px;
  margin-bottom: 18px;
}
html[data-theme="light"] .calc-offer {
  background: var(--bg-1);
  box-shadow: 0 4px 16px -4px rgba(99, 102, 241, 0.1);
}

.calc-offer-header { margin-bottom: 18px; }
.calc-offer-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-signal-400);
  letter-spacing: 0.12em;
}
html[data-theme="light"] .calc-offer-eyebrow { color: var(--color-signal-600); }

.calc-offer-header h4 {
  margin: 6px 0 6px;
  font-size: 19px;
  font-weight: 700;
  color: var(--fg-1);
}
.calc-offer-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-3);
}

.calc-offer-pricing {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
}
.calc-offer-row { display: flex; flex-direction: column; gap: 4px; }
.calc-offer-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.calc-offer-label { font-size: 15px; color: var(--fg-2); font-weight: 500; }
.calc-offer-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--fg-1);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.calc-offer-value--small { font-size: 19px; }
.calc-offer-value--total {
  font-size: 26px;
  color: var(--color-signal-400);
}
html[data-theme="light"] .calc-offer-value--total { color: var(--color-signal-600); }
.calc-offer-period { font-size: 13px; color: var(--fg-3); font-weight: 500; margin-left: 4px; font-family: var(--font-sans); }
.calc-offer-hint { font-size: 12px; color: var(--fg-3); line-height: 1.4; }
.calc-offer-divider { height: 1px; background: var(--border-1); margin: 4px 0; }

/* === ROI block — new variant with recommendation warning === */
.calc-roi {
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 24px;
}
html[data-theme="light"] .calc-roi {
  background: var(--bg-1);
  box-shadow: 0 2px 8px -2px rgba(99, 102, 241, 0.08);
}
.calc-roi--warning {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.05);
}
html[data-theme="light"] .calc-roi--warning {
  background: rgba(245, 158, 11, 0.08);
}

.calc-roi-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}
.calc-roi-label {
  font-size: 13px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.calc-roi-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-success-500);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.calc-roi--warning .calc-roi-value {
  color: #f59e0b;
}

.calc-roi-bar {
  position: relative;
  height: 8px;
  background: var(--border-1);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.calc-roi-bar-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-success-500) 0%, var(--color-success-600) 100%);
  border-radius: 9999px;
  transition: width 600ms var(--ease-out-smooth);
}
.calc-roi-note {
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.55;
  margin: 0;
}

.calc-roi-tagline {
  margin: 14px 0 0;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(190, 242, 100, 0.08) 0%, rgba(99, 102, 241, 0.06) 100%);
  border-left: 3px solid var(--color-signal-400);
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-1);
  font-weight: 500;
}
html[data-theme="light"] .calc-roi-tagline {
  background: linear-gradient(135deg, rgba(132, 204, 22, 0.12) 0%, rgba(99, 102, 241, 0.08) 100%);
  border-left-color: var(--color-signal-500);
}
.calc-roi-tagline b {
  color: var(--color-signal-400);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
html[data-theme="light"] .calc-roi-tagline b {
  color: var(--color-signal-600);
}

/* === Clarifications panel — second round refinement === */
.calc-refined-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 16px;
  background: rgba(190, 242, 100, 0.12);
  border: 1px solid rgba(190, 242, 100, 0.3);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-signal-400);
}
html[data-theme="light"] .calc-refined-badge {
  background: rgba(132, 204, 22, 0.16);
  border-color: rgba(132, 204, 22, 0.4);
  color: var(--color-signal-600);
}

.calc-clarify {
  margin: 24px 0;
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 200ms var(--ease-out-smooth), box-shadow 200ms var(--ease-out-smooth);
}
html[data-theme="light"] .calc-clarify {
  background: var(--bg-1);
  box-shadow: 0 2px 8px -2px rgba(99, 102, 241, 0.08);
}
.calc-clarify:hover {
  border-color: var(--color-primary-500);
}
html[data-theme="light"] .calc-clarify:hover {
  border-color: var(--color-primary-600);
}

.calc-clarify-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  color: inherit;
  transition: background-color 200ms var(--ease-out-smooth);
}
.calc-clarify-toggle:hover { background: var(--bg-elevated); }
.calc-clarify-toggle:focus-visible {
  outline: 3px solid var(--color-primary-500);
  outline-offset: -3px;
}

.calc-clarify-toggle-content { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.calc-clarify-toggle-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-signal-400);
  letter-spacing: 0.12em;
}
html[data-theme="light"] .calc-clarify-toggle-eyebrow { color: var(--color-signal-600); }
.calc-clarify-toggle-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg-1);
  line-height: 1.35;
}
.calc-clarify-toggle-sub {
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.4;
}

.calc-clarify-toggle-arrow {
  font-size: 28px;
  font-weight: 300;
  color: var(--color-signal-400);
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(190, 242, 100, 0.08);
  flex-shrink: 0;
  transition: transform 250ms var(--ease-out-smooth), background 200ms var(--ease-out-smooth);
}
html[data-theme="light"] .calc-clarify-toggle-arrow {
  background: rgba(132, 204, 22, 0.14);
  color: var(--color-signal-600);
}

.calc-clarify-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 22px 22px;
  border-top: 1px dashed var(--border-1);
  animation: clarify-expand 280ms var(--ease-out-smooth);
}
@keyframes clarify-expand {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.calc-clarify-field { display: flex; flex-direction: column; gap: 6px; }
.calc-clarify-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-1);
  line-height: 1.4;
}
.calc-clarify-field input {
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: 8px;
  color: var(--fg-1);
  font-size: 14px;
  transition: border-color 200ms var(--ease-out-smooth), background 200ms var(--ease-out-smooth);
}
html[data-theme="light"] .calc-clarify-field input {
  background: var(--bg-2);
  border-color: var(--border-1);
}
.calc-clarify-field input:focus {
  outline: none;
  border-color: var(--color-primary-500);
  background: var(--bg-1);
}
html[data-theme="light"] .calc-clarify-field input:focus {
  border-color: var(--color-primary-600);
  background: var(--bg-1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.calc-clarify-field input::placeholder { color: var(--fg-3); }

.calc-clarify-submit-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 6px;
}
.calc-clarify-hint {
  font-size: 12px;
  color: var(--fg-3);
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .calc-clarify-form { animation: none; }
  .calc-clarify-toggle-arrow { transition: none; }
}

/* === Hero pain blocks (scannable Q+A list) === */
.hero-pains {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-pain {
  position: relative;
  padding-left: 18px;
  border-left: 3px solid var(--color-signal-400);
  line-height: 1.45;
}

.hero-pain-q {
  display: block;
  color: var(--fg-1);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  line-height: 1.3;
}

.hero-pain-a {
  display: block;
  color: var(--fg-3);
  font-size: 14px;
  line-height: 1.55;
}

.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 8px 14px;
  background: rgba(190, 242, 100, 0.08);
  border: 1px solid rgba(190, 242, 100, 0.2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-2);
  letter-spacing: 0.01em;
}

.hero-trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-signal-400);
  box-shadow: 0 0 0 3px rgba(190, 242, 100, 0.2);
  /* removed infinite trust-pulse animation — was costing ~1-2fps when idle */
}

/* === Terminal cycling animation + pager === */
.terminal-body {
  animation: terminal-scenario-in 500ms ease-out;
}

@keyframes terminal-scenario-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.terminal-body .terminal-bar-fill {
  animation: terminal-bar-grow 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: left center;
}

@keyframes terminal-bar-grow {
  from { transform: scaleX(0.02); }
  to   { transform: scaleX(1); }
}

.terminal-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 14px 0 16px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border-1);
}

.terminal-pager-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 300ms ease, width 300ms ease, border-radius 300ms ease;
}

.terminal-pager-dot:hover {
  background: rgba(190, 242, 100, 0.5);
}

.terminal-pager-dot--active {
  background: var(--color-signal-400);
  width: 22px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .terminal-body { animation: none; }
  .terminal-body .terminal-bar-fill { animation: none; }
  .terminal-pager-dot { transition: none; }
}

/* === Email scenario styles === */
.terminal-mail {
  padding: 10px 12px;
  margin: 4px 0 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-1);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.terminal-draft-label {
  font-size: 11px;
  color: var(--color-signal-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
  margin-bottom: 6px;
}

.terminal-draft {
  padding: 10px 12px;
  margin: 0 0 8px;
  background: rgba(190, 242, 100, 0.05);
  border-left: 2px solid var(--color-signal-400);
  border-radius: 0 6px 6px 0;
  color: var(--fg-1);
  font-style: italic;
  font-size: 12.5px;
  line-height: 1.5;
  min-height: 60px;
}

.terminal-typecursor {
  display: inline-block;
  margin-left: 1px;
  color: var(--color-signal-400);
  font-style: normal;
  animation: terminal-cursor-blink 1s steps(2, start) infinite;
}

@keyframes terminal-cursor-blink {
  to { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .terminal-typecursor { animation: none; }
}

/* ==========================================================================
   GLOBAL SMOOTHNESS + MICRO-INTERACTIONS LAYER
   Premium B2B feel: colored shadows, spring physics, smooth theme transitions.
   Always respects prefers-reduced-motion.
   ========================================================================== */

/* === Footer company address (impressum) === */
.footer-company {
  margin-top: 18px;
  font-style: normal;
  font-size: 13px;
  line-height: 1.65;
  color: var(--fg-3);
  padding-top: 14px;
  border-top: 1px dashed var(--border-1);
}
.footer-company strong { color: var(--fg-1); }
.footer-company-ids {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-3);
}

/* === Contact form labeled field group (a11y) === */
.calc-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.calc-field-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-2);
  letter-spacing: 0.02em;
}
.calc-field-group label span[aria-hidden] {
  color: #f87171;
  margin-left: 2px;
}
.calc-field-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  border-radius: 8px;
  color: var(--fg-1);
  font-size: 15px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.calc-field-group input:focus {
  outline: none;
  border-color: var(--color-signal-400);
  box-shadow: 0 0 0 3px rgba(190, 242, 100, 0.18);
}
html[data-theme="light"] .calc-field-group input {
  background: var(--bg-1);
  border-color: var(--border-1);
}
html[data-theme="light"] .calc-field-group input:focus {
  border-color: var(--color-primary-600);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

/* Ensure hours input also has visible focus (was outline: none with no replacement) */
.calc-hours-group input:focus {
  outline: none;
  border-color: var(--color-signal-400);
  box-shadow: 0 0 0 3px rgba(190, 242, 100, 0.18);
}

/* === Visually hidden but available to screen readers + skip-link reveal === */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.sr-only:focus,
.sr-only:focus-visible {
  position: fixed !important;
  top: 12px !important;
  left: 12px !important;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  margin: 0 !important;
  padding: 12px 20px !important;
  background: var(--bg-1) !important;
  color: var(--fg-1) !important;
  border: 2px solid var(--color-signal-400) !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  z-index: 99999 !important;
  white-space: nowrap !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Smooth scroll on anchor navigation — custom JS in animations.js handles nav clicks */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;  /* offset for sticky header */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* === GPU layer hints — 120Hz+ ready === */
.btn,
.service-card,
.terminal-visual,
.hero-pain,
.calc-card,
.faq-item,
.reference-card,
.theme-toggle,
.terminal-bar-fill {
  transform: translateZ(0);
  backface-visibility: hidden;
}

.btn:hover,
.service-card:hover,
.terminal-visual:hover,
.hero-pain:hover,
.theme-toggle:hover {
  will-change: transform, box-shadow;
}

/* === Paint/layout containment — isolates repaint to component boundary ===
   Critical for 120Hz: lets browser skip repainting siblings when one card updates */
.service-card,
.faq-item,
.calc-card,
.reference-card,
.hero-trust,
.terminal-visual,
.timeline-step {
  contain: layout style paint;
}

.section--lit::before,
.hero-section::before {
  contain: strict;  /* decorative bg layers don't affect anything else */
}

/* === Skip rendering off-screen sections === */
/* Chrome/Edge native optimization: don't render below-fold sections until scrolled near.
   Massive perf win when there's a lot of content below the hero. */
#services,
#reference,
#calculator,
#how,
#faq,
#contact,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;  /* reserve approx space to prevent scroll jump */
}

/* === Lighter backdrop blur — was 14px (expensive on 120Hz scroll) === */
.site-header {
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
}

/* === Smaller shadow blur radius — was 20-50px, now 12-32px === */
.terminal-visual {
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.4);
}
html[data-theme="light"] .terminal-visual {
  box-shadow: 0 12px 28px -12px rgba(15, 23, 42, 0.25);
}

/* === Section arrival highlight — brief lime ring on scroll target === */
.section-arrived {
  animation: section-arrival 1400ms var(--ease-out-smooth) both;
}
@keyframes section-arrival {
  0%   { box-shadow: 0 0 0 0   rgba(190, 242, 100, 0.45) inset; }
  30%  { box-shadow: 0 0 0 4px rgba(190, 242, 100, 0.18) inset; }
  100% { box-shadow: 0 0 0 0   rgba(190, 242, 100, 0)    inset; }
}
@media (prefers-reduced-motion: reduce) {
  .section-arrived { animation: none; }
}

/* Smooth theme color transitions on theme toggle */
body,
.site-header,
.site-footer,
.calc-card,
.calc-textarea,
.calc-rate-input,
.calc-pill,
.calc-radio,
.calc-savings-item,
.calc-cost-breakdown,
.calc-pricing-card,
.service-card,
.faq-item,
.reference-card,
.btn,
.hero-trust,
.terminal-visual,
.theme-toggle,
.nav-link,
.social-link,
.tech-badge-small {
  transition:
    background-color 320ms var(--ease-out-smooth),
    border-color    320ms var(--ease-out-smooth),
    color           320ms var(--ease-out-smooth);
}

/* === Sticky header — gain shadow on scroll (set via JS in animations.js) === */
.site-header.scrolled {
  box-shadow: 0 4px 24px -8px rgba(15, 23, 42, 0.08);
}
html[data-theme="dark"] .site-header.scrolled {
  box-shadow: 0 4px 24px -8px rgba(0, 0, 0, 0.4);
}

/* === Button smooth press feedback (spring) === */
.btn {
  transition:
    transform 220ms var(--ease-out-spring),
    box-shadow 220ms var(--ease-out-smooth),
    background-color 200ms var(--ease-out-smooth),
    color 200ms var(--ease-out-smooth),
    border-color 200ms var(--ease-out-smooth);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 80ms, 80ms, 80ms, 80ms, 80ms;
}

/* Lime CTA: premium colored shadow */
.btn-primary {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    var(--shadow-cta-lime);
}
.btn-primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    var(--shadow-cta-lime-hover);
}

/* === Service card hover: premium spring lift + colored shadow === */
.service-card {
  transition:
    transform 320ms var(--ease-out-smooth),
    box-shadow 320ms var(--ease-out-smooth),
    border-color 200ms var(--ease-out-smooth),
    background-color 320ms var(--ease-out-smooth);
}
.service-card:hover {
  transform: translateY(-4px);
}
.service-card:active {
  transform: translateY(-1px) scale(0.99);
  transition-duration: 100ms;
}
html[data-theme="light"] .service-card {
  box-shadow: var(--shadow-card-light);
}
html[data-theme="light"] .service-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-signal-500);
}

/* === Stagger reveal — service cards cascade in === */
.fade-in-on-scroll.is-visible .services-grid .service-card {
  animation: card-stagger 600ms var(--ease-out-smooth) both;
}
.fade-in-on-scroll.is-visible .services-grid .service-card:nth-child(1) { animation-delay: 0ms; }
.fade-in-on-scroll.is-visible .services-grid .service-card:nth-child(2) { animation-delay: 80ms; }
.fade-in-on-scroll.is-visible .services-grid .service-card:nth-child(3) { animation-delay: 160ms; }
.fade-in-on-scroll.is-visible .services-grid .service-card:nth-child(4) { animation-delay: 240ms; }

@keyframes card-stagger {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === Calculator card: smooth lift on focus-within === */
.calc-card {
  transition:
    box-shadow 320ms var(--ease-out-smooth),
    border-color 200ms var(--ease-out-smooth),
    background-color 320ms var(--ease-out-smooth);
}
html[data-theme="light"] .calc-card {
  box-shadow: var(--shadow-card-light);
}
html[data-theme="light"] .calc-card:focus-within {
  box-shadow: 0 12px 32px -8px rgba(99, 102, 241, 0.15);
  border-color: var(--color-primary-600);
}

/* === FAQ items: smooth hover + open === */
.faq-item {
  transition:
    border-color 200ms var(--ease-out-smooth),
    box-shadow 200ms var(--ease-out-smooth);
}
html[data-theme="light"] .faq-item:hover {
  border-color: var(--border-2);
  box-shadow: 0 4px 12px -4px rgba(99, 102, 241, 0.10);
}
.faq-answer {
  animation: faq-expand 280ms var(--ease-out-smooth);
}
@keyframes faq-expand {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === Nav links: smooth underline on hover === */
.nav-link {
  position: relative;
  transition: color 200ms var(--ease-out-smooth), background 200ms var(--ease-out-smooth);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  height: 2px;
  width: 0;
  background: var(--color-signal-500);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width 250ms var(--ease-out-smooth);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: calc(100% - 32px);
}
.nav-link:hover { background: transparent; }

/* === Trust pill: smoother breathe === */
.hero-trust { transition: background 250ms var(--ease-out-smooth), border-color 250ms var(--ease-out-smooth); }
.hero-trust:hover {
  background: rgba(190, 242, 100, 0.14);
}
html[data-theme="light"] .hero-trust:hover {
  background: rgba(190, 242, 100, 0.28);
}

/* === Terminal: enhanced fade between scenarios with slight scale === */
.terminal-body {
  animation: terminal-scenario-in 480ms var(--ease-out-smooth);
}
@keyframes terminal-scenario-in {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* === Terminal: subtle hover lift === */
.terminal-visual {
  transition:
    transform 400ms var(--ease-out-smooth),
    box-shadow 400ms var(--ease-out-smooth);
}
.terminal-visual:hover {
  transform: translateY(-2px);
}

/* === Hero pain blocks: subtle hover === */
.hero-pain {
  transition: transform 250ms var(--ease-out-smooth);
}
.hero-pain:hover {
  transform: translateX(4px);
}

/* === Hero reveal sequence on load (only first paint) === */
.hero-section .hero-eyebrow { animation: hero-pop 600ms var(--ease-out-spring) both; }
.hero-section .hero-title    { animation: hero-pop 700ms var(--ease-out-smooth) 80ms both; }
.hero-section .hero-pains    { animation: hero-pop 700ms var(--ease-out-smooth) 200ms both; }
.hero-section .hero-trust    { animation: hero-pop 600ms var(--ease-out-smooth) 320ms both; }
.hero-section .hero-cta      { animation: hero-pop 600ms var(--ease-out-smooth) 380ms both; }
.hero-section .hero-meta     { animation: hero-pop 600ms var(--ease-out-smooth) 440ms both; }
.hero-section .hero-visual   { animation: hero-pop 800ms var(--ease-out-smooth) 280ms both; }

@keyframes hero-pop {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === Cursor blink — smoother === */
@keyframes calc-cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@keyframes terminal-cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* === Card hover state for reference card (light shadow upgrade) === */
html[data-theme="light"] .reference-card {
  transition: box-shadow 300ms var(--ease-out-smooth), transform 300ms var(--ease-out-smooth);
}
html[data-theme="light"] .reference-card:hover {
  box-shadow: 0 16px 40px -10px rgba(99, 102, 241, 0.18);
}

/* === Comprehensive reduced-motion === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-pain:hover,
  .service-card:hover,
  .btn:hover,
  .terminal-visual:hover { transform: none; }
}
