/* Tracopus marketing site — playful luxury */

:root,
[data-site-theme="light"] {
  color-scheme: light;
  --bg-deep: #f4fbf7;
  --bg-surface: #ffffff;
  --bg-alt: #ecfdf5;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-hover: #ffffff;
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #10b981;
  --primary-glow: rgba(5, 150, 105, 0.28);
  --primary-soft: #d1fae5;
  --accent: #059669;
  --accent-2: #34d399;
  --accent-3: #6ee7b7;
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --border: rgba(5, 150, 105, 0.16);
  --border-strong: rgba(5, 150, 105, 0.28);
  --glass: rgba(5, 150, 105, 0.07);
  --shadow-soft: 0 4px 24px rgba(5, 150, 105, 0.08);
  --shadow-card: 0 8px 32px rgba(15, 23, 42, 0.06);
  --bg-body:
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(16, 185, 129, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(52, 211, 153, 0.12), transparent 50%),
    linear-gradient(180deg, #ecfdf5 0%, #f8fafc 45%, #f0fdf4 100%);
  --hero-mesh-bg:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(16, 185, 129, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(52, 211, 153, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(5, 150, 105, 0.12), transparent 50%);
  --gradient-text: linear-gradient(135deg, var(--primary-dark), var(--primary-light), var(--accent-2));
  --header-scrolled-bg: rgba(255, 255, 255, 0.9);
  --header-scrolled-shadow: 0 1px 0 var(--border), var(--shadow-soft);
  --nav-mega-bg: rgba(255, 255, 255, 0.98);
  --nav-mega-shadow: var(--shadow-card);
  --nav-mega-hover-bg: var(--primary-soft);
  --nav-link-hover-color: var(--primary-dark);
  --marquee-bg: rgba(255, 255, 255, 0.55);
  --section-alt-bg: rgba(5, 150, 105, 0.045);
  --section-quotes-bg: linear-gradient(180deg, transparent, rgba(16, 185, 129, 0.06), transparent);
  --cta-panel-bg: linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(255, 255, 255, 0.98));
  --cta-panel-border: var(--border-strong);
  --footer-bg: rgba(255, 255, 255, 0.72);
  --input-bg: var(--bg-surface);
  --faq-summary-hover: var(--primary-soft);
  --noise-opacity: 0.025;
  --eyebrow-color: var(--primary-dark);
  --stat-value-color: var(--primary-dark);
  --accent-link: var(--primary-dark);
  --btn-ghost-bg: var(--bg-surface);
  --btn-ghost-color: var(--primary-dark);
  --btn-ghost-hover-bg: var(--primary-soft);
  --nav-mobile-bg: rgba(255, 255, 255, 0.98);
  --page-gutter: 140px;
  --font-brand: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 9px;
  --header-h: 76px;
  --section-y: 3.5rem;
  --section-y-sm: 2.25rem;
  --section-y-lg: 4.25rem;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --text-base: 15px;
  --text-sm: 0.875rem;
  --text-xs: 0.8125rem;
  --text-2xs: 0.75rem;
}

[data-site-theme="dark"] {
  color-scheme: dark;
  --bg-deep: #030712;
  --bg-surface: rgba(15, 23, 42, 0.96);
  --bg-alt: rgba(255, 255, 255, 0.02);
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #10b981;
  --primary-glow: rgba(16, 185, 129, 0.45);
  --primary-soft: rgba(16, 185, 129, 0.12);
  --accent: #34d399;
  --accent-2: #6ee7b7;
  --accent-3: #6ee7b7;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(16, 185, 129, 0.35);
  --glass: rgba(255, 255, 255, 0.04);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.22);
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.35);
  --bg-body: #030712;
  --hero-mesh-bg:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(16, 185, 129, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(56, 189, 248, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(124, 58, 237, 0.1), transparent 50%);
  --gradient-text: linear-gradient(135deg, var(--accent-2), var(--primary), #38bdf8);
  --header-scrolled-bg: rgba(3, 7, 18, 0.82);
  --header-scrolled-shadow: 0 1px 0 var(--border);
  --nav-mega-bg: rgba(15, 23, 42, 0.96);
  --nav-mega-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  --nav-mega-hover-bg: rgba(16, 185, 129, 0.12);
  --nav-link-hover-color: var(--text);
  --marquee-bg: rgba(0, 0, 0, 0.2);
  --section-alt-bg: rgba(255, 255, 255, 0.02);
  --section-quotes-bg: linear-gradient(180deg, transparent, rgba(16, 185, 129, 0.04), transparent);
  --cta-panel-bg: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(15, 23, 42, 0.8));
  --cta-panel-border: rgba(16, 185, 129, 0.25);
  --footer-bg: rgba(0, 0, 0, 0.35);
  --input-bg: rgba(0, 0, 0, 0.25);
  --faq-summary-hover: rgba(255, 255, 255, 0.03);
  --noise-opacity: 0.035;
  --eyebrow-color: var(--accent);
  --stat-value-color: var(--accent);
  --accent-link: var(--accent);
  --btn-ghost-bg: var(--glass);
  --btn-ghost-color: var(--text);
  --btn-ghost-hover-bg: rgba(255, 255, 255, 0.08);
  --nav-mobile-bg: rgba(3, 7, 18, 0.97);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-body);
  overflow-x: hidden;
  transition: background 0.35s var(--ease-smooth), color 0.35s var(--ease-smooth);
}

.page-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: min(1160px, 92vw); margin: 0 auto; }
.container--narrow { width: min(720px, 92vw); }
.container--prose { width: min(640px, 92vw); }

main .container,
main .container--narrow,
main .container--prose {
  padding-inline: var(--page-gutter);
  box-sizing: border-box;
}

main {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.page-hero__title,
.page-hero__lead,
.page-lead-band__text,
.section-lead,
.section-head h2,
.screenshot-showcase__copy p,
.demo-modal__lead {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(12px, -18px) scale(1.05); }
  66% { transform: translate(-8px, 10px) scale(0.95); }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.08); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: var(--header-h);
  transition: background 0.35s var(--ease-smooth), box-shadow 0.35s, backdrop-filter 0.35s;
}

.site-header.is-scrolled {
  background: var(--header-scrolled-bg);
  backdrop-filter: blur(16px);
  box-shadow: var(--header-scrolled-shadow);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 0.55rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand__block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.brand__logo {
  display: block;
  line-height: 0;
}

.brand img { height: 28px; width: auto; }

.brand__wordmark-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  margin-top: 0.22rem;
}

.brand__rule {
  display: block;
  width: 1.5rem;
  height: 1px;
  margin-bottom: 0.24rem;
  border-radius: 1px;
  background: linear-gradient(
    90deg,
    rgba(5, 150, 105, 0.55) 0%,
    #06b6d4 42%,
    #10b981 78%,
    transparent 100%
  );
  opacity: 0.85;
}

.brand__tagline {
  font-family: var(--font-brand);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  background: linear-gradient(92deg, #64748b 0%, #0e7490 36%, #059669 68%, #10b981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

[data-site-theme="dark"] .brand__tagline {
  background: linear-gradient(92deg, #94a3b8 0%, #22d3ee 36%, #34d399 68%, #6ee7b7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.site-nav { flex: 1; display: flex; justify-content: flex-end; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover, .nav-link.active { color: var(--nav-link-hover-color); background: var(--glass); }

.nav-item--mega { position: relative; }

.nav-mega {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 280px;
  padding: 0.65rem;
  background: var(--nav-mega-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--nav-mega-shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  display: grid;
  gap: 0.25rem;
}

.nav-item--mega.is-open .nav-mega,
.nav-item--mega:hover .nav-mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-mega__link {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.nav-mega__link strong { display: block; color: var(--text); font-size: 0.9rem; margin-bottom: 0.1rem; }
.nav-mega__link span { font-size: 0.75rem; }
.nav-mega__link:hover { background: var(--nav-mega-hover-bg); color: var(--accent-link); }

.nav-item--cta { margin-left: 0.35rem; }

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--btn-ghost-bg);
  color: var(--accent-link);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease-spring);
}

.theme-toggle:hover {
  background: var(--btn-ghost-hover-bg);
  border-color: var(--border-strong);
  transform: scale(1.05);
}

.theme-toggle__icon { display: none; line-height: 1; }
[data-site-theme="light"] .theme-toggle__icon--moon,
:root:not([data-site-theme="dark"]) .theme-toggle__icon--moon { display: inline; }
[data-site-theme="dark"] .theme-toggle__icon--sun { display: inline; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s, background 0.25s;
}

.btn--sm { padding: 0.45rem 1rem; font-size: 0.8rem; }

.btn--primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 18px var(--primary-glow);
}

.btn--primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 24px var(--primary-glow); }

.btn--ghost {
  background: var(--btn-ghost-bg);
  color: var(--btn-ghost-color);
  border: 1px solid var(--border-strong);
}

.btn--ghost:hover { background: var(--btn-ghost-hover-bg); transform: translateY(-1px); }

.btn--glow { position: relative; overflow: hidden; }
.btn--glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
  pointer-events: none;
}

/* Hero */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem) 0 3.5rem;
  overflow: hidden;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero--home {
  padding-bottom: 3.75rem;
  text-align: left;
}

.page-hero--home .page-hero__inner {
  width: 100%;
  max-width: none;
  margin: 0;
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 380px);
  gap: clamp(2.25rem, 4.5vw, 4rem);
  align-items: center;
}

.page-hero__copy {
  min-width: 0;
}

.page-hero--home .page-hero__copy {
  text-align: left;
}

.page-hero__aside {
  min-width: 0;
}

.page-hero--home .page-hero__lead {
  max-width: none;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.page-hero--home .hero-cta {
  justify-content: flex-start;
  margin-top: 0.25rem;
}

.hero-panel {
  padding: 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-soft), var(--shadow-card);
  backdrop-filter: blur(14px);
}

.hero-panel__eyebrow {
  margin: 0 0 1rem;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  font-size: var(--text-2xs);
  font-weight: 600;
  color: var(--text-muted);
  background: var(--glass);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.25s var(--ease-spring);
}

.hero-chip:hover {
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.hero-chip__icon {
  font-size: 0.9rem;
  line-height: 1;
}

.page-hero--sub {
  padding-bottom: 0.75rem;
}

.page-hero--sub .page-hero__inner {
  width: 100%;
}

.page-hero__well {
  width: 100%;
}

.page-hero--sub .page-hero__lead {
  max-width: none;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.hero-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  font-size: var(--text-2xs);
  font-weight: 600;
  line-height: 1.35;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid var(--border);
}

[data-site-theme="dark"] .hero-meta-pill {
  color: var(--accent);
  background: rgba(16, 185, 129, 0.12);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1rem;
  font-size: var(--text-2xs);
  color: var(--text-dim);
}

.breadcrumb a {
  color: var(--accent-link);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb__sep { opacity: 0.45; }

.page-lead-band {
  padding: 2.25rem 0 2.75rem;
  background: var(--section-alt-bg);
  border-bottom: 1px solid var(--border);
}

.page-lead-band__text {
  margin: 0;
  text-align: left;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.outcomes-strip {
  padding: 1.25rem 0 1.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.outcomes-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.65rem;
}

.outcome-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: var(--text-2xs);
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid var(--border);
  line-height: 1.35;
}

[data-site-theme="dark"] .outcome-pill {
  color: var(--accent);
  background: rgba(16, 185, 129, 0.12);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background: var(--hero-mesh-bg);
  animation: pulse-glow 8s ease-in-out infinite;
}

.hero-orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: float 12s ease-in-out infinite;
}

.hero-orbs span:nth-child(1) { width: 280px; height: 280px; background: rgba(16,185,129,0.2); top: 10%; left: 5%; }
.hero-orbs span:nth-child(2) { width: 200px; height: 200px; background: rgba(52,211,153,0.14); top: 30%; right: 10%; animation-delay: -4s; }
.hero-orbs span:nth-child(3) { width: 160px; height: 160px; background: rgba(110,231,183,0.12); bottom: 10%; left: 40%; animation-delay: -7s; }

.eyebrow {
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eyebrow-color);
  margin: 0 0 0.65rem;
}

.page-hero__title {
  font-family: var(--font-brand);
  font-size: clamp(1.95rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
}

.page-hero__lead {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: none;
  margin: 0 0 1.35rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.65rem; }

/* Sections */
.section { padding: var(--section-y) 0; position: relative; }
.section--spacious { padding: var(--section-y-lg) 0; }
.section--alt { background: var(--section-alt-bg); }
.section--hero-cards {
  padding: 0 0 var(--section-y);
  margin-top: -1.25rem;
  position: relative;
  z-index: 2;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.section-head--wide { max-width: 720px; }
.section-head h2 {
  font-family: var(--font-brand);
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.25rem 0 0.65rem;
  line-height: 1.15;
}
.section-head .section-lead { margin: 0 auto; max-width: 58ch; line-height: 1.65; }
.section-lead { color: var(--text-muted); margin: 0; font-size: var(--text-sm); }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }

/* Hero highlight cards */
.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.hero-card-grid--hero {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.hero-card-grid--hero .hero-card {
  padding: 1.1rem 1rem;
}

.hero-card-grid--hero .hero-card p {
  font-size: var(--text-2xs);
  line-height: 1.45;
}

.hero-card {
  padding: 1.35rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease-spring), border-color 0.35s, box-shadow 0.35s;
}

.hero-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.hero-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 800;
}

.hero-card h3 {
  font-family: var(--font-brand);
  font-size: var(--text-sm);
  font-weight: 700;
  margin: 0 0 0.45rem;
  line-height: 1.25;
}

.hero-card p {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.55;
}

/* Logo marquee */
.logo-marquee {
  overflow: hidden;
  padding: 0.85rem 0;
  border-block: 1px solid var(--border);
  background: var(--marquee-bg);
}

.logo-marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.logo-marquee__item {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: var(--text-xs);
  color: var(--text-dim);
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Bento */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.bento {
  padding: 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s, border-color 0.35s;
}

.bento:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--border-strong); }
.bento--large { grid-column: span 2; grid-row: span 1; }
.bento--wide { grid-column: span 2; }
.bento__emoji { font-size: 1.45rem; display: block; margin-bottom: 0.45rem; }
.bento h3 { font-family: var(--font-brand); margin: 0 0 0.35rem; font-size: 1rem; }
.bento p { margin: 0; color: var(--text-muted); font-size: var(--text-sm); }

/* Module cards */
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.module-card {
  display: block;
  padding: 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s var(--ease-spring), border-color 0.35s, background 0.35s, box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16,185,129,0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}

.module-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card);
}

.module-card:hover::before { opacity: 1; }

.module-card__icon { font-size: 1.65rem; display: block; margin-bottom: 0.55rem; }
.module-card h3 { font-family: var(--font-brand); margin: 0 0 0.35rem; font-size: 1.05rem; position: relative; }
.module-card p { color: var(--text-muted); font-size: var(--text-sm); margin: 0 0 0.75rem; position: relative; }
.module-card ul { margin: 0; padding: 0; list-style: none; position: relative; }
.module-card li { font-size: var(--text-2xs); color: var(--text-dim); padding: 0.15rem 0 0.15rem 1rem; position: relative; }
.module-card li::before { content: "→"; position: absolute; left: 0; color: var(--primary); }
.module-card__arrow { display: inline-block; margin-top: 0.65rem; font-weight: 700; font-size: var(--text-2xs); color: var(--accent-link); position: relative; }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-grid--4 { grid-template-columns: repeat(4, 1fr); }
.feature-grid--3 { grid-template-columns: repeat(3, 1fr); }

.feature-grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, border-color 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--border-strong); }
.feature-card__icon { font-size: 1.35rem; display: block; margin-bottom: 0.5rem; }
.feature-card h3 { font-family: var(--font-brand); font-size: var(--text-sm); font-weight: 700; margin: 0 0 0.4rem; line-height: 1.3; }
.feature-card p { margin: 0; font-size: var(--text-xs); color: var(--text-muted); line-height: 1.55; }

/* Quotes */
.section--quotes { background: var(--section-quotes-bg); }

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.quote-card {
  margin: 0;
  padding: 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 3px solid var(--primary-light);
  box-shadow: var(--shadow-soft);
}

.quote-card p { font-size: var(--text-sm); font-style: italic; color: var(--text-muted); margin: 0 0 0.85rem; line-height: 1.55; }
.quote-card footer strong { display: block; font-size: var(--text-xs); }
.quote-card footer span { font-size: var(--text-2xs); color: var(--text-dim); }

/* Screenshot frames */
.section--screenshot { overflow: hidden; }

.screenshot-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.screenshot-showcase__copy h2 {
  font-family: var(--font-brand);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.screenshot-showcase__copy p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.65;
  margin: 0;
}

.screenshot-frame {
  position: relative;
  margin: 0;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft), 0 24px 48px rgba(5, 150, 105, 0.1);
  overflow: hidden;
}

.screenshot-frame--phone {
  max-width: 280px;
  margin-inline: auto;
  border-radius: 28px;
  box-shadow: var(--shadow-card), 0 32px 64px rgba(15, 23, 42, 0.14);
}

.screenshot-frame--phone .screenshot-frame__chrome { display: none; }

.screenshot-frame--phone .screenshot-frame__viewport img {
  aspect-ratio: 9 / 19.5;
  object-position: top center;
}

.screenshot-frame--compact {
  box-shadow: var(--shadow-soft);
}

.screenshot-frame--placeholder {
  border-style: dashed;
  border-color: rgba(5, 150, 105, 0.35);
}

.screenshot-frame__badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

[data-site-theme="dark"] .screenshot-frame__badge {
  color: var(--accent);
  background: rgba(15, 23, 42, 0.88);
}

.screenshot-frame__chrome {
  display: flex;
  gap: 6px;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
}

[data-site-theme="dark"] .screenshot-frame__chrome {
  background: rgba(0, 0, 0, 0.25);
}

.screenshot-frame__chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-dim);
}

.screenshot-frame__chrome span:first-child { background: #ef4444; }
.screenshot-frame__chrome span:nth-child(2) { background: #f59e0b; }
.screenshot-frame__chrome span:nth-child(3) { background: #22c55e; }

.screenshot-frame__viewport {
  position: relative;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06), transparent);
}

.screenshot-frame__viewport img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.screenshot-frame__caption {
  padding: 0.75rem 1rem 1rem;
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.45;
  border-top: 1px solid var(--border);
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.screenshot-gallery__item h3 {
  margin: 0.75rem 0 0;
  font-family: var(--font-brand);
  font-size: var(--text-sm);
  font-weight: 700;
  text-align: center;
  color: var(--text);
}

.screenshot-stack {
  max-width: 320px;
  margin: 0 auto;
}

.screenshot-showcase__visual {
  transform: perspective(1200px) rotateY(-4deg);
  transition: transform 0.45s var(--ease-smooth);
}

.screenshot-showcase__visual:hover {
  transform: perspective(1200px) rotateY(0deg);
}

@media (max-width: 960px) {
  .screenshot-showcase,
  .screenshot-gallery {
    grid-template-columns: 1fr;
  }

  .screenshot-showcase__visual {
    transform: none;
  }

  .screenshot-gallery__item h3 { text-align: left; }
}

/* Showcase / UI mock (legacy) */
.section--showcase { overflow: hidden; }

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.showcase-copy h2 {
  font-family: var(--font-brand);
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}

.showcase-copy p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin: 0;
}

.check-list { list-style: none; padding: 0; margin: 0.75rem 0; }
.check-list li { padding: 0.25rem 0 0.25rem 1.35rem; position: relative; color: var(--text-muted); font-size: var(--text-sm); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-link); font-weight: 700; }

.text-link { color: var(--accent-link); font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.ui-mock {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 32px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(16,185,129,0.15);
  overflow: hidden;
  animation: float 10s ease-in-out infinite;
}

.ui-mock__bar { display: flex; gap: 6px; padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); }
.ui-mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--text-dim); }
.ui-mock__bar span:first-child { background: #ef4444; }
.ui-mock__bar span:nth-child(2) { background: #f59e0b; }
.ui-mock__bar span:nth-child(3) { background: #22c55e; }

.ui-mock__body { display: flex; min-height: 190px; }
.ui-mock__rail { width: 48px; background: rgba(16,185,129,0.08); border-right: 1px solid var(--border); }
.ui-mock__main { flex: 1; padding: 1rem; }
.ui-mock__strip { height: 48px; border-radius: 8px; background: linear-gradient(90deg, rgba(16,185,129,0.2), rgba(56,189,248,0.15)); margin-bottom: 0.75rem; animation: pulse-glow 4s ease infinite; }
.ui-mock__rows span { display: block; height: 12px; border-radius: 4px; background: rgba(255,255,255,0.06); margin-bottom: 0.5rem; }
.ui-mock__rows span:nth-child(1) { width: 95%; }
.ui-mock__rows span:nth-child(2) { width: 80%; }
.ui-mock__rows span:nth-child(3) { width: 88%; }
.ui-mock__rows span:nth-child(4) { width: 70%; }

/* CTA panel */
.section--cta { padding-bottom: 3.25rem; }

.cta-panel {
  position: relative;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--cta-panel-border);
  background: var(--cta-panel-bg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.cta-panel__glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-glow 5s ease infinite;
  pointer-events: none;
}

.cta-panel h2 { font-family: var(--font-brand); font-size: clamp(1.25rem, 2.5vw, 1.65rem); margin: 0 0 0.45rem; position: relative; }
.cta-panel p { color: var(--text-muted); margin: 0 0 1.1rem; font-size: var(--text-sm); position: relative; }
.cta-panel .hero-cta { justify-content: center; position: relative; }

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  border-left: 2px solid rgba(16, 185, 129, 0.3);
  margin-left: 1rem;
}

.timeline--grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
  border-left: none;
  margin-left: 0;
}

.timeline--grid .timeline__item {
  padding: 1.15rem 1.15rem 1.15rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  border-left: 3px solid var(--primary-light);
}

.timeline--grid .timeline__item::before { display: none; }

.timeline__item {
  padding: 0 0 1.35rem 1.5rem;
  position: relative;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.4rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.timeline__when {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--eyebrow-color);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timeline__item h3 { font-family: var(--font-brand); margin: 0.2rem 0 0.25rem; font-size: 1rem; }
.timeline__item p { margin: 0; color: var(--text-muted); font-size: var(--text-sm); }

/* Case studies */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }

.case-card {
  padding: 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.case-card__tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-link);
}

.case-card h3 { font-family: var(--font-brand); margin: 0.4rem 0 0.2rem; font-size: 1rem; }
.case-card__focus { font-size: var(--text-2xs); color: var(--text-dim); margin: 0 0 0.5rem; }
.case-card p { font-size: var(--text-xs); color: var(--text-muted); margin: 0 0 0.75rem; }
.case-card__flow { font-size: var(--text-2xs) !important; color: var(--text-dim) !important; margin-bottom: 0 !important; }
.case-card__flow strong { color: var(--accent-link); }

/* Pain / outcomes */
.pain-grid {
  display: grid;
  gap: 1rem;
}

.pain-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.pain-card {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.pain-card h3 {
  font-family: var(--font-brand);
  font-size: var(--text-sm);
  font-weight: 700;
  margin: 0 0 0.45rem;
  color: var(--text);
  line-height: 1.3;
}

.pain-card p { margin: 0; font-size: var(--text-xs); color: var(--text-muted); line-height: 1.6; }

.outcomes-panel {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.outcomes-panel__label {
  display: block;
  font-family: var(--font-brand);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--eyebrow-color);
  margin: 0 0 0.85rem;
}

.check-list--large li { font-size: var(--text-sm); padding: 0.35rem 0 0.35rem 1.5rem; }

.check-list--grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list--grid li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.check-list--grid li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-link);
  font-weight: 700;
}

/* Workflows */
.workflow-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }

.workflow-card {
  padding: 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.workflow-card h3 { font-family: var(--font-brand); font-size: var(--text-sm); margin: 0 0 0.35rem; }
.workflow-card > p { font-size: var(--text-xs); color: var(--text-muted); margin: 0 0 0.75rem; line-height: 1.5; }

.workflow-steps {
  margin: 0;
  padding-left: 1.15rem;
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.55;
}

.workflow-steps li { margin-bottom: 0.35rem; }
.workflow-steps li:last-child { margin-bottom: 0; }

/* Screen guide links */
.screen-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }

.screen-card {
  display: block;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease-spring), border-color 0.2s, box-shadow 0.2s;
}

.screen-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.screen-card strong { display: block; font-family: var(--font-brand); font-size: var(--text-sm); color: var(--text); margin-bottom: 0.25rem; }
.screen-card span { display: block; font-size: var(--text-xs); color: var(--text-muted); line-height: 1.45; margin-bottom: 0.5rem; }
.screen-card em { font-style: normal; font-size: var(--text-2xs); font-weight: 650; color: var(--accent-link); }

/* Value props */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.value-card {
  padding: 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 3px solid var(--primary-light);
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.value-card h3 { font-family: var(--font-brand); font-size: var(--text-sm); margin: 0 0 0.45rem; }
.value-card p { margin: 0; font-size: var(--text-xs); color: var(--text-muted); line-height: 1.55; }

/* Audience cards */
.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

.audience-card {
  padding: 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.audience-card h3 { font-family: var(--font-brand); font-size: var(--text-sm); margin: 0 0 0.35rem; color: var(--accent-link); }
.audience-card p { margin: 0; font-size: var(--text-xs); color: var(--text-muted); line-height: 1.5; }

.section-lead {
  color: var(--text-muted);
  font-size: var(--text-sm);
  max-width: 52ch;
  margin: 0.35rem auto 0;
  line-height: 1.55;
}

.section-head .section-lead { text-align: center; }

/* Resources */
.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

.resource-card {
  padding: 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.resource-card h3 { font-family: var(--font-brand); margin: 0 0 0.25rem; font-size: var(--text-sm); }
.resource-card__sub { font-size: var(--text-2xs); color: var(--accent-link); margin: 0 0 0.35rem; }
.resource-card p { font-size: var(--text-xs); color: var(--text-muted); margin: 0 0 0.55rem; }
.resource-card a { color: var(--accent-link); font-weight: 600; font-size: var(--text-2xs); text-decoration: none; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.65rem; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.faq-item summary {
  padding: 0.85rem 1rem;
  font-weight: 650;
  font-size: var(--text-sm);
  cursor: pointer;
  list-style: none;
  transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--accent-link); font-weight: 700; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { background: var(--faq-summary-hover); }
.faq-item p { margin: 0; padding: 0 1rem 0.85rem; color: var(--text-muted); font-size: var(--text-sm); }
.faq-more { text-align: center; margin-top: 1.35rem; color: var(--text-muted); font-size: var(--text-sm); }
.faq-more a { color: var(--accent-link); }

/* Contact form */
.contact-form {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.contact-form h2 { font-family: var(--font-brand); margin: 0 0 1rem; font-size: 1.25rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.contact-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.form-note { font-size: 0.75rem; color: var(--text-dim); margin-top: 1rem; }

.contact-form--rich h2 {
  font-family: var(--font-brand);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  margin: 0 0 0.5rem;
}

.form-section {
  margin: 0 0 1.15rem;
  padding: 0;
  border: none;
}

.form-section legend {
  font-family: var(--font-brand);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 0.65rem;
  padding: 0;
}

[data-site-theme="dark"] .form-section legend {
  color: var(--accent);
}

.form-section__hint {
  margin: -0.35rem 0 0.65rem;
  font-size: var(--text-2xs);
  color: var(--text-dim);
  line-height: 1.45;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.checkbox-chip {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--glass);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.checkbox-chip:has(input:checked) {
  border-color: var(--border-strong);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

[data-site-theme="dark"] .checkbox-chip:has(input:checked) {
  color: var(--accent);
  background: rgba(16, 185, 129, 0.12);
}

.checkbox-chip input {
  margin-top: 0.15rem;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.checkbox-chip span {
  line-height: 1.35;
}

/* Workspace sign-in modal */
body.site-modal-open { overflow: hidden; }

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.site-modal[hidden] { display: none; }

.site-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}

[data-site-theme="dark"] .site-modal__backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.site-modal__dialog {
  position: relative;
  width: min(440px, 100%);
  max-height: min(90vh, 920px);
  overflow-y: auto;
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card), 0 32px 64px rgba(15, 23, 42, 0.18);
}

.site-modal__dialog--wide {
  width: min(760px, 100%);
}

.site-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: var(--glass);
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 1;
}

.site-modal__close:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.site-modal__title {
  font-family: var(--font-brand);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.workspace-modal__lead,
.demo-modal__lead {
  margin: 0 0 1.25rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.55;
}

.workspace-modal__lead strong {
  color: var(--primary-dark);
  font-weight: 700;
}

[data-site-theme="dark"] .workspace-modal__lead strong {
  color: var(--accent);
}

.demo-modal .contact-form--rich {
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}

.demo-modal__lead {
  margin-bottom: 1rem;
}

.demo-form__submit {
  width: 100%;
  margin-top: 0.35rem;
}

.workspace-form__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: var(--text-xs);
  font-weight: 650;
  color: var(--text-muted);
}

.workspace-form__field {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--input-bg, var(--bg-surface));
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.workspace-form__field:focus-within {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.14);
}

.workspace-form__input {
  flex: 1;
  min-width: 0;
  padding: 0.72rem 0.85rem;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: var(--text-sm);
}

.workspace-form__input:focus { outline: none; }

.workspace-form__suffix {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-dim);
  background: var(--glass);
  border-left: 1px solid var(--border);
  white-space: nowrap;
}

.workspace-form__hint {
  margin: 0.45rem 0 0;
  font-size: var(--text-2xs);
  color: var(--text-dim);
}

.workspace-form__error {
  margin: 0.55rem 0 0;
  font-size: var(--text-xs);
  color: #dc2626;
  line-height: 1.45;
}

.workspace-form__error[hidden] { display: none; }

.workspace-form__submit {
  width: 100%;
  margin-top: 1.15rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
  background: var(--footer-bg);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.footer-brand p { color: var(--text-dim); font-size: 0.875rem; margin: 0.75rem 0 0; max-width: 22ch; }

.footer-col h4 {
  font-family: var(--font-brand);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a {
  display: block;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent-link); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-bottom a { color: var(--text-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent-link); }

/* Responsive */
@media (max-width: 960px) {
  :root {
    --page-gutter: 0px;
  }

  .page-hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-card-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card-grid--hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-grid { grid-template-columns: 1fr; }
  .bento--large, .bento--wide { grid-column: span 1; }
  .module-grid, .feature-grid, .feature-grid--4, .feature-grid--3, .quote-grid, .case-grid, .showcase-grid,
  .pain-grid--3, .workflow-grid, .screen-grid, .value-grid, .audience-grid, .screenshot-gallery { grid-template-columns: 1fr; }
  .check-list--grid { grid-template-columns: 1fr; }
  .timeline--grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .ui-mock { animation: none; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nav-mobile-bg);
    padding: 1rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-smooth);
  }
  .site-nav.is-open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-mega { position: static; transform: none; opacity: 1; visibility: visible; display: none; box-shadow: none; border: none; background: transparent; padding-left: 0.5rem; }
  .nav-item--mega.is-open .nav-mega { display: grid; }
  .form-row { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
