/* =========================================================
   Honza Kaše — personal portfolio
   White base · navy accent · Geist + Geist Mono
   ========================================================= */

:root {
  /* surfaces */
  --bg:           #ffffff;
  --bg-soft:      #f7f8fa;
  --bg-dark:      #0a1430;
  --bg-dark-2:    #0f1c40;

  /* ink */
  --ink:          #0a1430;
  --ink-2:        #2a3658;
  --ink-3:        #4d597a;
  --muted:        #6c7896;
  --muted-2:      #9ba4b8;

  /* dividers */
  --rule:         #e7eaf0;
  --rule-strong:  #c9cfdb;

  /* accent — royal navy with vibrant hover */
  --accent:       #2950b8;
  --accent-2:     #3a64d6;
  --accent-soft:  #eef1fc;
  --accent-glow:  rgba(41, 80, 184, 0.22);

  /* shadows */
  --shadow-sm:    0 1px 2px rgba(10,20,48,0.04), 0 4px 12px -4px rgba(10,20,48,0.06);
  --shadow-md:    0 1px 3px rgba(10,20,48,0.06), 0 12px 28px -10px rgba(10,20,48,0.14);
  --shadow-lg:    0 4px 8px rgba(10,20,48,0.06), 0 28px 60px -20px rgba(10,20,48,0.22);
  --shadow-photo: 0 8px 20px rgba(10,20,48,0.08), 0 40px 80px -28px rgba(10,20,48,0.28);

  /* easings */
  --ease:         cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);

  /* spacing tokens — single source of truth for module padding/margins */
  --space-section-pad:  120px;   /* top + bottom of section */
  --space-block:        72px;    /* between section header and content */
  --space-card-pad:     40px;    /* internal card padding */
  --space-card-pad-y:   44px;    /* vertical card padding */
  --space-stack-lg:     28px;
  --space-stack-md:     20px;
  --space-stack-sm:     12px;

  /* container padding */
  --pad-container:      64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body {
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.005em;
}
::selection { background: var(--accent); color: #fff; }

/* ---- inline logo (Next Vision wordmark) ---- */
.logo-nv {
  height: 0.9em;
  width: auto;
  vertical-align: -0.13em;
  display: inline-block;
}

/* ---- type utilities ---- */
.mono {
  font-family: "Geist Mono", ui-monospace, "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* default link */
a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 1px;
  transition: background-size 0.45s var(--ease), color 0.25s ease;
}
a:hover { background-size: 100% 1px; color: var(--accent); }
a.no-underline,
.navlinks a, .navcta a, .btn, .brand,
.tool-card, .scroll-cue { background-image: none; padding-bottom: 0; }

/* ---- shell ---- */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad-container); }
section { padding: var(--space-section-pad) 0; position: relative; }
/* fix: when section has .wrap class, restore vertical padding (.wrap class would otherwise override) */
section.wrap {
  padding: var(--space-section-pad) var(--pad-container);
}
section + section { border-top: 1px solid var(--rule); }
section.dark + section, section + section.dark { border-top: 0; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--rule);
  box-shadow: 0 8px 32px -20px rgba(10,20,48,0.18);
}
.nav-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 22px 64px;
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  transition: padding 0.3s var(--ease);
}
.nav.scrolled .nav-inner { padding-top: 16px; padding-bottom: 16px; }

.brand {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.025em;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink);
  transition: color 0.25s ease;
}
.brand:hover { color: var(--accent); }
.brand .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  transition: transform 0.4s var(--ease-spring), background 0.25s ease, box-shadow 0.4s var(--ease);
}
.brand:hover .dot {
  transform: scale(1.5);
  background: var(--accent-2);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.navlinks { display: flex; gap: 36px; font-size: 14.5px; color: var(--muted); }
.navlinks a {
  position: relative;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 4px 0;
  transition: color 0.25s ease;
}
.navlinks a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease-out);
}
.navlinks a:hover { color: var(--ink); }
.navlinks a:hover::after { transform: scaleX(1); }

.navcta a {
  font-size: 14px; letter-spacing: 0.005em;
  padding: 11px 22px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px;
  font-family: "Plus Jakarta Sans", sans-serif; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.3s var(--ease), transform 0.35s var(--ease-out), box-shadow 0.4s var(--ease), padding 0.3s var(--ease);
}
.navcta a:hover {
  background: var(--accent);
  transform: translateY(-2px);
  padding-right: 26px;
  box-shadow: 0 16px 36px -12px var(--accent-glow);
  color: #fff;
}

/* ---- section label (chip above H2) ---- */
.sec-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "Geist Mono", monospace;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.sec-label::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out);
}
.reveal.visible .sec-label::before { width: 48px; }

/* ---- hero ---- */
.hero, .hero.wrap {
  padding-top: 72px;
  padding-bottom: 96px;
  padding-left: var(--pad-container);
  padding-right: var(--pad-container);
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  grid-template-areas:
    "headline portrait"
    "body     portrait";
  column-gap: 72px;
  row-gap: 32px;
  align-items: center;
}
.hero-text-headline { grid-area: headline; align-self: end; }
.hero-text-body     { grid-area: body;     align-self: start; }
.portrait           { grid-area: portrait; }

.hero-text, .hero-text-headline, .hero-text-body { max-width: 100%; }
.hero h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0;
  padding-bottom: 0.05em;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--accent);
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 .amp {
  font-style: italic; font-weight: 300;
  letter-spacing: 0;
  color: var(--muted);
}

.hero .meta-row {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.hero .meta-row .col .lbl {
  font-family: "Geist Mono", monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.hero .meta-row .col .val {
  margin-top: 6px;
  font-size: 15.5px; color: var(--ink-2);
  line-height: 1.45; font-weight: 400;
}
.hero .meta-row .col .val strong { color: var(--ink); font-weight: 500; }

.hero .actions {
  margin-top: 44px;
  display: flex; gap: 14px; flex-wrap: wrap;
}

/* portrait — bigger, color, modern frame with backdrop accent */
.portrait { position: relative; max-width: 560px; margin-left: auto; }
.portrait .frame {
  position: relative;
  aspect-ratio: 4/5;
  max-height: min(640px, 72vh);
  background: var(--bg-soft);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-photo);
  transition: transform 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out);
}
.portrait .frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.5s var(--ease-out), filter 0.6s var(--ease);
  filter: saturate(1.04) contrast(1.02);
}
.portrait::before {
  content: "";
  position: absolute;
  top: -24px; right: -24px;
  width: 56%; height: 70%;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  z-index: -1;
  opacity: 0.85;
  transition: transform 0.7s var(--ease-out), opacity 0.7s var(--ease);
}
.portrait::after {
  content: "";
  position: absolute;
  bottom: -32px; left: -28px;
  width: 38%; height: 38%;
  border-radius: 999px;
  background: var(--accent-soft);
  z-index: -1;
  filter: blur(20px);
  opacity: 0.9;
  transition: transform 0.8s var(--ease-out);
}
.portrait:hover .frame {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(10,20,48,0.1), 0 60px 100px -36px rgba(10,20,48,0.34);
}
.portrait:hover .frame img { transform: scale(1.04); }
.portrait:hover::before { transform: translate(8px, -8px); }
.portrait:hover::after { transform: translate(-6px, 6px); }

/* hero scroll cue */
.scroll-cue {
  margin-top: 80px;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "Geist Mono", monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease, gap 0.3s var(--ease-out);
}
.scroll-cue:hover { color: var(--accent); gap: 16px; }
.scroll-cue .arrow {
  display: inline-block; width: 32px; height: 1px;
  background: currentColor; position: relative;
  transition: width 0.4s var(--ease-out);
}
.scroll-cue .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-45deg);
}
.scroll-cue:hover .arrow { width: 44px; }

/* ---- stats strip (DARK section, full bleed) ---- */
.stats-section { padding: calc(var(--space-section-pad) * 0.65) 0; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: transparent;
}
.stat-cell {
  padding: 36px 32px;
  border-right: 1px solid rgba(255,255,255,0.12);
  transition: background 0.4s var(--ease);
  cursor: default;
  display: flex; flex-direction: column;
}
.stat-cell:last-child { border-right: 0; }
.stat-cell:hover { background: rgba(255,255,255,0.04); }
.stat-cell .lbl {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); font-weight: 500;
  transition: color 0.3s ease;
}
.stat-cell:hover .lbl { color: #a8b8ff; }
.stat-cell .val {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  font-size: clamp(34px, 2.8vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-top: 18px;
  color: #fff;
  transition: transform 0.5s var(--ease-out);
  background: linear-gradient(120deg, #ffffff 0%, #cdd5ec 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 8px;
}
.stat-cell:hover .val { transform: translateX(4px); }
.stat-cell .val-unit {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.4;
  background: none;
  -webkit-text-fill-color: rgba(255,255,255,0.7);
  color: rgba(255,255,255,0.7);
}
.stat-cell .desc {
  margin-top: auto;
  padding-top: 24px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

/* ---- section header (label + h2 + lede) ---- */
.section-head { max-width: 1000px; margin-bottom: var(--space-block); }
.section-head h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin: 0;
  padding-bottom: 0.06em;
  color: var(--ink);
  max-width: 18ch;
}
.section-head h2 em {
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head .lede {
  margin-top: 28px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56em;
  letter-spacing: -0.005em;
}

/* ---- pillars (Co dělám) ---- */
.pillars {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.pillar {
  padding: var(--space-card-pad-y) var(--space-card-pad);
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.6s var(--ease-out), background 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.6s var(--ease-out);
}
.pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s var(--ease-out);
}
.pillar:hover {
  transform: translateY(-10px);
  background: var(--bg);
  border-color: var(--rule);
  box-shadow: var(--shadow-lg);
}
.pillar:hover::before { transform: scaleX(1); }

.pillar .tag {
  display: flex; align-items: center; gap: 10px;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  font-weight: 500;
}
.pillar .tag .n {
  color: var(--accent); font-weight: 600;
  padding: 5px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease;
}
.pillar:hover .tag .n { background: var(--accent); color: #fff; }
.pillar h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 24px 0 8px;
  color: var(--ink);
}
.pillar .sub {
  font-family: "Geist Mono", monospace;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.pillar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pillar li {
  position: relative; padding-left: 28px;
  font-size: 15.5px; line-height: 1.55; color: var(--ink-2);
  transition: padding-left 0.4s var(--ease-out), color 0.3s ease;
}
.pillar li::before {
  content: "→";
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 500;
  transition: transform 0.4s var(--ease-out);
}
.pillar li:hover { padding-left: 34px; color: var(--ink); }
.pillar li:hover::before { transform: translateX(4px); }
.pillar .stack { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid var(--rule-strong);
  color: var(--muted);
  border-radius: 999px;
  background: transparent;
  cursor: default;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease-out);
}
.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--bg-soft);
  transform: translateY(-2px);
}
.chip.acc { border-color: var(--accent); color: var(--accent); }
.chip.acc:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---- pull quote (DARK section) ---- */
section.dark {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.92);
  position: relative;
  overflow: hidden;
  border: 0;
}
section.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 100%, rgba(58,100,214,0.32), transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(41,80,184,0.22), transparent 60%);
  pointer-events: none;
}
section.dark > * { position: relative; z-index: 1; }

.pull-section { padding: var(--space-section-pad) 0; }
.pull {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
  align-items: start;
}
.pull .side .mono {
  font-family: "Geist Mono", monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.pull q {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-style: italic; font-weight: 400;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.32;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: 22em;
  padding-bottom: 0.08em;
  quotes: "\201E" "\201C";
}
.pull q::before {
  content: open-quote;
  background: linear-gradient(120deg, #6c8ef0 0%, #a8b8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 0.05em;
}
.pull q::after {
  content: close-quote;
  background: linear-gradient(120deg, #6c8ef0 0%, #a8b8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 0.05em;
}

/* ---- results grid ---- */
.results {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.result {
  padding: 36px 28px 40px;
  background: var(--bg-soft);
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 0.6s var(--ease-out), background 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.6s var(--ease-out);
}
.result:hover {
  transform: translateY(-8px);
  background: var(--bg);
  border-color: var(--rule);
  box-shadow: var(--shadow-md);
}
.result .lbl {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  transition: color 0.3s ease;
}
.result:hover .lbl { color: var(--accent); }
.result .num {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  font-size: 56px; line-height: 1.0;
  color: var(--ink); letter-spacing: -0.045em;
  margin-top: 22px;
  transition: transform 0.5s var(--ease-out);
}
.result:hover .num { transform: translateX(4px); }
.result .num em {
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.025em;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.result .who {
  margin-top: 20px;
  color: var(--accent); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-family: "Geist Mono", monospace; font-size: 10.5px;
}
.result .desc { margin-top: 12px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

/* ---- tools grid (vibe coding portfolio cards) ---- */
.tools {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.tool-card {
  padding: 36px 32px 36px;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.6s var(--ease-out), background 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.6s var(--ease-out);
  cursor: default;
  min-height: 280px;
}
.tool-card::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.6s var(--ease-out);
}
.tool-card:hover {
  transform: translateY(-8px);
  background: var(--bg);
  border-color: var(--rule);
  box-shadow: var(--shadow-md);
}
.tool-card:hover::after { width: 100%; }

.tool-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px;
}
.tool-head .idx {
  font-family: "Geist Mono", monospace;
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--muted); font-weight: 500;
  transition: color 0.3s ease;
}
.tool-card:hover .tool-head .idx { color: var(--accent); }
.tool-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "Geist Mono", monospace;
  font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 600;
  padding: 6px 11px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--muted);
  transition: all 0.3s ease;
}
.tool-status::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted);
}
.tool-status.live {
  color: var(--accent); border-color: var(--accent);
}
.tool-status.live::before {
  background: var(--accent);
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 6px transparent; }
}
.tool-card:hover .tool-status.live { background: var(--accent); color: #fff; }
.tool-card:hover .tool-status.live::before { background: #fff; }

.tool-card h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: var(--ink);
  transition: color 0.3s ease;
}
.tool-card:hover h3 { color: var(--accent); }
.tool-card .desc {
  font-size: 14.5px; line-height: 1.55;
  color: var(--ink-2); margin: 0 0 20px;
  flex-grow: 1;
}
.tool-card .tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto;
}
.tool-card .tag {
  font-family: "Geist Mono", monospace;
  font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 500;
  padding: 4px 8px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  transition: all 0.3s ease;
}
.tool-card:hover .tag { color: var(--ink-2); }

/* ---- stack grid ---- */
.stack-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.stack-grid .col {
  padding: 40px 36px 44px;
  background: var(--bg-soft);
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform 0.6s var(--ease-out), background 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.6s var(--ease-out);
}
.stack-grid .col:hover {
  transform: translateY(-6px);
  background: var(--bg);
  border-color: var(--rule);
  box-shadow: var(--shadow-md);
}
.stack-grid h4 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: var(--ink);
}
.stack-grid .col .sub {
  font-family: "Geist Mono", monospace; font-weight: 500;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 24px;
}
.stack-grid .tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- principles ---- */
.principles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 40px;
}
.principle {
  position: relative;
  transition: transform 0.5s var(--ease-out);
}
.principle:hover { transform: translateY(-4px); }
.principle .num {
  font-family: "Geist Mono", monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; color: var(--accent);
  display: inline-block;
  transition: transform 0.4s var(--ease-out), letter-spacing 0.4s var(--ease);
}
.principle:hover .num { transform: translateX(6px); letter-spacing: 0.3em; }
.principle h4 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  font-size: 24px;
  margin: 16px 0 12px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
  transition: color 0.3s ease;
}
.principle:hover h4 { color: var(--accent); }
.principle p {
  font-size: 15.5px; line-height: 1.6;
  color: var(--ink-2); margin: 0;
}

/* ---- closing (DARK CTA section) ---- */
.closing { padding: calc(var(--space-section-pad) * 1.15) 0 var(--space-section-pad); }
.closing .eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-family: "Geist Mono", monospace;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
}
.closing .eyebrow .bar { width: 48px; height: 1px; background: rgba(255,255,255,0.6); }
.closing h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  font-size: clamp(48px, 7vw, 120px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0;
  padding-bottom: 0.05em;
  color: #fff;
  max-width: 14ch;
}
.closing h2 em {
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, #6c8ef0 0%, #a8b8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.closing .actions {
  margin-top: 56px;
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
}
.closing .grid {
  margin-top: 96px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px;
  border-top: 1px solid rgba(255,255,255,0.16); padding-top: 48px;
}
.closing .grid > div { transition: transform 0.4s var(--ease-out); }
.closing .grid > div:hover { transform: translateY(-3px); }
.closing .grid .lbl {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.closing .grid .v {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.025em;
  margin-top: 10px;
  color: #fff;
}
.closing .grid a { color: #fff; }
.closing .grid a:hover { color: #a8b8ff; }

/* ---- buttons ---- */
.btn {
  font-family: "Plus Jakarta Sans", sans-serif; font-size: 15.5px; font-weight: 500;
  padding: 16px 28px; border-radius: 999px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 12px;
  letter-spacing: -0.005em;
  transition: background 0.35s var(--ease), color 0.3s ease, border-color 0.3s ease, transform 0.35s var(--ease-out), box-shadow 0.4s var(--ease), padding 0.35s var(--ease);
  position: relative;
}
.btn.primary {
  background: var(--ink); color: var(--bg);
  box-shadow: 0 4px 14px -4px rgba(10,20,48,0.3);
}
.btn.primary:hover {
  background: var(--accent);
  transform: translateY(-3px);
  padding-right: 32px;
  box-shadow: 0 18px 36px -12px var(--accent-glow);
}
.btn.ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--ink-3);
}
.btn.ghost:hover {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink); transform: translateY(-3px);
  padding-right: 32px;
  box-shadow: 0 18px 36px -12px rgba(10,20,48,0.28);
}
section.dark .btn.primary { background: #fff; color: var(--ink); }
section.dark .btn.primary:hover { background: var(--accent); color: #fff; }
section.dark .btn.ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
section.dark .btn.ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn .arrow { transition: transform 0.35s var(--ease-out); display: inline-block; }
.btn:hover .arrow { transform: translateX(6px); }

/* ---- footer ---- */
footer {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
}
.footer-grid {
  padding: 80px var(--pad-container) 56px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  max-width: 1320px; margin: 0 auto;
  align-items: start;
}
.footer-brand .brand-mark {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 22em;
}
.footer-col {
  display: flex; flex-direction: column; gap: 12px;
}
.footer-col .lbl {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.footer-col a, .footer-col span {
  font-size: 15px;
  color: var(--ink-2);
  font-weight: 400;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding: 24px var(--pad-container);
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1320px; margin: 0 auto;
  border-top: 1px solid var(--rule);
  font-family: "Geist Mono", monospace;
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.footer-bottom .available {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
}
.footer-bottom .available::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.18);
  animation: livePulse 2s ease-in-out infinite;
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; padding: 64px var(--pad-container) 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 12px; padding: 20px var(--pad-container); text-align: center; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  :root {
    --space-section-pad: 96px;
    --space-block: 56px;
    --space-card-pad: 32px;
    --space-card-pad-y: 36px;
    --pad-container: 40px;
  }
  .nav-inner { padding: 20px var(--pad-container); }
  .hero-grid { gap: 56px; }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  :root {
    --space-section-pad: 72px;
    --space-block: 44px;
    --space-card-pad: 28px;
    --space-card-pad-y: 32px;
    --pad-container: 24px;
  }
  .nav-inner { padding: 16px var(--pad-container); }
  .navlinks { display: none; }
  .hero { padding: 80px 0 96px; }
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "headline"
      "portrait"
      "body";
    row-gap: 32px;
  }
  .hero-text-headline { align-self: stretch; }
  .hero-text-body     { align-self: stretch; }
  .portrait { max-width: 420px; margin: 0 auto; }
  .hero .meta-row { grid-template-columns: 1fr; gap: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-cell { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .stat-cell:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.12); }
  .stat-cell:nth-last-child(-n+2) { border-bottom: 0; }
  .pillars, .stack-grid { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr; }
  .results { grid-template-columns: 1fr 1fr; }
  .principles { grid-template-columns: 1fr; gap: 40px; }
  .pull { grid-template-columns: 1fr; gap: 32px; }
  .closing .grid { grid-template-columns: 1fr; gap: 32px; }
  .portrait::before { display: none; }
}

@media (max-width: 560px) {
  :root { --pad-container: 20px; }
  .nav-inner { padding: 14px var(--pad-container); }
  .stats, .results { grid-template-columns: 1fr; }
  .stat-cell { border-right: 0 !important; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .hero h1 { font-size: clamp(36px, 9vw, 56px); }
  .section-head h2 { font-size: clamp(30px, 8vw, 40px); }
  .section-head .lede { font-size: 18px; }
  .closing h2 { font-size: clamp(40px, 11vw, 72px); }
  .hero .actions, .closing .actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
