/* ===========================================================
   ZUPRA TECH, Design System
   Inspired by editorial SaaS aesthetic, with our own identity:
   warm cream + electric lime + signature dotted grid background,
   custom Z node-mark, animated stat counters and marquee.
   =========================================================== */

:root {
  /* Colors, mint → cyan → electric blue gradient (matches Free Consultation CTA) */
  --mint: #3ce5c5; /* gradient stop 1, mint */
  --aqua: #1fd3e0; /* gradient stop 1.5, aqua transition */
  --cyan: #00c8ff; /* gradient stop 2, cyan */
  --electric: #2b6bff; /* gradient stop 3, electric blue */
  --green: #00c8ff; /* alias kept for legacy refs, points at cyan */
  --green-dk: #2b6bff; /* alias → electric blue */
  --green-lt: #dffcf5; /* tint, icy mint wash */
  --green-mid: #6cdfff; /* mid sky cyan */
  --neon: #3ce5c5; /* mint kicker for halos */
  --neon-2: #00ffd1; /* hyper-mint pop, secondary */
  --forest: #07101d; /* deep midnight, dark sections */
  --forest-2: #0e1a2d; /* navy panel */
  --ink: #0b1422;
  --stone: #4a5870;
  --stone-2: #6b788c;
  --dust: #a6b0bf;
  --cream: #f6f8fb;
  --chalk: #ffffff;
  --border: #dbe3ee;
  --muted: #eaf0f8;
  --accent-amber: #f4b942; /* secondary accent reserved for warnings/badges */

  /* Typography */
  --font-display:
    "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.3vw, 0.95rem);
  --text-base: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --text-hero: clamp(2.6rem, 1rem + 5.2vw, 5.75rem);

  /* Layout */
  --container: 1200px;
  --radius: 14px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(7, 16, 29, 0.06);
  --shadow-card:
    0 1px 0 rgba(7, 16, 29, 0.05), 0 6px 22px rgba(7, 16, 29, 0.04);
  --gradient-cta: linear-gradient(95deg, #3ce5c5 0%, #00c8ff 50%, #2b6bff 100%);
  --gradient-cta-hi: linear-gradient(
    95deg,
    #5bffd9 0%,
    #2ee0ff 50%,
    #4d85ff 100%
  );
  --gradient-text: linear-gradient(
    95deg,
    #3ce5c5 0%,
    #00c8ff 45%,
    #2b6bff 100%
  );
  --glow-green:
    0 0 0 1px color-mix(in srgb, #00c8ff 55%, transparent),
    0 0 28px color-mix(in srgb, #00c8ff 60%, transparent),
    0 0 56px color-mix(in srgb, #3ce5c5 45%, transparent);
  --glow-neon:
    0 0 0 1px color-mix(in srgb, #3ce5c5 60%, transparent),
    0 0 32px color-mix(in srgb, #3ce5c5 60%, transparent),
    0 0 80px color-mix(in srgb, #2b6bff 50%, transparent);
}

[data-theme="dark"] {
  --cream: #060b14; /* page background */
  --chalk: #0e1a2d; /* card surface */
  --ink: #e6eefb;
  --stone: #a8b6cc;
  --stone-2: #7a8aa3;
  --dust: #4a5870;
  --border: #15243c;
  --muted: #0f1b30;
  --forest: #04080f;
  --forest-2: #0a1322;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#zupra-ai {
  scroll-margin-top: 96px;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  font-weight: 400;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}
h1 {
  font-size: var(--text-hero);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
h2 {
  font-size: var(--text-2xl);
  line-height: 1.1;
}
h3 {
  font-size: var(--text-xl);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h4 {
  font-size: var(--text-lg);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

/* Body copy: comfortable measure and line-height */
p {
  margin: 0;
  line-height: 1.65;
  text-wrap: pretty;
}
p + p {
  margin-top: 0.85rem;
}
.card p,
.card p + p {
  line-height: 1.6;
}
strong,
b {
  color: var(--ink);
  font-weight: 700;
}

/* Generic prose link inside paragraphs */
p a:not([class]) {
  color: var(--ink);
  border-bottom: 1px solid color-mix(in srgb, var(--green) 60%, transparent);
  transition:
    color 0.15s,
    border-color 0.15s;
}
p a:not([class]):hover {
  color: var(--green-dk);
  border-bottom-color: var(--green-dk);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-dk);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--green));
  box-shadow: 0 0 8px color-mix(in srgb, var(--neon) 70%, transparent);
  border-radius: 2px;
}
[data-theme="dark"] .eyebrow {
  color: var(--green);
}

.muted {
  color: var(--stone);
}
.lead {
  color: var(--stone);
  font-size: var(--text-lg);
  line-height: 1.55;
  max-width: 56ch;
  text-wrap: pretty;
  font-weight: 400;
}
.mono {
  font-family: var(--font-mono);
}

/* Default paragraph max width inside content sections, prevents over-long lines */
section p:not(.lead):not(.muted):not([class*="hero"]) {
  max-width: 64ch;
}
.cta-band p,
.footer p,
.panel p,
.card p,
.industry p,
.mockup-row p,
.faq-item-body {
  max-width: none;
}
.two-col p {
  color: var(--stone);
  font-size: var(--text-base);
  max-width: 56ch;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}
section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--text-sm);
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    background 0.2s ease;
  white-space: nowrap;
  position: relative;
}
.btn-primary {
  background: var(--gradient-cta);
  color: #0b1422;
  font-weight: 700;
  box-shadow:
    0 0 0 1px color-mix(in srgb, #3ce5c5 50%, transparent),
    0 0 18px color-mix(in srgb, #3ce5c5 50%, transparent),
    0 0 38px color-mix(in srgb, #00c8ff 55%, transparent),
    0 8px 28px color-mix(in srgb, #2b6bff 45%, transparent);
}
.btn-primary:hover {
  background: var(--gradient-cta-hi);
  color: #0b1422;
  box-shadow:
    0 0 0 1px color-mix(in srgb, #5bffd9 70%, transparent),
    0 0 28px color-mix(in srgb, #5bffd9 70%, transparent),
    0 0 56px color-mix(in srgb, #2ee0ff 60%, transparent),
    0 10px 36px color-mix(in srgb, #4d85ff 50%, transparent);
  transform: translateY(-1px);
}
.btn-primary.pulse::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--green);
  opacity: 0.35;
  animation: pulse-ring 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  z-index: -1;
}
@keyframes pulse-ring {
  0% {
    transform: scale(0.96);
    opacity: 0.45;
  }
  70% {
    transform: scale(1.18);
    opacity: 0;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}
.btn-ghost {
  color: var(--ink);
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.btn-ghost .arrow {
  transition: transform 0.2s ease;
}
.btn-ghost:hover .arrow {
  transform: translateX(4px);
}
.btn-dark {
  background: var(--forest);
  color: var(--cream);
}
[data-theme="dark"] .btn-dark {
  background: var(--green);
  color: #0a0a0a;
}
.btn-dark:hover {
  background: #1d2f20;
}

.arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .arrow {
  transform: translateX(4px);
}

/* ===== Header / Nav ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.brand-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  filter: drop-shadow(
    0 0 6px color-mix(in srgb, var(--green) 35%, transparent)
  );
  transition: filter 0.3s ease;
}
.brand:hover .brand-logo {
  filter: drop-shadow(
    0 0 10px color-mix(in srgb, var(--neon) 75%, transparent)
  );
}
.brand-logo .node {
  fill: var(--forest);
  transition: fill 0.25s ease;
}
.brand-logo .accent-node {
  fill: var(--green);
}
.brand-logo .stroke-z {
  stroke: var(--green-dk);
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[data-theme="dark"] .brand-logo .node {
  fill: var(--green);
}
[data-theme="dark"] .brand-logo .accent-node {
  fill: var(--cream);
}
[data-theme="dark"] .brand-logo .stroke-z {
  stroke: var(--green);
}

.brand:hover .brand-logo .stroke-z {
  animation: draw-z 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand:hover .brand-logo .accent-node {
  animation: pop-node 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-logo .stroke-z {
  stroke-dasharray: 60;
  stroke-dashoffset: 0;
}
@keyframes draw-z {
  0% {
    stroke-dashoffset: 60;
  }
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes pop-node {
  0% {
    transform: scale(1);
    transform-origin: center;
  }
  50% {
    transform: scale(1.35);
    transform-origin: center;
  }
  100% {
    transform: scale(1);
    transform-origin: center;
  }
}

.brand-text {
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-tag {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-2);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--stone);
  transition: color 0.15s ease;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--forest);
  color: var(--cream);
  transition: transform 0.2s ease;
}
[data-theme="dark"] .icon-btn {
  background: var(--chalk);
  color: var(--ink);
}
.icon-btn:hover {
  transform: scale(1.05);
}
.menu-toggle {
  display: none;
}

@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 2rem;
    /* Hide off-screen by translating the FULL viewport up, not the panel's own
       height. -110% of the panel can leave bottom items (like mobile-cta)
       still visible at the top of the screen. -100vh guarantees it's fully
       above the viewport regardless of panel height. */
    transform: translateY(-100vh);
    transition: transform 0.3s ease;
    /* Also visually hide so even if transform fails on some browser, the
       panel is still not interactive / not visible until .open is applied. */
    visibility: hidden;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links li {
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child {
    border-bottom: 0;
  }
  .nav-links a.active::after {
    display: none;
  }
  .menu-toggle {
    display: grid;
  }
  .nav-cta-desktop {
    display: none;
  }
}

/* ===== Hero ===== */
.hero {
  text-align: left;
}
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
/* Signature dotted grid background, our differentiator vs supperbb's flat cream */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    color-mix(in srgb, var(--ink) 8%, transparent) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  background-position: 0 0;
  mask-image: radial-gradient(
    ellipse 80% 60% at 30% 40%,
    transparent 0%,
    black 60%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 80% 60% at 30% 40%,
    transparent 0%,
    black 60%
  );
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"] .hero::after {
  background-image: radial-gradient(
    color-mix(in srgb, var(--cream) 10%, transparent) 1px,
    transparent 1px
  );
}
.hero::before {
  content: "";
  position: absolute;
  inset: -8% -10% auto auto;
  width: 55vw;
  height: 55vw;
  max-width: 720px;
  max-height: 720px;
  background:
    radial-gradient(
      closest-side,
      color-mix(in srgb, var(--neon) 55%, transparent),
      transparent 65%
    ),
    radial-gradient(
      closest-side at 60% 50%,
      color-mix(in srgb, var(--green) 45%, transparent),
      transparent 70%
    ),
    radial-gradient(
      closest-side at 35% 70%,
      color-mix(in srgb, var(--green-dk) 38%, transparent),
      transparent 70%
    );
  filter: blur(28px) saturate(1.4);
  opacity: 0.65;
  pointer-events: none;
  z-index: 0;
  animation: drift 14s ease-in-out infinite;
}
[data-theme="dark"] .hero::before {
  opacity: 0.45;
}
@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-3%, 4%) scale(1.05);
  }
}
[data-theme="dark"] .hero::before {
  opacity: 0.25;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

/* Page meta line, replaces the AI-cliche pill badge.
   A numbered signpost in mono caps with a thin connecting rule. */
.page-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-2);
  margin-bottom: 1.75rem;
}
.page-meta-num {
  display: inline-block;
  padding: 0.35rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--green) 50%, var(--border));
  background: color-mix(in srgb, var(--green) 8%, transparent);
  color: var(--green-dk);
  font-weight: 700;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--green) 18%, transparent),
    inset 0 0 12px color-mix(in srgb, var(--green) 10%, transparent);
}
[data-theme="dark"] .page-meta-num {
  background: color-mix(in srgb, var(--green) 12%, transparent);
  color: var(--green);
  border-color: color-mix(in srgb, var(--green) 60%, var(--border));
}
.page-meta-rule {
  display: inline-block;
  width: 56px;
  height: 2px;
  background: var(--gradient-cta);
  border-radius: 2px;
  box-shadow: 0 0 8px color-mix(in srgb, #00c8ff 60%, transparent);
}
.page-meta-label {
  font-weight: 600;
  color: var(--stone);
}
[data-theme="dark"] .page-meta-num {
  border-color: var(--border);
  color: var(--ink);
}
@media (max-width: 540px) {
  .page-meta {
    gap: 0.55rem;
    font-size: 0.66rem;
    letter-spacing: 0.15em;
  }
  .page-meta-rule {
    width: 28px;
  }
}

/* Legacy hero-badge kept hidden as a safety net */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem 0.45rem 0.6rem;
  background: var(--chalk);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--stone);
  margin-bottom: 1.4rem;
  transition:
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}
.hero-pill:hover {
  border-color: color-mix(in srgb, var(--cyan) 55%, var(--border));
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--cyan) 45%, transparent);
  transform: translateY(-1px);
}
.hero-pill .arrow {
  transition: transform 0.15s;
}
.hero-pill:hover .arrow {
  transform: translateX(3px);
}
.hero-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient-cta);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 25%, transparent);
  animation: live-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* Browser-chrome frame around real product screenshot */
.browser-frame {
  padding-top: 0;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}
.browser-bar .mockup-bar {
  margin-bottom: 0;
}
.browser-url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone-2);
  background: var(--chalk);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.7rem;
  flex: 1;
  max-width: 260px;
}
/* Zupra AI interactive chat demo */
.ai-chat-demo {
  position: relative;
}
.ai-chat-window {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--neon) 30%, var(--border));
  background: var(--chalk);
  box-shadow:
    0 30px 80px -30px color-mix(in srgb, var(--electric) 35%, transparent),
    0 0 50px -20px color-mix(in srgb, var(--mint) 40%, transparent);
}
.ai-chat-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  min-height: 360px;
  background: linear-gradient(180deg, var(--green-lt) 0%, var(--cream) 100%);
}
[data-theme="dark"] .ai-chat-body {
  background: linear-gradient(180deg, #102544 0%, var(--forest-2) 100%);
}
.chat-msg {
  max-width: 82%;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  font-size: var(--text-sm);
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  animation: chat-msg-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes chat-msg-in {
  to {
    opacity: 1;
    transform: none;
  }
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--forest);
  color: #f6f8fb;
  border-bottom-right-radius: 4px;
}
.chat-msg.ai {
  align-self: flex-start;
  background: var(--chalk);
  border: 1px solid var(--border);
  color: var(--ink);
  border-bottom-left-radius: 4px;
  position: relative;
  padding-left: 2.5rem;
}
.chat-msg.ai::before {
  content: "✦";
  position: absolute;
  left: 0.7rem;
  top: 0.65rem;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--gradient-cta);
  color: #061019;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.chat-msg.ai b {
  color: var(--ink);
}
.chat-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 0.8rem 1rem 0.8rem 2.5rem;
  position: relative;
}
.chat-typing::before {
  content: "✦";
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--gradient-cta);
  color: #061019;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.chat-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--stone-2);
  animation: chat-dot 1.1s ease-in-out infinite;
}
.chat-typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.chat-typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes chat-dot {
  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
@media (max-width: 880px) {
  .ai-chat-body {
    min-height: 300px;
  }
}

.ai-floating .ai-floating-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient-cta);
  color: #061019;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ai-floating b {
  color: #f6f8fb;
}

.hero-badge {
  display: none !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem 0.4rem 0.5rem;
  background: var(--chalk);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  color: var(--stone);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 25%, transparent);
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 25%, transparent);
  }
  50% {
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--green) 0%, transparent);
  }
}

.hero h1 .accent {
  position: relative;
  display: inline-block;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.06em;
  height: 0.22em;
  width: 0%;
  background: var(--gradient-cta);
  border-radius: 4px;
  z-index: -1;
  box-shadow: 0 0 24px color-mix(in srgb, #00c8ff 60%, transparent);
  animation: underline-grow 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}
@keyframes underline-grow {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}
.hero p.lead {
  margin-top: 1.4rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  align-items: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
@media (max-width: 540px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat-label {
  font-size: var(--text-xs);
  color: var(--stone-2);
  margin-top: 2px;
}

/* Hero entrance: cascade text in (Clear Street: 500ms ease-out, 100ms stagger) */
.hero [data-stagger] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
  will-change: opacity, transform;
}
.hero.in [data-stagger] {
  opacity: 1;
  transform: none;
}
.hero.in [data-stagger="1"] {
  transition-delay: 0s;
}
.hero.in [data-stagger="2"] {
  transition-delay: 0.1s;
}
.hero.in [data-stagger="3"] {
  transition-delay: 0.2s;
}
.hero.in [data-stagger="4"] {
  transition-delay: 0.3s;
}
.hero.in [data-stagger="5"] {
  transition-delay: 0.4s;
}
/* Safety net: if JS fails or class never lands, force visible after 1.2s */
@keyframes hero-stagger-fallback {
  to {
    opacity: 1;
    transform: none;
  }
}
.hero [data-stagger] {
  animation: hero-stagger-fallback 0.5s ease-out 1.2s forwards;
}
.hero.in [data-stagger] {
  animation: none;
}

/* Hero Visual: AI-generated dashboard image with neon halo */
.hero-visual {
  position: relative;
  aspect-ratio: 16 / 9.5;
  border-radius: var(--radius-lg);
  overflow: visible;
  transform: translateY(0);
  animation: float-card 8s ease-in-out infinite;
}
.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--neon) 40%, var(--border));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--green) 30%, transparent),
    0 30px 80px -20px color-mix(in srgb, var(--green) 35%, transparent),
    0 0 60px -10px color-mix(in srgb, var(--neon) 50%, transparent);
}
.hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}
.hero-image-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--neon) 30%, transparent),
    transparent 70%
  );
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
  animation: hero-image-pulse 6s ease-in-out infinite;
}
@keyframes hero-image-pulse {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.04);
  }
}
@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.mockup-bar {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.mockup-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}
.mockup-bar i:nth-child(1) {
  background: #ff5f57;
}
.mockup-bar i:nth-child(2) {
  background: #febc2e;
}
.mockup-bar i:nth-child(3) {
  background: #28c840;
}
.mockup-screen {
  background: linear-gradient(180deg, var(--green-lt) 0%, var(--cream) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem;
  height: calc(100% - 28px);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .mockup-screen {
  background: linear-gradient(180deg, #102544 0%, var(--forest-2) 100%);
}
.mockup-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: var(--chalk);
  border: 1px solid var(--border);
  border-radius: 10px;
  opacity: 0;
  transform: translateX(-12px);
  animation: row-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
}
.mockup-row:nth-child(1) {
  animation-delay: 0.8s;
}
.mockup-row:nth-child(2) {
  animation-delay: 1s;
}
.mockup-row:nth-child(3) {
  animation-delay: 1.2s;
}
.mockup-row:nth-child(4) {
  animation-delay: 1.4s;
}
@keyframes row-in {
  to {
    opacity: 1;
    transform: none;
  }
}
.mockup-row .icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--green-lt);
  color: var(--forest);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.mockup-row .icon.green {
  background: var(--green);
}
.mockup-row .icon.dark {
  background: var(--forest);
  color: var(--green);
}
.mockup-row .meta {
  flex: 1;
  min-width: 0;
}
.mockup-row .meta b {
  display: block;
  font-size: var(--text-sm);
  color: var(--ink);
  font-weight: 600;
}
.mockup-row .meta span {
  font-size: var(--text-xs);
  color: var(--stone-2);
}
.mockup-row .pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--green-mid);
  color: var(--forest);
}
.mockup-row .pill.live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-dk);
  margin-right: 5px;
  vertical-align: middle;
  animation: live-pulse 1.6s ease-in-out infinite;
}
.mockup-floating {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--forest);
  color: var(--cream);
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 20px 40px -20px rgba(15, 31, 18, 0.35);
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  animation: float-pop 1s cubic-bezier(0.16, 1, 0.3, 1) 1.6s forwards;
}
@keyframes float-pop {
  to {
    opacity: 1;
    transform: none;
  }
}
.mockup-floating .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--green);
  line-height: 1;
}
.mockup-floating small {
  display: block;
  font-size: 11px;
  color: var(--dust);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mockup-floating b {
  font-size: var(--text-sm);
  color: #f6f8fb;
  font-weight: 700;
}

/* ===== Marquee logo strip, replaces flat letter-tile bar ===== */
.marquee {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--chalk);
  overflow: hidden;
  position: relative;
}
.marquee-label {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-2);
  margin-bottom: 1.25rem;
}
.marquee-track {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  width: max-content;
  animation: marquee 38s linear infinite;
  align-items: center;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--stone);
  white-space: nowrap;
  opacity: 0.85;
  transition:
    opacity 0.2s ease,
    color 0.2s ease;
}
.marquee-item:hover {
  opacity: 1;
  color: var(--ink);
}
.marquee-item .badge {
  background: var(--forest);
  color: var(--green);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 6px;
  text-transform: uppercase;
}
.marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 1;
}
.marquee-fade.left {
  left: 0;
  background: linear-gradient(to right, var(--chalk), transparent);
}
.marquee-fade.right {
  right: 0;
  background: linear-gradient(to left, var(--chalk), transparent);
}

/* SAP wordmark style */
.sap-mark {
  background: #003d85;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 5px;
  font-style: italic;
}
[data-theme="dark"] .sap-mark {
  background: #1b6fcc;
}

/* ===== Section Header ===== */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  max-width: 760px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head.center .eyebrow {
  justify-content: center;
}
.section-head.split {
  max-width: none;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 2rem;
}
@media (max-width: 760px) {
  .section-head.split {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.card-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.card-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 880px) {
  .card-grid,
  .card-grid.cols-3,
  .card-grid.cols-4 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .card-grid,
  .card-grid.cols-3,
  .card-grid.cols-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--chalk);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--neon),
    var(--green),
    var(--green-dk)
  );
  box-shadow: 0 0 14px color-mix(in srgb, var(--neon) 70%, transparent);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover::before {
  transform: translateX(0);
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--green) 60%, var(--border));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--green) 25%, transparent),
    0 14px 36px -10px color-mix(in srgb, var(--green) 35%, transparent),
    0 0 28px color-mix(in srgb, var(--neon) 18%, transparent);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--green) 25%, var(--green-lt)),
    var(--green-lt)
  );
  color: var(--green-dk);
  display: grid;
  place-items: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--green) 30%, transparent),
    0 6px 18px -6px color-mix(in srgb, var(--green) 45%, transparent);
}
.card:hover .card-icon {
  transform: rotate(-6deg) scale(1.05);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--green) 50%, transparent),
    0 8px 26px color-mix(in srgb, var(--neon) 45%, transparent);
}
[data-theme="dark"] .card-icon {
  background: color-mix(in srgb, var(--green) 18%, var(--forest-2));
  color: var(--green);
}
.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--green-mid);
  color: var(--forest);
  border-radius: var(--radius-pill);
  width: fit-content;
}
.card h3 {
  font-size: var(--text-lg);
}
.card p {
  color: var(--stone);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  margin-top: auto;
}
.card-link .arrow {
  transition: transform 0.2s ease;
}
.card:hover .card-link .arrow {
  transform: translateX(4px);
}

/* Numbered card */
.card-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--dust);
  letter-spacing: -0.02em;
}
.card:hover .card-num {
  color: var(--green-dk);
  transition: color 0.25s ease;
}

/* Accent card */
.card.accent {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}
.card.accent::before {
  background: linear-gradient(90deg, var(--neon), var(--green));
  transform: translateX(0);
  box-shadow: 0 0 18px color-mix(in srgb, var(--neon) 80%, transparent);
}
.card.accent h3 {
  color: var(--cream);
}
.card.accent p {
  color: color-mix(in srgb, var(--cream) 75%, transparent);
}
.card.accent .card-icon {
  background: linear-gradient(135deg, var(--neon), var(--green));
  color: var(--forest);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--neon) 60%, transparent),
    0 0 24px color-mix(in srgb, var(--neon) 55%, transparent);
}
.card.accent .card-link {
  color: var(--neon);
}

/* ===== Stats Section ===== */
.stats-band {
  background: var(--chalk);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 760px) {
  .stats-band {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stat-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
}
.stat-big-label {
  font-size: var(--text-sm);
  color: var(--stone);
  margin-top: 0.5rem;
}

/* ===== Industries Tile ===== */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 880px) {
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .industry-grid {
    grid-template-columns: 1fr;
  }
}
.industry {
  background: var(--chalk);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.industry::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), var(--green));
  box-shadow: 0 0 14px color-mix(in srgb, var(--neon) 65%, transparent);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.industry:hover::before {
  transform: translateX(0);
}
.industry:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--green) 65%, var(--border));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--green) 22%, transparent),
    0 12px 30px -10px color-mix(in srgb, var(--green) 30%, transparent);
}
.industry h4 {
  font-size: var(--text-lg);
}
.industry p {
  color: var(--stone);
  font-size: var(--text-sm);
}
.industry-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--green) 28%, var(--green-lt)),
    var(--green-lt)
  );
  color: var(--green-dk);
  display: grid;
  place-items: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--green) 28%, transparent),
    0 4px 14px -4px color-mix(in srgb, var(--green) 40%, transparent);
}
.industry:hover .industry-icon {
  transform: rotate(-6deg) scale(1.05);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--green) 55%, transparent),
    0 6px 22px color-mix(in srgb, var(--neon) 50%, transparent);
}
[data-theme="dark"] .industry-icon {
  background: color-mix(in srgb, var(--green) 18%, var(--forest-2));
  color: var(--green);
}

/* ===== Split Feature (text + photo, used on home Why Zupra) ===== */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 880px) {
  .split-feature {
    grid-template-columns: 1fr;
  }
}
.split-feature-text {
  max-width: 56ch;
}
.split-feature-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--neon) 30%, var(--border));
  box-shadow:
    0 30px 80px -30px color-mix(in srgb, var(--electric) 35%, transparent),
    0 0 50px -20px color-mix(in srgb, var(--mint) 40%, transparent);
  aspect-ratio: 16 / 11;
}
.split-feature-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 60%,
    color-mix(in srgb, var(--electric) 25%, transparent)
  );
  z-index: 1;
  pointer-events: none;
}
.split-feature-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cyan) 40%, transparent);
  pointer-events: none;
  z-index: 2;
}
.split-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease-out;
}
.split-feature:hover .split-feature-image img {
  transform: scale(1.03);
}

/* ===== CTA dark band ===== */
.cta-band {
  background: var(--forest);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.cta-band-with-image .cta-band-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-band-with-image .cta-band-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(1.1) contrast(1.05);
}
.cta-band-with-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    color-mix(in srgb, var(--forest) 92%, transparent) 0%,
    color-mix(in srgb, var(--forest) 75%, transparent) 50%,
    color-mix(in srgb, var(--forest) 60%, transparent) 100%
  );
  z-index: 1;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -50%;
  width: 50%;
  aspect-ratio: 1;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--green) 35%, transparent),
    transparent 70%
  );
  filter: blur(40px);
  pointer-events: none;
  animation: drift 12s ease-in-out infinite reverse;
}
.cta-band-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: end;
  position: relative;
  z-index: 1;
}
@media (max-width: 760px) {
  .cta-band-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
}
.cta-band h2 {
  color: var(--cream);
}
.cta-band p {
  color: color-mix(in srgb, var(--cream) 75%, transparent);
  margin-top: 1rem;
  max-width: 50ch;
}
.cta-band .actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-self: end;
}
@media (max-width: 760px) {
  .cta-band .actions {
    justify-self: start;
  }
}
.cta-band .btn-ghost {
  color: var(--cream);
}

/* ===== Footer ===== */
.footer {
  background: var(--forest);
  color: color-mix(in srgb, var(--cream) 80%, transparent);
  padding: clamp(3rem, 6vw, 5rem) 0 1.5rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid color-mix(in srgb, var(--cream) 12%, transparent);
}
@media (max-width: 880px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}
.footer .brand-logo .node {
  fill: var(--green);
}
.footer .brand-logo .accent-node {
  fill: var(--cream);
}
.footer .brand-logo .stroke-z {
  stroke: var(--green);
}
.footer .brand-name {
  color: var(--cream);
}
.footer .brand-tag {
  color: color-mix(in srgb, var(--cream) 55%, transparent);
}
.footer-tagline {
  margin-top: 1rem;
  max-width: 30ch;
  font-size: var(--text-sm);
}
.footer-col h5 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 60%, transparent);
  margin: 0 0 1rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-col a {
  font-size: var(--text-sm);
  color: color-mix(in srgb, var(--cream) 80%, transparent);
  transition: color 0.15s ease;
}
.footer-col a:hover {
  color: var(--green);
}
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--text-xs);
  color: color-mix(in srgb, var(--cream) 55%, transparent);
}
.footer-social {
  display: flex;
  gap: 0.5rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--cream) 18%, transparent);
  display: grid;
  place-items: center;
  color: var(--cream);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}
.footer-social a:hover {
  background: var(--green);
  color: var(--forest);
  border-color: var(--green);
  transform: translateY(-2px);
}

/* ===== Page Hero (interior pages) ===== */
.page-hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -10% auto auto -10%;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--green) 45%, transparent),
    transparent 70%
  );
  filter: blur(20px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    color-mix(in srgb, var(--ink) 7%, transparent) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"] .page-hero::after {
  background-image: radial-gradient(
    color-mix(in srgb, var(--cream) 9%, transparent) 1px,
    transparent 1px
  );
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  text-align: center;
}
.page-hero p,
.page-hero .lead,
.page-hero .page-meta {
  text-align: center;
}
.page-hero .eyebrow {
  justify-content: center;
}
/* Center the CTA button cluster inside any page hero. The flex container is
   set inline in HTML; this overrides its default left alignment. */
.page-hero-inner > div[style*="display:flex"],
.page-hero-inner > div[style*="display: flex"] {
  justify-content: center;
}

/* ===== Process / Steps with connector line ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
}
@media (max-width: 880px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step {
  background: var(--chalk);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}
.step:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--green) 60%, var(--border));
}
.step-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green-dk);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.step-num::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}
.step h4 {
  margin-top: 0.75rem;
  font-size: var(--text-base);
}
.step p {
  color: var(--stone);
  font-size: var(--text-sm);
  margin-top: 0.35rem;
}

/* ===== Feature list (icon + text rows) ===== */
.feature-list {
  display: grid;
  gap: 1rem;
}
.feature-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}
.feature-row:hover {
  background: color-mix(in srgb, var(--green-lt) 40%, transparent);
}
.feature-row:last-child {
  border-bottom: 0;
}
.feature-row .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-lt);
  color: var(--forest);
  display: grid;
  place-items: center;
}
[data-theme="dark"] .feature-row .icon {
  background: var(--forest-2);
  color: var(--green);
}
.feature-row h4 {
  font-size: var(--text-base);
}
.feature-row p {
  font-size: var(--text-sm);
  color: var(--stone);
  margin-top: 0.25rem;
}

/* ===== Two Column ===== */
.two-col {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.two-col.reverse > *:first-child {
  order: 2;
}
@media (max-width: 880px) {
  .two-col,
  .two-col.reverse {
    grid-template-columns: 1fr;
  }
  .two-col.reverse > *:first-child {
    order: 0;
  }
}
.two-col h2 {
  margin-bottom: 1rem;
}
.two-col p {
  color: var(--stone);
  font-size: var(--text-base);
  max-width: 56ch;
}

/* ===== Checks list ===== */
.check-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--stone);
}
.check-list li > strong {
  color: var(--ink);
  font-weight: 700;
}
.check-list .check-text {
  flex: 1 1 auto;
  min-width: 0;
}
.check-list .check-text strong {
  margin-right: 0;
}
.check-list .check {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--neon), var(--green));
  color: var(--forest);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--neon) 50%, transparent),
    0 0 12px color-mix(in srgb, var(--neon) 55%, transparent);
  margin-top: 0.15rem;
}

/* ===== Side panel image ===== */
.panel {
  background: var(--chalk);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.panel-bar {
  display: flex;
  gap: 0.35rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.panel-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}
.panel-bar i:nth-child(1) {
  background: #ff5f57;
}
.panel-bar i:nth-child(2) {
  background: #febc2e;
}
.panel-bar i:nth-child(3) {
  background: #28c840;
}

/* ===== FAQ ===== */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--stone);
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--green-dk);
}
.faq-item-body {
  padding-bottom: 1.25rem;
  color: var(--stone);
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: 65ch;
}

/* ===== Form ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}
.form-grid .full {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-2);
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: var(--text-sm);
  padding: 0.85rem 1rem;
  background: var(--chalk);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 25%, transparent);
}

/* ===== Contact info card ===== */
.contact-card {
  background: var(--chalk);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.85rem;
  align-items: start;
}
.contact-row .icon {
  width: 40px;
  height: 40px;
  background: var(--green-lt);
  color: var(--forest);
  border-radius: 10px;
  display: grid;
  place-items: center;
}
[data-theme="dark"] .contact-row .icon {
  background: var(--forest-2);
  color: var(--green);
}
.contact-row b {
  display: block;
  font-size: var(--text-sm);
  color: var(--ink);
  margin-bottom: 2px;
}
.contact-row span,
.contact-row a {
  font-size: var(--text-sm);
  color: var(--stone);
}
.contact-row a:hover {
  color: var(--ink);
}

/* ===== Pricing principle blocks ===== */
.principle {
  background: var(--chalk);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}
.principle:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--green) 60%, var(--border));
}
.principle .sym {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--green-dk);
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* ===== Sassy Reveal animation =====
   Bigger travel (60px), slight scale + blur, snappy overshoot ease, ~700ms
   ============================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(60px) scale(0.96);
  filter: blur(6px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.6s ease-out;
  will-change: opacity, transform, filter;
}
[data-reveal].in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Stagger child cards inside grids: 120ms apart, each with the same sassy curve */
.card-grid[data-reveal] > *,
.industry-grid[data-reveal] > *,
.cards-row[data-reveal] > *,
.stats-band > * {
  opacity: 0;
  transform: translateY(60px) scale(0.94);
  filter: blur(8px);
  will-change: opacity, transform, filter;
}
.card-grid[data-reveal].in > *,
.industry-grid[data-reveal].in > *,
.cards-row[data-reveal].in > *,
[data-reveal].in .stats-band > * {
  animation: sassy-child-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes sassy-child-up {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.94);
    filter: blur(8px);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
.card-grid[data-reveal].in > *:nth-child(1),
.industry-grid[data-reveal].in > *:nth-child(1),
.cards-row[data-reveal].in > *:nth-child(1),
[data-reveal].in .stats-band > *:nth-child(1) {
  animation-delay: 0ms;
}
.card-grid[data-reveal].in > *:nth-child(2),
.industry-grid[data-reveal].in > *:nth-child(2),
.cards-row[data-reveal].in > *:nth-child(2),
[data-reveal].in .stats-band > *:nth-child(2) {
  animation-delay: 120ms;
}
.card-grid[data-reveal].in > *:nth-child(3),
.industry-grid[data-reveal].in > *:nth-child(3),
.cards-row[data-reveal].in > *:nth-child(3),
[data-reveal].in .stats-band > *:nth-child(3) {
  animation-delay: 240ms;
}
.card-grid[data-reveal].in > *:nth-child(4),
.industry-grid[data-reveal].in > *:nth-child(4),
.cards-row[data-reveal].in > *:nth-child(4),
[data-reveal].in .stats-band > *:nth-child(4) {
  animation-delay: 360ms;
}
.card-grid[data-reveal].in > *:nth-child(5),
.industry-grid[data-reveal].in > *:nth-child(5),
.cards-row[data-reveal].in > *:nth-child(5) {
  animation-delay: 480ms;
}
.card-grid[data-reveal].in > *:nth-child(6),
.industry-grid[data-reveal].in > *:nth-child(6),
.cards-row[data-reveal].in > *:nth-child(6) {
  animation-delay: 600ms;
}

/* Section headings: slide-from-left feel for split heads */
.section-head[data-reveal],
.section-head.split[data-reveal] {
  transform: translateY(40px) translateX(-20px) scale(0.97);
}
.section-head[data-reveal].in,
.section-head.split[data-reveal].in {
  transform: none;
}

/* Image features: slight scale-in, no blur on photos to avoid jank */
.split-feature[data-reveal] {
  transform: translateY(50px) scale(0.96);
  filter: none;
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.split-feature[data-reveal].in {
  transform: none;
}

/* Page-hero fade-up — same baseline so non-index pages aren't blank */
.page-hero [data-reveal],
.page-hero-inner[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
}
.page-hero.in [data-reveal],
.page-hero.in.page-hero-inner[data-reveal],
.page-hero.in .page-hero-inner[data-reveal] {
  opacity: 1;
  transform: none;
}
/* Safety net for page-hero too */
@keyframes page-hero-fallback {
  to {
    opacity: 1;
    transform: none;
  }
}
.page-hero-inner[data-reveal] {
  animation: page-hero-fallback 0.5s ease-out 1.2s forwards;
}
.page-hero.in .page-hero-inner[data-reveal] {
  animation: none;
}

/* ===== Utility ===== */
.text-center {
  text-align: center;
}
.mt-2 {
  margin-top: 2rem;
}
.mt-3 {
  margin-top: 3rem;
}
.mb-3 {
  margin-bottom: 3rem;
}
.flex-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .hero [data-stagger] {
    opacity: 1;
    transform: none;
  }
  .mockup-row,
  .mockup-floating {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .hero h1 .accent::after {
    width: 100%;
    animation: none;
  }
}

/* ============================================
   v6 — Card gradient sheen, mobile optimization,
   image scroll reveal, hero photo animation
   ============================================ */

/* ---------- Card gradient sheen (less "AI-coded") ---------- */
.card {
  background:
    radial-gradient(
      120% 80% at 0% 0%,
      color-mix(in srgb, var(--mint) 12%, transparent) 0%,
      transparent 55%
    ),
    radial-gradient(
      110% 90% at 100% 100%,
      color-mix(in srgb, var(--electric) 14%, transparent) 0%,
      transparent 60%
    ),
    var(--chalk);
  position: relative;
}
[data-theme="dark"] .card {
  background:
    radial-gradient(
      120% 80% at 0% 0%,
      color-mix(in srgb, var(--mint) 10%, transparent) 0%,
      transparent 55%
    ),
    radial-gradient(
      110% 90% at 100% 100%,
      color-mix(in srgb, var(--electric) 16%, transparent) 0%,
      transparent 60%
    ),
    var(--chalk);
}
/* Soft moving sheen on the surface, very subtle */
.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    transparent 30%,
    color-mix(in srgb, var(--cyan) 18%, transparent) 50%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}
.card:hover::after {
  opacity: 1;
}
.card > * {
  position: relative;
  z-index: 1;
}

.card.accent {
  background:
    radial-gradient(
      130% 90% at 0% 0%,
      color-mix(in srgb, var(--mint) 22%, transparent) 0%,
      transparent 55%
    ),
    radial-gradient(
      110% 90% at 100% 100%,
      color-mix(in srgb, var(--electric) 22%, transparent) 0%,
      transparent 60%
    ),
    color-mix(in srgb, var(--cyan) 4%, var(--chalk));
  border-color: color-mix(in srgb, var(--cyan) 45%, var(--border));
  color: var(--ink);
}
/* The earlier dark-forest .card.accent rule set h3/p/text to cream — but this
   rule lightens the background, so we need to restore dark text for contrast
   in light theme. Dark theme is handled separately further down. */
.card.accent h3 {
  color: var(--ink);
}
.card.accent p {
  color: var(--stone);
}
.card.accent .check-list li,
.card.accent .check-list .check-text {
  color: var(--stone);
}
.card.accent .check-list li > strong {
  color: var(--ink);
}
.card.accent .card-link {
  color: var(--green-dk, #0ba38b);
}
[data-theme="dark"] .card.accent {
  color: var(--ink);
}
[data-theme="dark"] .card.accent h3 {
  color: var(--ink);
}
[data-theme="dark"] .card.accent p {
  color: var(--stone);
}
[data-theme="dark"] .card.accent .check-list .check-text {
  color: var(--stone);
}

/* Industry cards inherit the same softness */
.industry {
  background:
    radial-gradient(
      120% 80% at 0% 0%,
      color-mix(in srgb, var(--mint) 10%, transparent) 0%,
      transparent 55%
    ),
    radial-gradient(
      110% 90% at 100% 100%,
      color-mix(in srgb, var(--electric) 12%, transparent) 0%,
      transparent 60%
    ),
    var(--chalk);
}

/* ---------- Image scroll reveal (sassy slide in) ---------- */
.split-feature-image,
.cta-band-with-image .cta-band-image,
.hero-image-wrap {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  filter: blur(4px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.34, 1.4, 0.5, 1),
    filter 0.8s ease-out;
}
[data-reveal].in .split-feature-image,
[data-reveal].in .hero-image-wrap,
[data-reveal].in .cta-band-with-image .cta-band-image,
.split-feature-image.in,
.hero-image-wrap.in,
.cta-band-with-image .cta-band-image.in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
/* Hero photo: gentle floating loop after reveal */
@keyframes hero-photo-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.012);
  }
}
[data-reveal].in .hero-image-wrap {
  animation: hero-photo-float 9s ease-in-out 1.2s infinite;
}
/* Subtle Ken-Burns zoom on big stock images */
@keyframes slow-zoom {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}
.split-feature-image img {
  animation: slow-zoom 18s ease-in-out infinite;
}

/* ---------- MOBILE OPTIMIZATION ---------- */

/* Tablet: 880px and below */
@media (max-width: 880px) {
  /* Tighten section paddings */
  section {
    padding-block: clamp(2.5rem, 6vw, 4rem);
  }
  .container {
    padding-inline: 1.25rem;
  }

  /* Hero: stack and recenter */
  .hero {
    padding: clamp(2.25rem, 6vw, 3.5rem) 0 clamp(2rem, 5vw, 3rem);
  }
  .hero-grid {
    gap: 2rem;
  }
  .hero h1 br {
    display: none;
  }
  .hero-actions {
    flex-wrap: wrap;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
  }

  /* Hero image: reduce its aggressive shadow on mobile */
  .hero-image-wrap {
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--green) 25%, transparent),
      0 18px 40px -16px color-mix(in srgb, var(--green) 30%, transparent);
  }
  .mockup-floating {
    display: none;
  }
}

/* Phone: 640px and below — the real polish layer */
@media (max-width: 640px) {
  :root {
    --text-hero: clamp(2.2rem, 9vw, 2.9rem);
    --text-2xl: clamp(1.6rem, 7vw, 2.1rem);
    --text-xl: clamp(1.25rem, 5.5vw, 1.55rem);
  }

  body {
    font-size: 15px;
  }

  /* Container respects safe-area on iPhone */
  .container {
    padding-inline: max(1.1rem, env(safe-area-inset-left));
  }

  /* Nav: tighten */
  .nav {
    height: 60px;
  }
  .brand-name {
    font-size: 1.1rem;
  }
  .brand-tag {
    font-size: 9px;
    letter-spacing: 0.18em;
  }
  .brand-logo {
    width: 40px;
    height: 40px;
  }
  .nav-links {
    inset-block-start: 60px;
    padding: 1rem 1.25rem 2rem;
  }
  .icon-btn {
    width: 36px;
    height: 36px;
  }

  /* Hero spacing */
  .hero {
    padding: 1.75rem 0 2.25rem;
  }
  .hero h1 {
    line-height: 1.05;
  }
  .hero p.lead {
    font-size: 1rem;
    line-height: 1.55;
    margin-top: 1rem;
  }
  .hero-actions {
    gap: 0.6rem;
    margin-top: 1.4rem;
  }
  .hero-actions .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
  }
  .hero-stats {
    margin-top: 2rem;
    gap: 1rem 1.25rem;
  }
  .stat-num {
    font-size: 1.4rem;
  }
  .stat-label {
    font-size: 0.72rem;
  }

  /* Page hero on subpages */
  .page-hero {
    padding-block: clamp(2rem, 7vw, 3.5rem);
  }
  .page-hero h1 {
    font-size: clamp(2.1rem, 9vw, 2.7rem);
  }

  /* Sections */
  section {
    padding-block: 2.5rem;
  }
  .section-head.split {
    gap: 1rem;
  }
  h2 {
    line-height: 1.12;
  }

  /* Cards & grids */
  .card {
    padding: 1.25rem;
    gap: 0.7rem;
  }
  .card h3 {
    font-size: 1.15rem;
  }
  .card p {
    font-size: 0.92rem;
  }
  .card-grid {
    gap: 1rem;
  }
  .industry {
    padding: 1.1rem;
  }
  .industry-grid {
    gap: 0.85rem;
  }

  /* Split-feature */
  .split-feature {
    gap: 1.5rem;
  }
  .split-feature-image {
    aspect-ratio: 4 / 3;
  }

  /* CTA band */
  .cta-band {
    padding: 2rem 1.5rem;
    border-radius: 18px;
  }
  .cta-band h2 {
    font-size: 1.7rem;
    line-height: 1.15;
  }
  .cta-band p {
    font-size: 0.95rem;
  }
  .cta-band .actions .btn {
    width: 100%;
    justify-content: center;
  }
  .cta-band-grid {
    gap: 1.4rem;
  }

  /* Stats band */
  .stats-band {
    gap: 1rem;
  }

  /* Marquee tighter */
  .marquee {
    padding-block: 1.25rem;
  }
  .marquee-item {
    font-size: 0.85rem;
  }

  /* Footer single column polish */
  .footer {
    padding: 2.5rem 0 1.25rem;
  }
  .footer-top {
    gap: 1.5rem;
  }

  /* Forms */
  input,
  textarea,
  select {
    font-size: 16px;
  } /* prevents iOS zoom on focus */

  /* Buttons fit thumb */
  .btn {
    padding: 12px 20px;
  }

  /* Disable expensive blurs on small screens */
  .hero::before {
    filter: blur(40px) saturate(1.2);
    opacity: 0.4;
  }
}

/* Phone narrow: 380px and below */
@media (max-width: 380px) {
  :root {
    --text-hero: clamp(1.95rem, 9vw, 2.4rem);
  }
  .container {
    padding-inline: 1rem;
  }
  .stat-num {
    font-size: 1.25rem;
  }
  .card-badge {
    font-size: 10px;
    padding: 3px 8px;
  }
}

/* Touch device: remove hover-scale that feels stuck */
@media (hover: none) {
  .card:hover {
    transform: none;
  }
  .industry:hover {
    transform: none;
  }
  .btn:hover {
    transform: none;
  }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  [data-reveal].in .hero-image-wrap,
  .split-feature-image img {
    animation: none;
  }
}

/* ---------- Tech platform logo strip ---------- */
.tech-strip {
  padding: 2.25rem 0;
}
.logo-item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--cream);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  opacity: 0.85;
  transition: all 0.25s ease;
}
[data-theme="dark"] .logo-item {
  background: color-mix(in srgb, var(--chalk) 80%, transparent);
}
.logo-item:hover {
  opacity: 1;
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--cyan) 40%, var(--border));
  box-shadow: 0 8px 22px -10px
    color-mix(in srgb, var(--electric) 30%, transparent);
}
.plat-logo {
  width: auto;
  height: 24px;
  flex-shrink: 0;
  display: block;
}
.plat-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
@media (max-width: 640px) {
  .logo-item {
    padding: 0.45rem 0.85rem;
    gap: 0.55rem;
  }
  .plat-logo {
    height: 20px;
  }
  .plat-name {
    font-size: 0.82rem;
  }
}

/* =====================================================
   v7 — Animated hero, dark-mode contrast, mobile UX
   ===================================================== */

/* ---------- LOGO STYLING (new gradient Z mark) ---------- */
.brand-logo {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 14px color-mix(in srgb, #00c8ff 35%, transparent));
  transition:
    filter 0.35s ease,
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand:hover .brand-logo {
  filter: drop-shadow(0 0 22px color-mix(in srgb, #3ce5c5 70%, transparent));
  transform: rotate(-4deg) scale(1.06);
}
.brand-logo .logo-bg {
  transition: opacity 0.3s ease;
}
[data-theme="dark"] .brand-logo .logo-bg {
  opacity: 0.55;
}
.brand-logo .stroke-z {
  stroke-dasharray: 90;
  stroke-dashoffset: 0;
  transition: stroke-width 0.3s ease;
}
.brand:hover .brand-logo .stroke-z {
  animation: zdraw 1s cubic-bezier(0.65, 0, 0.35, 1);
}
@keyframes zdraw {
  0% {
    stroke-dashoffset: 90;
    opacity: 0.3;
  }
  60% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}
.brand-logo .node-dot {
  transform-origin: center;
  transform-box: fill-box;
  transition: transform 0.25s ease;
}
.brand:hover .brand-logo .node-dot {
  animation: nodepop 0.8s cubic-bezier(0.34, 1.6, 0.5, 1) infinite alternate;
}
.brand:hover .brand-logo .node-dot:last-of-type {
  animation-delay: 0.15s;
}
@keyframes nodepop {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.45);
  }
}
.brand-logo .logo-glow {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.brand:hover .brand-logo .logo-glow {
  opacity: 1;
}

/* ---------- KICKASS HERO BACKGROUND ANIMATION ---------- */
.hero {
  position: relative;
  isolation: isolate; /* contains all the layered animations */
}
/* Disable the old ::before / ::after dot grid we don't need */
.hero::before,
.hero::after {
  display: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Layer 1: animated mesh gradient blobs */
.hero-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
}
.hero-bg .blob-1 {
  width: 38vw;
  height: 38vw;
  max-width: 540px;
  max-height: 540px;
  top: -10%;
  left: -8%;
  background: radial-gradient(circle, #3ce5c5 0%, transparent 65%);
  animation: blob-drift-1 18s ease-in-out infinite;
}
.hero-bg .blob-2 {
  width: 42vw;
  height: 42vw;
  max-width: 620px;
  max-height: 620px;
  top: -8%;
  right: -10%;
  background: radial-gradient(circle, #00c8ff 0%, transparent 65%);
  animation: blob-drift-2 22s ease-in-out infinite;
}
.hero-bg .blob-3 {
  width: 30vw;
  height: 30vw;
  max-width: 420px;
  max-height: 420px;
  bottom: -15%;
  left: 30%;
  background: radial-gradient(circle, #2b6bff 0%, transparent 65%);
  opacity: 0.35;
  animation: blob-drift-3 26s ease-in-out infinite;
}
@keyframes blob-drift-1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(8vw, 6vw) scale(1.1);
  }
  66% {
    transform: translate(-3vw, 10vw) scale(0.95);
  }
}
@keyframes blob-drift-2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-6vw, 8vw) scale(0.92);
  }
  66% {
    transform: translate(-12vw, 2vw) scale(1.08);
  }
}
@keyframes blob-drift-3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(8vw, -10vw) scale(1.15);
  }
}

/* Layer 2: dotted grid overlay */
.hero-bg .grid-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    color-mix(in srgb, var(--ink) 14%, transparent) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  mask-image: radial-gradient(
    ellipse 70% 60% at 50% 40%,
    black 0%,
    transparent 75%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 70% 60% at 50% 40%,
    black 0%,
    transparent 75%
  );
  opacity: 0.5;
}
[data-theme="dark"] .hero-bg .grid-dots {
  background-image: radial-gradient(
    color-mix(in srgb, var(--cream) 14%, transparent) 1px,
    transparent 1px
  );
}

/* Layer 3: floating sparkle particles */
.hero-bg .spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #00c8ff 60%, transparent 100%);
  box-shadow: 0 0 12px #00c8ff;
  opacity: 0;
  animation: spark-rise 8s ease-in-out infinite;
}
.hero-bg .spark:nth-child(4) {
  left: 12%;
  bottom: 10%;
  animation-delay: 0s;
  --hue: #3ce5c5;
}
.hero-bg .spark:nth-child(5) {
  left: 28%;
  bottom: 30%;
  animation-delay: 1.2s;
  --hue: #00c8ff;
}
.hero-bg .spark:nth-child(6) {
  left: 42%;
  bottom: 20%;
  animation-delay: 2.4s;
  --hue: #2b6bff;
}
.hero-bg .spark:nth-child(7) {
  left: 58%;
  bottom: 50%;
  animation-delay: 3.6s;
  --hue: #3ce5c5;
}
.hero-bg .spark:nth-child(8) {
  left: 72%;
  bottom: 15%;
  animation-delay: 4.8s;
  --hue: #00c8ff;
}
.hero-bg .spark:nth-child(9) {
  left: 86%;
  bottom: 40%;
  animation-delay: 6s;
  --hue: #2b6bff;
}
.hero-bg .spark {
  background: radial-gradient(
    circle,
    #fff 0%,
    var(--hue, #00c8ff) 60%,
    transparent 100%
  );
  box-shadow: 0 0 12px var(--hue, #00c8ff);
}
@keyframes spark-rise {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  10% {
    opacity: 1;
  }
  50% {
    opacity: 1;
    transform: translateY(-180px) scale(1.2);
  }
  90% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: translateY(-260px) scale(0.5);
  }
}

/* Layer 4: flowing horizontal lines — hidden per user feedback (looked too
   much like a stray border crossing the hero). Animation kept harmless. */
.hero-bg .flow {
  display: none;
}
@keyframes flow-shift {
  0%,
  100% {
    transform: translateX(-30px) scaleX(0.8);
  }
  50% {
    transform: translateX(30px) scaleX(1.2);
  }
}

/* Make sure hero content sits above the bg */
.hero-grid {
  position: relative;
  z-index: 1;
}

/* ---------- DARK MODE CONTRAST FIXES ---------- */
[data-theme="dark"] {
  --stone: #c5d2e6; /* was #A8B6CC, now lighter for body text contrast */
  --stone-2: #93a2bc;
  --muted: #c5d2e6;
}
[data-theme="dark"] body {
  color: #e6eefb;
}
[data-theme="dark"] p {
  color: #c5d2e6;
}
[data-theme="dark"] .lead {
  color: #dce6f5;
}
[data-theme="dark"] .muted {
  color: #b5c2d8;
}
[data-theme="dark"] .eyebrow {
  color: #5bffd9;
  letter-spacing: 0.14em;
}

/* Card text in dark mode */
[data-theme="dark"] .card {
  color: #e6eefb;
}
[data-theme="dark"] .card p {
  color: #c5d2e6;
}
[data-theme="dark"] .card h3 {
  color: #f4f8ff;
}
[data-theme="dark"] .check-text {
  color: #dce6f5;
}
[data-theme="dark"] .card-link {
  color: #f4f8ff;
}
[data-theme="dark"] .card-badge {
  background: color-mix(in srgb, #00c8ff 20%, var(--chalk));
  color: #5bffd9;
}

/* Footer & CTA band in dark mode */
[data-theme="dark"] .footer p,
[data-theme="dark"] .footer a {
  color: #c5d2e6;
}
[data-theme="dark"] .footer a:hover {
  color: #5bffd9;
}
[data-theme="dark"] .cta-band p {
  color: rgba(246, 248, 251, 0.85);
}

/* Nav links dark mode contrast */
[data-theme="dark"] .nav-links a {
  color: #c5d2e6;
}
[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
  color: #f4f8ff;
}
[data-theme="dark"] .brand-name {
  color: #f4f8ff;
}
[data-theme="dark"] .brand-tag {
  color: #93a2bc;
}

/* Industry / stat labels in dark mode */
[data-theme="dark"] .industry h4 {
  color: #f4f8ff;
}
[data-theme="dark"] .industry p,
[data-theme="dark"] .stat-label,
[data-theme="dark"] .stat-big-label {
  color: #c5d2e6;
}

/* Logo-item pills in dark mode */
[data-theme="dark"] .logo-item {
  background: color-mix(in srgb, var(--chalk) 90%, transparent);
  border-color: color-mix(in srgb, var(--cyan) 18%, var(--border));
}
[data-theme="dark"] .plat-name {
  color: #dce6f5;
}
[data-theme="dark"] .marquee-label {
  color: #93a2bc;
}

/* Mockup chip in dark mode */
[data-theme="dark"] .mockup-floating {
  background: linear-gradient(135deg, #0e1a2d 0%, #15243c 100%);
  border-color: color-mix(in srgb, #00c8ff 30%, var(--border));
}

/* Form labels & inputs */
[data-theme="dark"] label {
  color: #dce6f5;
}
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: var(--chalk);
  border-color: var(--border);
  color: #f4f8ff;
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #7e8da8;
}

/* ---------- MOBILE UX OVERHAUL ---------- */
/* Hamburger animation */
.menu-toggle .line {
  display: none;
} /* fallback; we'll use SVG below */

@media (max-width: 880px) {
  /* Make nav-links menu nicer on mobile */
  .nav-links {
    inset: 60px 0 auto 0;
    background: var(--cream);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 50px -20px
      color-mix(in srgb, var(--ink) 25%, transparent);
    padding: 1.25rem 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 22px 22px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  [data-theme="dark"] .nav-links {
    background: color-mix(in srgb, #060b14 95%, transparent);
  }
  .nav-links li {
    border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
    padding: 0;
  }
  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
  }
  .nav-links a::after {
    content: "→";
    color: color-mix(in srgb, var(--cyan) 70%, var(--stone));
    transform: translateX(0);
    transition: transform 0.2s ease;
  }
  .nav-links a:hover::after,
  .nav-links a.active::after {
    transform: translateX(4px);
  }

  /* Add a "Get free consultation" CTA inside the mobile menu */
  .nav-links li:last-child {
    border-bottom: 0;
  }
  .mobile-cta {
    margin-top: 1.25rem;
    display: flex;
    width: 100%;
  }
  .mobile-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  /* Hide Pune/india meta on mobile if it takes too much space (already removed from index/about) */
  .page-meta-label {
    font-size: 0.65rem;
  }

  /* Hero on mobile: text first, image second, both clean */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .hero-visual {
    order: 2;
  }
  .hero > .container > div:first-child,
  .hero-grid > div:first-child {
    order: 1;
  }

  /* Hero blobs: less aggressive on mobile to avoid jank */
  .hero-bg .blob {
    opacity: 0.4;
    filter: blur(80px);
  }
  .hero-bg .spark {
    display: none;
  } /* save battery on mobile */
}

@media (max-width: 640px) {
  /* Tighten everything */
  .hero {
    padding: 1.5rem 0 2rem;
  }
  .hero h1 {
    font-size: clamp(2.1rem, 9.5vw, 2.8rem);
    line-height: 1.05;
  }
  .hero p.lead {
    font-size: 0.98rem;
    line-height: 1.55;
    max-width: 38ch;
  }

  /* Hero stats: 2x2 grid, tighter */
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
  }
  .stat-num {
    font-size: 1.35rem;
    font-weight: 700;
  }
  .stat-label {
    font-size: 0.7rem;
    line-height: 1.25;
  }

  /* Hero visual sized properly on phone */
  .hero-image-wrap {
    max-width: 100%;
  }
  .hero-visual {
    padding: 0;
  }

  /* Mockup chip readable on mobile */
  .mockup-floating {
    display: none;
  }

  /* Tap targets */
  .btn {
    min-height: 48px;
    padding: 12px 20px;
  }
  .icon-btn {
    width: 42px;
    height: 42px;
  }
  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  /* Nav header tighter on phone, but logo and wordmark substantial */
  .nav {
    height: 58px;
  }
  .brand-name {
    font-size: 1.15rem;
  }
  .brand-tag {
    font-size: 9.5px;
    letter-spacing: 0.2em;
  }
  .brand-logo {
    width: 42px;
    height: 42px;
  }
  .brand {
    gap: 0.75rem;
  }

  /* Section spacing tighter */
  section {
    padding-block: 2.25rem;
  }

  /* Cards padded for thumb */
  .card {
    padding: 1.15rem;
    gap: 0.65rem;
  }

  /* Marquee logos: keep visible, make pills smaller */
  .marquee-track {
    gap: 1rem;
  }
  .logo-item {
    padding: 0.4rem 0.75rem;
  }
  .plat-logo {
    height: 18px;
  }
  .plat-name {
    font-size: 0.78rem;
  }

  /* Footer single col */
  .footer-top {
    gap: 1.75rem;
  }
  .footer h5 {
    font-size: 0.85rem;
  }

  /* Form field size */
  input,
  textarea,
  select {
    font-size: 16px; /* prevent iOS zoom */
    padding: 0.75rem 0.9rem;
  }

  /* CTA band tighter padding on small screens */
  .cta-band {
    padding: 1.75rem 1.25rem;
  }
  .cta-band h2 {
    font-size: 1.55rem;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 1.95rem;
  }
  .stat-num {
    font-size: 1.2rem;
  }
  .nav-links a {
    font-size: 0.95rem;
  }
}

/* Horizontal overflow is contained at section level (.hero, .page-hero) instead
   of html/body to keep iOS Safari position:sticky working on the header. */

/* Reduced motion: kill the heavy hero animations */
@media (prefers-reduced-motion: reduce) {
  .hero-bg .blob,
  .hero-bg .spark,
  .hero-bg .flow,
  .brand-logo .stroke-z,
  .brand-logo .node-dot {
    animation: none !important;
  }
}

/* ---------- v7 fixes after QA ---------- */
/* Hide mobile-cta li by default (when nav is shown inline as list).
   Only show inside the open hamburger menu. */
.mobile-cta {
  display: none;
}
@media (max-width: 880px) {
  .nav-links .mobile-cta {
    display: flex;
  }
  .nav-links .mobile-cta a {
    width: 100%;
    justify-content: center;
  }
  .nav-links .mobile-cta a::after {
    content: none;
  }
}

/* Footer nav-links should never show mobile-cta (it's not a nav-links there) */
.footer .mobile-cta {
  display: none !important;
}

/* Mobile header height fix: ensure brand vertically centers cleanly */
@media (max-width: 640px) {
  .nav {
    height: 64px;
    align-items: center;
  }
  .nav-links {
    inset-block-start: 64px;
  }
  .brand-text {
    line-height: 1.05;
  }
}

/* Hero h1 accent underline tighter on mobile so it doesn't extend past ERP */
@media (max-width: 640px) {
  .hero h1 .accent::after {
    bottom: -4px;
    height: 6px;
  }
  .hero h1 br {
    display: inline;
  } /* keep line breaks for crisp stack */
}

/* ---------- v8 fixes: iOS Safari + contact page mobile ---------- */

/* CRITICAL: iOS Safari bug — overflow:hidden/clip/auto on html or body breaks
   position:sticky on the header. Leave html/body at default overflow.
   Each .hero/.page-hero section already has overflow:hidden which contains
   its own animated blob bleed, so html/body do not need any overflow guard. */
html {
  /* no overflow rules */
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  /* explicitly clear any earlier overflow guards */
  overflow: visible;
}

/* Header: iOS-friendly sticky. Use solid fallback color before color-mix.
   color-mix() requires Safari 16.4+; older iOS will see the fallback.
   padding-top extends the header background up under the iOS Safari URL bar
   / notch so the brand wordmark never sits beneath the device chrome. */
.header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.92); /* fallback for var(--cream) */
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  /* Force its own stacking context so iOS keeps it on top */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
[data-theme="dark"] .header {
  background: rgba(
    6,
    11,
    20,
    0.88
  ); /* fallback for var(--cream) dark = #060B14 */
  background: color-mix(in srgb, var(--cream) 90%, transparent);
}

/* ===== Phone header breathing room (universal) =====
   Just enough top padding to clear browser URL bars and notches. Use
   safe-area-inset when present (notched devices), otherwise 8px so the
   wordmark has a tiny visual breather without looking like wasted space. */
@media (max-width: 880px) {
  .header {
    padding-top: max(env(safe-area-inset-top, 0px), 8px);
  }
  .nav {
    height: 60px;
  }
}

@media (max-width: 640px) {
  .header {
    padding-top: max(env(safe-area-inset-top, 0px), 8px);
  }
  .nav {
    height: 60px;
  }
  .brand-name {
    line-height: 1.25;
  }
  .brand-text {
    line-height: 1.15;
  }
}

/* Mobile menu drawer opens below the header. Header on phones = ~68px total
   (8px pad + 60px nav). */
@media (max-width: 880px) {
  .nav-links {
    inset-block-start: 68px;
  }
}

/* Footer: ensure it always shows. iOS sometimes hides flex children if a
   parent is overflow:clip + the footer has 0 explicit height. Force display. */
.footer {
  display: block;
  position: relative;
  z-index: 1;
}

/* Contact page: kill any inline grid override behavior on small screens.
   .contact-grid sets a custom layout on desktop only. */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}
@media (max-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }
}

/* Contact page: form card and contact-card readable on phone */
@media (max-width: 640px) {
  .contact-grid .card {
    padding: 1.25rem !important;
  }
  .contact-card {
    padding: 1.25rem;
    gap: 1rem;
  }
  .contact-row {
    grid-template-columns: 36px 1fr;
    gap: 0.7rem;
  }
  .contact-row .icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }
  .form-grid {
    gap: 0.85rem 1rem;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px; /* prevent iOS zoom on focus */
    padding: 0.8rem 0.9rem;
    border-radius: 11px;
    -webkit-appearance: none;
    appearance: none;
  }
  .field select {
    /* native select arrow back */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237E8DA8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.4rem;
  }
  .field textarea {
    min-height: 110px;
  }
  /* form full-width submit button */
  #contact-form .full .btn {
    width: 100%;
    justify-content: center;
  }
  /* page-hero h1 sized correctly on phone */
  .page-hero h1 {
    font-size: clamp(2rem, 8.5vw, 2.6rem);
    line-height: 1.08;
  }
  .page-hero .lead {
    font-size: 0.98rem;
    max-width: 42ch;
  }
}

/* Tiny phones */
@media (max-width: 380px) {
  .contact-card {
    padding: 1rem;
  }
  .contact-row .icon {
    width: 32px;
    height: 32px;
  }
  .contact-row {
    grid-template-columns: 32px 1fr;
  }
}

/* iOS-safe footer top grid: must not break on narrow screens */
@media (max-width: 640px) {
  .footer .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 1.25rem;
  }
}

/* iOS Safari fix: ensure hero-bg blobs don't push layout / hide header.
   The hero-bg is position:absolute inside section, but transform/filter on
   children can create new stacking contexts that overlay the sticky header
   on some iOS versions. Force isolation. */
.hero,
.page-hero {
  isolation: isolate;
  position: relative;
  z-index: 0;
}
.hero-bg {
  pointer-events: none;
  z-index: 0;
}
.hero-bg .blob,
.hero-bg .spark,
.hero-bg .flow,
.hero-bg .grid-dots {
  pointer-events: none;
}

/* Make sure the menu toggle is tappable on iOS (44px hit area minimum) */
.menu-toggle {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* iOS sometimes mis-renders forms inside cards with backdrop-filter ancestor.
   Force form card to a plain background on phone. */
@media (max-width: 640px) {
  .contact-grid .card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ---------- v9: distinct industry + service icons (no AI mint-pill) ---------- */

/* Industry icons: ditch the uniform pill. Just float the SVG cleanly. */
.industry-icon-new {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 0.25rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.industry-icon-new svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.05));
}
.industry:hover .industry-icon-new {
  transform: translateY(-2px) scale(1.08) rotate(-3deg);
}
.industry:hover .industry-icon-new svg {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
}
[data-theme="dark"] .industry-icon-new svg {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* Service card icons: bigger, distinct shape, no pill */
.card-icon-new {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-icon-new svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(43, 107, 255, 0.18));
}
.card:hover .card-icon-new {
  transform: translateY(-3px) rotate(-4deg);
}
.card:hover .card-icon-new svg {
  filter: drop-shadow(0 12px 24px rgba(43, 107, 255, 0.32));
}
[data-theme="dark"] .card-icon-new svg {
  filter: drop-shadow(0 6px 18px rgba(60, 229, 197, 0.22));
}

/* Mobile: scale icons appropriately */
@media (max-width: 640px) {
  .industry-icon-new {
    width: 42px;
    height: 42px;
  }
  .card-icon-new {
    width: 48px;
    height: 48px;
  }
}

/* ===== Brand logo: align with favicon ===== */
/* Favicon-matching: dark rounded square with mint→cyan→blue Z stroke and
   two endpoint dots. Override earlier stroke-color rules so the inline
   gradient defined in each SVG wins. */
.brand-logo .logo-bg {
  opacity: 1 !important;
  fill: #0b1422;
}
.brand-logo .stroke-z {
  stroke: url(#zg-stroke);
  stroke-width: 6;
}
.footer .brand-logo .stroke-z {
  stroke: url(#zg-stroke-2);
}
[data-theme="dark"] .brand-logo .logo-bg {
  opacity: 1 !important;
  fill: #0b1422;
}
[data-theme="dark"] .brand-logo .stroke-z {
  stroke: url(#zg-stroke);
}
[data-theme="dark"] .footer .brand-logo .stroke-z {
  stroke: url(#zg-stroke-2);
}

/* ===== Unified brand wordmark (replaces split icon+text) ===== */
.brand-wordmark {
  height: 44px;
  width: auto;
  display: block;
  color: var(--ink);
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.25s ease;
}
[data-theme="dark"] .brand-wordmark {
  color: #f4f8ff;
}
.brand:hover .brand-wordmark {
  transform: translateY(-1px);
}
/* Footer keeps cream wordmark on dark forest band */
.footer .brand-wordmark {
  color: var(--cream);
}

@media (max-width: 880px) {
  .brand-wordmark {
    height: 42px;
  }
}
@media (max-width: 640px) {
  .brand-wordmark {
    height: 40px;
  }
}

/* ===== Brand wordmark hover animation =====
   The Z stroke draws itself on hover, and the two endpoint dots pop. */
.brand-wordmark .stroke-z,
.brand-wordmark path[d*="M12 14"],
.brand-wordmark g path {
  stroke-dasharray: 90;
  stroke-dashoffset: 0;
  transition: stroke-width 0.25s ease;
}
.brand:hover .brand-wordmark g path {
  animation: zdraw 1.1s cubic-bezier(0.65, 0, 0.35, 1);
}
@keyframes zdraw {
  0% {
    stroke-dashoffset: 90;
    opacity: 0.25;
  }
  55% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* Endpoint dots pop on hover */
.brand-wordmark g circle {
  transform-origin: center;
  transform-box: fill-box;
  transition: transform 0.25s ease;
}
.brand:hover .brand-wordmark g circle {
  animation: nodepop 0.9s cubic-bezier(0.34, 1.6, 0.5, 1) infinite alternate;
}
.brand:hover .brand-wordmark g circle:last-of-type {
  animation-delay: 0.18s;
}
@keyframes nodepop {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.5);
  }
}

/* Subtle glow ring on the rounded square on hover */
.brand-wordmark g rect {
  transition: filter 0.3s ease;
}
.brand:hover .brand-wordmark g rect {
  filter: drop-shadow(0 0 6px color-mix(in srgb, #00c8ff 60%, transparent));
}

/* Honor reduced motion */
@media (prefers-reduced-motion: reduce) {
  .brand:hover .brand-wordmark g path,
  .brand:hover .brand-wordmark g circle,
  .brand:hover .brand-wordmark g rect {
    animation: none;
    filter: none;
  }
}

.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem) !important;
  line-height: 1.15 !important;
}
