/* ==========================================================================
   MafGrow — Enterprise AI ERP · Design System v2
   Palette: Ink navy (structure) · Grow teal (action) · Signal amber (attention)
   Type:    Bricolage Grotesque (display) · IBM Plex Sans (text) · IBM Plex Mono (data)
   ========================================================================== */

:root {
  --ink: #0A1A2F;
  --ink-2: #102640;
  --ink-3: #1A3556;
  --paper: #F3F6F8;
  --surface: #FFFFFF;
  --line: #DCE3EA;
  --line-strong: #C3CEDA;
  --text: #0A1A2F;
  --text-2: #3C4F63;
  --muted: #5A6B7D;
  --faint: #8A99A9;

  --brand: #0A8F86;
  --brand-dark: #076B65;
  --brand-soft: #E3F6F3;
  --bright: #2DE0C4;
  --amber: #FFB020;
  --amber-soft: #FFF3D6;
  --indigo: #4457FF;
  --danger: #D8412F;
  --danger-soft: #FDE8E5;
  --ok: #12A66B;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(10, 26, 47, .06);
  --shadow-md: 0 8px 24px -8px rgba(10, 26, 47, .14);
  --shadow-lg: 0 24px 60px -20px rgba(10, 26, 47, .28);
  --shadow-xl: 0 24px 60px -20px rgba(10, 26, 47, .28);
  --ring: 0 0 0 3px rgba(10, 143, 134, .35);

  --nav-h: 68px;
  --maxw: 1240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.12; }
code, .code, .mono { font-family: var(--font-mono); }
code {
  font-size: .86em;
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 1px 6px;
  border-radius: 4px;
}
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
::selection { background: var(--bright); color: var(--ink); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section-padding { padding: 104px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Scroll progress + announcement
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--bright), var(--amber));
  z-index: 2000; pointer-events: none;
}
.top-banner {
  position: relative;
  background: var(--ink);
  color: #C6D4E3;
  padding: 9px 48px 9px 16px;
  font-size: .84rem;
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  text-align: center;
}
.top-banner .badge {
  background: var(--amber); color: var(--ink);
  padding: 1px 9px; border-radius: 99px; font-size: .74rem; font-weight: 700;
}
.top-banner a { color: var(--bright); font-weight: 600; border-bottom: 1px solid rgba(45,224,196,.4); }
.top-banner a:hover { border-bottom-color: var(--bright); }
.top-banner .banner-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #8BA0B6; font-size: 20px; line-height: 1; width: 28px; height: 28px; border-radius: 50%;
}
.top-banner .banner-close:hover { background: rgba(255,255,255,.1); color: #fff; }

/* --------------------------------------------------------------------------
   Navigation + logo
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.navbar.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -14px rgba(10,26,47,.25); background: rgba(255,255,255,.94); }
.nav-container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.nav-brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.nav-brand .logo-mark { width: 38px; height: 38px; flex: none; transition: transform .5s cubic-bezier(.2,.9,.3,1.4); filter: drop-shadow(0 4px 10px rgba(10,26,47,.25)); }
.nav-brand:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.nav-brand .wordmark { font-weight: 500; }
.nav-brand .wordmark b { font-weight: 800; }
.brand-pill {
  font-family: var(--font-sans); font-size: .68rem; font-weight: 600; letter-spacing: .02em;
  color: var(--brand-dark); background: var(--brand-soft);
  padding: 2px 7px; border-radius: 99px; margin-left: 2px; align-self: center;
}

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-link { position: relative; display: block; padding: 8px 13px; font-size: .9rem; font-weight: 500; color: var(--text-2); border-radius: 99px; transition: color .2s, background .2s; }
.nav-link:hover { color: var(--ink); background: rgba(10,26,47,.06); }
.nav-link.active { color: var(--brand-dark); background: var(--brand-soft); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-search {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: .84rem;
  transition: border-color .2s, color .2s;
}
.nav-search:hover { border-color: var(--brand); color: var(--ink); }
.nav-search svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
.nav-search kbd { font-family: var(--font-mono); font-size: .7rem; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--muted); }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s, background .25s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; border-radius: 99px; border: 1px solid transparent; cursor: pointer;
  padding: 11px 22px; font-size: .94rem; line-height: 1.2;
  transition: transform .2s cubic-bezier(.2,.8,.3,1), background .2s, border-color .2s, box-shadow .2s, color .2s;
  will-change: transform;
}
.btn:active { transform: scale(.97) !important; }
.btn-sm { padding: 8px 16px; font-size: .84rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(10,143,134,.7); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 12px 26px -8px rgba(10,143,134,.8); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-dark { background: var(--amber); color: var(--ink); box-shadow: 0 8px 22px -8px rgba(255,176,32,.7); }
.btn-dark:hover { background: #FFC24D; }
.hero-section .btn-secondary, .interactive-section .btn-secondary, .sandbox-banner-box .btn-secondary { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); }
.hero-section .btn-secondary:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: #fff;
  padding: 72px 0 0;
}
.hero-section::before { /* engineering grid */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 85%);
}
.hero-section::after { /* cursor spotlight */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 20%), rgba(45,224,196,.20), transparent 60%);
}
.hero-content { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding-bottom: 72px; }

.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border-radius: 99px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  font-size: .8rem; color: #C6D4E3; margin-bottom: 26px;
}
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bright); box-shadow: 0 0 0 0 rgba(45,224,196,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(45,224,196,0); } 100% { box-shadow: 0 0 0 0 rgba(45,224,196,0); } }

.hero-title {
  font-size: clamp(2.5rem, 5.2vw, 4.4rem);
  font-weight: 700; letter-spacing: -0.045em; line-height: 1.02;
  color: #fff; margin-bottom: 24px;
}
.hero-title .gradient-text { color: var(--bright); display: block; font-weight: 500; font-style: normal; }
.hero-subtitle { font-size: 1.1rem; color: #A9BBCE; max-width: 560px; line-height: 1.65; margin-bottom: 34px; }
.hero-subtitle strong { color: #fff; font-weight: 600; }
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* load sequence: the one orchestrated entrance on the page */
.hero-section .hero-pill, .hero-section .hero-title, .hero-section .hero-subtitle, .hero-section .hero-cta-group, .hero-section .live-console {
  animation: rise .8s cubic-bezier(.2,.8,.2,1) both;
}
.hero-section .hero-title { animation-delay: .08s; }
.hero-section .hero-subtitle { animation-delay: .16s; }
.hero-section .hero-cta-group { animation-delay: .24s; }
.hero-section .live-console { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Live operations console */
.live-console {
  background: linear-gradient(180deg, rgba(20,44,74,.92), rgba(10,26,47,.96));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-xl);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden;
}
.lc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 0; }
.lc-title { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: #9FB3C8; }
.lc-title i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.lc-latency { font-family: var(--font-mono); font-size: .75rem; color: var(--bright); }
.lc-tabs { display: flex; gap: 4px; padding: 14px 14px 0; overflow-x: auto; scrollbar-width: none; }
.lc-tabs::-webkit-scrollbar { display: none; }
.lc-tab { flex: none; border: 0; background: transparent; color: #9FB3C8; font-size: .82rem; font-weight: 500; padding: 7px 13px; border-radius: 99px; transition: background .2s, color .2s; }
.lc-tab:hover { color: #fff; }
.lc-tab[aria-selected="true"] { background: rgba(45,224,196,.14); color: var(--bright); }
.lc-body { padding: 18px; }
.lc-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lc-metric { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-md); padding: 12px 13px; min-width: 0; }
.lc-metric .v { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; letter-spacing: -0.03em; color: #fff; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lc-metric .v small { font-size: .7em; color: #9FB3C8; font-weight: 500; margin-left: 2px; }
.lc-metric .l { font-size: .74rem; color: #8BA0B6; margin-top: 4px; line-height: 1.3; }
.lc-spark { display: block; width: 100%; height: 64px; margin: 16px 0 4px; }
.lc-spark path.area { fill: url(#lcFill); }
.lc-spark path.line { fill: none; stroke: var(--bright); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lc-feed { list-style: none; border-top: 1px solid rgba(255,255,255,.08); margin-top: 8px; padding-top: 8px; height: 154px; overflow: hidden; position: relative; }
.lc-feed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36px; background: linear-gradient(transparent, #0A1A2F); pointer-events: none; }
.lc-feed li { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; font-size: .8rem; color: #C6D4E3; animation: feedIn .5s ease both; }
.lc-feed li time { font-family: var(--font-mono); font-size: .7rem; color: #6F869D; flex: none; }
.lc-feed li .tag { font-family: var(--font-mono); font-size: .68rem; color: var(--ink); background: var(--bright); border-radius: 4px; padding: 0 5px; flex: none; }
.lc-feed li .tag.warn { background: var(--amber); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Metric strip */
.metrics-strip { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255,255,255,.12); }
.metric-item { padding: 26px 24px 28px 0; }
.metric-item + .metric-item { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.1); }
.metric-value { font-family: var(--font-display); font-size: 2.3rem; font-weight: 600; letter-spacing: -0.04em; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.metric-label { font-size: .84rem; color: #8BA0B6; margin-top: 8px; }

/* Hero mockup (window) */
.hero-mockup-wrapper { position: relative; max-width: 1080px; margin: 48px auto 0; perspective: 1400px; }
.hero-mockup-wrapper .mock-inner {
  background: #0C2038; border: 1px solid rgba(255,255,255,.14); border-bottom: 0;
  border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden;
  box-shadow: 0 -20px 80px -20px rgba(45,224,196,.25);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease-out;
}
.hero-mockup-header { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #0F2842; border-bottom: 1px solid rgba(255,255,255,.08); }
.window-dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red { background: #FF5F57; } .dot-yellow { background: #FEBC2E; } .dot-green { background: #28C840; }
.window-url { margin-left: 12px; flex: 1; min-width: 0; font-family: var(--font-mono); font-size: .74rem; color: #8BA0B6; background: rgba(255,255,255,.06); padding: 5px 12px; border-radius: 99px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */
.section-title-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 20px 64px; align-items: end; margin-bottom: 52px; }
.section-title-wrap .section-eyebrow { grid-column: 1 / -1; justify-self: start; margin-bottom: -8px; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .86rem; font-weight: 600; color: var(--brand-dark);
}
.section-eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-heading { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 700; color: var(--ink); letter-spacing: -0.035em; }
.section-lead { font-size: 1.04rem; color: var(--muted); line-height: 1.7; max-width: 560px; }

/* Sub-page hero */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #fff; padding: 76px 0 68px; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(90deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 85%); }
.page-hero::after { content: ""; position: absolute; z-index: -1; right: -120px; top: -160px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(45,224,196,.22), transparent 65%); }
.page-hero .section-eyebrow { color: var(--bright); margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); font-weight: 700; letter-spacing: -0.04em; max-width: 920px; margin-bottom: 20px; color: #fff; }
.page-hero p.lead { font-size: 1.12rem; color: #A9BBCE; max-width: 780px; line-height: 1.7; }
.page-hero .chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.page-hero .chip { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #DCE6F0; padding: 7px 16px; border-radius: 99px; font-size: .84rem; font-weight: 500; }

/* --------------------------------------------------------------------------
   Showcase (tabs + screenshot cards)
   -------------------------------------------------------------------------- */
.showcase-section { background: var(--surface); border-bottom: 1px solid var(--line); }
.showcase-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 6px; margin-bottom: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; scrollbar-width: none; }
.showcase-tabs::-webkit-scrollbar { display: none; }
.showcase-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--text-2); font-size: .88rem; font-weight: 500; padding: 9px 16px; border-radius: 99px; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.showcase-tab:hover { color: var(--ink); background: rgba(10,26,47,.05); }
.showcase-tab.active { background: var(--ink); color: #fff; box-shadow: 0 6px 16px -6px rgba(10,26,47,.5); }

.screenshot-display-card { display: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.screenshot-display-card.active { display: block; animation: swap .45s cubic-bezier(.2,.8,.2,1); }
@keyframes swap { from { opacity: 0; transform: translateY(14px) scale(.992); } to { opacity: 1; transform: none; } }
.screenshot-img-wrap { position: relative; overflow: hidden; cursor: zoom-in; background: #0C2038; }
.screenshot-img-wrap img { width: 100%; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.screenshot-img-wrap:hover img { transform: scale(1.02); }
.screenshot-badge-overlay { position: absolute; right: 16px; bottom: 16px; background: rgba(10,26,47,.82); backdrop-filter: blur(6px); color: #fff; font-size: .78rem; padding: 7px 14px; border-radius: 99px; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.screenshot-img-wrap:hover .screenshot-badge-overlay { opacity: 1; transform: none; }
.screenshot-info { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; padding: 30px 32px 34px; background: var(--surface); }
.screenshot-info h3 { font-size: 1.45rem; font-weight: 700; margin-bottom: 10px; }
.screenshot-info p { color: var(--muted); font-size: .96rem; margin-bottom: 16px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ftag { font-size: .78rem; font-weight: 500; color: var(--text-2); background: var(--paper); border: 1px solid var(--line); padding: 4px 11px; border-radius: 99px; }
.ftag.code { font-family: var(--font-mono); font-size: .74rem; color: var(--brand-dark); background: var(--brand-soft); border-color: transparent; }
.spec-box { align-self: start; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); padding: 6px 18px; }
.spec-row { display: flex; flex-direction: column; gap: 1px; padding: 12px 0; font-size: .86rem; }
.spec-row + .spec-row { border-top: 1px dashed var(--line-strong); }
.spec-label { color: var(--muted); font-size: .78rem; }
.spec-value { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   Modules catalog
   -------------------------------------------------------------------------- */
.modules-section { background: var(--paper); }
.module-filter-bar { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px 20px 8px 8px; margin-bottom: 14px; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.module-filter-bar:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.module-search-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 14px; font-size: .96rem; }
.module-search-input::placeholder { color: var(--faint); }
#moduleCountBadge { white-space: nowrap; color: var(--brand-dark) !important; background: var(--brand-soft); padding: 5px 12px; border-radius: 99px; font-size: .82rem !important; }
.category-filter-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 18px; scrollbar-width: thin; }
.cat-pill { flex: none; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); font-size: .84rem; font-weight: 500; padding: 7px 15px; border-radius: 99px; transition: all .2s; white-space: nowrap; }
.cat-pill:hover { border-color: var(--ink); color: var(--ink); }
.cat-pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.module-card, .vertical-card, .arch-card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.module-card::before, .vertical-card::before, .arch-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(10,143,134,.12), transparent 70%);
}
.module-card:hover, .vertical-card:hover, .arch-card:hover { border-color: rgba(10,143,134,.55); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.module-card:hover::before, .vertical-card:hover::before, .arch-card:hover::before { opacity: 1; }
.module-card { padding: 22px; display: flex; flex-direction: column; gap: 8px; animation: swap .4s both; }
.mod-category { font-size: .76rem; font-weight: 600; color: var(--brand-dark); }
.mod-title { font-size: 1.12rem; font-weight: 650; letter-spacing: -0.02em; color: var(--ink); }
.mod-entity { font-family: var(--font-mono); font-size: .76rem; color: var(--text-2); background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: 1px 7px; }
.mod-desc { font-size: .88rem; color: var(--muted); line-height: 1.55; flex: 1; }
.mod-footer { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.acf-pill { font-size: .78rem; font-weight: 600; color: var(--ok); }

/* --------------------------------------------------------------------------
   Verticals
   -------------------------------------------------------------------------- */
.verticals-section { background: var(--surface); border-bottom: 1px solid var(--line); }
.verticals-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.verticals-grid .vertical-card { grid-column: span 2; }
.verticals-grid .vertical-card:nth-child(1), .verticals-grid .vertical-card:nth-child(2) { grid-column: span 3; }
.verticals-grid .vertical-card:nth-child(7) { grid-column: span 6; display: grid; grid-template-columns: auto 1fr 1fr; column-gap: 28px; align-items: start; }
.verticals-grid .vertical-card:nth-child(7) .vertical-icon { grid-row: 1 / span 3; margin: 0; }
.verticals-grid .vertical-card:nth-child(7) .vertical-title, .verticals-grid .vertical-card:nth-child(7) .vertical-desc { grid-column: 2; }
.verticals-grid .vertical-card:nth-child(7) .vertical-checklist { grid-column: 3; grid-row: 1 / span 3; }
.vertical-card { padding: 28px; background: var(--paper); }
.vertical-card:nth-child(1) { background: var(--ink); border-color: var(--ink); color: #fff; }
.vertical-card:nth-child(1) .vertical-desc, .vertical-card:nth-child(1) .vertical-checklist li { color: #A9BBCE; }
.vertical-card:nth-child(1) .vertical-title { color: #fff; }
.vertical-card:nth-child(1) .vertical-icon { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.14); }
.vertical-icon { width: 52px; height: 52px; display: grid; place-items: center; font-size: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 18px; transition: transform .4s cubic-bezier(.2,.9,.3,1.5); }
.vertical-card:hover .vertical-icon { transform: rotate(-8deg) scale(1.1); }
.vertical-title { font-size: 1.28rem; font-weight: 650; margin-bottom: 10px; }
.vertical-desc { font-size: .93rem; color: var(--muted); margin-bottom: 18px; }
.vertical-checklist { list-style: none; display: grid; gap: 9px; }
.vertical-checklist li { display: flex; align-items: flex-start; gap: 9px; font-size: .88rem; color: var(--text-2); }
.vertical-checklist svg { width: 16px; height: 16px; flex: none; margin-top: 3px; fill: var(--brand); }
.vertical-card:nth-child(1) .vertical-checklist svg { fill: var(--bright); }

/* --------------------------------------------------------------------------
   3D simulator (dark)
   -------------------------------------------------------------------------- */
.interactive-section { position: relative; isolation: isolate; background: var(--ink); color: #fff; overflow: hidden; }
.interactive-section::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000, transparent); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000, transparent); }
.interactive-section .section-heading { color: #fff; }
.interactive-section .section-lead { color: #A9BBCE; }
.interactive-section .section-eyebrow { color: var(--bright) !important; background: none !important; padding: 0 !important; }
.interactive-box { display: grid; grid-template-columns: 320px minmax(0, 1fr); grid-template-areas: "controls canvas" "controls stats"; gap: 0; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-xl); overflow: hidden; }
.tool-controls { grid-area: controls; display: flex; flex-direction: column; gap: 22px; padding: 28px; border-right: 1px solid rgba(255,255,255,.1); }
.control-group label { display: block; font-size: .82rem; font-weight: 500; color: #9FB3C8; margin-bottom: 8px; }
.control-group select { width: 100%; background: #0C2038; color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-md); padding: 11px 12px; font-size: .9rem; }
.control-group select:focus { outline: none; border-color: var(--bright); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--brand) var(--fill, 50%), rgba(120,140,165,.35) var(--fill, 50%)); outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); box-shadow: 0 2px 8px rgba(0,0,0,.35); transition: transform .15s; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.18); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); }
.canvas-preview-wrap { grid-area: canvas; position: relative; min-height: 400px; background: radial-gradient(ellipse at 50% 100%, rgba(45,224,196,.1), transparent 65%); cursor: grab; touch-action: pan-y; }
.canvas-preview-wrap:active { cursor: grabbing; }
.canvas-preview-wrap canvas { display: block; width: 100%; height: 100%; }
.canvas-hint { position: absolute; left: 18px; top: 16px; font-size: .78rem; color: #8BA0B6; pointer-events: none; transition: opacity .4s; }
.canvas-hint.hide { opacity: 0; }
.canvas-stats-bar { grid-area: stats; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.1); }
.cstat-card { padding: 20px 22px; }
.cstat-card + .cstat-card { border-left: 1px solid rgba(255,255,255,.1); }
.cstat-val { font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.cstat-lbl { font-size: .76rem; color: #8BA0B6; margin-top: 4px; }

/* --------------------------------------------------------------------------
   ROI calculator
   -------------------------------------------------------------------------- */
.roi-section { background: var(--surface); border-bottom: 1px solid var(--line); }
.roi-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.roi-controls { padding: 38px; display: grid; gap: 34px; align-content: center; background: var(--paper); }
.roi-field > label { display: flex; flex-direction: column; gap: 2px; font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.roi-field > label span { font-family: var(--font-display); font-size: 1.5rem; font-weight: 650; color: var(--ink); letter-spacing: -0.03em; }
.roi-scale { display: flex; justify-content: space-between; font-size: .74rem; color: var(--faint); margin-top: 8px; }
.roi-results { padding: 38px; background: var(--ink); color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; align-content: center; }
.roi-result .roi-val { font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.roi-result .roi-lbl { font-size: .8rem; color: #8BA0B6; margin-top: 4px; }
.roi-result.total { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.roi-result.total .roi-val { font-size: clamp(2rem, 4vw, 3rem); color: var(--bright); }

/* --------------------------------------------------------------------------
   Sandbox banner
   -------------------------------------------------------------------------- */
.sandbox-banner-box { display: flex; align-items: center; justify-content: space-between; gap: 40px; background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: 44px 48px; position: relative; overflow: hidden; }
.sandbox-banner-box::after { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(45,224,196,.2), transparent 65%); pointer-events: none; }
.sandbox-info { position: relative; z-index: 1; }
.sandbox-info h3 { font-size: 1.7rem; font-weight: 650; margin: 12px 0 10px; }
.sandbox-info p { color: #A9BBCE; max-width: 640px; font-size: .96rem; }
.sandbox-info .badge { background: var(--amber) !important; color: var(--ink) !important; }
.cred-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cred-chip { font-family: var(--font-mono); font-size: .78rem; color: #A9BBCE; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 7px 13px; border-radius: var(--r-sm); }
.cred-chip strong { color: var(--bright); font-weight: 500; }
.sandbox-banner-box .btn { position: relative; z-index: 1; background: #fff !important; color: var(--ink) !important; }

/* --------------------------------------------------------------------------
   Architecture + tables (sub-pages)
   -------------------------------------------------------------------------- */
.arch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.arch-card { padding: 30px; }
.arch-card h3 { font-size: 1.2rem; font-weight: 650; margin-bottom: 10px; }
.arch-card p { color: var(--muted); font-size: .93rem; line-height: 1.65; }

.table-container { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; overflow-x: auto; box-shadow: var(--shadow-sm); }
.table-container table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
.table-container th { text-align: left; font-size: .78rem; font-weight: 600; color: var(--muted); background: var(--paper); padding: 11px 20px; border-bottom: 1px solid var(--line); }
.table-container td { padding: 13px 20px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.table-container tbody tr { transition: background .15s; }
.table-container tbody tr:hover { background: var(--brand-soft); }
.table-container tbody tr:last-child td { border-bottom: 0; }

.badge-green, .badge-yellow, .badge-purple { display: inline-block; font-size: .82rem; font-weight: 600; padding: 4px 12px; border-radius: 99px; }
.badge-green { background: #DDF6EA; color: #0B7A4B; }
.badge-yellow { background: var(--amber-soft); color: #A56500; }
.badge-purple { background: #EAE7FF; color: #4A3BD1; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); color: #9FB3C8; padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; padding-bottom: 56px; }
.footer-brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.04em; color: #fff; margin-bottom: 16px; }
.footer-brand img { width: 38px; height: 38px; }
.footer-brand .wordmark { font-weight: 500; } .footer-brand .wordmark b { font-weight: 800; }
.footer-col h4 { font-family: var(--font-sans); font-size: .86rem; font-weight: 600; color: #fff; letter-spacing: 0; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { font-size: .88rem; color: #9FB3C8; transition: color .2s; }
.footer-col a:hover { color: var(--bright); }
.footer-col code { background: rgba(255,255,255,.08); color: #C6D4E3; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: #6F869D; }
.footer-bottom a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Modal + command palette
   -------------------------------------------------------------------------- */
.modal-overlay { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(6,16,30,.66); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box { position: relative; width: 100%; max-width: 720px; max-height: 92vh; overflow: auto; background: var(--surface); border-radius: var(--r-xl); padding: 38px; box-shadow: var(--shadow-lg); transform: translateY(18px) scale(.97); transition: transform .35s cubic-bezier(.2,.9,.3,1.1), max-width .3s; }
.modal-overlay.open .modal-box { transform: none; }
.modal-box.wide { max-width: 1180px; padding: 22px; }
.modal-close-btn { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--paper); font-size: 22px; line-height: 1; color: var(--text-2); transition: background .2s; z-index: 2; }
.modal-close-btn:hover { background: var(--line); }
.field { width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); font-size: .92rem; transition: border-color .2s, box-shadow .2s; }
.field:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }

.cmdk-overlay { position: fixed; inset: 0; z-index: 3500; display: flex; align-items: flex-start; justify-content: center; padding: 14vh 20px 20px; background: rgba(6,16,30,.6); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.cmdk-overlay.open { opacity: 1; visibility: visible; }
.cmdk { width: 100%; max-width: 620px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(-10px) scale(.98); transition: transform .25s cubic-bezier(.2,.9,.3,1.1); }
.cmdk-overlay.open .cmdk { transform: none; }
.cmdk-input-row { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.cmdk-input-row svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; flex: none; }
.cmdk-input { flex: 1; border: 0; outline: 0; padding: 18px 0; font-size: 1.02rem; background: transparent; }
.cmdk-list { list-style: none; max-height: 52vh; overflow-y: auto; padding: 8px; }
.cmdk-group { font-size: .74rem; font-weight: 600; color: var(--faint); padding: 10px 12px 4px; }
.cmdk-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border-radius: var(--r-md); cursor: pointer; font-size: .92rem; }
.cmdk-item small { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.cmdk-item[aria-selected="true"] { background: var(--brand-soft); color: var(--brand-dark); }
.cmdk-empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: .92rem; }
.cmdk-foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); background: var(--paper); }
.cmdk-foot kbd { font-family: var(--font-mono); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .metrics-strip { grid-template-columns: repeat(3, 1fr); }
  .metric-item:nth-child(4) { border-left: 0; padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
  .nav-search kbd { display: none; }
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 20px; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); display: none; }
  .nav-links.open { display: flex; animation: swap .25s both; }
  .nav-link { padding: 12px 14px; border-radius: var(--r-md); }
  .nav-actions .btn-secondary { display: none; }
  .section-title-wrap { grid-template-columns: 1fr; }
  .screenshot-info { grid-template-columns: 1fr; }
  .interactive-box { grid-template-columns: 1fr; grid-template-areas: "canvas" "controls" "stats"; }
  .tool-controls { border-right: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .roi-card { grid-template-columns: 1fr; }
  .verticals-grid { grid-template-columns: 1fr 1fr; }
  .verticals-grid .vertical-card, .verticals-grid .vertical-card:nth-child(1), .verticals-grid .vertical-card:nth-child(2), .verticals-grid .vertical-card:nth-child(7) { grid-column: span 1; display: block; }
  .verticals-grid .vertical-card:nth-child(7) .vertical-icon { margin-bottom: 18px; }
  .arch-grid { grid-template-columns: 1fr; }
  .sandbox-banner-box { flex-direction: column; align-items: flex-start; padding: 32px 26px; }
}
@media (max-width: 680px) {
  .section-padding { padding: 72px 0; }
  .container, .nav-container { padding: 0 18px; }
  .nav-actions .btn-primary, .nav-search span { display: none; }
  .nav-search { padding: 0 10px; }
  .hero-section { padding-top: 48px; }
  .lc-metrics { grid-template-columns: 1fr 1fr; }
  .lc-metrics .lc-metric:nth-child(3) { grid-column: 1 / -1; }
  .metrics-strip { grid-template-columns: 1fr 1fr; }
  .metric-item, .metric-item + .metric-item { padding: 20px 12px 20px 0; border-left: 0; }
  .metric-item:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.1); }
  .verticals-grid { grid-template-columns: 1fr; }
  .canvas-stats-bar { grid-template-columns: 1fr 1fr; }
  .cstat-card:nth-child(3) { border-left: 0; }
  .cstat-card:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
  .roi-controls, .roi-results { padding: 26px 22px; }
  .roi-results { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .modal-box { padding: 28px 20px; }
  .module-filter-bar { flex-wrap: wrap; padding: 6px 14px 12px 6px; }
  .page-hero { padding: 56px 0 48px; }
  .brand-pill { display: none; }
}
/* Legacy inline-styled grids on sub-pages collapse on small screens */
@media (max-width: 820px) {
  [style*="grid-template-columns:1fr 1fr"], [style*="grid-template-columns: 1fr 1fr"], [style*="grid-template-columns:repeat(4,1fr)"], [style*="grid-template-columns:repeat(2,1fr)"], [style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* --- patches --- */
.sandbox-section { padding-top: 96px; padding-bottom: 96px; }
.sandbox-banner-box { margin-top: 0; }
.section-eyebrow[style*="background"] { padding: 3px 12px; border-radius: 99px; }
.section-eyebrow[style*="background"]::before { display: none; }
.hero-title .gradient-text { color: #7FEAD8; }
.hero-copy { min-width: 0; }
.footer .footer-brand { margin-bottom: 20px; }
.footer > .container > .footer-bottom { margin-top: 0; }
.nav-link, .nav-actions .btn, .brand-pill, .nav-search span { white-space: nowrap; }
.nav-container { gap: 16px; }
@media (max-width: 1280px) { .nav-actions .btn-secondary { display: none; } }
.hero-title { font-size: clamp(2.3rem, 4.4vw, 3.9rem); }
.hero-cta-group .btn-lg { padding: 13px 24px; font-size: .96rem; }
.nav-search kbd { white-space: nowrap; }
@media (max-width: 1360px) { .nav-actions .btn-secondary { display: none; } }
.interactive-box { grid-template-columns: 340px minmax(0, 1fr); }
.control-group select { font-size: .84rem; text-overflow: ellipsis; }
.cstat-val { font-size: 1.1rem; }
.mod-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mod-tier { font-size: .72rem; font-weight: 600; color: var(--text-2); background: var(--paper); border: 1px solid var(--line); padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.nav-link { padding: 8px 11px; }

/* Mobile safety net for legacy inline-styled blocks on sub-pages */
@media (max-width: 820px) {
  [style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
  [style*="display:flex"], [style*="display: flex"] { flex-wrap: wrap; }
  [style*="display:grid"] > *, [style*="display: grid"] > * { min-width: 0; }
  h2[style*="font-size:2.2rem"], h2[style*="font-size: 2.2rem"] { font-size: 1.7rem !important; }
  main h2[style*="font-size:2rem"], main h2[style*="font-size: 2rem"] { font-size: 1.55rem !important; }
  main { overflow-x: clip; }
}
@media (max-width: 980px) { .nav-links { background: #fff; } }
.cmdk-input:focus-visible { box-shadow: none; }

/* --- 16 business domains grid --- */
.verticals-grid { grid-template-columns: repeat(4, 1fr); }
.verticals-grid .vertical-card, .verticals-grid .vertical-card:nth-child(n) { grid-column: auto; display: block; background: var(--paper); border-color: var(--line); color: inherit; }
.verticals-grid .vertical-card:nth-child(n) .vertical-title { color: var(--ink); }
.verticals-grid .vertical-card:nth-child(n) .vertical-desc, .verticals-grid .vertical-card:nth-child(n) .vertical-checklist li { color: var(--muted); }
.verticals-grid .vertical-card:nth-child(n) .vertical-checklist li { color: var(--text-2); }
.verticals-grid .vertical-card:nth-child(n) .vertical-icon { background: var(--surface); border-color: var(--line); margin: 0 0 18px; grid-row: auto; }
.verticals-grid .vertical-card:nth-child(n) .vertical-checklist { grid-column: auto; grid-row: auto; }
.verticals-grid .vertical-card:nth-child(n) .vertical-checklist svg { fill: var(--brand); }
.verticals-grid .vertical-card { padding: 24px; }
.verticals-grid .vertical-title { font-size: 1.12rem; }
.verticals-grid .vertical-desc { font-size: .88rem; }
.verticals-grid .vertical-checklist li { font-size: .84rem; }
.vertical-card[hidden] { display: none !important; }
.domain-filter { margin-bottom: 18px; flex-wrap: wrap; overflow: visible; }
.more-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1180px) { .verticals-grid { grid-template-columns: repeat(2, 1fr); } .more-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .verticals-grid, .more-grid { grid-template-columns: 1fr; } }
.sandbox-banner-box .btn-primary { background: var(--bright) !important; color: var(--ink) !important; }

/* --- contact form --- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-label { display: block; font-size: .8rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-bottom: 14px; padding: 10px 14px; border-radius: var(--r-md); background: var(--danger-soft); color: #9B2C1F; font-size: .88rem; }
.field:invalid:not(:placeholder-shown):not(:focus) { border-color: var(--danger); }
.btn:disabled { opacity: .65; cursor: progress; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
