/* =========================================================
   TRACESTONE — Light Theme Design System
   White bg · dark text · #60a5fa blue accent
   TraceStone design system
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------- Design Tokens ---------- */
:root {
  /* ─── Backgrounds ─── */
  --bg:          #ffffff;
  --bg-alt:      #f5f3f1;   /* warm off-white (alt sections) */
  --bg-gray:     #f3f4f6;   /* cool light gray (cards, chips) */
  --bg-dark:     #070707;   /* deep dark section */
  --bg-dark2:    #1d1b17;   /* footer inner card */
  --bg-footer:   #0d0d0d;   /* footer */

  /* ─── Text ─── */
  --text:        #0d0c22;          /* primary headings */
  --text-body:   #344054;          /* body paragraphs */
  --text-muted:  #667085;          /* secondary / muted */
  --text-dim:    rgba(0,0,0,.50);  /* dimmed (black/50) */
  --text-dim2:   rgba(0,0,0,.70);  /* black/70 */

  /* ─── Brand ─── */
  --blue:        #60a5fa;   /* primary accent — Tailwind blue-400 (Vespera) */
  --blue-dark:   #3b82f6;   /* hover  — Tailwind blue-500 */
  --blue-darker: #2563eb;   /* active — Tailwind blue-600 */
  --cyan:        #008ABF;   /* logo X part */
  --green:       #22c55e;   /* status / live dot */
  --red:         #dc2626;

  /* ─── Borders ─── */
  --border:       #e1e1e1;
  --border-sm:    rgba(0,0,0,.10);  /* border-black/10 */
  --border-md:    rgba(0,0,0,.25);  /* border-black/25 */
  --border-blue:  #e2e8f0;

  /* ─── Shadows ─── */
  --shadow-sm:  0 2px 6px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.10);

  /* ─── Layout ─── */
  --maxw:      1320px;
  --maxw-wide: 1368px;
  --font-sans: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system,
               'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a   { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: var(--font-sans); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
nav.site-nav {
  position: fixed; top: 0; z-index: 50;
  width: 100%;
  transition: background-color .3s ease-out, border-color .3s ease-out,
              backdrop-filter .3s ease-out;
  border-bottom: 1px solid transparent;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
nav.site-nav .container {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 5px; padding-bottom: 5px;
  height: 64px; gap: 24px;
}

/* Logo */
.brand {
  display: flex; align-items: center;
  flex-shrink: 0; height: 48px;
  overflow: hidden;
}
.brand-logo {
  height: 22px; width: auto;
  display: block;
  /* max-width caps the wordmark from stretching too wide on small viewports */
  max-width: 160px;
}
@media (min-width: 768px) {
  .brand-logo { height: 28px; max-width: 200px; }
}

/* Nav links */
.nav-links {
  display: none;
}

/* Language switch pill */
.lang-switch {
  font-size: 12px !important; font-weight: 600 !important;
  padding: 5px 10px !important; border-radius: 8px !important;
  border: 1px solid var(--border) !important;
  color: var(--text-muted) !important;
  transition: color .15s, border-color .15s !important;
}
.lang-switch:hover { color: var(--blue) !important; border-color: var(--blue) !important; }
@media (min-width: 768px) {
  .nav-links {
    display: flex; align-items: center; gap: 8px;
    flex: 1; justify-content: center;
  }
}
.nav-links a {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 16px; padding: 8px 12px;
  font-size: 14px; font-weight: 400; line-height: 1.25;
  color: var(--text); transition: color .15s;
  white-space: nowrap;
}
.nav-links a:hover { color: #475569; }

/* Nav actions (right side) */
.nav-actions {
  display: none; align-items: center; gap: 8px; flex-shrink: 0;
}
@media (min-width: 768px) {
  .nav-actions { display: flex; }
}

/* Mobile nav */
.mobile-nav-toggle {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; width: 42px; height: 42px; flex: 0 0 auto;
  border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255,255,255,.85); color: var(--text);
  cursor: pointer;
}
.mobile-nav-toggle span {
  display: block; width: 17px; height: 2px;
  border-radius: 999px; background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}
.mobile-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-panel[hidden] { display: none !important; }
.mobile-nav-panel {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 49;
  max-height: calc(100vh - 64px); overflow: auto;
  padding: 20px; display: grid; gap: 16px;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 50px rgba(15,23,42,.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.mobile-nav-section {
  display: grid; gap: 6px;
  padding: 14px; border: 1px solid var(--border);
  border-radius: 18px; background: var(--bg);
}
.mobile-nav-section p {
  margin: 0 0 4px; font-size: 12px; line-height: 1.2;
  color: var(--text-muted); font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em;
}
.mobile-nav-section a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 8px; border-radius: 12px;
  color: var(--text); font-size: 15px; font-weight: 500;
}
.mobile-nav-section a:hover { background: var(--bg-gray); color: var(--blue); }
body.ts-mobile-nav-open { overflow: hidden; }

@media (min-width: 768px) {
  .mobile-nav-toggle, .mobile-nav-panel { display: none !important; }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 18px 20px; border-radius: 999px;
  font-size: 16px; font-weight: 400; line-height: 1;
  border: 1px solid var(--border-blue);
  background: var(--bg); color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease-out, background .2s ease-out, color .2s ease-out;
  cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
.btn:hover .btn-icon { filter: none; }
.btn-icon {
  width: 16px; height: 16px; flex-shrink: 0;
  filter: invert(1);   /* black icon → white on dark bg */
  transition: filter .2s;
}

/* Primary filled blue button */
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: none;
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

/* Small/nav button */
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* Lightning icon inside button */
.btn .spark::before { content: "⚡"; font-size: 14px; filter: none; }

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  background: var(--bg);
  padding-top: 140px;
  padding-bottom: 80px;
}
@media (min-width: 768px) {
  .hero { padding-top: 164px; }
}

/* Hero dots-pattern background */
.hero-dots {
  position: absolute;
  top: 162px; left: 0; right: 0;
  height: 369px;
  pointer-events: none; user-select: none; overflow: hidden;
  background-image: url('/hero/dots-pattern.svg');
  background-repeat: repeat-x;
  background-size: 270px 459px;
  background-position: center -45.5px;
  opacity: .5;
}

/* Hero ellipses wrapper */
.hero-ellipses {
  position: absolute;
  left: 50%; top: 134px;
  width: 807px; height: 422px;
  transform: translateX(-50%);
  pointer-events: none; user-select: none; overflow: visible;
}
.hero-ellipses img {
  position: absolute; max-width: none;
}
.hero-ell-outer {
  left: -33px; top: 0;
  width: 840px; height: 421px;
}
/* .hero-ell-ticks — removed (download artifact was pure black; restore when proper webp available) */
.hero-ell-inner {
  left: 11px; top: 43px;
  width: 755px; height: 378px;
}
.hero-polygon-wrap {
  position: absolute;
  left: 146px; top: 183px;
  width: 440px; height: 363px;
  display: flex; align-items: center; justify-content: center;
}
.hero-polygon {
  width: 85px; height: 489px;
  transform: rotate(52.72deg);
  max-width: none;
}

/* Hero content */
.hero .container {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center;
}

/* Hero top badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--border-sm);
  background: var(--bg);
  padding: 8px 12px;
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .hero-badge { gap: 10px; padding: 10px 16px; }
}
.hero-badge-dot {
  position: relative; width: 9px; height: 9px; flex-shrink: 0;
}
@media (min-width: 768px) {
  .hero-badge-dot { width: 11px; height: 11px; }
}
.hero-badge-dot::before,
.hero-badge-dot::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%; background: var(--green);
}
.hero-badge-dot::after { opacity: .6; filter: blur(2px); }
.hero-badge-text {
  font-size: 11px; font-weight: 400;
  text-transform: uppercase; letter-spacing: .02em;
  color: var(--text); text-align: center;
}
@media (min-width: 768px) {
  .hero-badge-text { font-size: 14px; }
}

/* Hero headline */
.hero-headline {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin-bottom: 40px;
}
.hero-hl-row {
  display: flex; align-items: center;
}
.hero-hl-text {
  font-size: 48px; font-weight: 800;
  line-height: 52px; letter-spacing: -.04em;
  color: var(--text);
}
@media (min-width: 768px) {
  .hero-hl-text { font-size: 72px; line-height: 72px; }
}
.hero-hl-text.blue { color: var(--blue); }

/* Animated period dot beside each headline row */
.hero-hl-dot {
  position: relative; display: inline-block; flex-shrink: 0;
  width: 28px; height: 52px; margin-left: 4px;
}
@media (min-width: 768px) {
  .hero-hl-dot { width: 40px; height: 72px; }
}
.hero-hl-dot-inner {
  position: absolute;
  left: 6px; top: 30px;
  width: 15px; height: 15px;
  border-radius: 50%; background: var(--text);
}
.hero-hl-dot-inner.blue { background: var(--blue); }
@media (min-width: 768px) {
  .hero-hl-dot-inner { left: 9px; top: 41px; width: 22px; height: 22px; }
}

/* Hero sub-text */
.hero-sub {
  font-size: 18px; font-weight: 400; line-height: 28px;
  color: var(--text-body);
  text-align: center;
  max-width: 1092px;
  margin-bottom: 40px;
}

/* Hero CTA row */
.hero-cta {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; justify-content: center;
}

/* Hero scroll indicator */
.hero-scroll {
  margin-top: 60px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 12px;
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--border), transparent);
}

/* =========================================================
   LOGO MARQUEE (inside hero)
   ========================================================= */
@keyframes demoMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-section {
  margin-top: 68px;
  padding-bottom: 80px;
}

.marquee-label {
  text-align: center;
  font-size: 12px; font-weight: 700; line-height: 20px;
  color: #4a4a4a;
  margin-bottom: 40px;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .marquee-label { font-size: 18px; line-height: 28px; }
}

.marquee-wrap {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: demoMarquee 50s linear infinite;
}
.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

.marquee-list {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 40px;
  padding: 0 20px;
  list-style: none;
}
@media (min-width: 640px)  { .marquee-list { gap: 56px; padding: 0 28px; } }
@media (min-width: 768px)  { .marquee-list { gap: 64px; padding: 0 32px; } }

.marquee-item {
  flex-shrink: 0;
  height: 36px;
  display: flex; align-items: center; justify-content: center;
}
@media (min-width: 640px) { .marquee-item { height: 48px; } }
@media (min-width: 768px) { .marquee-item { height: 56px; } }

.marquee-item img {
  max-width: none;
  object-fit: contain;
  width: auto;
  height: 100%;
  display: block;
}

/* =========================================================
   SECTION BASE
   ========================================================= */
section { padding: 40px 0; }
@media (min-width: 768px) { section { padding: 48px 0; } }

section.sec-white { background: var(--bg); }
section.sec-alt   { background: var(--bg-alt); }
section.sec-gray  { background: var(--bg-gray); }
section.sec-dark  { background: var(--bg-dark); }

/* Section numbered label (01, 02…) */
.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--border-sm);
  background: var(--bg);
  padding: 10px 16px;
  font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text);
  margin-bottom: 24px;
}
.sec-eyebrow svg { width: 20px; height: 20px; color: #475569; }

/* Section heading underline accent */
.sec-rule {
  display: block; width: 80px; height: 1px;
  background: #0f172a; /* slate-900 */
  margin: 16px 0;
}

/* Primary section headings */
.sec-h2 {
  font-size: 40px; font-weight: 500;
  line-height: 1.2; letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 8px;
}
.sec-h2 .num { color: var(--text); }

/* Body lead text */
.sec-lead {
  font-size: 18px; font-weight: 400;
  line-height: 28px;
  color: var(--text-dim); /* black/50 */
  max-width: 560px;
}

/* =========================================================
   SHARED SECTION LABEL / HEADING / SUB  (new style system)
   — replaces sec-eyebrow + sec-rule pattern
   ========================================================= */
.section-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.section-heading {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800; letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 14px;
}
.section-heading .blue { color: var(--blue); }

.section-sub {
  font-size: 16px; color: var(--text-muted);
  line-height: 1.75; max-width: 540px;
  margin-bottom: 48px;
}

/* =========================================================
   ONE STOP SOLUTION — SPLIT LAYOUT (left text + right image)
   ========================================================= */
.split-section {
  display: flex; flex-direction: column;
  align-items: stretch; gap: 40px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 40px;
}
@media (min-width: 1024px) {
  .split-section {
    flex-direction: row;
    align-items: center;
  }
}

.split-left {
  display: flex; flex-direction: column; gap: 30px;
  padding-top: 24px;
}
@media (min-width: 1024px) {
  .split-left { flex: 1; min-width: 420px; }
}

.split-right {
  position: relative;
  width: 100%; max-width: 660px;
  aspect-ratio: 660/510;
  border-radius: 20px; overflow: hidden;
  background: var(--bg-gray);
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .split-right {
    width: 660px; min-width: 460px;
    max-width: none; margin: 0;
  }
}
.split-right img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Product tab buttons overlaid on the image */
.product-tabs-wrap {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; gap: 0;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
}
.product-tab {
  flex: 1; padding: 14px 8px;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  border: none; background: transparent; cursor: pointer;
  border-right: 1px solid var(--border);
  transition: color .15s, background .15s;
  text-align: center;
}
.product-tab:last-child { border-right: none; }
.product-tab.active,
.product-tab:hover {
  color: var(--blue); background: rgba(96,165,250,.05);
}

/* =========================================================
   YOUR AI RISK HUB — Section + 4 RISK CARDS
   ========================================================= */
.risk-hub-section {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 40px 0 60px;
}
@media (min-width: 768px) { .risk-hub-section { padding: 60px 0 80px; } }

/* dots background for this section */
.risk-hub-dots {
  pointer-events: none; user-select: none;
  position: absolute; inset-x: 0;
  top: 170px; height: 460px;
  background-image: url('/hero/dots-pattern.svg');
  background-repeat: repeat-x;
  background-size: 270px 459px;
  background-position: center 0;
  opacity: .5;
}

.risk-hub-inner {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  padding: 60px 20px 0;
}
@media (min-width: 768px) { .risk-hub-inner { padding: 60px 40px 0; } }

/* Header: badge + heading + subtext */
.risk-hub-header {
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  margin-bottom: 40px;
}

/* Badge: "What we do for" with icon cluster */
.risk-hub-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 8px 16px;
}
.risk-hub-badge-icons {
  position: relative;
  width: 64px; height: 36px; flex-shrink: 0;
}
.risk-hub-badge-icons span {
  pointer-events: none;
  position: absolute;
}
.risk-hub-badge-icons img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: fill; display: block;
  max-width: none;
}
.risk-hub-badge-text {
  font-size: 14px; font-weight: 400;
  text-transform: uppercase; line-height: 1;
  color: #000;
}

.risk-hub-h2 {
  text-align: center;
  font-size: 40px; font-weight: 600;
  line-height: 1; letter-spacing: -.68px;
  color: #000;
}
@media (min-width: 768px) { .risk-hub-h2 { font-size: 60px; } }

.risk-hub-lead {
  max-width: 848px;
  text-align: center;
  font-size: 16px; font-weight: 400; line-height: 24px;
  color: #000;
}

/* Cards grid */
.risk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .risk-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .risk-grid { grid-template-columns: repeat(4, 1fr); }
}

.risk-card {
  height: 100%;
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: rgba(255,255,255,.65);
  padding: 48px 40px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.risk-card-icon-box {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 12px;
  border: 2px solid #fff;
  background: rgba(255,255,255,.30);
  box-shadow: 0 0 10px 0 rgba(90,131,255,0.25);
}
.risk-card-icon-box img {
  width: 28px; height: 28px; flex-shrink: 0;
  object-fit: contain;
}
.risk-card p {
  font-size: 20px; font-weight: 700;
  line-height: 28px; color: #344054;
}

/* =========================================================
   AI ENGINE DIAGRAM SECTION
   ========================================================= */
.ai-engine-section {
  background: var(--bg);
  padding: 80px 0;
}
.ai-engine-heading {
  text-align: center;
  margin-bottom: 60px;
}
.ai-engine-h2 {
  font-size: 36px; font-weight: 700;
  line-height: 1.2; letter-spacing: -.03em;
  color: var(--text);
}
@media (min-width: 768px) {
  .ai-engine-h2 { font-size: 48px; }
}
.ai-engine-h2-blue {
  color: var(--blue);
}
.ai-engine-diagram-wrap {
  width: 100%; overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-md);
}
.ai-engine-diagram {
  display: block;
  width: 100%; height: auto;
  min-width: 600px;
  max-width: 1216px;
  margin: 0 auto;
}

/* =========================================================
   STANDARDS — ILLUSTRATION + TEXT
   ========================================================= */
.standards-wrap {
  display: flex; flex-direction: column; gap: 40px;
  align-items: center;
}
@media (min-width: 1024px) {
  .standards-wrap { flex-direction: row; align-items: center; gap: 60px; }
  .standards-wrap.reverse { flex-direction: row-reverse; }
}
.standards-img {
  width: 100%; max-width: 580px;
  border-radius: 20px; overflow: hidden;
  background: var(--bg-gray); flex-shrink: 0;
}
.standards-img img { width: 100%; height: auto; display: block; }
.standards-text { flex: 1; }

/* Standards badges row */
.standards-badges {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px;
}
.std-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 14px;
  font-size: 13px; font-weight: 500; color: var(--text-body);
  background: var(--bg);
}

/* =========================================================
   CERTIFICATION / PRODUCT OVERVIEW CARDS
   ========================================================= */
.product-cards {
  display: grid; grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1024px) {
  .product-cards { grid-template-columns: repeat(2, 1fr); }
}
.product-card {
  border-radius: 20px; overflow: hidden;
  position: relative; aspect-ratio: 4/3;
}
.product-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s ease;
}
.product-card:hover img { transform: scale(1.02); }

/* =========================================================
   WHY NOW — 3 CARDS
   ========================================================= */
.why-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}
.why-card {
  border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 24px;
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.why-card:hover { border-color: rgba(96,165,250,.3); box-shadow: var(--shadow-md); }
.why-icon { font-size: 28px; margin-bottom: 16px; }
.why-card h3 { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.why-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* =========================================================
   INSIGHTS / WORKSHOP — ARTICLE CARDS
   ========================================================= */
.insights-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .insights-grid { grid-template-columns: repeat(4, 1fr); }
}
.insight-card {
  border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
  cursor: pointer;
}
.insight-card:hover { border-color: rgba(96,165,250,.3); box-shadow: var(--shadow-md); }
.insight-thumb {
  width: 100%; aspect-ratio: 16/9;
  overflow: hidden; background: var(--bg-gray);
}
.insight-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s ease;
}
.insight-card:hover .insight-thumb img { transform: scale(1.04); }
.insight-body { padding: 18px 16px; }
.insight-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.insight-tag {
  font-size: 10px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue);
  background: rgba(96,165,250,.08);
  border: 1px solid rgba(96,165,250,.2);
  border-radius: 4px; padding: 2px 7px;
}
.insight-date { font-size: 11px; color: var(--text-muted); }
.insight-card h4 {
  font-size: 14px; font-weight: 500; color: var(--text);
  line-height: 1.5;
}

/* =========================================================
   FOOTER CTA DARK SECTION
   ========================================================= */
footer {
  background: var(--bg-footer);
  padding-top: 0;
  position: relative;
}
/* White rounded tongue that visually separates footer from last section */
.footer-tongue {
  height: 60px; width: 100%;
  border-radius: 0 0 60px 60px;
  background: var(--bg);
}

.footer-inner {
  max-width: var(--maxw-wide);
  margin: 0 auto; padding: 0 40px;
}

/* Footer CTA card */
.footer-cta-card {
  display: flex; align-items: center; justify-content: center;
  gap: 60px; overflow: hidden;
  border-radius: 40px;
  background: var(--bg-dark2);
  padding: 60px 40px;
  margin-top: 60px;
  position: relative;
}
.footer-cta-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.footer-cta-card h2 {
  font-size: 40px; font-weight: 600; line-height: 1.1;
  color: #fff; letter-spacing: -.02em;
}
@media (min-width: 768px) {
  .footer-cta-card h2 { font-size: 42px; }
}
@media (min-width: 1024px) {
  .footer-cta-card h2 { font-size: 60px; line-height: 1; }
}
.footer-cta-card p { font-size: 18px; line-height: 28px; color: rgba(255,255,255,.9); }
.footer-cta-img {
  width: 240px; flex-shrink: 0;
  display: none;
  align-items: center; justify-content: center;
}
@media (min-width: 768px) { .footer-cta-img { display: flex; } }
@media (min-width: 1024px) { .footer-cta-img { width: 300px; } }
.footer-cta-img img { width: 100%; height: auto; opacity: .85; }

/* Footer grid links */
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px; padding: 60px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 40px;
}
@media (min-width: 768px) {
  .footer-links { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-brand-logo { height: 24px; width: auto; opacity: .85; }
.footer-logo-text {
  font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.04em;
}
.footer-tagline {
  font-size: 14px; color: rgba(255,255,255,.5);
  line-height: 1.6;
}
.footer-contact { font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.9; }

footer h4 {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.5); margin-bottom: 14px;
}
footer a {
  display: block; font-size: 14px; color: rgba(255,255,255,.5);
  margin: 8px 0; transition: color .15s;
}
footer a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
  color: rgba(255,255,255,.35); font-size: 13px;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { display: inline; margin: 0; font-size: 13px; }

/* =========================================================
   BUTTON VARIANTS
   ========================================================= */
/* Outline button (secondary hero CTA) */
.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* Ghost text-link button (tertiary hero CTA) */
.btn-ghost-link {
  display: inline-flex; align-items: center;
  font-size: 15px; font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 4px;
  transition: color .15s;
}
.btn-ghost-link:hover { color: var(--blue); }

/* =========================================================
   PROOF PILLS (hero trust tags)
   ========================================================= */
.proof-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin-top: 24px; margin-bottom: 0;
}
.proof-pill {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 14px;
  font-size: 12px; font-weight: 500;
  color: var(--text-muted); background: var(--bg);
}
@media (min-width: 768px) {
  .proof-pill { font-size: 13px; padding: 7px 16px; }
}

/* =========================================================
   STATS STRIP
   ========================================================= */
.stats-strip {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.stats-strip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  padding: 40px 0;
}
@media (min-width: 768px) {
  .stats-strip-grid { grid-template-columns: repeat(4, 1fr); padding: 56px 0; }
}
.stats-item {
  text-align: center; padding: 16px 24px;
  border-right: 1px solid var(--border);
}
.stats-item:nth-child(2) { border-right: none; }
@media (min-width: 768px) {
  .stats-item:nth-child(2) { border-right: 1px solid var(--border); }
  .stats-item:last-child   { border-right: none; }
}
.stats-num {
  font-size: 40px; font-weight: 900;
  color: var(--blue); line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: 8px;
}
@media (min-width: 768px) { .stats-num { font-size: 52px; } }
.stats-label {
  font-size: 12px; color: var(--text-muted);
  font-weight: 500; line-height: 1.4;
}
@media (min-width: 768px) { .stats-label { font-size: 14px; } }

/* =========================================================
   SECTION HEADER HELPER
   ========================================================= */
.sec-header { margin-bottom: 0; }

/* =========================================================
   PRODUCTS OVERVIEW — 3-column cards
   ========================================================= */
.products-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

.product-overview-card {
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 36px 32px 40px;
  background: var(--bg);
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.product-overview-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: rgba(96,165,250,.3);
}

/* Small section card number: 01 / 02 / 03 */
.card-num {
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Legacy large product number (kept for backward compat) */
.product-num,
.product-number {
  font-size: 28px; font-weight: 900;
  color: var(--blue);
  margin-bottom: 16px; line-height: 1;
}
.product-name {
  font-size: 22px; font-weight: 800;
  color: var(--text); margin-bottom: 14px;
  line-height: 1.2;
}
.product-tagline {
  font-size: 15px; color: var(--text-body);
  line-height: 1.65; margin-bottom: 16px;
  flex: 1;
}
.product-keywords {
  font-size: 12px; color: var(--text-muted);
  line-height: 1.6; margin-bottom: 28px;
}
.product-learn-more {
  display: inline-flex; align-items: center;
  color: var(--blue); font-weight: 700; font-size: 14px;
  text-decoration: none; gap: 4px;
  transition: gap .15s;
}
.product-learn-more:hover { gap: 8px; }

/* =========================================================
   WHO WE SERVE — 2-column cards
   ========================================================= */
.serve-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .serve-grid { grid-template-columns: repeat(2, 1fr); }
}

.serve-card {
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 40px 36px;
  background: #f8fafc;
}
.serve-card h3 {
  font-size: 22px; font-weight: 800;
  color: var(--text); margin-bottom: 10px; line-height: 1.2;
}
.serve-subtitle {
  font-size: 13px; font-weight: 600;
  color: var(--blue); margin-bottom: 24px;
  line-height: 1.5;
}
.serve-card ul {
  padding-left: 18px; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.serve-card ul li {
  font-size: 14px; color: var(--text-muted);
  line-height: 1.6;
}

/* =========================================================
   NAV DROPDOWN — Products menu
   ========================================================= */
.nav-dropdown-wrap {
  position: relative;
  display: inline-flex; align-items: center;
}

/* Trigger looks identical to other nav links, just has a chevron */
.nav-dd-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 16px; padding: 8px 12px;
  font-size: 14px; font-weight: 400; line-height: 1.25;
  color: var(--text); white-space: nowrap;
  cursor: pointer; text-decoration: none;
  transition: color .15s;
}
.nav-dd-trigger:hover { color: #475569; }
.nav-dd-chevron {
  width: 11px; height: 11px; opacity: .45; flex-shrink: 0;
  transition: transform .2s;
}
.nav-dropdown-wrap:hover .nav-dd-chevron { transform: rotate(180deg); }

/* Invisible hover bridge — fills the gap between trigger and panel
   so the mouse never leaves the hover zone while transitioning */
.nav-dropdown-wrap::after {
  content: '';
  position: absolute;
  top: 100%; left: -16px; right: -16px;
  height: 14px; /* matches the visual gap before the panel */
  pointer-events: auto;
}

/* Dropdown panel */
.nav-dropdown {
  position: absolute; top: calc(100% + 10px);
  left: 50%; transform: translateX(-50%) translateY(-6px);
  /* No explicit width — absolutely-positioned flex-column shrinks to
     the max-content of its widest child, so each panel auto-fits its
     own content independently. */
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  padding: 6px;           /* ~6 px gap between items and panel edge */
  opacity: 0; pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 200;
}
.nav-dropdown-wrap:hover .nav-dropdown,
.nav-dropdown-wrap:focus-within .nav-dropdown {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dd-item {
  display: flex; flex-direction: column; gap: 2px;
  /* flex-column stretch makes every item exactly as wide as the panel
     content box — hover areas are all identical in size */
  padding: 10px 12px; border-radius: 10px;
  text-decoration: none;
  align-items: center;    /* centre content horizontally */
  text-align: center;
  transition: background .1s;
}
.nav-dd-item:hover { background: var(--bg-gray); }
.nav-dd-title { font-size: 14px; font-weight: 600; color: var(--text); }
.nav-dd-desc  { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* =========================================================
   PRODUCT PAGES — Shared
   ========================================================= */

/* Simpler hero for product pages (no animated ellipses) */
.product-hero {
  /* background: linear-gradient(160deg, #f0f4ff 0%, #ffffff 55%); */
  background: var(--bg);
  padding: 140px 0 80px;
}
@media (min-width: 768px) { .product-hero { padding: 164px 0 96px; } }

.product-hero .container {
  text-align: center; max-width: 860px;
  display: flex; flex-direction: column; align-items: center;
}

/* Breadcrumb back link */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 24px; transition: color .15s;
  align-self: flex-start;
}
.back-link:hover { color: var(--blue); }

/* Product badge (coloured pill, same style as hero-badge but blue) */
.product-badge {
  display: inline-flex; align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(96,165,250,.25);
  background: rgba(96,165,250,.08);
  padding: 8px 18px; margin-bottom: 28px;
  font-size: 12px; font-weight: 700;
  color: var(--blue); letter-spacing: .08em; text-transform: uppercase;
}

.product-hero h1 {
  font-size: 40px; font-weight: 800;
  line-height: 1.1; letter-spacing: -.04em;
  color: var(--text); margin-bottom: 24px;
}
@media (min-width: 768px) { .product-hero h1 { font-size: 56px; } }

.product-hero .hero-lead {
  font-size: 18px; color: var(--text-body);
  line-height: 1.7; margin-bottom: 36px; max-width: 640px;
}
.product-hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}

/* =========================================================
   PRODUCT PAGES — Vuln Discovery & Agent Security
   ========================================================= */

/* Findings → Evidence flow card */
.flow-card {
  border-radius: 20px; border: 1px solid var(--border);
  padding: 40px; background: #f8fafc;
  display: flex; flex-direction: column; gap: 16px;
}
.flow-card h3 { font-size: 22px; font-weight: 800; color: var(--text); }
.flow-card p  { font-size: 15px; color: var(--text-body); line-height: 1.7; }

/* Coverage 2-col */
.coverage-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 768px) { .coverage-grid { grid-template-columns: repeat(2, 1fr); } }

.coverage-col {
  border-radius: 16px; border: 1px solid var(--border);
  padding: 28px 24px; background: var(--bg);
}
.coverage-col h3 {
  font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 16px;
}
.coverage-col ul { padding-left: 18px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.coverage-col ul li { font-size: 14px; color: var(--text-body); line-height: 1.5; }
.coverage-col ul li small { color: var(--text-muted); font-size: 12px; display: block; }

/* =========================================================
   PRODUCT PAGES — evidence-AIDR specific
   ========================================================= */

/* P1–P8 grid */
.p18-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
@media (min-width: 640px)  { .p18-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .p18-grid { grid-template-columns: repeat(4, 1fr); } }

.p18-item {
  border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 18px; background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.p18-item:hover { border-color: rgba(96,165,250,.3); box-shadow: var(--shadow-sm); }
.p18-code {
  font-size: 11px; font-weight: 800; letter-spacing: .06em;
  color: var(--blue); background: rgba(96,165,250,.1);
  border-radius: 6px; padding: 3px 8px; display: inline-block;
  margin-bottom: 10px;
}
.p18-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.p18-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* Privacy architecture 3-col */
.privacy-arch-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 1024px) { .privacy-arch-grid { grid-template-columns: repeat(3, 1fr); } }

.privacy-col {
  border-radius: 20px; border: 1px solid var(--border);
  padding: 32px 28px; background: var(--bg);
  display: flex; flex-direction: column;
}
.privacy-col-title { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.privacy-col-sub {
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.privacy-col ul { padding: 0; list-style: none; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.privacy-col ul li { font-size: 13px; color: var(--text-body); line-height: 1.6; }
.privacy-col ul li strong { display: block; color: var(--text); font-weight: 700; margin-bottom: 2px; }
.status-tag {
  display: inline-block; font-size: 10px; font-weight: 600;
  border-radius: 4px; padding: 1px 6px; margin-top: 3px;
}
.status-live   { color: #16a34a; background: #dcfce7; }
.status-soon   { color: #92400e; background: #fef3c7; }
.status-future { color: var(--text-muted); background: var(--bg-gray); }

/* Install / terminal card */
.install-card {
  background: #0d0c22; border-radius: 16px;
  padding: 32px 36px; overflow-x: auto;
}
.install-card pre {
  margin: 0; font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 13px; line-height: 2; color: #e2e8f0; white-space: pre;
}
.ic-comment { color: #4a5568; }
.ic-ok      { color: #22c55e; }
.ic-pass    { color: #fbbf24; font-weight: 700; }

/* Compliance grid */
.compliance-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 640px)  { .compliance-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .compliance-grid { grid-template-columns: repeat(3, 1fr); } }

.compliance-item {
  border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; background: var(--bg);
}
.compliance-name { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.compliance-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .split-section { padding: 0 20px; }
  .hero { padding-top: 100px; }
  .hero-hl-text { font-size: 38px; line-height: 42px; }
  .hero-sub { font-size: 16px; }
  .sec-h2 { font-size: 30px; }
  .footer-cta-card { flex-direction: column; gap: 32px; border-radius: 24px; }
  .footer-inner { padding: 0 20px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   TOAST — "Coming soon" notification
   ========================================================= */
.ts-toast {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, calc(-50% + 12px));
  background: rgba(18, 18, 18, 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 10px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: .02em;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 9999; white-space: nowrap;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.ts-toast.ts-toast--show {
  opacity: 1; transform: translate(-50%, -50%);
}

/* =========================================================
   NAV — ACTIVE STATE
   ========================================================= */
.nav-links a[aria-current="page"] {
  color: var(--blue); font-weight: 600;
}
.nav-dd-trigger[aria-current="page"] {
  color: var(--blue); font-weight: 600;
}
.nav-dd-item[aria-current="page"] .nav-dd-title {
  color: var(--blue);
}

/* =========================================================
   HOMEPAGE — CIPHER CANVAS OVERLAY
   ========================================================= */
.cipher-canvas {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}
.cipher-fade {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 1;
}
/* Cursor ambient glow */
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(
    circle 200px at var(--hero-mx, -400px) var(--hero-my, -400px),
    rgba(96,165,250,.08) 0%, transparent 70%
  );
  pointer-events: none; z-index: 2;
}

/* =========================================================
   PRICING PAGE
   ========================================================= */
.pricing-hero {
  background: linear-gradient(160deg, #f0f4ff 0%, #ffffff 55%);
  padding: 140px 0 64px;
  text-align: center;
}
@media (min-width: 768px) { .pricing-hero { padding: 164px 0 80px; } }
.pricing-hero h1 {
  font-size: 40px; font-weight: 800;
  line-height: 1.1; letter-spacing: -.04em;
  color: var(--text); margin-bottom: 20px;
}
@media (min-width: 768px) { .pricing-hero h1 { font-size: 56px; } }
.pricing-hero .hero-lead {
  font-size: 18px; color: var(--text-body);
  line-height: 1.7; max-width: 600px;
  margin: 0 auto 32px;
}

/* Tier cards */
.tier-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 20px; margin-top: 48px;
}
@media (min-width: 640px)  { .tier-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tier-grid { grid-template-columns: repeat(4, 1fr); } }
.tier-card {
  border-radius: 20px; border: 1px solid var(--border);
  padding: 32px 28px 36px; background: var(--bg);
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.tier-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.tier-card.featured {
  border-color: var(--blue); background: #f5f7ff; position: relative;
}
.tier-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 14px; border-radius: 999px;
  white-space: nowrap;
}
.tier-name {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); margin-bottom: 16px;
}
.tier-card.featured .tier-name { color: var(--blue); }
.tier-price {
  font-size: 40px; font-weight: 900; color: var(--text);
  line-height: 1; letter-spacing: -.04em; margin-bottom: 4px;
}
.tier-price-sub {
  font-size: 13px; color: var(--text-muted); margin-bottom: 24px; min-height: 20px;
}
.tier-divider { width: 100%; height: 1px; background: var(--border); margin-bottom: 24px; }
.tier-features {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.tier-features li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--text-body); line-height: 1.5;
}
.tier-features li::before {
  content: '✓'; flex-shrink: 0;
  font-size: 12px; font-weight: 700; color: var(--blue); margin-top: 1px;
}
.tier-features li.muted { color: var(--text-muted); }
.tier-features li.muted::before { content: '–'; color: var(--text-muted); }
.tier-cta {
  margin-top: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; padding: 14px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); text-decoration: none;
  transition: border-color .2s, background .2s, color .2s;
}
.tier-cta:hover { border-color: var(--blue); background: var(--blue); color: #fff; }
.tier-cta.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.tier-cta.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

/* Comparison table */
.pricing-table-wrap {
  overflow-x: auto; border-radius: 16px;
  border: 1px solid var(--border); margin-top: 48px;
}
.pricing-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px; min-width: 640px;
}
.pricing-table thead tr { background: var(--bg-gray); }
.pricing-table th {
  padding: 14px 20px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-muted); text-align: center;
  border-bottom: 1px solid var(--border);
}
.pricing-table th:first-child { text-align: left; }
.pricing-table th.col-featured { color: var(--blue); background: #eef1ff; }
.pricing-table tbody tr { border-bottom: 1px solid var(--border); transition: background .1s; }
.pricing-table tbody tr:last-child { border-bottom: none; }
.pricing-table tbody tr:hover { background: #fafafa; }
.pricing-table td {
  padding: 13px 20px; color: var(--text-body);
  text-align: center; vertical-align: middle;
}
.pricing-table td:first-child { text-align: left; color: var(--text); font-weight: 500; }
.pricing-table td.col-featured { background: #f5f7ff; }
.pricing-table tr.row-group td {
  background: var(--bg-gray); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); padding: 8px 20px;
}
.check-yes { color: #16a34a; font-weight: 700; font-size: 15px; }
.check-no  { color: var(--text-muted); font-size: 13px; }
.check-add { color: var(--blue); font-weight: 600; font-size: 12px; }

/* Pricing FAQ cards */
.faq-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 20px; margin-top: 48px;
}
@media (min-width: 768px) { .faq-grid { grid-template-columns: repeat(2, 1fr); } }
.faq-card {
  border-radius: 16px; border: 1px solid var(--border);
  padding: 28px 24px; background: var(--bg);
}
.faq-card h3 {
  font-size: 16px; font-weight: 700;
  color: var(--text); margin-bottom: 10px; line-height: 1.3;
}
.faq-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-hero {
  padding: 140px 0 80px; background: var(--bg); text-align: center;
}
@media (min-width: 768px) { .about-hero { padding: 164px 0 96px; } }
.about-hero-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-muted); margin-bottom: 32px;
}
.about-hl {
  font-size: 40px;
  font-weight: 800; line-height: 1.1; letter-spacing: -.04em;
  color: var(--text); margin-bottom: 28px;
}
@media (min-width: 768px) { .about-hl { font-size: 56px; } }
.about-hl .blue { color: var(--blue); }
.about-hero-sub {
  font-size: 18px; color: var(--text-body); line-height: 1.7;
  max-width: 580px; margin: 0 auto 40px;
}

/* Principles */
.principles-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 20px; margin-top: 48px;
}
@media (min-width: 640px) { .principles-grid { grid-template-columns: repeat(3, 1fr); } }
.principle-card {
  border-radius: 20px; border: 1px solid var(--border);
  padding: 32px 28px; background: var(--bg);
  transition: box-shadow .2s, transform .2s;
}
.principle-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.principle-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(96,165,250,.10);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.principle-icon svg { width: 20px; height: 20px; stroke: var(--blue); }
.principle-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.principle-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* Milestones timeline */
.timeline { position: relative; margin-top: 48px; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -34px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--border);
}
.timeline-item.active .timeline-dot { background: var(--blue); border-color: var(--blue); }
.timeline-item.future .timeline-dot { background: var(--bg); border-color: var(--border); border-style: dashed; }
.timeline-period {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-muted); margin-bottom: 6px;
}
.timeline-item.active .timeline-period { color: var(--blue); }
.timeline-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.timeline-body { font-size: 14px; color: var(--text-body); line-height: 1.7; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.timeline-tag {
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: var(--bg-gray); color: var(--text-muted); letter-spacing: .04em;
}
.timeline-item.active .timeline-tag { background: rgba(96,165,250,.10); color: var(--blue); }

/* Research */
.research-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 48px;
}
@media (min-width: 768px) { .research-grid { grid-template-columns: repeat(2, 1fr); } }
.research-card {
  border-radius: 16px; border: 1px solid var(--border);
  padding: 28px 24px; background: var(--bg);
}
.research-card h3 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.research-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.research-card .research-meta {
  font-size: 12px; color: var(--text-muted);
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border);
}
.research-badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 4px;
  background: rgba(96,165,250,.10); color: var(--blue); margin-bottom: 12px;
}
.affiliation-row {
  margin-top: 40px; padding: 24px; border-radius: 16px;
  border: 1px solid var(--border); background: var(--bg-gray);
}
.affiliation-row p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* About contact CTA */
.about-cta { text-align: center; padding: 72px 0 96px; }
.about-cta h2 {
  font-size: 36px; font-weight: 800; color: var(--text);
  letter-spacing: -.03em; margin-bottom: 16px;
}
.about-cta p {
  font-size: 16px; color: var(--text-muted);
  max-width: 480px; margin: 0 auto 32px; line-height: 1.7;
}
.about-cta-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* =========================================================
   SOLUTIONS — LLM APPS PAGE
   ========================================================= */
.sol-hero {
  padding: 140px 0 96px; background: var(--bg); text-align: center;
}
@media (min-width: 768px) { .sol-hero { padding: 168px 0 112px; } }
.sol-hl {
  font-size: 40px; font-weight: 800;
  line-height: 1.1; letter-spacing: -.04em;
  color: var(--text); margin-bottom: 28px;
}
@media (min-width: 768px) { .sol-hl { font-size: 56px; } }
.sol-hl .blue { color: var(--blue); }
.sol-sub {
  font-size: 18px; color: var(--text-body); line-height: 1.7;
  max-width: 560px; margin: 0 auto 44px;
}
.sol-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Pain points */
.pain-section { padding: 80px 0 64px; background: var(--bg-alt); }
.pain-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .pain-grid { grid-template-columns: repeat(3, 1fr); } }
.pain-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px 28px;
}
.pain-card h3 {
  font-size: 17px; font-weight: 700; color: var(--text);
  margin-bottom: 10px; line-height: 1.3;
}
.pain-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* How it solves */
.solve-section { padding: 80px 0; background: var(--bg); }
.solve-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 48px;
}
@media (min-width: 768px) { .solve-grid { grid-template-columns: repeat(3, 1fr); } }
.solve-card {
  border: 1px solid var(--border); border-radius: 20px;
  padding: 36px 28px; background: var(--bg);
  transition: box-shadow .2s, transform .2s;
}
.solve-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.solve-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(96,165,250,.10);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.solve-icon svg {
  width: 22px; height: 22px; stroke: var(--blue); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.solve-card h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.solve-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* Workflow / terminal */
.workflow-section { padding: 80px 0; background: var(--bg-alt); }
.workflow-layout {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
}
@media (min-width: 900px) { .workflow-layout { grid-template-columns: 1fr 1fr; } }
.workflow-text h2 {
  font-size: clamp(28px, 4vw, 38px); font-weight: 800;
  letter-spacing: -.03em; color: var(--text); margin-bottom: 16px; line-height: 1.15;
}
.workflow-text h2 .blue { color: var(--blue); }
.workflow-text p { font-size: 15px; color: var(--text-muted); line-height: 1.75; margin-bottom: 14px; }
.workflow-steps {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: flex; flex-direction: column; gap: 12px;
}
.workflow-step { display: flex; gap: 12px; align-items: flex-start; }
.workflow-step-num {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(96,165,250,.12); border: 1px solid rgba(96,165,250,.25);
  font-size: 11px; font-weight: 700; color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.workflow-step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }
.workflow-step strong { color: var(--text); }

/* Terminal block */
.term-block {
  background: #0d0f14; border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; overflow: hidden;
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 13px; line-height: 1.65;
}
.term-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.06);
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dot:nth-child(1) { background: #ff5f57; }
.term-dot:nth-child(2) { background: #febc2e; }
.term-dot:nth-child(3) { background: #28c840; }
.term-title {
  margin-left: auto; margin-right: auto;
  font-size: 11px; color: rgba(255,255,255,.3); letter-spacing: .04em;
}
.term-body { padding: 20px 22px; color: rgba(255,255,255,.75); overflow-x: auto; }
.term-comment { color: rgba(255,255,255,.28); }
.term-blue    { color: #60a5fa; }
.term-green   { color: #86efac; }
.term-yellow  { color: #fde68a; }
.term-muted   { color: rgba(255,255,255,.35); }
.term-string  { color: #a5f3fc; }

/* Solutions FAQ */
.faq-section { padding: 80px 0; background: var(--bg); }
.faq-list {
  margin-top: 48px; display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--border); padding: 28px 32px; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.faq-a { font-size: 14px; color: var(--text-muted); line-height: 1.75; }

/* Solutions bottom CTA */
.sol-cta-section { padding: 80px 0 96px; background: var(--bg-alt); text-align: center; }
.sol-cta-section h2 {
  font-size: clamp(32px, 5vw, 52px); font-weight: 800;
  letter-spacing: -.03em; color: var(--text); margin-bottom: 16px;
}
.sol-cta-section h2 .blue { color: var(--blue); }
.sol-cta-section p {
  font-size: 16px; color: var(--text-muted); line-height: 1.7;
  max-width: 480px; margin: 0 auto 40px;
}
.sol-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
