/* ============================================================
   SecureShift AI — Product Security Intelligence
   Shared design system
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Dark theme (default) */
  --bg:        #0A0712;
  --bg-soft:   #0C111C;
  --bg-card:   #111827;
  --bg-elev:   #161F31;
  --bg-glass:  rgba(13, 18, 30, 0.72);

  --line:        rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);

  --ink:       #F4F3EE;
  --ink-soft:  #C3C6CF;
  --ink-mute:  #7A8194;
  --ink-faint: #424B61;

  --emerald:      #00FFA3;
  --emerald-deep: #00C97F;
  --emerald-glow: rgba(0,255,163,0.55);
  --mint:         #B8F5D8;

  /* Brand gradient palette (blue → purple → pink → cyan) */
  --blue:         #4A7BFF;
  --purple:       #8B5CF6;
  --pink:         #EC4899;
  --cyan:         #00D4FF;
  --violet:       #A99CFF;
  --crimson:      #FF5470;
  --amber:        #FFB547;
  --rose:         #FF9FB2;

  --accent:        var(--purple);
  --accent-deep:   #7C3AED;
  --accent-contrast: #FFFFFF;
  --accent-glow:   rgba(139, 92, 246, 0.5);
  /* brand gradient used for headline accents */
  --brand-grad:    linear-gradient(100deg, #8B5CF6, #EC4899 52%, #FF7B3D);

  /* Typography */
  --display: 'Outfit', 'Inter Tight', sans-serif;
  --editorial: 'Anton', 'Impact', sans-serif;
  --body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Fluid type */
  --fs-display: clamp(44px, 8vw, 104px);
  --fs-h1:      clamp(38px, 6vw, 76px);
  --fs-h2:      clamp(30px, 4.4vw, 56px);
  --fs-h3:      clamp(22px, 2.6vw, 32px);
  --fs-lead:    clamp(17px, 1.5vw, 21px);
  --fs-body:    clamp(15px, 1.1vw, 17px);
  --fs-small:   13px;
  --fs-label:   11px;

  /* Spacing scale (density-aware) */
  --density: 1;
  --gap-xs: calc(8px * var(--density));
  --gap-sm: calc(14px * var(--density));
  --gap:    calc(24px * var(--density));
  --gap-lg: calc(40px * var(--density));
  --gap-xl: calc(64px * var(--density));

  --pad-page: clamp(20px, 5vw, 80px);
  --sec-y:    calc(clamp(64px, 10vw, 148px) * var(--density));

  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --maxw: 1280px;
  --maxw-wide: 1440px;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 24px 60px -28px rgba(0,0,0,0.7);
  --shadow-glow: 0 0 80px -20px var(--accent-glow);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.2s var(--ease);
  --t:      0.4s var(--ease);
}

/* Light theme */
[data-theme="light"] {
  --bg:        #F4F3EE;
  --bg-soft:   #EBEAE3;
  --bg-card:   #FFFFFF;
  --bg-elev:   #FBFAF6;
  --bg-glass:  rgba(247, 246, 241, 0.8);

  --line:        rgba(13,18,30,0.10);
  --line-strong: rgba(13,18,30,0.18);

  --ink:       #0C111C;
  --ink-soft:  #353C49;
  --ink-mute:  #6A7180;
  --ink-faint: #B4B7BE;

  --emerald:      #00A56B;
  --emerald-deep: #008E5B;
  --emerald-glow: rgba(0,165,107,0.35);
  --accent:        #7C3AED;
  --accent-deep:   #6D28D9;
  --accent-contrast: #FFFFFF;
  --accent-glow:   rgba(124, 58, 237, 0.32);
  --brand-grad:    linear-gradient(100deg, #3B6BE6, #7C3AED 45%, #0091C2);

  --crimson: #D63B3B;
  --amber:   #C4830F;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.6) inset, 0 24px 50px -30px rgba(20,30,50,0.28);
  --shadow-glow: 0 0 70px -24px var(--accent-glow);
}

[data-density="compact"] { --density: 0.74; }

/* ---------- RESET ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  background: transparent;
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--accent); color: var(--accent-contrast); }

/* film grain — fine, tiled, filmic (inspired by the deck texture) */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 4;
  opacity: 0.17; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 170px 170px;
}
[data-theme="light"] body::before { opacity: 0.05; }

/* animated grainy aurora backdrop */
body::after {
  content: ''; position: fixed; inset: -25%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(36% 42% at 16% 20%, rgba(214,36,159,0.50), transparent 60%),
    radial-gradient(34% 40% at 84% 16%, rgba(139,92,246,0.46), transparent 60%),
    radial-gradient(40% 46% at 78% 82%, rgba(236,72,153,0.42), transparent 62%),
    radial-gradient(34% 42% at 26% 86%, rgba(255,123,61,0.34), transparent 60%),
    radial-gradient(30% 38% at 60% 50%, rgba(124,58,237,0.20), transparent 70%);
  filter: blur(26px) saturate(125%);
  animation: aurora 30s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(-3%,-2%,0) scale(1.06); }
  50%  { transform: translate3d(3%,2%,0)   scale(1.14) rotate(2deg); }
  100% { transform: translate3d(-2%,3%,0)  scale(1.07); }
}
html.no-motion body::after { animation: none; }
.theme-toggle { display: none !important; }

/* ---------- LAYOUT ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad-page); position: relative; }
.wrap-wide { max-width: var(--maxw-wide); margin: 0 auto; padding-inline: var(--pad-page); position: relative; }
.section { padding-block: var(--sec-y); position: relative; }
.section--line { border-top: 1px solid var(--line); }

/* ---------- TYPE HELPERS ---------- */
.kicker {
  font-family: var(--body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.01em; text-transform: none; color: var(--ink-mute);
  display: inline-flex; align-items: center; gap: 12px;
}
.kicker.accent { color: var(--accent); }
.kicker.center { justify-content: center; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; }
.display { font-size: var(--fs-display); line-height: 0.98; letter-spacing: -0.03em; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-soft); font-weight: 400; max-width: 60ch; text-wrap: pretty; }
.muted { color: var(--ink-mute); }
.accent-text { color: var(--accent); }
.em { color: var(--accent); font-style: italic; }
em.em { font-weight: 500; }

.section-head { max-width: 920px; }
.section-head .lead { margin-top: var(--gap); }
.section-head h2 { margin-top: var(--gap); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 15px 24px; border-radius: 100px; border: 1px solid transparent;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-contrast); box-shadow: 0 0 0 0 var(--accent-glow); }
.btn-primary:hover { box-shadow: 0 14px 40px -12px var(--accent-glow); transform: translateY(-2px); }
.btn-primary .arr { transition: transform var(--t-fast); }
.btn-primary:hover .arr { transform: translateX(4px); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-text { padding: 6px 0; color: var(--ink); border-radius: 0; }
.btn-text:hover { color: var(--accent); }
.btn-lg { padding: 18px 30px; font-size: 13px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--maxw-wide); margin: 0 auto; padding: 16px var(--pad-page);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-logo { width: auto; height: 28px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.brand-name b { color: var(--accent); font-weight: 600; }
.brand-tag { font-family: var(--body); font-size: 11px; font-weight: 500; letter-spacing: 0.01em; color: var(--ink-mute); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 100px; position: relative;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-link:hover { color: var(--ink); background: var(--bg-elev); }
.nav-link.active { color: var(--accent); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: var(--ink-soft);
  transition: border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: rotate(18deg); }
.theme-toggle .moon { display: none; }
.theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: block; }
[data-theme="light"] .theme-toggle .sun { display: none; }

.nav-burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 10px; flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.nav-burger span { width: 16px; height: 1.5px; background: var(--ink); transition: var(--t-fast); }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--line);
    padding: 12px var(--pad-page) 22px; margin: 0;
  }
  .nav-links.open .nav-link { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
}
.nav-cta-hide { }
@media (max-width: 620px) { .nav-cta-hide { display: none; } .brand-tag { display: none; } }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding-block: var(--gap-xl) var(--gap-lg); margin-top: var(--gap-xl); }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--gap-lg); }
@media (max-width: 880px) { .footer-top { grid-template-columns: 1fr 1fr; gap: var(--gap-lg) var(--gap); } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .lead { font-size: 14px; margin-top: var(--gap-sm); max-width: 34ch; }
.footer-col h4 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 16px; font-weight: 500; }
.footer-col a { display: block; font-size: 14px; color: var(--ink-soft); padding: 6px 0; transition: color var(--t-fast), padding-left var(--t-fast); }
.footer-col a:hover { color: var(--accent); padding-left: 5px; }
.footer-bottom {
  margin-top: var(--gap-xl); padding-top: var(--gap); border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute);
}

/* ---------- CARDS / PANELS ---------- */
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--gap-lg); transition: border-color var(--t), transform var(--t), box-shadow var(--t), background var(--t);
  position: relative; overflow: hidden;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.card.glow:hover { border-color: var(--accent); box-shadow: var(--shadow-glow); }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: var(--accent); margin-bottom: var(--gap);
  background: var(--bg-elev); transition: var(--t);
}
.card:hover .ico { border-color: var(--accent); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15px; }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* eyebrow pill */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border: 1px solid var(--line-strong); border-radius: 100px;
  font-family: var(--body); font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; text-transform: none; color: var(--ink-soft);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- STAT BLOCK ---------- */
.stat-num { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 5.5vw, 76px); line-height: 0.9; letter-spacing: -0.03em; }
.stat-num.accent-text { color: var(--accent); }
.stat-num .unit { font-size: 0.42em; opacity: 0.6; margin-left: 2px; }
.stat-label { font-family: var(--body); font-size: 13px; font-weight: 500; letter-spacing: 0.01em; color: var(--ink-mute); }
.stat-foot { font-size: 13px; color: var(--ink-soft); margin-top: 10px; line-height: 1.5; }

/* ---------- LOGO STRIP ---------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 5vw, 64px); }
.logo-item { font-family: var(--display); font-weight: 600; font-size: clamp(17px, 2vw, 23px); letter-spacing: -0.01em; color: var(--ink-mute); opacity: 0.7; transition: var(--t); }
.logo-item:hover { opacity: 1; color: var(--ink); }

/* ---------- MERGE-GATE / MOCK UI WIDGETS ---------- */
.mock {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-card);
}
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-elev); }
.mock-dots { display: flex; gap: 6px; }
.mock-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-faint); }
.mock-dots span:nth-child(1){ background:#FF5C5C; } .mock-dots span:nth-child(2){ background:#FFB547; } .mock-dots span:nth-child(3){ background:#00FFA3; }
.mock-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.mock-tag { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); padding: 3px 9px; border: 1px solid var(--accent); border-radius: 100px; display: inline-flex; align-items: center; gap: 6px; }
.mock-tag .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 2s infinite; }
.mock-body { padding: 18px; }

.check-row { display: flex; align-items: center; gap: 12px; padding: 11px 13px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 9px; font-size: 13px; }
.check-row:last-child { margin-bottom: 0; }
.check-status { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.check-status.ok { background: var(--emerald); color: var(--accent-contrast); }
.check-status.warn { background: var(--amber); color: #1a1205; }
.check-status.block { background: var(--crimson); color: #1a0606; }
.check-label { flex: 1; color: var(--ink); font-weight: 500; }
.check-meta { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--ink-mute); }
.verdict { margin-top: 14px; padding: 13px; text-align: center; font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase; border-radius: var(--radius-sm); }
.verdict.block { background: var(--crimson); color: #fff; }
.verdict.pass { background: var(--emerald); color: var(--accent-contrast); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; border: 1px solid; border-radius: 100px; }
.badge::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.badge.high { color: var(--crimson); border-color: var(--crimson); }
.badge.med { color: var(--amber); border-color: var(--amber); }
.badge.low { color: var(--emerald); border-color: var(--emerald); }

/* ---------- SCROLL REVEAL ----------
   Failsafe model: content is VISIBLE by default. The hidden/animated state only
   applies when <html> has .reveal-on — which JS adds only after confirming the
   animation clock actually runs. So if motion is off, reduced-motion is set, JS
   fails, or the rendering clock is frozen, content stays fully visible. */
[data-reveal] { opacity: 1; transform: none; }
html.reveal-on [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
html.reveal-on [data-reveal].in { opacity: 1; transform: none; }
html.reveal-on [data-delay="1"] { transition-delay: 0.08s; }
html.reveal-on [data-delay="2"] { transition-delay: 0.16s; }
html.reveal-on [data-delay="3"] { transition-delay: 0.24s; }
html.reveal-on [data-delay="4"] { transition-delay: 0.32s; }
html.reveal-on [data-delay="5"] { transition-delay: 0.40s; }

[data-parallax] { will-change: transform; }
html.no-motion [data-parallax] { transform: none !important; }

/* ---------- AMBIENT GLOW ---------- */
.glow-orb { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; z-index: 0; opacity: 0.5; }
.glow-orb.em { background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%); }

/* ---------- UTIL ---------- */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-sm { margin-top: var(--gap-sm); }
.mt { margin-top: var(--gap); }
.mt-lg { margin-top: var(--gap-lg); }
.mt-xl { margin-top: var(--gap-xl); }
.flex { display: flex; }
.gap { gap: var(--gap); }
.gap-sm { gap: var(--gap-sm); }
.wrap-flex { flex-wrap: wrap; }
.items-center { align-items: center; }
.divider { height: 1px; background: var(--line); border: 0; }
.maxw-prose { max-width: 62ch; }
.relative { position: relative; }
.z1 { position: relative; z-index: 1; }

/* ---------- SUB-PAGE HERO ---------- */
.page-hero { padding-top: clamp(72px, 10vw, 128px); padding-bottom: var(--gap-xl); position: relative; overflow: hidden; }
.page-hero .glow-orb { width: 720px; height: 520px; left: 60%; top: -20%; }
.page-hero h1 { font-size: var(--fs-h1); margin-top: var(--gap); max-width: 16ch; }
.page-hero .lead { margin-top: var(--gap); }
.page-hero .hero-actions { margin-top: var(--gap-lg); display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- INTEGRATIONS CHIPS ---------- */
.int-row { display: flex; flex-wrap: wrap; gap: var(--gap-sm); }
.int-chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 100px; background: var(--bg-card); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); transition: var(--t); }
.int-chip:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.int-chip .ic { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-size: 10px; background: var(--bg-elev); color: var(--accent); }

/* ---------- NUMBERED FEATURE ROWS ---------- */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,64px); align-items: center; padding-block: var(--gap-xl); border-top: 1px solid var(--line); }
.frow:nth-child(even) .frow-media { order: -1; }
@media (max-width: 860px) { .frow { grid-template-columns: 1fr; gap: var(--gap-lg); } .frow:nth-child(even) .frow-media { order: 0; } }
.frow .step-n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--accent); }
.frow h3 { margin-top: 14px; font-size: var(--fs-h3); }
.frow p { margin-top: 14px; color: var(--ink-soft); }
.frow ul { margin-top: var(--gap); list-style: none; display: flex; flex-direction: column; gap: 10px; }
.frow li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.frow li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--accent); flex-shrink: 0; margin-top: 3px; background: radial-gradient(circle at center, var(--accent) 0 32%, transparent 36%); }

/* ---------- FAQ ---------- */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: var(--gap) 0; text-align: left; font-family: var(--display); font-weight: 600; font-size: clamp(17px,2vw,22px); letter-spacing: -0.01em; }
.faq-q .pm { width: 26px; height: 26px; flex-shrink: 0; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content: ''; position: absolute; background: var(--accent); transition: var(--t); }
.faq-q .pm::before { left: 0; right: 0; top: 12px; height: 2px; }
.faq-q .pm::after { top: 0; bottom: 0; left: 12px; width: 2px; }
.faq-item.open .pm::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { padding-bottom: var(--gap); color: var(--ink-soft); max-width: 68ch; }
html.no-motion .faq-a { transition: none; }

/* ---------- PERSONA / USE-CASE CARDS ---------- */
.persona { padding: var(--gap-lg); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); transition: var(--t); position: relative; overflow: hidden; }
.persona:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.persona .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.persona h3 { margin-top: 12px; font-size: var(--fs-h3); }
.persona p { margin-top: 12px; color: var(--ink-soft); font-size: 15px; }
.persona .out { margin-top: var(--gap); padding-top: var(--gap); border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-mute); }
.persona .out b { color: var(--accent); }

/* ---------- ANATOMY / PIPELINE ---------- */
.pipe3 { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px,2vw,32px); align-items: center; }
@media (max-width: 900px) { .pipe3 { grid-template-columns: 1fr; } .pipe3 .pipe-arrow { transform: rotate(90deg); justify-self: center; } }
.pipe-arrow { font-family: var(--mono); color: var(--accent); font-size: 22px; }
.pipe-col { display: flex; flex-direction: column; gap: var(--gap-sm); }
.pipe-box { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-card); }
.pipe-box .t { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.pipe-box .n { font-weight: 600; margin-top: 6px; }

/* ---------- TEAM ---------- */
.team-card { text-align: center; }
.team-card .ava { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto var(--gap); background: linear-gradient(135deg, var(--accent), var(--cyan)); }
.team-card h3 { font-size: 19px; }
.team-card .role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin-top: 6px; }

/* ---------- FORM ---------- */
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.contact-turnstile { min-height: 65px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 15px; color: var(--ink); background: var(--bg-card);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 14px 16px; transition: var(--t-fast); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- PROBLEM CARD GRID ---------- */
.prob-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-sm); }
@media (max-width: 940px) { .prob-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .prob-grid { grid-template-columns: 1fr; } }
.prob-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--gap-lg); transition: var(--t); }
.prob-card:hover { border-color: color-mix(in srgb, var(--crimson) 40%, var(--line)); transform: translateY(-4px); }
.prob-card .num { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--crimson); }
.prob-card h3 { margin-top: 14px; font-size: 19px; }
.prob-card p { margin-top: 10px; font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

/* ---------- SDLC INTERCEPT TIMELINE ---------- */
.sdlc { margin-top: var(--gap-xl); padding: var(--gap) 0; }
.sdlc-track { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
@media (max-width: 760px) { .sdlc-track { grid-template-columns: 1fr 1fr; gap: var(--gap); } }
.sdlc-track::before { content: ''; position: absolute; top: 30px; left: 9%; right: 9%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent); }
@media (max-width: 760px) { .sdlc-track::before { display: none; } }
.sdlc-stop { text-align: center; padding: 0 8px; position: relative; }
.sdlc-stop .n { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-mute); }
.sdlc-stop .dot { width: 13px; height: 13px; border-radius: 50%; background: var(--bg-card); border: 2px solid var(--line-strong); margin: 12px auto 16px; position: relative; z-index: 2; transition: var(--t); }
.sdlc-stop.intercept .n { color: var(--accent); }
.sdlc-stop.intercept .dot { background: var(--accent); border-color: var(--accent); outline: 6px solid color-mix(in srgb, var(--accent) 16%, transparent); }
.sdlc-stop .stage { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.sdlc-stop.intercept .stage { color: var(--accent); }
.sdlc-stop .sub { font-family: var(--mono); font-size: 10px; color: var(--ink-mute); margin-top: 5px; }
.sdlc-callout { display: flex; justify-content: center; margin-top: var(--gap-lg); }

/* ---------- METRICS BAND ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 760px) { .metrics { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .metrics { grid-template-columns: 1fr; } }
.metric { padding: clamp(26px,3vw,40px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric .stat-num { font-size: clamp(38px,4.6vw,62px); }
.metric .stat-label { margin-top: 12px; }

/* ---------- FOUR DIMENSIONS ---------- */
.dim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 720px) { .dim-grid { grid-template-columns: 1fr; } }
.dim { display: flex; gap: 18px; padding: var(--gap-lg); background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); transition: var(--t); }
.dim:hover { border-color: var(--accent); transform: translateY(-3px); }
.dim .dnum { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; }
.dim h3 { font-size: 19px; }
.dim p { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }

/* ---------- USE CASES MEGA MENU ---------- */
.nav-dd { position: relative; }
.nav-dd-trigger { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: var(--ink-soft); padding: 8px 14px; border-radius: 100px; white-space: nowrap; transition: color var(--t-fast), background var(--t-fast); }
.nav-dd-trigger:hover { color: var(--ink); background: var(--bg-elev); }
.nav-dd-trigger.active { color: var(--accent); }
.nav-dd-trigger .chev { transition: transform var(--t-fast); }
.nav-dd:hover .nav-dd-trigger .chev, .nav-dd.open .nav-dd-trigger .chev { transform: rotate(180deg); }
.nav-mega { position: absolute; top: 100%; left: 0; padding-top: 14px; z-index: 60; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast); }
.nav-dd:hover .nav-mega, .nav-dd.open .nav-mega { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-mega-inner { width: 580px; max-width: calc(100vw - 32px); background: var(--bg-soft); border: 1px solid var(--line-strong); border-radius: 18px; padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; box-shadow: 0 30px 70px -24px rgba(0,0,0,0.6); }
.mega-item { display: flex; align-items: flex-start; gap: 13px; padding: 14px; border-radius: 13px; transition: background var(--t-fast); }
.mega-item:hover { background: var(--bg-elev); }
.mega-item .m-ico { flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); }
.mega-item .m-name { display: block; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: var(--ink); }
.mega-item .m-desc { display: block; font-size: 12px; color: var(--ink-mute); margin-top: 3px; line-height: 1.45; }
.mega-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 4px; margin-top: 4px; border-top: 1px solid var(--line); }
.mega-foot .ttl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); }
.mega-foot a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 1080px) {
  .nav-dd { width: 100%; }
  .nav-dd-trigger { width: 100%; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-mega { position: static; opacity: 1; visibility: visible; transform: none; padding-top: 0; }
  .nav-dd:not(.open) .nav-mega { display: none; }
  .nav-mega-inner { width: auto; grid-template-columns: 1fr; border: none; background: transparent; box-shadow: none; padding: 6px 0; }
  .mega-item { padding: 12px 4px; }
}

/* ---------- USE-CASE PRODUCT MOCKS ---------- */
/* agent pipeline strip */
.pipe-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(120px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 4px; }
@media (max-width: 720px){ .pipe-strip { grid-auto-flow: row; grid-auto-columns: auto; } }
.pstage { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; position: relative; }
.pstage .pc { width: 16px; height: 16px; border-radius: 4px; background: var(--accent); color: var(--accent-contrast); display: grid; place-items: center; font-size: 9px; font-weight: 700; margin-bottom: 9px; }
.pstage .pn { font-family: var(--display); font-weight: 600; font-size: 13px; }
.pstage .pd { font-size: 10.5px; color: var(--ink-mute); margin-top: 4px; line-height: 1.4; }
.pstage.live { border-color: var(--accent); }
/* proprietary stages — detail intentionally blurred, badge becomes a lock */
.pstage.locked { overflow: hidden; }
.pstage.locked .pn, .pstage.locked .pd { filter: blur(5px); opacity: 0.5; user-select: none; -webkit-user-select: none; pointer-events: none; }
.pstage.locked .pc { color: transparent; background: color-mix(in srgb, var(--accent) 26%, var(--bg-card)); position: relative; }
.pstage.locked .pc::after { content: ''; position: absolute; inset: 3px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V8a6 6 0 0 1 12 0v2h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2zm2 0h8V8a4 4 0 0 0-8 0z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V8a6 6 0 0 1 12 0v2h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2zm2 0h8V8a4 4 0 0 0-8 0z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* finding card */
.find { background: var(--bg-elev); border: 1px solid var(--line); border-left: 3px solid var(--crimson); border-radius: var(--radius-sm); padding: 16px; }
.find .fh { display: flex; align-items: center; gap: 10px; }
.find .fsev { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; color: var(--crimson); background: color-mix(in srgb, var(--crimson) 14%, transparent); padding: 2px 7px; border-radius: 4px; }
.find .ft { font-weight: 600; font-size: 14px; }
.find .fb { font-size: 12.5px; color: var(--ink-soft); margin-top: 10px; line-height: 1.5; }
.find .frec { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; }
.find .frec .rid { font-family: var(--mono); font-size: 10px; color: var(--accent); }

/* kanban */
.kan { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 620px){ .kan { grid-template-columns: 1fr 1fr; } }
.kcol { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; }
.kcol .kh { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.kcol.todo .kh { color: var(--blue); } .kcol.miss .kh { color: var(--crimson); } .kcol.part .kh { color: var(--amber); } .kcol.ver .kh { color: var(--emerald); }
.kcard { background: var(--bg-card); border: 1px solid var(--line); border-left-width: 2px; border-radius: 6px; padding: 9px; margin-bottom: 7px; }
.kcard:last-child { margin-bottom: 0; }
.kcard.miss { border-left-color: var(--crimson); } .kcard.part { border-left-color: var(--amber); } .kcard.ver { border-left-color: var(--emerald); }
.kcard .kt { font-size: 11.5px; font-weight: 500; color: var(--ink); }
.kcard .km { font-family: var(--mono); font-size: 9px; color: var(--ink-mute); margin-top: 4px; }
/* exploitability findings board (3 verdict columns, names masked) */
.kan.kan3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px){ .kan.kan3 { grid-template-columns: 1fr; } }
.kcol.bad .kh { color: var(--crimson); } .kcol.warn .kh { color: var(--amber); } .kcol.good .kh { color: var(--emerald); }
.kcard.bad { border-left-color: var(--crimson); } .kcard.warn { border-left-color: var(--amber); } .kcard.good { border-left-color: var(--emerald); }
.kcard { overflow: hidden; }
.fmeta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 7px; }
.fmeta .sev { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.05em; padding: 2px 6px; border-radius: 4px; }
.fmeta .sev.crit { color: var(--crimson); background: color-mix(in srgb, var(--crimson) 15%, transparent); }
.fmeta .sev.high { color: var(--amber); background: color-mix(in srgb, var(--amber) 15%, transparent); }
.fmeta .tag { font-family: var(--mono); font-size: 8.5px; color: var(--ink-mute); }
.blurname { filter: blur(5px); opacity: 0.5; user-select: none; -webkit-user-select: none; pointer-events: none; }

/* CBOM / ASI findings board (4 severity columns) */
.kan.kan4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .kan.kan4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .kan.kan4 { grid-template-columns: 1fr; } }
.kcol.crit .kh { color: var(--crimson); }
.kcol.high .kh { color: var(--amber); }
.kcol.med .kh { color: var(--blue); }
.kcol.low .kh { color: var(--emerald); }
.kcard.crit { border-left-color: var(--crimson); }
.kcard.high { border-left-color: var(--amber); }
.kcard.med { border-left-color: var(--blue); }
.kcard.low { border-left-color: var(--emerald); }

.mock-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
@media (max-width: 620px){ .mock-stats { grid-template-columns: 1fr 1fr; } }
.mock-stat {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
}
.mock-stat .mn {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}
.mock-stat .ml {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 5px;
  line-height: 1.35;
}
.mock-preview-note {
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 10px;
  font-style: italic;
}
.code-diff {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.55;
  padding: 12px;
  background: var(--bg-elev);
  border-radius: 6px;
  border: 1px solid var(--line);
  margin-top: 10px;
  overflow-x: auto;
}
.code-diff .rm { color: var(--crimson); }
.code-diff .add { color: var(--emerald); }

/* policy / gate rows */
.pol-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; }
.pol-row:last-child { margin-bottom: 0; }
.pol-enf { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; border: 1px solid currentColor; }
.pol-enf.block { color: var(--crimson); } .pol-enf.warn { color: var(--amber); } .pol-enf.exc { color: var(--blue); }
.pol-row .pname { font-weight: 600; font-size: 14px; }
.pol-row .prule { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); margin-top: 3px; }
.pol-row .ppass { font-family: var(--mono); font-size: 13px; color: var(--emerald); }

/* exploit board (3 columns) */
.exp-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 720px){ .exp-cols { grid-template-columns: 1fr; } }
.exp-col { padding: var(--gap-lg); border: 1px solid var(--line); border-top-width: 3px; border-radius: var(--radius); background: var(--bg-card); }
.exp-col.bad { border-top-color: var(--crimson); } .exp-col.warn { border-top-color: var(--amber); } .exp-col.good { border-top-color: var(--emerald); }
.exp-col .ec-num { font-family: var(--display); font-weight: 600; font-size: 40px; line-height: 1; }
.exp-col.bad .ec-num { color: var(--crimson); } .exp-col.warn .ec-num { color: var(--amber); } .exp-col.good .ec-num { color: var(--emerald); }
.exp-col .ec-lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin-top: 10px; }
.exp-col .ec-d { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }

/* ---------- TEMPLATE-INSPIRED FLOURISHES ---------- */
/* soft alternating gradient wash per section */
.section--line { position: relative; }
.section--line::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 56% 62% at 88% 3%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 58%); }
.section--line:nth-of-type(2n)::after {
  background: radial-gradient(ellipse 56% 62% at 10% 97%, color-mix(in srgb, var(--cyan) 6%, transparent), transparent 58%); }
.section > .wrap, .section > .wrap-wide { position: relative; z-index: 1; }

/* notched corner cards (folder-tab cut, like the reference template) */
.persona, .prob-card, .exp-col {
  clip-path: polygon(0 0, calc(100% - 48px) 0, calc(100% - 48px) 15px, 100% 15px, 100% 100%, 0 100%);
}

/* keep heroes clipping their own glow */
.hero, .page-hero { position: relative; overflow: hidden; }

/* ---------- HUMANIZE MARKETING LABELS (keep mono only in product mocks/code) ---------- */
.btn,
.footer-col h4, .footer-bottom,
.persona .tag, .persona .out,
.pipe-box .t, .team-card .role, .field label,
.prob-card .num, .frow .step-n,
.sdlc-stop .n, .sdlc-stop .sub,
.exp-col .ec-lbl, .mega-foot .ttl, .mega-foot a,
.loop-tag, .pill-callout {
  font-family: var(--body) !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  font-weight: 600;
}
.btn { letter-spacing: 0.015em !important; font-size: 13px; }
.footer-bottom, .sdlc-stop .sub, .field label, .pipe-box .t { font-weight: 500; }

/* ============================================================
   INTEGRATIONS — real brand logos, grouped by where work happens
   ============================================================ */
.int-board { display: grid; gap: var(--gap-lg); }
.int-cat {
  font-family: var(--body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--ink-mute);
  display: flex; align-items: center; gap: 14px; margin-bottom: var(--gap-sm);
}
.int-cat::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(174px, 1fr)); gap: var(--gap-sm); }
.int-tile {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--b) 22%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--b) 9%, var(--bg-card)), var(--bg-card));
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.int-tile:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--b) 60%, transparent);
  box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--b) 85%, transparent);
}
.int-ico {
  width: 24px; height: 24px; flex-shrink: 0;
  background-color: var(--b);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  transition: transform var(--t);
}
.int-tile:hover .int-ico { transform: scale(1.1); }
.int-ico-text {
  width: auto; height: 24px; display: inline-flex; align-items: center;
  background: none; font-family: var(--display); font-weight: 800;
  font-size: 18px; line-height: 1; color: var(--b); letter-spacing: -0.03em;
}
.int-name { font-family: var(--body); font-weight: 600; font-size: 15px; color: var(--ink); }
.int-foot { margin-top: var(--gap-lg); font-size: 14px; color: var(--ink-mute); }
.int-foot b { color: var(--ink-soft); font-weight: 600; }

/* ============================================================
   SDLC DIAGRAM — warmer, with a live "you are here" pulse
   ============================================================ */
/* keep every stop's number on one line so all dots sit on the track */
.sdlc-stop .n { white-space: nowrap; }
.sdlc-stop.intercept .dot::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid var(--accent); animation: sdlcPulse 2.6s var(--ease) infinite;
}
.sdlc-stop .dot { position: relative; }
@keyframes sdlcPulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}
html.no-motion .sdlc-stop.intercept .dot::before { animation: none; }
.sdlc-stop .stage { transition: var(--t); }
.sdlc-stop:not(.intercept) .dot:hover { border-color: var(--accent); }

/* ============================================================
   PREMIUM POLISH — scroll progress + gentle headline shimmer
   ============================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%; z-index: 2147483645;
  background: var(--brand-grad); box-shadow: 0 0 12px -2px var(--accent-glow);
  pointer-events: none;
}
html.no-motion .scroll-progress { display: none; }

.hero h1 .grad {
  background-size: 220% auto;
  animation: gradShimmer 9s ease-in-out infinite;
}
@keyframes gradShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
html.no-motion .hero h1 .grad { animation: none; }

/* ============================================================
   ARCHITECTURE FLOW — high-level "design → coding → gate"
   ============================================================ */
.arch { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; }
@media (max-width: 920px) { .arch { grid-template-columns: 1fr; gap: var(--gap); } }
.arch-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--gap-lg); transition: var(--t); display: flex; flex-direction: column;
}
.arch-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.arch-card.gate {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--bg-card)), var(--bg-card));
}
.arch-step { font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.arch-h { font-family: var(--display); font-size: 20px; margin-top: 12px; letter-spacing: -0.01em; }
.arch-p { margin-top: 10px; font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.arch-meta { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.arch-meta span { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); background: var(--bg-elev); border: 1px solid var(--line); border-radius: 100px; padding: 5px 11px; }
.arch-link { display: grid; place-items: center; color: var(--ink-mute); padding: 0 10px; }
@media (max-width: 920px) { .arch-link { transform: rotate(90deg); padding: 2px 0; } }
.arch-modes { margin-top: 18px; display: grid; gap: 8px; }
.arch-mode { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; padding: 9px 13px; border-radius: 10px; background: var(--bg-elev); border: 1px solid var(--line); transition: var(--t); }
.arch-mode:hover { border-color: var(--line-strong); transform: translateX(3px); }
.arch-mode i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.arch-mode.block i { background: var(--crimson); box-shadow: 0 0 9px var(--crimson); }
.arch-mode.inspect i { background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }
.arch-mode.approve i { background: var(--emerald); box-shadow: 0 0 9px var(--emerald); }
.arch-mode.off i { background: var(--ink-mute); }
.arch-mode.off { color: var(--ink-mute); }

/* ============================================================
   SYSTEM OF RECORD / ACTION + PLATFORM HIGHLIGHTS
   ============================================================ */
.sor-soa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
@media (max-width: 900px) { .sor-soa-grid { grid-template-columns: 1fr; } }

.pillar {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--gap-lg);
}
.pillar.record { border-top: 2px solid var(--cyan); }
.pillar.action { border-top: 2px solid var(--emerald); }

.pillar-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.pillar.record .pillar-tag { color: var(--cyan); }
.pillar.action .pillar-tag { color: var(--emerald); }

.pillar h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.pillar .pillar-lead {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 16px;
}
.pillar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pillar-list li {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}
.pillar-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.pillar.record .pillar-list li::before { background: var(--cyan); opacity: 0.75; }
.pillar.action .pillar-list li::before { background: var(--emerald); opacity: 0.75; }
.pillar-list strong { color: var(--ink-soft); font-weight: 500; }

.sor-soa-bridge {
  margin-top: var(--gap-lg);
  text-align: center;
  padding: 12px 20px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
@media (max-width: 900px) { .highlight-grid { grid-template-columns: 1fr; } }

.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: var(--gap-lg);
  border-top: 2px solid var(--cyan);
}
.highlight-card .badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid color-mix(in srgb, var(--cyan) 30%, transparent);
  border-radius: 100px;
  background: color-mix(in srgb, var(--cyan) 6%, transparent);
}
.highlight-card h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.highlight-card .highlight-lead {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 16px;
}
.highlight-points { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.highlight-point {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.5;
  padding-left: 12px;
  border-left: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.highlight-pull {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.highlight-pull strong { color: var(--accent); font-weight: 600; }
.highlight-card .btn-text { margin-top: 14px; display: inline-block; }

/* Feature flags — hidden until enabled in site-config.js */
.feature-gated[hidden] { display: none !important; }
