/* Privybox marketing site - shared design system */

:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f5f7fb;
  --color-bg-dark: #0a0e21;
  --color-text: #14172b;
  --color-text-muted: #565b76;
  --color-border: #e4e7f0;
  --color-primary: #2f5ff6;
  --color-primary-dark: #1f45c9;
  --color-primary-soft: #eaf0ff;
  --color-accent: #12b886;
  --color-accent-soft: #e3f8f1;
  --radius: 12px;
  --max-width: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-primary), #6b8bff);
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 15px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active { color: var(--color-primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  border: 1px solid var(--color-border);
  background: var(--color-bg-soft);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text-muted);
}

.lang-toggle:hover { border-color: var(--color-primary); color: var(--color-primary); }

.nav-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(47, 95, 246, 0.6);
}

.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); }

.btn-secondary {
  background: #fff;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn-block { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 72px;
  text-align: center;
  background: radial-gradient(ellipse at top, var(--color-primary-soft) 0%, #fff 60%);
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 46px;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.hero p.lead {
  font-size: 19px;
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.hero-demo {
  max-width: 960px;
  margin: 48px auto 0;
}

.hero-demo video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 1300;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 50px rgba(20, 23, 43, 0.15);
  background: var(--color-bg-soft);
}

.hero-demo figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.enterprise-form {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.enterprise-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 28px auto 0;
  background: var(--color-bg-soft);
  border-radius: 999px;
}

.enterprise-tab {
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.enterprise-tab:hover { color: var(--color-text); }

.enterprise-tab.active {
  background: var(--color-bg);
  color: var(--color-primary-dark);
  box-shadow: 0 1px 2px rgba(20, 23, 43, 0.08);
}

.enterprise-tab-panel {
  margin-top: 36px;
}

.enterprise-tagline {
  font-size: 21px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0 0 18px;
}

.enterprise-tab-panel .feature-grid {
  margin-top: 40px;
  text-align: left;
  grid-template-columns: repeat(2, 1fr);
}

.enterprise-cta-row {
  margin-top: 28px;
}

.enterprise-methodology {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
  text-align: left;
}

.enterprise-methodology h2 {
  font-size: 24px;
  margin: 0 0 20px;
  color: var(--color-text);
}

.enterprise-method-points {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.enterprise-method-point {
  padding-left: 16px;
  border-left: 3px solid var(--color-border);
}

.enterprise-method-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.enterprise-method-label::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.enterprise-method-point > p {
  color: var(--color-text-muted);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 720px;
  margin: 0;
}

.enterprise-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 18px 0 2px;
}

.enterprise-pillar {
  background: var(--color-bg-soft);
  border-radius: 12px;
  padding: 18px 20px;
}

.enterprise-pillar h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0 0 8px;
}

.enterprise-pillar p {
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}

.enterprise-pillar code {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.92em;
}

.enterprise-stat-callout-headline {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 4px;
}

.enterprise-flow-wrap {
  margin: 28px 0 24px;
}

.enterprise-flow {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.enterprise-flow-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.enterprise-flow-row--stack {
  align-items: flex-start;
}

.enterprise-flow-spacer {
  visibility: hidden;
}

.enterprise-flow-arrow--spacer {
  visibility: hidden;
}

.enterprise-flow-stack {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 2px solid transparent;
  padding: 14px 16px 16px;
}

.enterprise-flow-stack > * {
  margin-left: -18px;
  margin-right: -18px;
}

.enterprise-flow-stack > *:first-child {
  margin-top: -16px;
}

.enterprise-flow-stack > *:last-child {
  margin-bottom: -18px;
}

.enterprise-flow-stack-arrow {
  display: flex;
  justify-content: center;
  color: var(--color-text-muted);
}

.enterprise-flow-step {
  flex: 1 1 0;
  min-width: 0;
  background: var(--color-bg-soft);
  border: 2px solid var(--color-primary);
  border-radius: 14px;
  padding: 14px 16px 16px;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.enterprise-flow-step:hover {
  transform: scale(1.5);
  position: relative;
  z-index: 5;
  box-shadow: 0 18px 36px rgba(47, 95, 246, 0.25);
}

.enterprise-flow-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.enterprise-flow-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 471;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid var(--color-border);
  margin-bottom: 12px;
  background: var(--color-bg);
}

.enterprise-flow-step h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 4px;
}

.enterprise-flow-step p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

.enterprise-flow-phases {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.enterprise-flow-arrow {
  flex: 0 0 auto;
  align-self: center;
  font-size: 22px;
  color: var(--color-text-muted);
  margin-top: 60px;
}

.enterprise-flow-fold {
  position: relative;
  height: 48px;
  color: var(--color-text-muted);
}

.enterprise-flow-fold-jog {
  position: absolute;
  top: 0;
  left: 50%;
  width: 33.3%;
  height: 20px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-bottom-right-radius: 6px;
}

.enterprise-flow-fold-arrow {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
}

.enterprise-flow-caption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.enterprise-note-box {
  background: var(--color-accent-soft);
  border-left: 3px solid var(--color-accent);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--color-text);
  line-height: 1.6;
  max-width: 720px;
}

.enterprise-architecture {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
  text-align: left;
}

.enterprise-architecture h2 {
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--color-text);
}

.enterprise-architecture > p {
  margin: 0 0 24px;
  color: var(--color-text-muted);
  font-size: 15px;
  max-width: 720px;
}

.enterprise-arch-figure {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0 24px;
  box-sizing: border-box;
}

.enterprise-arch-scroll {
  max-width: 1850px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}

.enterprise-arch-scroll svg {
  display: block;
  width: 100%;
  min-width: 1500px;
  height: auto;
}

.enterprise-arch-figure figcaption {
  max-width: var(--max-width);
  margin: 14px auto 0;
  padding: 0 24px;
  box-sizing: border-box;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ---------- Sections ---------- */

section { padding: 72px 0; }
section.soft { background: var(--color-bg-soft); }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-head .eyebrow { margin-bottom: 14px; }

.section-head h2 {
  font-size: 32px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-head p { color: var(--color-text-muted); font-size: 16px; margin: 0; }

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: #fff;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

.feature-card h3 { margin: 0 0 8px; font-size: 17px; }
.feature-card p { margin: 0; color: var(--color-text-muted); font-size: 14.5px; }

/* ---------- Architecture diagram ---------- */

.arch-diagram-wrap {
  max-width: 920px;
  margin: 0 auto;
  overflow-x: auto;
}

.arch-diagram-wrap svg {
  width: 100%;
  height: auto;
  display: block;
  min-width: 560px; /* keeps node labels legible instead of squashing on narrow viewports; wrapper scrolls instead */
}

.diag-box {
  fill: #fff;
  stroke: var(--color-border);
  stroke-width: 1.5;
}

.diag-boundary {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 1.5;
  stroke-dasharray: 6 6;
}

.diag-boundary-label {
  font: 600 13px/1 var(--font);
  fill: var(--color-primary);
}

.diag-badge--user { fill: var(--color-bg-soft); }
.diag-badge--chat { fill: var(--color-primary-soft); }
.diag-badge--vector { fill: var(--color-accent-soft); }
.diag-badge--ollama { fill: var(--color-primary-soft); }
.diag-badge--embed { fill: var(--color-accent-soft); }
.diag-badge--docs { fill: var(--color-bg-soft); }

.diag-icon {
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.diag-icon--user { stroke: var(--color-text-muted); }
.diag-icon--chat { stroke: var(--color-primary); }
.diag-icon--vector { stroke: var(--color-accent); }
.diag-icon--ollama { stroke: var(--color-primary-dark); }
.diag-icon--embed { stroke: var(--color-accent); }
.diag-icon--docs { stroke: var(--color-text-muted); }

.diag-title {
  font: 600 15px/1 var(--font);
  fill: var(--color-text);
}
.diag-sub {
  font: 400 12px/1 var(--font);
  fill: var(--color-text-muted);
}
/* Compact single-line label used inside the two shorter LLM / Embedding
   model boxes, which split what used to be one taller "Ollama" box and
   don't have room for a title + sub-line pair. */
.diag-title-sm {
  font: 600 13px/1 var(--font);
  fill: var(--color-text);
}

.diag-arrow {
  fill: none;
  stroke: var(--color-text-muted);
  stroke-width: 1.75;
  stroke-linecap: round;
}
.diag-arrow-label {
  font: 500 12px/1 var(--font);
  fill: var(--color-text-muted);
}
/* The one-time "embed your documents into the vector database" path -
   slightly lighter to read as a background process, distinct from the
   numbered ①②③ arrows for the live ask-a-question flow. */
.diag-arrow--index {
  opacity: 0.75;
}
.diag-arrow-label--index {
  font-style: italic;
}

/* A small envelope icon travels along each arrow (tail to head, on
   loop) to show data/message direction - reads as "a message moving"
   rather than an abstract highlight. Pure SVG (animateMotion + mpath
   in the markup, one <g id="flowEnvelope"> in <defs> reused via <use>
   for every arrow) plus this styling; no JS, no extra network
   requests. Every unidirectional arrow gets one envelope; the
   bidirectional top "Ask / see the answer" line gets two, one per
   direction, riding invisible duplicate paths (see index.html) so
   each can travel its own way. The <use> elements are left unpositioned
   (no x/y, default 0,0): animateMotion translates an element BY the
   path's own coordinates, added to its existing position, so giving
   it an explicit position equal to the path's start point would
   double-count the offset and launch it off-diagram - plain SVG
   default is what positions these correctly. The orientation is left
   fixed (no rotate="auto") so the envelope always reads flat and
   legible rather than tilting through the curved arrows. The indexing
   envelopes (.diag-flow-dot--slow) move slower, reading as a
   background process rather than the live per-question flow. */
/* One rule on the <use> element itself: fill/stroke and friends are
   inheritable CSS properties, so they cascade down into the rect and
   path cloned from <defs> - a selector written as ".diag-flow-envelope
   rect" would NOT match (descendant selectors can't reach into a
   <use> element's shadow-cloned content), which is what silently left
   the first version of this icon with no color at all. The flap
   <path> carries fill="none" as a hardcoded attribute in index.html
   so it doesn't pick up the rect's blue fill. */
.diag-flow-envelope {
  fill: var(--color-primary-soft);
  stroke: var(--color-primary);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (prefers-reduced-motion: reduce) {
  .diag-flow-envelope {
    display: none;
  }
}

/* ---------- About: focus/services fact rows ---------- */

.company-facts {
  margin-top: 22px;
}
.company-facts p {
  margin: 8px 0;
  font-size: 14.5px;
  color: var(--color-text);
}
.company-facts strong {
  margin-right: 6px;
}

/* ---------- About: company registration block ---------- */

.company-legal {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 13.5px;
  line-height: 1.7;
}
.company-legal p { margin: 4px 0; }
.company-legal strong { color: var(--color-text); }

/* ---------- Pricing / tier cards ---------- */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.tier-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  padding: 32px 28px;
  position: relative;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -20px rgba(20, 23, 43, 0.25);
}

.tier-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 20px 40px -24px rgba(47, 95, 246, 0.45);
}

.tier-card.selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary), 0 20px 40px -24px rgba(47, 95, 246, 0.35);
}

.tier-card.featured.selected {
  box-shadow: 0 0 0 2px var(--color-primary), 0 20px 40px -24px rgba(47, 95, 246, 0.45);
}

.tier-card.selected:hover {
  transform: translateY(-4px);
}

.tier-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.tier-name { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.tier-desc { color: var(--color-text-muted); font-size: 14px; margin: 0 0 20px; min-height: 42px; }

.tier-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.tier-price .amount { font-size: 38px; font-weight: 800; }
.tier-price .period { color: var(--color-text-muted); font-size: 14px; }
.tier-price-note { font-size: 13px; color: var(--color-text-muted); margin-bottom: 24px; }

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}

.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  padding: 7px 0;
  color: var(--color-text);
}

.tier-features li .check { color: var(--color-accent); font-weight: 700; }

/* ---------- Steps (Enterprise flow) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  background: #fff;
  position: relative;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}

.step-card h3 { margin: 0 0 8px; font-size: 15.5px; }
.step-card p { margin: 0; font-size: 13.5px; color: var(--color-text-muted); }

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

.steps-compact .step-card { padding: 16px 14px; }
.steps-compact .step-number {
  width: 26px;
  height: 26px;
  font-size: 12px;
  margin-bottom: 10px;
}
.steps-compact .step-card h3 { font-size: 13.5px; margin-bottom: 4px; }
.steps-compact .step-card p { font-size: 12px; }

.how-enterprise-note {
  margin: 20px 0 0;
  font-size: 13.5px;
  text-align: center;
}
.how-enterprise-note a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.how-enterprise-note a:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child { border-bottom: none; }

.faq-item h3 { margin: 0 0 8px; font-size: 16px; }
.faq-item p { margin: 0; color: var(--color-text-muted); font-size: 14.5px; }
.faq-item p a { color: var(--color-primary); text-decoration: underline; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--color-bg-dark);
  color: #fff;
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
  margin: 0 24px;
}

.cta-band h2 { margin: 0 0 12px; font-size: 28px; }
.cta-band p { margin: 0 0 28px; color: #b9c0e6; font-size: 16px; }

.cta-band .btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.cta-band .btn-secondary:hover { border-color: #fff; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 48px 0 32px;
  margin-top: 72px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  color: var(--color-text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--color-text-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--color-primary); }

.footer-legal {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Utilities ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .feature-grid, .tier-grid, .enterprise-tab-panel .feature-grid, .enterprise-pillars { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
  .enterprise-flow-row { flex-direction: column; }
  .enterprise-flow-arrow { display: none; }
  .enterprise-flow-spacer, .enterprise-flow-arrow--spacer { display: none; }
  .enterprise-flow-fold-jog { display: none; }
  .enterprise-flow-fold { height: auto; display: flex; justify-content: center; }
  .enterprise-flow-fold-arrow { position: static; transform: none; margin: 0 auto; display: block; }
  .enterprise-flow-step { flex: 1 1 auto; }
  .enterprise-flow-step:hover { transform: none; box-shadow: none; }
}

@media (max-width: 640px) {
  .main-nav, .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { margin: 0 12px; padding: 40px 24px; }
}

/* Mobile nav dropdown (JS toggles .open on .main-nav via #navToggle) */
@media (max-width: 640px) {
  .main-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 8px 24px 16px;
    box-shadow: 0 12px 24px -12px rgba(20, 23, 43, 0.15);
  }
  .main-nav.open a {
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }
  .main-nav.open a:last-child { border-bottom: none; }
}
