/* =========================================================================
   Krisify Solutions — design tokens + base styles
   Apple keynote / product launch flavor: light page · dramatic dark hero
   ========================================================================= */

:root {
  /* Color tokens (light) */
  --bg: #fbfbfd;
  --bg-elev: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-section: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --ink-4: #86868b;
  --hairline: rgba(0, 0, 0, 0.08);
  --hairline-strong: rgba(0, 0, 0, 0.18);

  /* Dark surface tokens (used inside dark sections regardless of mode) */
  --dark-bg: #000000;
  --dark-bg-2: #0a0a0a;
  --dark-ink: #f5f5f7;
  --dark-ink-2: #a1a1a6;
  --dark-ink-3: #86868b;
  --dark-hairline: rgba(255, 255, 255, 0.1);

  /* Accent (cycle via tweaks) */
  --accent: #0071e3;
  --accent-hi: #2997ff;
  --accent-soft: rgba(0, 113, 227, 0.12);
  --accent-glow: rgba(41, 151, 255, 0.45);

  /* Type */
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Source Serif 4", "New York", Charter, Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  /* Spacing rhythm */
  --pad-page: clamp(20px, 4vw, 48px);
  --max-w: 1240px;
  --max-w-narrow: 980px;
  --max-w-prose: 720px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 200ms;
  --t-base: 380ms;
  --t-slow: 680ms;

  /* Anim intensity multiplier (tweaked at runtime) */
  --anim-intensity: 1;
}

/* Dark mode (tweak toggle adds .km-dark to <html>) */
html.km-dark {
  --bg: #000000;
  --bg-elev: #0d0d0f;
  --bg-soft: #111114;
  --bg-section: #0a0a0a;
  --ink: #f5f5f7;
  --ink-2: #d2d2d7;
  --ink-3: #a1a1a6;
  --ink-4: #86868b;
  --hairline: rgba(255, 255, 255, 0.1);
  --hairline-strong: rgba(255, 255, 255, 0.22);
  color-scheme: dark;
}

/* Accent palettes — flipped by data-accent on <html> */
html[data-accent="blue"] {
  --accent: #0071e3;
  --accent-hi: #2997ff;
  --accent-soft: rgba(0, 113, 227, 0.12);
  --accent-glow: rgba(41, 151, 255, 0.45);
}
html[data-accent="mono"] {
  --accent: #1d1d1f;
  --accent-hi: #6e6e73;
  --accent-soft: rgba(0, 0, 0, 0.06);
  --accent-glow: rgba(255, 255, 255, 0.35);
}
html.km-dark[data-accent="mono"] {
  --accent: #f5f5f7;
  --accent-hi: #ffffff;
  --accent-soft: rgba(255, 255, 255, 0.08);
  --accent-glow: rgba(255, 255, 255, 0.35);
}
html[data-accent="warm"] {
  --accent: #d97757;
  --accent-hi: #e89377;
  --accent-soft: rgba(217, 119, 87, 0.14);
  --accent-glow: rgba(232, 147, 119, 0.5);
}

/* Heading font swap */
html[data-headfont="inter"] {
  --font-head: var(--font-sans);
  --head-tighten: -0.022em;
}
html[data-headfont="serif"] {
  --font-head: var(--font-serif);
  --head-tighten: -0.012em;
}
html[data-headfont="sfpro"] {
  --font-head: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
    sans-serif;
  --head-tighten: -0.025em;
}

/* Animation intensity */
html[data-anim="subtle"] { --anim-intensity: 0.45; }
html[data-anim="playful"] { --anim-intensity: 1; }
html[data-anim="heavy"]   { --anim-intensity: 1.4; }

/* =========================================================================
   Reset + base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  transition: background var(--t-base) var(--ease-out),
    color var(--t-base) var(--ease-out);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* =========================================================================
   Typography utilities
   ========================================================================= */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow.muted { color: var(--ink-3); }

h1, h2, h3, h4 {
  font-family: var(--font-head, var(--font-sans));
  font-weight: 600;
  letter-spacing: var(--head-tighten, -0.022em);
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}
h1.display {
  font-size: clamp(40px, 7.2vw, 88px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
h1 {
  font-size: clamp(36px, 5.6vw, 64px);
  font-weight: 600;
}
h2 {
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 600;
}
h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
}
h4 {
  font-size: 18px;
  font-weight: 600;
}
p { margin: 0; }
.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  font-weight: 400;
  letter-spacing: -0.012em;
}
.muted { color: var(--ink-3); }

.gradient-text {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.dark-section .gradient-text {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.5) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.accent-text { color: var(--accent); }
.glow-text {
  color: #fff;
  text-shadow: 0 0 24px var(--accent-glow);
}

/* =========================================================================
   Layout
   ========================================================================= */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-page);
}
.wrap.narrow { max-width: var(--max-w-narrow); }
.wrap.prose { max-width: var(--max-w-prose); }

section { position: relative; }
section.pad-xl { padding: clamp(80px, 12vw, 160px) 0; }
section.pad-lg { padding: clamp(64px, 9vw, 120px) 0; }
section.pad-md { padding: clamp(48px, 7vw, 88px) 0; }

.dark-section {
  background: var(--dark-bg);
  color: var(--dark-ink);
}
.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section h4 { color: #fff; }
.dark-section .lead { color: var(--dark-ink-2); }
.dark-section .muted { color: var(--dark-ink-3); }
.dark-section .eyebrow.muted { color: var(--dark-ink-3); }
.dark-section a:not(.btn) {
  color: var(--accent-hi);
}

/* Edge-to-edge dark hero with bleed */
.hero-shell {
  background: #000;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* =========================================================================
   Buttons + CTAs (Apple-style pill)
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: background var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out),
    color var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.dark-section .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.dark-section .btn-ghost:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.btn-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-link::after {
  content: "›";
  font-size: 1.4em;
  line-height: 1;
  transition: transform var(--t-fast) var(--ease-out);
}
.btn-link:hover::after { transform: translateX(3px); }
.btn-link:hover { color: var(--accent-hi); }
.dark-section .btn-link { color: var(--accent-hi); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* =========================================================================
   Header / nav — Liquid Glass (Apple-style)
   ========================================================================= */
.site-header-shell {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
.site-header-shell > * { pointer-events: auto; }

.site-header {
  position: relative;
  width: 100%;
  max-width: 1080px;
  border-radius: 999px;
  /* Glass tint + saturation + blur — the core of liquid glass */
  background:
    linear-gradient(180deg, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.42) 100%);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  /* Layered inset highlights (top rim catches light) + ambient drop shadow */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -1px 0 rgba(255,255,255,0.25),
    inset 1px 0 0 rgba(255,255,255,0.35),
    inset -1px 0 0 rgba(255,255,255,0.35),
    0 1px 1px rgba(0,0,0,0.04),
    0 12px 32px rgba(15,20,30,0.08),
    0 2px 6px rgba(15,20,30,0.05);
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--ink);
  transition:
    background var(--t-base) var(--ease-out),
    color var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out);
}
/* Specular sheen — narrow diagonal highlight, gives the "glass" reflection */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255,255,255,0.12) 38%,
    rgba(255,255,255,0.38) 50%,
    rgba(255,255,255,0.10) 62%,
    transparent 100%
  );
  mix-blend-mode: overlay;
  opacity: 0.55;
  pointer-events: none;
}
/* Dark-mode variant — over dark sections / dark hero */
.site-header.over-dark {
  background:
    linear-gradient(180deg, rgba(28,28,32,0.55) 0%, rgba(18,18,22,0.42) 100%);
  color: #f5f5f7;
  border-color: rgba(255,255,255,0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(255,255,255,0.06),
    inset 1px 0 0 rgba(255,255,255,0.08),
    inset -1px 0 0 rgba(255,255,255,0.08),
    0 1px 1px rgba(0,0,0,0.20),
    0 14px 40px rgba(0,0,0,0.30),
    0 2px 6px rgba(0,0,0,0.20);
}
.site-header.over-dark::before {
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255,255,255,0.04) 38%,
    rgba(255,255,255,0.16) 50%,
    rgba(255,255,255,0.04) 62%,
    transparent 100%
  );
  opacity: 0.9;
}

.nav-inner {
  position: relative;
  z-index: 1;
  height: 56px;
  padding: 0 8px 0 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand { flex-shrink: 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  color: inherit;
}
.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
}
.brand-wordmark { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: -0.04em; }
.brand-sub { font-weight: 500; font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.55; }
/* Stack K — ink rects: primary on light bg, ondark on dark bg */
.bm-ink { fill: #0f0f14; }
.site-header.over-dark .bm-ink,
html.km-dark .bm-ink { fill: #f7f5f0; }
.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-link {
  font-size: 13.5px;
  color: inherit;
  opacity: 0.78;
  font-weight: 500;
  position: relative;
  padding: 7px 12px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: -0.005em;
  transition: opacity var(--t-fast) var(--ease-out),
    background var(--t-fast) var(--ease-out);
  font-family: inherit;
}
.nav-link:hover { opacity: 1; background: rgba(0,0,0,0.05); }
.site-header.over-dark .nav-link:hover { background: rgba(255,255,255,0.10); }
.nav-link.active { opacity: 1; }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 1px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--accent);
}

/* Dropdown group */
.nav-group { position: relative; }
.nav-group.active > .nav-group-trigger { opacity: 1; }
.nav-group.active > .nav-group-trigger::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 1px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--accent);
}
.nav-caret {
  transition: transform var(--t-fast) var(--ease-out);
  opacity: 0.6;
}
.nav-group.open .nav-caret { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 320px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s var(--ease-out), transform 0.22s var(--ease-out);
  z-index: 50;
}
.nav-group.open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown::before {
  /* invisible bridge so hover doesn't drop between trigger and panel */
  content: "";
  position: absolute;
  left: 0; right: 0; top: -14px;
  height: 14px;
}
.nav-dropdown-inner {
  position: relative;
  border-radius: 18px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  box-shadow:
    0 18px 44px rgba(15,20,30,0.18),
    0 3px 10px rgba(15,20,30,0.06);
  color: var(--ink);
  overflow: hidden;
}
.site-header.over-dark .nav-dropdown-inner {
  background: #1c1c1e;
  border-color: rgba(255,255,255,0.12);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.40),
    0 2px 8px rgba(0,0,0,0.30);
  color: #f5f5f7;
}
.nav-dd-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  color: inherit;
  transition: background var(--t-fast) var(--ease-out);
}
.nav-dd-item:hover { background: rgba(0,0,0,0.05); }
.site-header.over-dark .nav-dd-item:hover { background: rgba(255,255,255,0.08); }
.nav-dd-item.active { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.nav-dd-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav-dd-desc {
  font-size: 12px;
  opacity: 0.65;
  letter-spacing: -0.005em;
  line-height: 1.35;
}

/* CTA pill */
.nav-cta {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform var(--t-fast) var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out),
    background var(--t-fast) var(--ease-out);
}
.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 6px 22px var(--accent-glow);
  transform: translateY(-1px);
}
.site-header.over-dark .nav-cta {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.site-header.over-dark .nav-cta:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.nav-burger {
  display: none;
  appearance: none;
  background: none;
  border: 0;
  padding: 6px;
  color: inherit;
  margin-left: auto;
  border-radius: 8px;
  transition: background var(--t-fast) var(--ease-out);
}
.nav-burger:hover { background: rgba(0,0,0,0.05); }
.site-header.over-dark .nav-burger:hover { background: rgba(255,255,255,0.10); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin: 8px auto 0;
  width: 100%;
  max-width: 1080px;
  padding: 14px 18px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.62) 100%);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 18px 48px rgba(15,20,30,0.14);
  color: var(--ink);
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link {
  padding: 12px 6px;
  font-size: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  border-radius: 0;
  opacity: 0.85;
}
.site-header.over-dark .nav-mobile {
  background: linear-gradient(180deg, rgba(28,28,32,0.90) 0%, rgba(18,18,22,0.80) 100%);
  border-color: rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 18px 48px rgba(0,0,0,0.50);
  color: #f5f5f7;
}
.site-header.over-dark .nav-mobile .nav-link {
  border-bottom-color: rgba(255,255,255,0.07);
  color: #f5f5f7;
}
.site-header.over-dark .nav-mobile-grouplabel { color: rgba(255,255,255,0.38); }
.site-header.over-dark .nav-mobile-group { border-bottom-color: rgba(255,255,255,0.07); }
.nav-mobile .nav-link:last-of-type { border-bottom: 0; }
.nav-mobile-group { padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.nav-mobile-group:last-of-type { border-bottom: 0; }
.nav-mobile-grouplabel {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-4);
  padding: 10px 6px 6px;
  font-weight: 600;
}
.nav-mobile-group .nav-link { padding: 10px 14px; border-bottom: 0; font-size: 15px; }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
  .nav-cta.nav-cta-desktop-only { display: none; }
  .nav-inner > .nav-cta { display: none; }
  .site-header-shell { flex-direction: column; align-items: center; }
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: var(--bg-section);
  border-top: 1px solid var(--hairline);
  padding: 56px 0 32px;
  color: var(--ink-3);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h5 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}
.footer-grid a {
  display: block;
  padding: 4px 0;
  color: var(--ink-3);
}
.footer-grid a:hover { color: var(--ink); }
.footer-tagline {
  font-size: 18px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.012em;
  max-width: 320px;
  line-height: 1.35;
}
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--ink-4);
}
.footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom-links a:hover { color: var(--ink); }

.social-row {
  display: flex;
  gap: 10px;
}
.social-row a {
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline-strong);
  display: grid;
  place-items: center;
  color: var(--ink-3);
  transition: all var(--t-fast) var(--ease-out);
  padding: 0;
}
.social-row a:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================================
   Scroll reveal
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(calc(36px * var(--anim-intensity)));
  transition: opacity var(--t-slow) var(--ease-out),
    transform var(--t-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(calc(0.94 + (1 - 0.94) * (1 - var(--anim-intensity, 1))));
  transition: opacity var(--t-slow) var(--ease-out),
    transform var(--t-slow) var(--ease-out);
}
.reveal-scale.in { opacity: 1; transform: scale(1); }

/* Parallax helpers */
.parallax-slow { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =========================================================================
   Hero — page heros (refined noir, no blob)
   ========================================================================= */
.page-hero {
  background: #07070a;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: clamp(150px, 18vw, 210px) 0 clamp(80px, 11vw, 130px);
  isolation: isolate;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
/* Top spotlight — single, soft, no harsh blobs */
.page-hero::before {
  content: "";
  position: absolute;
  inset: -10% -20% auto -20%;
  height: 70%;
  background:
    radial-gradient(ellipse 52% 70% at 50% -10%, color-mix(in srgb, var(--accent) 28%, transparent) 0%, transparent 60%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}
/* Fine vertical "stage" lines flanking the content + bottom fade */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* left edge rule */
    linear-gradient(90deg, rgba(255,255,255,0.08) 0px, transparent 1px) left / 1px 100% no-repeat,
    /* right edge rule */
    linear-gradient(-90deg, rgba(255,255,255,0.08) 0px, transparent 1px) right / 1px 100% no-repeat,
    /* bottom fade to next section */
    linear-gradient(180deg, transparent 78%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
  z-index: 0;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.page-hero .eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse-eb 2.6s ease-in-out infinite;
}
@keyframes pulse-eb {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Repurpose .hero-grid-bg: turn into a fine dotted matrix that fades out */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center;
  mask-image: radial-gradient(closest-side at 50% 35%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(closest-side at 50% 35%, #000 20%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* =========================================================================
   Cards
   ========================================================================= */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px;
  cursor: pointer;
  transition: transform var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--hairline-strong);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.06);
}
.dark-section .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
.dark-section .card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 80px rgba(0, 113, 227, 0.18);
}

/* Service / feature cards (2×2 grid) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature-card {
  border-radius: var(--r-xl);
  padding: 32px;
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out);
}
.feature-card:hover {
  border-color: var(--hairline-strong);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 24px 80px rgba(0,0,0,0.08); }
.feature-card .feature-art {
  flex: 1;
  margin: 0 -12px;
  display: grid;
  place-items: center;
  position: relative;
}
.feature-card h3 { font-size: 26px; line-height: 1.12; }
.feature-card .lead { font-size: 16px; line-height: 1.5; color: var(--ink-3); }

/* Big metric */
.metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.metric .num {
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-family: var(--font-head, var(--font-sans));
  color: var(--ink);
}
.metric .lbl {
  font-size: 14px;
  color: var(--ink-3);
  letter-spacing: -0.005em;
}
.dark-section .metric .num { color: #fff; }
.dark-section .metric .lbl { color: var(--dark-ink-3); }

/* Step pipeline */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  counter-reset: step;
}
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px 20px 28px;
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out);
}
.step:hover {
  transform: translateY(-3px);
  border-color: var(--hairline-strong);
  box-shadow: 0 14px 40px rgba(0,0,0,0.06);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.step h4 { font-size: 17px; line-height: 1.3; }
.step p { font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.step .step-time {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: auto;
}

/* Credibility bar */
.cred-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 48px;
  padding: 36px 0;
  border-top: 1px solid var(--dark-hairline);
  border-bottom: 1px solid var(--dark-hairline);
}
.cred-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dark-ink-2);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.cred-item svg { opacity: 0.85; }

/* Marquee strip */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 22px 0;
  background: var(--bg);
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  display: inline-flex;
  gap: 56px;
  animation: marq 36s linear infinite;
  padding-right: 56px;
}
.marquee-track span {
  font-size: 14px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.marquee-track span::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-4);
  margin-left: 56px;
}
@keyframes marq {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================================
   Form
   ========================================================================= */
.form-card {
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 6px; }
.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field .help { font-size: 12px; color: var(--ink-4); }
.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-md);
  padding: 14px 16px;
  transition: border-color var(--t-fast) var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out),
    background var(--t-fast) var(--ease-out);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
}
.field .char-count {
  font-size: 12px;
  color: var(--ink-4);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* =========================================================================
   Misc
   ========================================================================= */
.kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--ink-3);
}
.tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.005em;
  background: var(--accent-soft);
  color: var(--accent);
}
.dark-section .tag { background: rgba(41, 151, 255, 0.16); color: var(--accent-hi); }

.divider {
  height: 1px;
  background: var(--hairline);
  margin: 32px 0;
}
.dark-section .divider { background: var(--dark-hairline); }

/* Skip-to-content link */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 9999;
}
.skip:focus { left: 0; }

/* Hero buttons (dark-bg contexts) */
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-btn-primary {
  background: #fff;
  color: #000;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid #fff;
  transition: all .2s var(--ease-out);
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 26px rgba(255,255,255,0.18);
}
.hero-btn-primary:hover {
  background: #2997ff;
  color: #fff;
  border-color: #2997ff;
  box-shadow: 0 10px 40px rgba(41,151,255,.5);
  transform: translateY(-1px);
}
.hero-btn-ghost {
  background: rgba(255,255,255,0.05);
  color: #fff;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: all .2s var(--ease-out);
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-1px);
}

/* CTA banner */
.cta-banner {
  background: #000;
  color: #fff;
  padding: clamp(80px, 10vw, 140px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(41,151,255,0.18), transparent 70%),
    radial-gradient(60% 50% at 50% 80%, rgba(41,151,255,0.28), transparent 70%);
}
.cta-banner .wrap { position: relative; z-index: 1; }
.cta-banner h2 {
  font-size: clamp(36px, 5.5vw, 64px);
  color: #fff;
  letter-spacing: -0.035em;
  line-height: 1.06;
  font-weight: 700;
  margin: 0 auto 24px;
}
.cta-banner p {
  color: rgba(255,255,255,0.65);
  font-size: 18px;
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

/* Print: hide tweaks/nav noise */
@media print {
  .site-header, .site-footer, .twk-panel { display: none !important; }
}

/* =========================================================================
   Responsive — phone + tablet
   ========================================================================= */

/* Tablet (≤ 768px) */
@media (max-width: 768px) {
  /* Page hero: tighten top padding — 150px min is too tall on phones */
  .page-hero {
    padding: clamp(110px, 18vw, 150px) 0 clamp(56px, 10vw, 100px);
  }

  /* CTA banner: tighten vertical space */
  .cta-banner {
    padding: clamp(60px, 10vw, 120px) 0;
  }

  /* Cred bar: tighter gaps */
  .cred-bar { gap: 20px 32px; }
}

/* Phablet / large phone (≤ 640px) */
@media (max-width: 640px) {
  /* Hero CTA buttons: stack full-width */
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-btn-primary,
  .hero-btn-ghost {
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  /* Buttons: allow wrap so text doesn't overflow narrow screens */
  .btn { white-space: normal; text-align: center; }

  /* Footer grid → 1 col */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Phone (≤ 480px) */
@media (max-width: 480px) {
  /* Card & step padding: breathe less on tiny screens */
  .card { padding: 20px; }
  .feature-card { padding: 22px; }
  .step { padding: 18px 16px 22px; min-height: 180px; }

  /* Footer bottom: stack vertically */
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Cred bar: tighter still */
  .cred-bar { gap: 16px 24px; }

  /* Nav inner: make sure logo+burger stay on one row with no wasted gap */
  .nav-inner { gap: 8px; }
}
