/* MemoryAI Landing v3 — Shared design system
 * Single source of truth for all v3 pages.
 * Color: deep black + blue/purple/cyan accent triad
 * Spacing: 8pt grid
 * Typography: Inter + JetBrains Mono
 */

:root {
  /* Surfaces */
  --bg: #000000;
  --bg-elevated: #08080A;
  --bg-card: #0D0D11;
  --bg-card-hover: #15151A;
  --bg-overlay: rgba(0,0,0,.85);

  /* Borders */
  --border: #1C1C22;
  --border-hover: #2A2A33;
  --border-strong: #3A3A45;

  /* Text */
  --text: #FAFAFA;
  --text-secondary: #A1A1AA;
  --text-tertiary: #71717A;
  --text-muted: #525258;
  --text-faint: #2A2A33;

  /* Accent triad */
  --accent: #3B82F6;        /* blue — primary CTA, link */
  --accent-hover: #2563EB;
  --accent-faint: rgba(59,130,246,.06);
  --accent-border: rgba(59,130,246,.24);

  --accent-2: #8B5CF6;      /* purple — DNA gradient */
  --accent-2-faint: rgba(139,92,246,.06);
  --accent-2-border: rgba(139,92,246,.24);

  --accent-3: #22D3EE;      /* cyan — Mesh / multi-agent */
  --accent-3-faint: rgba(34,211,238,.06);
  --accent-3-border: rgba(34,211,238,.24);

  /* Status */
  --green: #22C55E;
  --green-faint: rgba(34,197,94,.10);
  --amber: #F59E0B;
  --amber-faint: rgba(245,158,11,.10);
  --rose: #F43F5E;
  --rose-faint: rgba(244,63,94,.10);

  /* Typography */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Geometry */
  --container-narrow: 880px;
  --container: 1200px;
  --container-wide: 1440px;

  /* Spacing scale (8pt grid) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  --section-y: clamp(64px, 10vw, 128px);

  /* Radii */
  --r-1: 4px;
  --r-2: 6px;
  --r-3: 8px;
  --r-4: 12px;
  --r-5: 16px;
  --r-6: 24px;

  /* Shadows */
  --shadow-glow: 0 0 24px rgba(59,130,246,.16);
  --shadow-glow-purple: 0 0 32px rgba(139,92,246,.12);

  /* Transitions */
  --t-fast: 120ms cubic-bezier(.4,0,.2,1);
  --t: 200ms cubic-bezier(.4,0,.2,1);
  --t-slow: 360ms cubic-bezier(.4,0,.2,1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* Skip-to-content (a11y) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  padding: 8px 12px; background: var(--accent); color: #fff; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ── Container ─────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--s-5); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--s-5); }

/* ── Sections ──────────────────────────────────────────────── */
.section { padding: var(--section-y) 0; position: relative; }
.section-elevated { background: var(--bg-elevated); }
.section-bordered { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  color: var(--accent); letter-spacing: .15em; text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.eyebrow-muted { color: var(--text-tertiary); }
.eyebrow-purple { color: var(--accent-2); }
.eyebrow-cyan { color: var(--accent-3); }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(36px, 6vw, 68px); font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
h4 { font-size: 18px; }

.section-title { max-width: 760px; margin-bottom: var(--s-5); }
.section-sub {
  font-size: 17px; color: var(--text-secondary); max-width: 640px; line-height: 1.55;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-family: var(--font-sans); font-weight: 500; font-size: 14px;
  border-radius: var(--r-3); cursor: pointer;
  transition: all var(--t); border: 1px solid transparent;
  white-space: nowrap; line-height: 1; text-decoration: none;
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-md { padding: 10px 18px; }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-xl { padding: 18px 32px; font-size: 16px; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-glow); transform: translateY(-1px); }

.btn-secondary {
  background: transparent; color: var(--text); border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-card); border-color: var(--text-tertiary); }

.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text); background: var(--bg-card); }

.btn-arrow::after {
  content: '→'; transition: transform var(--t);
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ── Pills / badges ─────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 4px 12px; border-radius: 100px;
  font-family: var(--font-mono); font-size: 12px;
  border: 1px solid var(--border);
}
.pill-accent {
  background: var(--accent-faint); color: var(--accent); border-color: var(--accent-border);
}
.pill-purple {
  background: var(--accent-2-faint); color: var(--accent-2); border-color: var(--accent-2-border);
}
.pill-cyan {
  background: var(--accent-3-faint); color: var(--accent-3); border-color: var(--accent-3-border);
}
.pill-green {
  background: var(--green-faint); color: var(--green); border-color: rgba(34,197,94,.24);
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.pill-pulse .dot { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-5); padding: var(--s-6);
  transition: all var(--t);
}
.card:hover { background: var(--bg-card-hover); border-color: var(--border-hover); }
.card-accent:hover { border-color: var(--accent-border); box-shadow: var(--shadow-glow); }
.card-purple:hover { border-color: var(--accent-2-border); box-shadow: var(--shadow-glow-purple); }

/* ── Grid utilities ────────────────────────────────────────── */
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-tight { gap: var(--s-3); }

/* ── NAV ───────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg-overlay);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: var(--s-6);
  height: 60px; max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--s-5);
}
.nav-logo {
  display: flex; align-items: center; gap: var(--s-3);
  font-weight: 600; font-size: 16px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text);
}
.nav-logo img { width: 28px; height: 28px; }
.nav-links {
  display: flex; align-items: center; gap: var(--s-5);
  list-style: none; margin-left: var(--s-4);
}
.nav-link {
  color: var(--text-tertiary); font-size: 14px; font-weight: 500;
  transition: color var(--t-fast);
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-link:hover { color: var(--text); }
.nav-link[aria-expanded="true"]::after { transform: rotate(180deg); }
.nav-link.has-dropdown::after {
  content: ''; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 4px solid currentColor; opacity: .6;
  transition: transform var(--t);
}
.nav-spacer { flex: 1; }
.nav-right { display: flex; align-items: center; gap: var(--s-3); }
.nav-version {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border: 1px solid var(--border); border-radius: 100px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-tertiary);
}
.nav-version .dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 6px var(--green); animation: pulse 2s ease-in-out infinite;
}
.nav-search {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-3); color: var(--text-tertiary); font-size: 13px;
  cursor: pointer; transition: all var(--t-fast);
}
.nav-search:hover { border-color: var(--border-hover); color: var(--text); }
.nav-search kbd {
  font-family: var(--font-mono); font-size: 10px;
  padding: 2px 5px; border: 1px solid var(--border-hover); border-radius: 3px;
  color: var(--text-tertiary); background: var(--bg);
}
.nav-hamburger {
  display: none; width: 32px; height: 32px;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.nav-hamburger span {
  display: block; width: 18px; height: 1.5px; background: var(--text);
  transition: all var(--t);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 0;
  min-width: 320px; padding: var(--s-4);
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--r-4); box-shadow: 0 24px 64px rgba(0,0,0,.6);
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: all var(--t);
  display: grid; gap: var(--s-1);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.nav-dropdown-item {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-3); border-radius: var(--r-3);
  transition: background var(--t-fast);
}
.nav-dropdown-item:hover { background: var(--bg-card); }
.nav-dropdown-item-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  background: var(--accent-faint); border: 1px solid var(--accent-border);
  border-radius: var(--r-2); display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-family: var(--font-mono); font-size: 12px; font-weight: 600;
}
.nav-dropdown-item-text { flex: 1; min-width: 0; }
.nav-dropdown-item-name { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.nav-dropdown-item-desc { font-size: 12px; color: var(--text-tertiary); line-height: 1.4; }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed; inset: 60px 0 0 0; z-index: 99;
  background: var(--bg);
  padding: var(--s-6) var(--s-5);
  overflow-y: auto;
}
.nav-mobile.open { display: block; }
.nav-mobile-section { margin-bottom: var(--s-6); }
.nav-mobile-label {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary);
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--s-3);
}
.nav-mobile a { display: block; padding: var(--s-3) 0; color: var(--text); font-size: 16px; }

/* ── FOOTER ────────────────────────────────────────────────── */
.footer {
  padding: var(--s-9) 0 var(--s-7);
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: var(--s-7);
  margin-bottom: var(--s-7);
}
.footer-brand {
  max-width: 320px;
}
.footer-brand-logo {
  display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3);
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 14px;
}
.footer-brand-logo img { width: 24px; height: 24px; }
.footer-brand-text {
  font-size: 13px; color: var(--text-tertiary); line-height: 1.6; margin-bottom: var(--s-4);
}
.footer-social { display: flex; gap: var(--s-3); }
.footer-social a {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--r-3);
  color: var(--text-tertiary); transition: all var(--t-fast);
}
.footer-social a:hover { color: var(--text); border-color: var(--border-hover); }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: .12em; font-weight: 500;
  margin-bottom: var(--s-4);
}
.footer-col ul { list-style: none; display: grid; gap: var(--s-3); }
.footer-col a {
  font-size: 13px; color: var(--text-secondary); transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--text); }
.footer-col a .pill { font-size: 9px; padding: 2px 6px; margin-left: 6px; vertical-align: middle; }

.footer-bottom {
  padding-top: var(--s-6); border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4);
  flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
}
.footer-bottom p { line-height: 1.6; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative; padding: 140px 0 var(--s-9); overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(59,130,246,.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 30%, rgba(139,92,246,.08) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-inner { max-width: 920px; margin: 0 auto; text-align: center; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 60%, var(--accent-3) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--text-secondary); max-width: 680px;
  margin: var(--s-5) auto var(--s-7); line-height: 1.55;
}
.hero-actions {
  display: inline-flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap;
  margin-bottom: var(--s-6);
}

/* Trust strip */
.trust-strip {
  display: flex; align-items: center; gap: var(--s-5); justify-content: center;
  flex-wrap: wrap; margin-top: var(--s-6);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary);
}
.trust-strip > span:first-child { color: var(--text-muted); }
.trust-strip-divider {
  width: 1px; height: 12px; background: var(--border-strong);
}

/* ── Inline demo ───────────────────────────────────────────── */
.demo-shell {
  max-width: 920px; margin: var(--s-7) auto 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-5);
  box-shadow: 0 32px 80px rgba(0,0,0,.5), var(--shadow-glow);
  overflow: hidden;
}
.demo-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--border);
  padding: 0 var(--s-3);
}
.demo-tab {
  padding: var(--s-4) var(--s-5);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary);
  border-bottom: 2px solid transparent;
  transition: all var(--t-fast);
  display: inline-flex; align-items: center; gap: 8px;
}
.demo-tab:hover { color: var(--text-secondary); }
.demo-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.demo-tab .tab-dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .6;
}
.demo-body {
  padding: var(--s-6); min-height: 320px;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7;
}
.demo-line { display: block; }
.demo-prompt { color: var(--accent); }
.demo-comment { color: var(--text-muted); }
.demo-string { color: var(--green); }
.demo-key { color: var(--accent-2); }
.demo-out { color: var(--text-secondary); padding-left: var(--s-3); }

.demo-cursor {
  display: inline-block; width: 8px; height: 16px;
  background: var(--accent); margin-left: 2px;
  animation: blink 1s steps(2) infinite; vertical-align: -2px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── Logo bar ──────────────────────────────────────────────── */
.logobar {
  display: flex; align-items: center; gap: var(--s-7); flex-wrap: wrap;
  justify-content: center; padding: var(--s-5) 0;
  opacity: .55; transition: opacity var(--t);
}
.logobar:hover { opacity: 1; }
.logobar-item {
  font-family: var(--font-mono); font-size: 14px; color: var(--text-secondary);
  font-weight: 500;
}

/* ── Partners ──────────────────────────────────────────────── */
/* Bold partners section — replaces old faded chip strip. Three groups
   (AI / Cloud / Vietnam), each card has full-color logo, gradient hover
   glow, and a category eyebrow. */
.partners-section {
  margin-top: var(--s-7);
  padding-top: var(--s-7);
  border-top: 1px solid var(--border);
}
.partners-section .partners-head {
  text-align: center;
  margin-bottom: var(--s-7);
}
.partners-section .partners-head h3 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: var(--s-2) 0 var(--s-3);
  background: linear-gradient(135deg, var(--text) 0%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.partners-section .partners-head p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto;
}
.partners-groups {
  /* Single uniform grid: 5 columns desktop, 3 tablet, 2 mobile.
     Replaces old 3-group-card layout that left ragged rows. */
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-3);
}
@media (max-width: 1100px) {
  .partners-groups { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .partners-groups { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .partners-groups { grid-template-columns: 1fr; }
}
/* The old `.partners-group` wrapper is no longer needed — kept invisible
   as a no-op container so existing markup compiles. */
.partners-group {
  display: contents;
}
.partners-group-eyebrow,
.partners-grid { display: contents; }

.partners-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 14px 16px;
  min-height: 132px;
  border-radius: var(--r-3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  text-align: center;
  transition: border-color var(--t-fast), background var(--t-fast),
    transform var(--t-fast), box-shadow var(--t-fast);
  overflow: hidden;
}
.partners-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent-faint), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-fast);
  pointer-events: none;
}
.partners-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -12px rgba(0,0,0,.6);
}
.partners-card:hover::before { opacity: 1; }
.partners-card[data-tone="ai"]:hover::before {
  background: linear-gradient(135deg, var(--accent-2-faint), transparent 60%);
}
.partners-card[data-tone="cloud"]:hover::before {
  background: linear-gradient(135deg, var(--accent-3-faint), transparent 60%);
}
/* Tone tag rendered as ::after so we don't need to touch markup. */
.partners-card::after {
  content: attr(data-tone-label);
  position: absolute;
  top: 8px; right: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  opacity: .7;
  z-index: 2;
}
.partners-card[data-tone="ai"]::after { color: var(--accent-2); }
.partners-card[data-tone="cloud"]::after { color: var(--accent-3); }
.partners-card[data-tone="vn"]::after { color: var(--accent); }

.partners-card .partners-card-logo {
  width: 56px; height: 56px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: #fff;
  position: relative; z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
/* Hard-normalize logo dimensions: every PNG / SVG renders at exactly the
   same square size regardless of intrinsic viewBox or pixel ratio. */
.partners-card .partners-card-logo > * {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px;
  max-height: 34px;
  display: block;
  object-fit: contain;
  filter: none;
}
/* MemoryAI brand logo ships with extra transparent padding around the
   icon, so it looks visually smaller than other brand marks at the same
   render size. Render it at 2× the standard logo size — overflows the
   tile slightly which is fine, the tile only acts as a backdrop. */
.partners-card .partners-card-logo > img[alt="MemoryAI"] {
  width: 68px !important;
  height: 68px !important;
  max-width: 68px;
  max-height: 68px;
}
.partners-card .partners-card-text {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0; position: relative; z-index: 1;
  align-items: center;
}
.partners-card .partners-card-name {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
}
.partners-card .partners-card-role {
  color: var(--text-tertiary);
  font-size: 11px;
  font-family: var(--font-mono);
  line-height: 1.3;
}

/* Legacy classes kept so old markup doesn't visually collapse if any
   other page still uses .partner-item — but the landing now uses the
   new .partners-card structure above. */
.partners {
  display: flex; align-items: center; justify-content: center;
  gap: var(--s-5); flex-wrap: wrap;
  padding: var(--s-5) 0;
}
.partners-label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-tertiary); letter-spacing: .15em;
  text-transform: uppercase; text-align: center;
  margin-bottom: var(--s-5);
}
.partner-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: var(--r-3);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  transition: all var(--t-fast);
}
.partner-item:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}
.partner-item img,
.partner-item svg {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px;
  max-height: 22px;
  flex-shrink: 0;
  object-fit: contain;
  filter: none;
}

/* ── DNA story ─────────────────────────────────────────────── */
.dna-story { display: grid; gap: var(--s-7); margin-top: var(--s-7); }
.dna-row {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--s-7);
  align-items: center; padding: var(--s-7) 0;
  border-bottom: 1px solid var(--border);
}
.dna-row:last-child { border-bottom: none; }
.dna-row.reverse { grid-template-columns: 1fr 1.5fr; }
.dna-row.reverse .dna-text { order: 2; }
.dna-row.reverse .dna-visual { order: 1; }
.dna-num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em;
  color: var(--accent); margin-bottom: var(--s-3); text-transform: uppercase;
}
.dna-row:nth-child(2) .dna-num { color: var(--accent-2); }
.dna-row:nth-child(3) .dna-num { color: var(--accent-3); }
.dna-text h3 { margin-bottom: var(--s-3); }
.dna-text p { font-size: 16.5px; color: var(--text-secondary); line-height: 1.6; }
.dna-stats {
  display: flex; gap: var(--s-6); margin-top: var(--s-5);
}
.dna-stat-num {
  font-family: var(--font-mono); font-size: 20px; font-weight: 600; color: var(--text);
  display: block;
}
.dna-stat-label {
  font-size: 12px; color: var(--text-tertiary); margin-top: 4px;
}
.dna-visual {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-5); padding: var(--s-7);
  font-family: var(--font-mono); font-size: 13px;
  min-height: 240px; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.dna-visual::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(59,130,246,.08), transparent 60%);
  pointer-events: none;
}
.dna-row:nth-child(2) .dna-visual::before {
  background: radial-gradient(circle at 70% 30%, rgba(139,92,246,.08), transparent 60%);
}
.dna-row:nth-child(3) .dna-visual::before {
  background: radial-gradient(circle at 50% 50%, rgba(34,211,238,.08), transparent 60%);
}
.dna-visual-content { position: relative; z-index: 1; }

/* ── Behaviors strip ───────────────────────────────────────── */
.behaviors-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-3); margin-top: var(--s-7);
}
.behavior {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-4); padding: var(--s-5); transition: all var(--t);
}
.behavior:hover { border-color: var(--accent-border); }
.behavior-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 10.5px;
  font-weight: 600; letter-spacing: .12em; color: var(--accent);
  background: var(--accent-faint); border: 1px solid var(--accent-border);
  padding: 3px 8px; border-radius: 100px; margin-bottom: var(--s-3);
}
.behavior:nth-child(2n) .behavior-tag { color: var(--accent-2); background: var(--accent-2-faint); border-color: var(--accent-2-border); }
.behavior:nth-child(3n) .behavior-tag { color: var(--accent-3); background: var(--accent-3-faint); border-color: var(--accent-3-border); }
.behavior-text {
  font-size: 14px; color: var(--text-secondary); line-height: 1.55;
}
.behavior-text strong { color: var(--text); font-weight: 500; }

/* ── Architecture diagram ──────────────────────────────────── */
.arch {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-5); padding: var(--s-7);
  margin-top: var(--s-6);
}
.arch-layers { display: grid; gap: var(--s-3); }
.arch-layer {
  display: grid; grid-template-columns: 80px 1fr; gap: var(--s-5);
  padding: var(--s-5); border-radius: var(--r-3);
  background: var(--bg);
  border: 1px solid var(--border);
}
.arch-layer-label {
  font-family: var(--font-mono); font-weight: 600; font-size: 16px;
  color: var(--accent); display: flex; flex-direction: column; gap: 4px;
}
.arch-layer:nth-child(2) .arch-layer-label { color: var(--accent-2); }
.arch-layer:nth-child(3) .arch-layer-label { color: var(--accent-3); }
.arch-layer-label small {
  font-size: 11px; color: var(--text-tertiary); font-weight: 400;
  text-transform: uppercase; letter-spacing: .1em;
}
.arch-layer-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.arch-layer-desc { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; }
.arch-layer-stats {
  display: flex; gap: var(--s-5); margin-top: var(--s-3);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-tertiary);
}

/* ── Compare table ─────────────────────────────────────────── */
.cmp-wrap { overflow-x: auto; margin-top: var(--s-7); border: 1px solid var(--border); border-radius: var(--r-4); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 13.5px; }
.cmp-table th, .cmp-table td {
  padding: 14px var(--s-4); text-align: center;
  border-bottom: 1px solid var(--border);
}
.cmp-table th:first-child, .cmp-table td:first-child {
  text-align: left; color: var(--text-secondary); font-weight: 500;
}
.cmp-table thead th {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: .1em; font-weight: 500;
  background: var(--bg-elevated);
}
.cmp-table thead th.us-col { color: var(--accent); font-weight: 600; }
.cmp-table .us-col { background: var(--accent-faint); }
.cmp-table tbody tr:hover td { background: var(--bg-card); }
.cmp-table tbody tr:hover td.us-col { background: rgba(59,130,246,.10); }
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-check { color: var(--green); font-weight: 600; }
.cmp-cross { color: var(--text-muted); }

/* ── Logos grid ────────────────────────────────────────────── */
.logos {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s-3); margin-top: var(--s-7);
}
.logos-tier { font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary);
  letter-spacing: .12em; text-transform: uppercase; margin: var(--s-6) 0 var(--s-3); }
.logo-pill {
  padding: var(--s-4); background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-3); text-align: center;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-secondary);
  transition: all var(--t-fast);
}
.logo-pill:hover { color: var(--text); border-color: var(--border-hover); }
.logo-pill .platform-tag {
  display: block; font-size: 10px; color: var(--text-muted); margin-top: 4px;
  letter-spacing: .1em; text-transform: uppercase;
}

/* ── Pricing ───────────────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-3); margin-top: var(--s-7);
}
.price-card {
  position: relative;
  padding: var(--s-6) var(--s-5); background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-5); display: flex; flex-direction: column;
  transition: all var(--t);
}
.price-card:hover { border-color: var(--border-hover); }
.price-card.highlight {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-faint) 0%, var(--bg-card) 60%);
  box-shadow: var(--shadow-glow);
}
.price-card.highlight::before {
  content: 'PHỔ BIẾN'; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .12em; padding: 4px 12px; border-radius: 100px;
}
.price-card[data-i18n-popular] .highlight::before { content: attr(data-i18n-popular); }
.price-name { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.price-tag { font-size: 13px; color: var(--text-tertiary); margin-bottom: var(--s-5); min-height: 36px; }
.price-amount {
  font-family: var(--font-mono); font-size: 30px; font-weight: 600; line-height: 1;
}
.price-amount .unit {
  font-family: var(--font-sans); font-size: 14px; color: var(--text-tertiary); font-weight: 400;
}
.price-period {
  font-size: 13px; color: var(--text-tertiary); margin-top: 4px; margin-bottom: var(--s-5);
}
.price-features {
  list-style: none; flex: 1; margin-bottom: var(--s-5); display: grid; gap: var(--s-3);
}
.price-features li {
  font-size: 13px; color: var(--text-secondary);
  display: grid; grid-template-columns: 16px 1fr; align-items: start; gap: 8px;
  line-height: 1.45;
}
.price-features li::before {
  content: '✓'; color: var(--green); font-size: 12px; line-height: 1.2;
}
.price-features li.muted { color: var(--text-muted); }
.price-features li.muted::before { content: '–'; color: var(--text-muted); }
.price-cta {
  display: block; text-align: center; padding: 11px;
  border: 1px solid var(--border-hover); border-radius: var(--r-3);
  font-family: var(--font-sans); font-weight: 500; font-size: 13px; color: var(--text);
  transition: all var(--t-fast);
}
.price-cta:hover { background: var(--bg-card-hover); border-color: var(--text-tertiary); }
.price-card.highlight .price-cta { background: var(--accent); border-color: var(--accent); color: #fff; }
.price-card.highlight .price-cta:hover { background: var(--accent-hover); }

/* ── Calculator ────────────────────────────────────────────── */
.calc {
  margin-top: var(--s-7); padding: var(--s-7);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-5);
}
.calc-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: center;
}
.calc-input label {
  display: block; font-family: var(--font-mono); font-size: 11.5px;
  color: var(--text-tertiary); letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: var(--s-2);
}
.calc-input input[type="range"] {
  width: 100%; appearance: none; -webkit-appearance: none;
  height: 4px; background: var(--border); border-radius: 100px;
}
.calc-input input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
  cursor: pointer; box-shadow: var(--shadow-glow);
}
.calc-value {
  font-family: var(--font-mono); font-size: 20px; font-weight: 600;
  color: var(--accent); margin-top: var(--s-3);
}
.calc-output {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-4); padding: var(--s-5);
}
.calc-output-tier {
  font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 4px;
}
.calc-output-price {
  font-family: var(--font-mono); font-size: 26px; color: var(--accent);
  margin-bottom: var(--s-2);
}
.calc-output-detail { font-size: 13px; color: var(--text-tertiary); line-height: 1.5; }

/* ── Stat numbers ──────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-5); margin-top: var(--s-7); }
.stat {
  padding: var(--s-6); background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-4);
}
.stat-num {
  font-family: var(--font-mono); font-size: 32px; font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1; margin-bottom: var(--s-2);
}
.stat-num .unit { font-size: 14px; color: var(--text-tertiary); -webkit-text-fill-color: var(--text-tertiary); margin-left: 6px; }
.stat-label { font-size: 14px; color: var(--text); font-weight: 500; }
.stat-detail { font-size: 12.5px; color: var(--text-tertiary); margin-top: 6px; line-height: 1.5; }

/* ── Security strip ────────────────────────────────────────── */
.security-strip {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-5); padding: var(--s-7);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-6); margin-top: var(--s-6);
}
.sec-item-name {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--s-2);
}
.sec-item-text { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

/* ── Customer stories ──────────────────────────────────────── */
.story-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--s-5); margin-top: var(--s-7);
}
.story {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-5); padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-4);
}
.story-quote {
  font-size: 17px; color: var(--text); line-height: 1.5; font-weight: 500;
}
.story-quote::before { content: '"'; color: var(--accent); margin-right: 4px; }
.story-quote::after { content: '"'; color: var(--accent); margin-left: 4px; }
.story-author {
  display: flex; align-items: center; gap: var(--s-3);
  border-top: 1px solid var(--border); padding-top: var(--s-4);
}
.story-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 600; color: #fff; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.story-name { font-weight: 600; font-size: 14px; }
.story-role { font-size: 12.5px; color: var(--text-tertiary); }
.story-result {
  font-family: var(--font-mono); font-size: 13px; color: var(--green);
  padding: var(--s-3); background: var(--green-faint);
  border-radius: var(--r-3); border-left: 2px solid var(--green);
}

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-list { margin-top: var(--s-6); max-width: 880px; }
.faq-item {
  border-bottom: 1px solid var(--border); padding: var(--s-5) 0;
}
.faq-q {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  font-size: 16px; font-weight: 500; color: var(--text);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+'; font-family: var(--font-mono); font-size: 22px; color: var(--text-tertiary);
  transition: transform var(--t-fast);
}
.faq-item[open] .faq-q::after { content: '−'; }
.faq-a {
  margin-top: var(--s-3); font-size: 14.5px; color: var(--text-secondary); line-height: 1.65;
  max-width: 760px;
}

/* ── Big CTA ───────────────────────────────────────────────── */
.cta-big {
  position: relative; padding: var(--s-9) 0; text-align: center;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
}
.cta-big::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(59,130,246,.06) 0%, transparent 70%),
    radial-gradient(ellipse 30% 20% at 80% 20%, rgba(139,92,246,.05) 0%, transparent 70%);
  pointer-events: none;
}
.cta-big > * { position: relative; }
.cta-big h2 { margin-bottom: var(--s-4); }
.cta-big p { font-size: 17px; color: var(--text-secondary); max-width: 580px;
  margin: 0 auto var(--s-7); }

/* ── Misc ──────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: var(--s-7) 0; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr repeat(2, 1fr); }
  .dna-row, .dna-row.reverse { grid-template-columns: 1fr; gap: var(--s-5); }
  .dna-row.reverse .dna-text, .dna-row.reverse .dna-visual { order: initial; }
  .calc-grid { grid-template-columns: 1fr; gap: var(--s-5); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-search { display: none; }
  .nav-version { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
  .footer-brand { grid-column: 1 / -1; }
  h1 { font-size: clamp(28px, 9vw, 44px); }
  h2 { font-size: clamp(24px, 6vw, 34px); }
  .arch-layer { grid-template-columns: 1fr; }
  .arch-layer-label { flex-direction: row; align-items: center; gap: var(--s-3); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .demo-tabs { overflow-x: auto; }
  .trust-strip-divider { display: none; }
}

/* ── Reveal on scroll ──────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(.4,0,.2,1), transform 600ms cubic-bezier(.4,0,.2,1);
}
.reveal.in {
  opacity: 1; transform: translateY(0);
}

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
