/* =====================================================
   RENEWO · Apple-inspired redesign (root, multi-page)
   Single shared sheet. Pages migrate to this gradually.
   Class contracts preserved for script.js / auth.js:
     #navbar.scrolled, #navLinks.open, #navToggle, .reveal/.visible,
     .nav-account[data-rw-account], .nav-cta, [data-count]
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand greens */
  --green-primary: #008C00;
  --green-bright:  #00C427;
  --green-light:   #6FAA7A;
  --green-dark:    #117C46;
  --green-deep:    #0a3d1f;
  --green-glow:    rgba(0, 196, 39, 0.32);
  --green-subtle:  rgba(0, 140, 0, 0.06);

  /* Apple neutrals — light */
  --bg:          #fbfbfd;
  --bg-alt:      #f5f5f7;
  --bg-card:     #ffffff;
  --bg-card-soft:#f7f7f9;
  --bg-deep:     #0b0b0d;
  --bg-deep-soft:#15151a;
  --surface:     #ffffff;

  --ink:         #1d1d1f;
  --ink-soft:    #515154;
  --ink-muted:   #515154;
  --ink-faint:   #6e6e73;
  --ink-invert:  #f5f5f7;

  --line:        rgba(0, 0, 0, 0.08);
  --line-soft:   rgba(0, 0, 0, 0.04);
  --line-invert: rgba(255, 255, 255, 0.10);
  --border:      rgba(0, 0, 0, 0.08);

  /* Legacy aliases (kept so funnels / portal don't break when this sheet is shared) */
  --bg-primary:    #fbfbfd;
  --bg-secondary:  #f5f5f7;
  --bg-card-hover: #f7f7f9;
  --text-primary:   #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted:     #86868b;

  /* Gradients */
  --gradient-green:  linear-gradient(135deg, #008C00 0%, #00C427 60%, #6FAA7A 100%);
  --gradient-hero:   linear-gradient(135deg, #008C00, #00C427);
  --gradient-subtle: linear-gradient(135deg, rgba(0,140,0,0.08), rgba(0,196,39,0.02));

  /* Apple system stack — no web font */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", "Helvetica Neue", system-ui, sans-serif;

  /* Geometry */
  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 28px;
  --radius:    22px;
  --max:       1240px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}

a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section   { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
#portfolio, #services { scroll-margin-top: 70px; }

/* =====================================================
   TYPE PRIMITIVES
   ===================================================== */
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}
.eyebrow.center   { text-align: center; }
.eyebrow.inverted { color: var(--green-bright); }

.hero-accent,
.gradient-text {
  background: var(--gradient-green);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.muted { color: var(--ink-soft); }

.section-head        { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
.section-sub,
.section-subtitle {
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  max-width: 640px;
  margin-inline: auto;
}
.section-head.center .section-sub { margin-inline: auto; }

/* =====================================================
   BUTTONS / TEXT LINKS
   ===================================================== */
.btn,
.btn-primary,
.btn-outline,
.btn-light {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 980px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  white-space: nowrap;
}

/* Constant green glow on primary buttons (Brigzy-style fade) — intensifies on hover */
.btn-primary {
  background: var(--green-primary);
  color: #fff;
  position: relative;
  box-shadow:
    0 8px 24px -10px rgba(0, 140, 0, 0.45),
    0 3px 10px -3px rgba(0, 196, 39, 0.30);
}
.btn-primary:hover {
  background: var(--green-bright);
  box-shadow:
    0 0 0 6px rgba(0, 196, 39, 0.12),
    0 16px 38px -6px rgba(0, 196, 39, 0.55),
    0 6px 18px -4px rgba(0, 140, 0, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover {
  border-color: var(--green-primary);
  color: var(--green-dark);
  box-shadow:
    0 0 0 5px rgba(0, 196, 39, 0.08),
    0 12px 28px -8px rgba(0, 196, 39, 0.22);
  transform: translateY(-1px);
}

.btn-light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.30);
}
.btn-light:hover {
  background: #f8f8fa;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.12),
    0 16px 34px -6px rgba(0, 0, 0, 0.34);
  transform: translateY(-1px);
}

.nav-links .nav-cta {
  box-shadow:
    0 6px 16px -6px rgba(0, 140, 0, 0.35),
    0 2px 6px -2px rgba(0, 196, 39, 0.25);
}
.nav-links .nav-cta:hover {
  background: var(--green-bright);
  color: #fff;
  box-shadow:
    0 0 0 4px rgba(0, 196, 39, 0.14),
    0 10px 22px -4px rgba(0, 196, 39, 0.45);
}

.link-primary,
.link-secondary {
  display: inline-flex; align-items: center;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.link-primary { color: var(--green-dark); }
.link-primary:hover { color: var(--green-primary); }
.link-primary:hover .chev { transform: translateX(3px); }

.link-secondary { color: var(--ink); }
.link-secondary:hover { color: var(--green-dark); }
.link-secondary.inverted { color: #fff; }
.link-secondary.inverted:hover { color: var(--green-bright); }

.link-primary.small,
.link-secondary.small { font-size: 15px; }

.chev {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.2s var(--ease-out);
}

/* =====================================================
   NAVBAR — Apple translucent (legacy class .navbar kept)
   Container is centered; logo floats absolute on the left
   so the nav links sit visually centered between the edges.
   ===================================================== */
.navbar {
  position: fixed; inset: 0 0 auto 0;
  z-index: 1000;
  padding: 12px 0;
  background: rgba(251, 251, 253, 0.55);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), padding 0.3s var(--ease-out);
}
.navbar.scrolled {
  background: rgba(251, 251, 253, 0.72);
  border-bottom-color: var(--line-soft);
  padding: 8px 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 1200px;
  padding: 0 24px;
}

.nav-logo {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}
.nav-logo img,
.nav-logo .logo-img {
  height: 62px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  opacity: 0.88;
  border-radius: 20px;
  transition: opacity 0.2s var(--ease-out), background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.nav-links a:hover  { opacity: 1; }
.nav-links a.active { opacity: 1; color: var(--green-dark); }

.nav-links .nav-account {
  gap: 6px;
}
.nav-links .nav-account svg { opacity: 0.7; }

.nav-links .nav-cta {
  background: var(--green-primary);
  color: #fff;
  padding: 7px 16px;
  font-weight: 500;
  opacity: 1;
}
.nav-links .nav-cta:hover { background: var(--green-bright); color: #fff; }
.nav-links .nav-cta.active { color: #fff; }

.nav-toggle {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-6.5px) rotate(-45deg); }

/* =====================================================
   HERO (centered, MacBook stage)
   ===================================================== */
.hero {
  position: relative;
  padding: 110px 24px 60px;
  text-align: center;
  background: var(--bg);
  overflow: hidden;
}
.hero-inner {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
}
.hero .eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.hero-title {
  font-size: clamp(48px, 7.5vw, 96px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0 0 18px;
}
.hero-sub {
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 600px;
  margin: 0 auto 26px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
}

/* The hero-stage holds the MacBook + soft glow.
   Sized by viewport HEIGHT primarily so it never overwhelms
   short windows. Scrolls naturally with the page — no pin. */
.hero-stage {
  position: relative;
  margin: 0 auto;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1800px;
}

.hero-glow {
  position: absolute;
  inset: auto 10% -10% 10%;
  height: 60%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 196, 39, 0.34), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
  animation: heroGlowDrift 8s ease-in-out infinite alternate;
}
@keyframes heroGlowDrift {
  0%   { transform: translate3d(-3%, 0, 0) scale(1);   opacity: 0.85; }
  50%  { transform: translate3d(3%, -2%, 0) scale(1.08); opacity: 1; }
  100% { transform: translate3d(0, 1%, 0) scale(1.02); opacity: 0.9; }
}

/* Subtle floating motion on the MacBook itself (CSS-only; coexists with GSAP entry) */
.mac {
  animation: macFloat 6s ease-in-out infinite alternate;
}
@keyframes macFloat {
  0%   { transform: translateY(0) rotateX(0); }
  100% { transform: translateY(-6px) rotateX(0.6deg); }
}

/* =====================================================
   MACBOOK MOCKUP (pure CSS, no images)
   ===================================================== */
.mac {
  position: relative;
  width: min(100%, 720px);
  height: min(40vh, 380px);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.mac-body {
  position: relative;
  width: 100%;
  flex: 1;
  background: linear-gradient(180deg, #1a1a1c 0%, #0e0e10 100%);
  border-radius: 22px 22px 16px 16px;
  padding: 14px;
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.28),
    0 12px 32px -8px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.mac-camera {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2a2a2c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.mac-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fbfbfd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Three stacked screens — JS toggles .is-active to crossfade */
.scr {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  will-change: opacity, transform;
  transition: opacity 0.6s var(--ease-in-out), transform 0.6s var(--ease-in-out);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.scr.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* MacBook stand / hinge */
.mac-stand {
  width: 60%;
  height: 14px;
  background: linear-gradient(180deg, #2a2a2c, #131316);
  border-radius: 0 0 14px 14px;
  position: relative;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.4);
}
.mac-stand::after {
  content: "";
  position: absolute;
  inset: 0 25% auto 25%;
  height: 4px;
  background: linear-gradient(180deg, rgba(0,0,0,0.5), transparent);
  border-radius: 0 0 4px 4px;
}

/* =====================================================
   SCREEN 1 — Audit meter
   ===================================================== */
.scr-audit {
  flex-direction: column;
  gap: 18px;
  padding: 32px;
}
.scr-audit .scr-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.meter {
  position: relative;
  width: min(70%, 300px);
  aspect-ratio: 2 / 1;
}
.meter svg { width: 100%; height: 100%; overflow: visible; }
.meter-arc-bg   { stroke: var(--bg-alt); }
.meter-arc-fill { stroke: url(#meterGrad); stroke-linecap: round; }
.meter-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6%;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.meter-value span {
  font-size: 0.45em;
  color: var(--ink-faint);
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 2px;
}
.scr-audit-caption {
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  max-width: 260px;
}

/* =====================================================
   SCREEN 2 — LeadFlow funnel
   ===================================================== */
.scr-leadflow {
  flex-direction: column;
  gap: 28px;
  padding: 32px;
}
.scr-leadflow .scr-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}
.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 80px;
}
.flow-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1.5px solid var(--line);
  position: relative;
}
.flow-dot.active {
  background: var(--green-bright);
  border-color: var(--green-bright);
}
.flow-dot.active::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--green-bright);
  opacity: 0.4;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}
.flow-node span {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}
.flow-line {
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--line);
}

/* =====================================================
   SCREEN 3 — Portal dashboard
   ===================================================== */
.scr-portal {
  flex-direction: column;
  align-items: stretch;
  padding: 24px;
  gap: 14px;
}
.scr-portal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-soft);
}
.scr-portal-head strong { color: var(--ink); font-weight: 600; }
.scr-portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.kpi {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 12px;
}
.kpi-label {
  font-size: 10px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.kpi-value {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.kpi-delta {
  font-size: 11px;
  color: var(--green-dark);
  font-weight: 500;
}
.scr-portal-chart {
  flex: 1;
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 110px;
}
.scr-portal-chart-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-soft);
}
.scr-portal-chart svg {
  width: 100%;
  flex: 1;
}

/* =====================================================
   PRODUCT TILES (2 big + 3 small)
   ===================================================== */
.tiles {
  padding: 0 24px 60px;
  max-width: 1140px;
  margin: -40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 2;
}
.tiles-row {
  display: grid;
  gap: 18px;
}
.tiles-row--2 { grid-template-columns: 1fr 1fr; }
.tiles-row--3 { grid-template-columns: repeat(3, 1fr); }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 30px 32px 26px;
  min-height: 200px;
  gap: 16px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.tile-copy { display: flex; flex-direction: column; gap: 8px; }
.tile:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 196, 39, 0.22);
  box-shadow:
    0 22px 50px -18px rgba(0, 140, 0, 0.18),
    0 8px 20px -8px rgba(0, 196, 39, 0.14);
}

.tile-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.tile-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.tile-title .muted { color: var(--ink-soft); display: block; }
.tile-cta {
  font-size: 15px;
  font-weight: 500;
  color: var(--green-dark);
}
.tile-art {
  margin-top: auto;
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile--audit  { background: linear-gradient(135deg, #fbfbfd 0%, #f0f6f1 100%); }
.tile--leadflow { background: linear-gradient(135deg, #fbfbfd 0%, #eef6ef 100%); }

/* Decorative SVG art on the big tiles. Positioned right-side; text content
   stays layered on top via z-index. Subtle by default, brightens on hover. */
.tile-decor {
  position: absolute;
  pointer-events: none;
  opacity: 0.55;
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
  z-index: 0;
}
.tile-decor--meter {
  bottom: 18px;
  right: 18px;
  width: 36%;
  max-width: 160px;
}
.tile-decor--flow {
  top: 50%;
  right: -4%;
  width: 50%;
  max-width: 230px;
  transform: translateY(-50%) translateX(6%);
}
.tile--audit:hover .tile-decor--meter {
  opacity: 0.9;
  transform: translateY(-3px);
}
.tile--leadflow:hover .tile-decor--flow {
  opacity: 0.9;
  transform: translateY(-50%) translateX(0);
}

/* Keep text and CTA above the decoration */
.tile-copy,
.tile-cta { position: relative; z-index: 1; }

.tile--small {
  min-height: 180px;
  padding: 24px 26px 24px;
  gap: 14px;
}
.tile-title-sm {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 10px;
}
.tile-cta-sm {
  font-size: 13px;
  font-weight: 500;
  color: var(--green-dark);
}

.mini-art {
  margin-top: auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-out);
}
.tile--small:hover .mini-art { transform: translateY(-3px); }
.mini-browser {
  display: block;
  width: 100%;
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 8px;
  height: 76px;
  overflow: hidden;
}
.mb-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.mb-bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}
.mb-row {
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  margin-bottom: 6px;
}
.mb-row--short { width: 60%; }
.mb-block {
  height: 22px;
  background: var(--green-subtle);
  border-radius: 4px;
}

.mini-chart { color: var(--green-primary); width: 100%; }
.mini-chart svg { width: 100%; height: 80px; }

.mini-pulse {
  position: relative;
  width: 80px;
  height: 80px;
}
.pulse-circle {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--green-bright);
  opacity: 0.4;
  animation: pulse 2s ease-in-out infinite;
}
.pulse-circle.delay { animation-delay: 1s; }
.pulse-core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-primary);
  font-size: 20px;
  line-height: 1;
}

/* =====================================================
   STAT MARQUEE
   ===================================================== */
.stat-feature {
  padding: 100px 24px;
  background: var(--bg);
}
.stat-inner { max-width: var(--max); margin: 0 auto; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-top: 40px;
}
.stat {
  text-align: center;
}
.stat-number {
  font-size: clamp(72px, 9vw, 128px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
  background: var(--gradient-green);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 16px;
}
.stat-number span:not([data-count]) {
  font-weight: 400;
  letter-spacing: -0.04em;
  -webkit-text-fill-color: var(--ink-faint);
  color: var(--ink-faint);
  background: none;
}
.stat p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 240px;
  margin: 0 auto;
  line-height: 1.45;
}

/* =====================================================
   SERVICES (deep, 01–06 numbered)
   ===================================================== */
.services { background: var(--bg-alt); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.svc {
  background: var(--bg);
  padding: 44px 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: background 0.3s var(--ease-out);
}
.svc::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--gradient-green);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.svc:hover {
  background: var(--bg-card);
}
.svc:hover::before { opacity: 1; }
.svc:hover .svc-mark { color: var(--green-primary); }
.svc-mark {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--green-dark);
  font-feature-settings: "tnum";
  transition: color 0.2s var(--ease-out);
}
.svc h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.svc p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* =====================================================
   PORTFOLIO (1 feature + 2 grid)
   ===================================================== */
.work { background: var(--bg); }
.work-feature {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
  padding: 50px 48px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.work-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 196, 39, 0.22);
  box-shadow:
    0 22px 50px -15px rgba(0, 140, 0, 0.20),
    0 8px 20px -8px rgba(0, 196, 39, 0.16);
}
.work-feature-copy h3 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 8px 0 14px;
}
.work-tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.work-desc {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 22px;
  line-height: 1.5;
}
.work-feature-art {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  /* No shadow on the Brigzy feature artwork — user preference */
  box-shadow: none;
}
.work-feature-art img { width: 100%; display: block; transition: transform 0.6s var(--ease-out); }
.work-feature:hover .work-feature-art img { transform: scale(1.02); }

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
/* Odd trailing card: center it instead of leaving an empty grid cell */
.work-grid > .work-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: calc(50% - 12px);
  margin-inline: auto;
}
.work-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 196, 39, 0.22);
  box-shadow:
    0 22px 50px -15px rgba(0, 140, 0, 0.20),
    0 8px 20px -8px rgba(0, 196, 39, 0.16);
}
.work-card-art img { transition: transform 0.6s var(--ease-out); }
.work-card:hover .work-card-art img { transform: scale(1.03); }
.work-card-art {
  background: #fff;
  padding: 24px;
}
.work-card-art img { width: 100%; border-radius: 14px; }
.work-card-copy {
  padding: 24px 28px 32px;
}
.work-card-copy h4 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 8px 0 10px;
}
.work-card-copy p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* =====================================================
   WHY (4 numbered)
   ===================================================== */
.why { background: var(--bg-alt); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 50px;
}
.why-item {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  position: relative;
  transition: border-color 0.3s var(--ease-out);
}
.why-item::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--gradient-green);
  transition: width 0.5s var(--ease-out);
}
.why-item:hover { border-color: transparent; }
.why-item:hover::after { width: 100%; }
.why-num {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--green-dark);
  margin-bottom: 18px;
  font-feature-settings: "tnum";
  transition: transform 0.3s var(--ease-out);
}
.why-item:hover .why-num { transform: translateX(4px); }
.why-item h4 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 12px;
}
.why-item p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* =====================================================
   BLOG TEASER
   ===================================================== */
.blog-teaser { background: var(--bg); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.post {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.post:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 196, 39, 0.22);
  box-shadow:
    0 18px 40px -14px rgba(0, 140, 0, 0.18),
    0 6px 16px -6px rgba(0, 196, 39, 0.14);
}
.post-art {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}
.post-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.post:hover .post-art img { transform: scale(1.04); }
.post-meta {
  padding: 22px 24px 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.post h3 {
  padding: 12px 24px 16px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.post-cta {
  padding: 0 24px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--green-dark);
  margin-top: auto;
}

/* =====================================================
   FINAL DARK CTA
   ===================================================== */
.final {
  background: var(--bg-deep);
  color: #fff;
  padding: clamp(100px, 14vw, 160px) 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final::before {
  content: "";
  position: absolute;
  inset: -10% 30% 40% 30%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 196, 39, 0.34), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.final-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.final-title {
  font-size: clamp(44px, 6.5vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 8px 0 22px;
  color: #fff;
}
.final-sub {
  font-size: clamp(18px, 1.6vw, 22px);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
  line-height: 1.45;
}
.final-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 64px 24px 36px;
  color: var(--ink);
  font-size: 14px;
}
.footer .container { max-width: var(--max); }
.footer-top { margin-bottom: 48px; max-width: 560px; }
.footer-top p { font-size: 17px; color: var(--ink); letter-spacing: -0.01em; line-height: 1.45; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.footer-brand .nav-logo {
  position: static;
  transform: none;
  height: auto;
}
.footer-brand .nav-logo img,
.footer-brand .logo-img {
  height: 56px;
  width: auto;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  color: var(--ink-soft);
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.footer-social a:hover { background: var(--green-primary); color: #fff; }

.footer-col h5 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--ink);
  transition: color 0.2s var(--ease-out);
}
.footer-col a:hover { color: var(--green-primary); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  padding-top: 32px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}
.footer-bottom p { margin: 0; }
.footer-bottom ul {
  list-style: none;
  display: flex;
  gap: 22px;
  padding: 0; margin: 0;
}
.footer-bottom a { color: var(--ink-soft); }
.footer-bottom a:hover { color: var(--ink); }

/* =====================================================
   REVEAL ANIMATIONS (script.js adds .visible)
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   COOKIE BANNER (full version — hooks preserved for script.js)
   ===================================================== */
#cookieBanner {
  position: fixed;
  inset: auto 20px 20px 20px;
  z-index: 1100;
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
          backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: 0 18px 60px -10px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  pointer-events: none;
}
#cookieBanner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.cookie-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--green-subtle);
  color: var(--green-dark);
}
#cookieBanner h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
}
#cookieBanner p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-actions button,
.cookie-btn-accept,
.cookie-btn-reject,
.cookie-btn-settings,
.cookie-save-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  border-radius: 980px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 9px 18px;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.cookie-actions button:hover { border-color: var(--ink); }
.cookie-actions button.primary,
.cookie-btn-accept,
.cookie-save-btn {
  background: var(--green-primary);
  color: #fff;
  border-color: var(--green-primary);
}
.cookie-actions button.primary:hover,
.cookie-btn-accept:hover,
.cookie-save-btn:hover {
  background: var(--green-bright);
  border-color: var(--green-bright);
}
#cookieDetails {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}
.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
}
.cookie-cat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cookie-cat-info strong {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}
.cookie-cat-info span {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.cookie-toggle {
  position: relative;
  flex-shrink: 0;
  display: inline-block;
  width: 36px;
  height: 22px;
  cursor: pointer;
  margin-top: 1px;
}
.cookie-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--line);
  transition: background 0.2s var(--ease-out);
}
.cookie-toggle-slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s var(--ease-out);
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--green-primary);
}
.cookie-toggle input:checked + .cookie-toggle-slider::after {
  transform: translateX(14px);
}
.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}
.cookie-save-btn {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}

/* =====================================================
   CONTACT (konzultacie page) — form + info cards
   ===================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  margin-top: 50px;
  align-items: start;
}
.contact-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 22px 22px 20px;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.contact-info-card:hover {
  border-color: var(--line);
  transform: translateY(-2px);
}
.contact-info-card .icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--green-subtle);
  color: var(--green-dark);
  margin-bottom: 14px;
}
.contact-info-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.contact-info-card p,
.contact-info-card a {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.contact-info-card a:hover { color: var(--green-dark); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
}
.contact-form h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
  letter-spacing: -0.01em;
}
.form-group textarea {
  min-height: 110px;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--ink-faint);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-primary);
  background: #fff;
}

/* Form result messages */
#formSuccess,
#formError {
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
#formSuccess {
  background: var(--green-subtle);
  border: 1px solid rgba(0, 196, 39, 0.2);
  color: var(--green-dark);
}
#formError {
  background: rgba(232, 70, 70, 0.06);
  border: 1px solid rgba(232, 70, 70, 0.2);
  color: #c43b3b;
}

/* Generic "badge" pill above section titles */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-subtle);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* =====================================================
   CONTENT PAGE (legal — ochrana / VOP)
   ===================================================== */
.content-page {
  padding: 40px 0 100px;
  background: var(--bg);
}
.content-page .container { max-width: 820px; }
.content-page p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 16px;
}
.content-page p strong { color: var(--ink); font-weight: 600; }
.content-page em { color: var(--ink-soft); font-style: italic; }
.content-page h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 40px 0 16px;
  color: var(--ink);
}
.content-page h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 28px 0 12px;
}
.content-page ul,
.content-page ol {
  margin: 0 0 16px 22px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}
.content-page li { margin-bottom: 6px; }
.content-page hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}
.content-page a {
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.content-page a:hover { color: var(--green-primary); }

/* =====================================================
   MISSION (o-nas page)
   ===================================================== */
.mission {
  padding: clamp(80px, 11vw, 130px) 0;
  background: var(--bg-alt);
}
.mission-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.mission h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 18px 0 28px;
}
.mission p {
  color: var(--ink-soft);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  letter-spacing: -0.012em;
  margin-bottom: 18px;
}

/* =====================================================
   TEAM (o-nas page)
   ===================================================== */
.team-section {
  padding: clamp(80px, 11vw, 130px) 0;
  background: var(--bg);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 28px 24px 26px;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.team-card:hover {
  border-color: rgba(0, 196, 39, 0.22);
  transform: translateY(-3px);
  box-shadow:
    0 18px 40px -16px rgba(0, 140, 0, 0.18),
    0 6px 16px -6px rgba(0, 196, 39, 0.14);
}
.team-photo {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 18px;
  background: var(--bg-alt);
}
.team-card h4 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.team-card .role {
  font-size: 13px;
  font-weight: 500;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.team-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.team-member-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.team-member-detail a {
  font-size: 13px;
  color: var(--green-dark);
  word-break: break-all;
  transition: color 0.2s var(--ease-out);
}
.team-member-detail a:hover { color: var(--green-primary); }

/* =====================================================
   FOOTER LEGACY ALIASES
   Existing pages use <h4> in footer-col and a different
   bottom-links container. Support both alongside new pattern.
   ===================================================== */
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
}
.footer-bottom-links {
  display: flex;
  gap: 22px;
}
.footer-bottom-links a {
  font-size: 13px;
  color: var(--ink-faint);
}
.footer-bottom-links a:hover { color: var(--ink-soft); }

/* Reveal delay utilities (kept for konzultacie / o-nas markup) */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* =====================================================
   BLOG INDEX (blog.html — uses .blog-card family)
   ===================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 196, 39, 0.22);
  box-shadow:
    0 20px 42px -16px rgba(0, 140, 0, 0.18),
    0 6px 16px -6px rgba(0, 196, 39, 0.14);
}
.blog-thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
  overflow: hidden;
}
.blog-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.blog-card:hover .blog-thumb img { transform: scale(1.04); }
.blog-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.blog-date {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.blog-card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}
.read-more {
  margin-top: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s var(--ease-out);
}
.read-more svg { transition: transform 0.2s var(--ease-out); }
.blog-card:hover .read-more { color: var(--green-primary); }
.blog-card:hover .read-more svg { transform: translateX(3px); }

/* =====================================================
   ARTICLE PAGE
   ===================================================== */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.article-meta span { letter-spacing: -0.01em; }

.cta-inline {
  margin: 50px 0 0;
  padding: 36px 40px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  text-align: center;
}
.cta-inline h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.cta-inline p {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 22px;
  line-height: 1.5;
}
.cta-inline .btn,
.cta-inline .btn-primary {
  margin-top: 4px;
}

/* =====================================================
   PAGE HEADER (interior pages — audit / portal / blog / etc.)
   ===================================================== */
.page-header {
  padding: 140px 24px 60px;
  background: var(--bg);
  text-align: center;
  position: relative;
}
.page-header .container { max-width: 1080px; }
.page-header .eyebrow { margin-bottom: 12px; }
.page-header h1 {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 18px;
}
.page-header .breadcrumb { display: none; }
.page-header + .section { padding-top: 40px; }

/* Suppress legacy background glows on the new pages */
.page-header .bg-glow,
.bg-glow.glow-1,
.bg-glow.glow-2,
.bg-grid {
  display: none !important;
}

/* =====================================================
   SLUŽBY PAGE (sluzby.html)
   ===================================================== */
.page-header-sub {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--ink);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.5;
}

.svc-anchors {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 251, 253, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-block: 1px solid var(--line-soft);
  padding: 14px 0;
}
.svc-anchors .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.svc-anchors a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--bg-alt);
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
  white-space: nowrap;
}
.svc-anchors a:hover {
  background: var(--green-primary);
  color: #fff;
}

.svc-detail {
  padding: clamp(64px, 8vw, 110px) 24px;
  scroll-margin-top: 70px;
}
.svc-detail--alt { background: var(--bg-alt); }
.svc-detail .container { max-width: 880px; }
.svc-detail-head { text-align: center; margin-bottom: 40px; }
.svc-detail-head .eyebrow { margin-bottom: 10px; }
.svc-detail-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 16px;
}
.svc-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink);
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto;
}
.svc-detail .svc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
}
.svc-detail .svc-list li {
  position: relative;
  padding: 16px 0 16px 30px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.svc-detail .svc-list li:last-child { border-bottom: none; }
.svc-detail .svc-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 25px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-primary);
}
.svc-detail .svc-list li strong { color: var(--ink); font-weight: 650; }
.svc-detail--alt .svc-list li { border-bottom-color: rgba(0, 0, 0, 0.06); }
.svc-cta { display: table; margin: 0 auto; }

/* Index services overview (rows linking to sluzby.html) */
.svc-index { display: flex; flex-direction: column; }
.svc-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s var(--ease-out);
}
.svc-row:first-child { border-top: 1px solid var(--border); }
.svc-row .svc-num {
  font: 700 13px/1 var(--font-mono, monospace);
  color: var(--green-primary);
  min-width: 28px;
  opacity: .7;
}
.svc-row-copy { flex: 1; min-width: 0; }
.svc-row h3 {
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 3px;
  transition: color 0.2s var(--ease-out);
}
.svc-row p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}
.svc-row .svc-arrow {
  font-size: 22px;
  color: var(--ink-faint);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.svc-row:hover h3 { color: var(--green-primary); }
.svc-row:hover .svc-arrow { color: var(--green-primary); transform: translateX(4px); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 980px) {
  .tiles-row--2,
  .tiles-row--3 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-grid       { grid-template-columns: 1fr 1fr; }
  .work-feature   { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .work-grid      { grid-template-columns: 1fr; }
  .work-grid > .work-card:last-child:nth-child(odd) { width: 100%; }
  .stat-grid      { grid-template-columns: 1fr; gap: 50px; }
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid   { grid-template-columns: 1fr; gap: 24px; }
  .team-grid      { grid-template-columns: 1fr 1fr; }
  .blog-grid      { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .navbar { height: 52px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 52px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(251, 251, 253, 0.96);
    -webkit-backdrop-filter: blur(20px);
            backdrop-filter: blur(20px);
    padding: 14px 22px 22px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 12px;
  }
  .nav-links .nav-cta {
    margin-top: 8px;
    justify-content: center;
  }

  .hero { padding-top: 110px; }
  .hero-ctas { gap: 18px; flex-direction: column; }
  .hero-stage { height: clamp(280px, 70vw, 420px); }
  .mac { height: 100%; }

  .services-grid,
  .why-grid,
  .footer-grid,
  .contact-info-cards,
  .team-grid { grid-template-columns: 1fr; }

  .stat-grid    { gap: 40px; }
  .stat-number  { font-size: clamp(60px, 14vw, 88px); }

  .blog-grid    { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Language switcher ─────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.lang-sep { color: var(--ink-muted); font-size: 12px; }
.lang-btn {
  background: none;
  border: none;
  font: 600 12px/1 var(--font);
  color: var(--ink-muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color .2s, background .2s;
  letter-spacing: .04em;
}
.lang-btn:hover { color: var(--ink); background: var(--bg-alt); }
.lang-btn.is-active { color: var(--green-primary); }

/* ── Segment tabs ──────────────────────────────────── */
.seg-tabs {
  display: flex;
  gap: 4px;
  margin: 0 auto 28px;
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
}
.seg-tab {
  background: none;
  border: none;
  padding: 8px 20px;
  border-radius: 7px;
  font: 500 14px/1.2 var(--font);
  color: var(--ink-muted);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.seg-tab.is-active {
  background: var(--bg-card);
  color: var(--green-primary);
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
  font-weight: 600;
}
.seg-content { display: none; }
.seg-content.is-active { display: block; }

/* ── Service accordions ────────────────────────────── */
.svc-accordion { display: flex; flex-direction: column; gap: 0; }
.svc-item {
  border-bottom: 1px solid var(--border);
}
.svc-item:first-child { border-top: 1px solid var(--border); }
.svc-header {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  background: none;
  border: none;
  padding: 20px 4px;
  cursor: pointer;
  text-align: left;
  font: 600 17px/1.3 var(--font);
  color: var(--ink);
  transition: color .2s;
}
.svc-header:hover { color: var(--green-primary); }
.svc-num {
  font: 700 13px/1 var(--font-mono, monospace);
  color: var(--green-primary);
  min-width: 28px;
  opacity: .7;
}
.svc-name { flex: 1; }
.svc-toggle {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}
.svc-toggle::before,
.svc-toggle::after {
  content: '';
  position: absolute;
  background: var(--ink-muted);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s;
}
.svc-toggle::before { width: 12px; height: 2px; top: 9px; left: 4px; }
.svc-toggle::after  { width: 2px; height: 12px; top: 4px; left: 9px; }
.svc-header[aria-expanded="true"] .svc-toggle::after { transform: rotate(90deg); opacity: 0; }
.svc-header[aria-expanded="true"] { color: var(--green-primary); }
.svc-body {
  padding: 0 4px 24px calc(28px + 18px);
  animation: svcOpen .22s ease;
}
@keyframes svcOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.svc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.svc-list li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
  padding-left: 16px;
  position: relative;
}
.svc-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--green-primary);
  opacity: .5;
  font-size: 13px;
}
.svc-list li strong { color: var(--ink); font-weight: 600; }

/* ── Mini-browser updated icon ─────────────────────── */
.mb-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  height: 9px;
  background: #fff;
  border-radius: 3px 3px 0 0;
  margin-bottom: 4px;
}
.mb-logo {
  width: 14px; height: 4px;
  background: var(--green-primary);
  border-radius: 2px;
  opacity: .6;
}
.mb-navdots { display: flex; gap: 3px; }
.mb-navdots i {
  display: block; width: 8px; height: 3px;
  background: var(--border);
  border-radius: 2px;
}
.mb-sections { display: flex; flex-direction: column; gap: 4px; padding: 0 2px; }
.mb-sec {
  border-radius: 3px;
  background: #e3e3e8;
}
.mb-sec--hero { height: 20px; background: linear-gradient(90deg, rgba(0, 140, 0, 0.14), rgba(0, 140, 0, 0.04)); }
.mb-sec-row { display: flex; gap: 3px; }
.mb-sec--card { flex: 1; height: 14px; }
.mb-sec--wide { height: 10px; width: 70%; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .flow-dot.active::before,
  .pulse-circle { animation: none; }
}
