@import url("src/tokens/figma-tokens.css");

:root {
  --primary: #1677ff;
  --primary-600: #0958d9;
  --cyan: #17c6e9;
  --ink: #1f2937;
  --muted: #4b5563;
  --line: #e7ebf4;
  --line-strong: #d1dbe8;
  --surface: #ffffff;
  --soft: #f7fbff;
  --soft-blue: #edf6ff;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --shadow: 0 18px 46px rgba(8, 38, 92, 0.12);
  --container: 1344px;
  --pad: 48px;
  --radius: 8px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--text-family-primary, "Public Sans"), sans-serif; line-height: 1.2; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.top-nav,
.product-bar,
.section,
.footer-grid,
.footer-bottom {
  width: min(100%, 1440px);
  margin: 0 auto;
}

.top-nav {
  height: 72px;
  display: grid;
  grid-template-columns: 146px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 96px;
}

.brand,
.product-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
}

.brand-symbol {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #15b5d1, var(--primary));
  color: #fff;
  position: relative;
}

.brand-symbol span {
  width: 20px;
  height: 20px;
  border: 4px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  position: relative;
}

.brand-symbol span::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 6px;
  width: 10px;
  height: 4px;
  border-radius: 99px;
  background: currentColor;
}

.brand-text {
  font: 800 22px/1 var(--text-family-primary, "Public Sans"), sans-serif;
  color: #121a35;
}

.primary-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.nav-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 32px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-link:hover { color: var(--primary); transform: translateY(-1px); }
.nav-link.active { color: #fff; background: var(--primary); }

.chevron,
.language i {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
}

.language {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.language span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #ffe100;
  background: #ef3340;
  font-size: 10px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  padding: 9px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: var(--ink);
}

.product-bar {
  height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 96px;
  border-top: 1px solid var(--line);
}

.product-name strong {
  color: var(--primary);
  font: 800 32px/1 var(--text-family-primary, "Public Sans"), sans-serif;
}

.product-links {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: flex-start;
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
}

.product-links a.active,
.product-links a:hover { color: var(--primary); }

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid #b7d6ff;
  border-radius: var(--radius);
  color: var(--primary);
  background: #f5f9ff;
  font-weight: 700;
}

.home-hero,
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 72px);
  background: #fff;
}

.grid-scene::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(30deg, transparent 0 49%, rgba(18, 79, 154, 0.07) 50%, transparent 51%),
    linear-gradient(150deg, transparent 0 49%, rgba(18, 79, 154, 0.07) 50%, transparent 51%);
  background-size: 72px 72px;
  opacity: 0.75;
  transform: skewY(-1deg);
}

.home-hero {
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 96px 48px 56px;
}

.home-copy,
.hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
}

.user-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.user-row span:nth-child(2) { color: var(--primary); }

.avatars { display: inline-flex; }
.avatars i {
  width: 24px;
  height: 24px;
  margin-left: -5px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #f6b37f, #e65a76);
  box-shadow: 0 4px 12px rgba(31,41,55,0.14);
}
.avatars i:first-child { margin-left: 0; }
.avatars i:nth-child(2) { background: linear-gradient(135deg, #8bd5ff, #1677ff); }
.avatars i:nth-child(3) { background: linear-gradient(135deg, #8ef0db, #20b486); }

.home-hero h1,
.page-hero h1 {
  margin: 0;
  color: var(--muted);
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 800;
}

.home-hero h1 span,
.home-hero h1 i,
.page-hero h1 strong { color: var(--primary); font-style: normal; }

.home-hero p,
.page-hero p,
.section-head p {
  color: var(--muted);
  font-size: 20px;
  line-height: 28px;
}

.home-emblem {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(48vw, 440px);
  aspect-ratio: 1;
  margin: 44px auto 24px;
  color: rgba(22, 119, 255, 0.22);
}

.home-emblem::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(30deg, transparent 0 49%, rgba(22, 119, 255, 0.16) 50%, transparent 51%),
    linear-gradient(150deg, transparent 0 49%, rgba(22, 119, 255, 0.16) 50%, transparent 51%);
  background-size: 40px 40px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.home-emblem .brand {
  opacity: 0.35;
  transform: scale(1.6);
}

.home-emblem .brand-text {
  display: none;
}

.home-cta {
  position: relative;
  z-index: 1;
  width: min(100%, 1324px);
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 16px;
  border-radius: 32px;
  filter: drop-shadow(0 4px 12px rgba(8, 38, 92, 0.18));
}

.home-cta p { margin: 0; }
.home-cta div { display: flex; gap: 24px; width: min(404px, 100%); }

.btn {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 32px;
  padding: 0 24px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(38, 57, 92, 0.24), inset 0 0 2px rgba(255, 255, 255, 0.14);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: linear-gradient(100deg, var(--primary), var(--primary-600)); }
.btn-gray { background: linear-gradient(100deg, var(--gray-500), var(--gray-700)); }

.page-hero {
  min-height: 792px;
  display: grid;
  grid-template-columns: minmax(0, 511px) minmax(420px, 1fr);
  align-items: center;
  gap: 72px;
  padding: 96px max(48px, calc((100vw - var(--container)) / 2));
}

.page-hero .hero-copy { text-align: left; }
.page-hero h1 { color: var(--ink); font-size: clamp(34px, 3.4vw, 40px); }
.page-hero .eyebrow { color: var(--primary); }
.page-hero .btn { margin-top: 28px; }

.eyebrow {
  margin: 0 0 16px;
  color: var(--primary);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 510px;
  display: grid;
  place-items: center;
}

.visual-grid {
  position: absolute;
  inset: 4% 6%;
  background:
    linear-gradient(#dfeeff 1px, transparent 1px),
    linear-gradient(90deg, #dfeeff 1px, transparent 1px);
  background-size: 36px 36px;
  transform: perspective(780px) rotateX(58deg) rotateZ(-36deg);
  border: 1px solid rgba(22,119,255,0.16);
}

.device-stack {
  position: relative;
  width: min(100%, 600px);
  min-height: 380px;
}

.panel {
  position: absolute;
  border: 1px solid #c8dcf6;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
}

.mini-panel {
  left: 14%;
  top: 12%;
  width: 188px;
  height: 132px;
  display: grid;
  place-items: center;
}

.mini-panel b {
  color: var(--primary);
  font: 800 42px/1 var(--text-family-primary, "Public Sans"), sans-serif;
}

.chart-panel {
  right: 6%;
  top: 26%;
  width: 330px;
  height: 210px;
  display: flex;
  align-items: end;
  gap: 20px;
  padding: 28px;
}

.chart-panel i {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--primary), #8bd5ff);
}
.chart-panel i:nth-child(1) { height: 36%; }
.chart-panel i:nth-child(2) { height: 62%; }
.chart-panel i:nth-child(3) { height: 48%; }
.chart-panel i:nth-child(4) { height: 82%; }

.message-panel {
  left: 20%;
  bottom: 6%;
  width: 360px;
  height: 150px;
  padding: 22px;
}

.message-panel b,
.message-panel span {
  display: block;
  height: 14px;
  margin-bottom: 14px;
  border-radius: 99px;
  background: #dbeafe;
}
.message-panel b { width: 42%; background: var(--primary); }
.message-panel span:nth-child(2) { width: 84%; }
.message-panel span:nth-child(3) { width: 66%; }
.message-panel span:nth-child(4) { width: 74%; }

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px max(48px, calc((100vw - var(--container)) / 2));
  background: #fff;
  text-align: center;
}
.trust-strip p { margin: 0 0 24px; color: var(--muted); font-size: 20px; font-weight: 600; }
.trust-strip div { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.trust-strip span { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-weight: 600; }
.trust-strip span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 6px #fff, 0 0 0 1px #d1d5db; }

.section {
  padding: 72px var(--pad);
}

.section:nth-of-type(even) { background: #fff; }
.section:nth-of-type(odd) { background: var(--soft); }

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

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 800;
}

.section-head p {
  max-width: 928px;
  margin: 16px auto 0;
}

.card-grid,
.leader-grid,
.app-grid,
.benefit-grid,
.pricing-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 32px;
}

.card-grid { grid-template-columns: repeat(3, 1fr); }
.app-grid { grid-template-columns: repeat(2, 1fr); }
.benefit-grid { grid-template-columns: repeat(2, 1fr); }
.leader-grid { grid-template-columns: repeat(4, 1fr); }

.info-card,
.leader-card,
.price-card,
.proof-grid article,
.benefit-row,
.usecase-grid article,
.ecosystem-map article {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.88);
  padding: 32px;
  box-shadow: 0 12px 32px rgba(8,38,92,0.06);
}

.info-card h3,
.leader-card h3,
.benefit-row h3,
.feature-copy h3 {
  margin: 18px 0 12px;
  font-size: 20px;
}

.info-card p,
.benefit-row p,
.feature-copy p,
.leader-card p,
.price-card p,
.ecosystem-map p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  color: var(--primary);
  position: relative;
}
.icon::before,
.icon::after { content: ""; position: absolute; background: currentColor; }
.icon-product::before { width: 31px; height: 27px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.icon-arrow { width: 24px; height: 24px; color: currentColor; }
.icon-arrow::before { width: 16px; height: 16px; border: 2px solid currentColor; border-left: 0; border-bottom: 0; background: transparent; transform: rotate(45deg); }
.icon-arrow::after { width: 18px; height: 2px; background: currentColor; }
.icon-shield::before { width: 34px; height: 40px; clip-path: polygon(50% 0, 88% 14%, 80% 72%, 50% 100%, 20% 72%, 12% 14%); }
.icon-sync::before { width: 38px; height: 38px; border: 5px solid currentColor; border-right-color: transparent; border-radius: 50%; background: transparent; }
.icon-quality::before { width: 34px; height: 34px; clip-path: polygon(50% 0, 62% 35%, 100% 35%, 69% 56%, 81% 94%, 50% 70%, 19% 94%, 31% 56%, 0 35%, 38% 35%); }
.icon-cube::before,
.icon-layers::before { width: 38px; height: 30px; clip-path: polygon(50% 0, 100% 25%, 50% 50%, 0 25%); box-shadow: 0 12px 0 rgba(22,119,255,0.55), 0 24px 0 rgba(22,119,255,0.24); }
.icon-database::before { width: 38px; height: 34px; border: 4px solid currentColor; border-radius: 50% / 18%; background: transparent; box-shadow: 0 12px 0 -4px #fff, 0 12px 0 0 currentColor; }
.icon-key::before { width: 39px; height: 28px; clip-path: polygon(0 35%, 40% 35%, 48% 12%, 62% 12%, 70% 35%, 100% 35%, 100% 55%, 78% 55%, 78% 76%, 60% 76%, 60% 55%, 0 55%); }

.center-illustration {
  display: grid;
  place-items: center;
  min-height: 360px;
}

.diagram {
  position: relative;
  width: min(100%, 760px);
  height: 360px;
  margin: 0 auto;
  background:
    linear-gradient(#dfeeff 1px, transparent 1px),
    linear-gradient(90deg, #dfeeff 1px, transparent 1px),
    #fff;
  background-size: 42px 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.diagram::before,
.diagram::after {
  content: "";
  position: absolute;
  inset: 16% 18%;
  border: 1px dashed rgba(22,119,255,0.38);
  border-radius: 50%;
  transform: rotate(-14deg);
}
.diagram::after { inset: 24% 25%; transform: rotate(18deg); }

.diagram-core,
.node {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid #a8caff;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 10px 22px rgba(8,38,92,0.08);
}
.diagram-core { left: 50%; top: 50%; width: 140px; height: 82px; transform: translate(-50%,-50%); border-radius: 24px; font: 800 28px/1 var(--text-family-primary, "Public Sans"), sans-serif; background: #eaf5ff; }
.node { width: 82px; height: 56px; border-radius: var(--radius); }
.n1 { left: 10%; top: 22%; }
.n2 { right: 12%; top: 20%; }
.n3 { left: 24%; bottom: 15%; }
.n4 { right: 22%; bottom: 16%; }

.feature-list {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 96px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 511px) minmax(420px, 1fr);
  gap: 72px;
  align-items: center;
}
.feature-row.reverse { grid-template-columns: minmax(420px, 1fr) minmax(0, 511px); }
.feature-row.reverse .feature-copy { order: 2; }

.feature-copy h3 { font-size: clamp(30px, 3vw, 40px); }
.feature-copy ul {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
}
.feature-copy li { display: flex; gap: 12px; align-items: center; }
.feature-copy li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); box-shadow: inset 0 0 0 6px #fff, 0 0 0 1px var(--primary); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
}

.feature-art {
  min-height: 420px;
  display: grid;
  place-items: center;
}

.benefit-row {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.benefit-row > span {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: inset 0 0 0 14px #fff, 0 0 0 1px #b7d6ff;
}

.leader-card { text-align: center; }
.leader-card span {
  display: grid;
  place-items: center;
  width: 156px;
  height: 156px;
  margin: 0 auto 24px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, hsl(calc(var(--n) * 48 + 205) 80% 55%), hsl(calc(var(--n) * 48 + 170) 76% 45%));
  font: 800 36px/1 var(--text-family-primary, "Public Sans"), sans-serif;
}

.proof-grid {
  max-width: 928px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.proof-grid small,
.ecosystem-map small { color: var(--primary); font-weight: 800; text-transform: uppercase; }
.proof-grid strong { display: block; margin: 12px 0; font: 800 36px/1.2 var(--text-family-primary, "Public Sans"), sans-serif; }
.proof-grid span { color: var(--muted); }

.ecosystem-map {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.ecosystem-map article:nth-child(even) { transform: translateY(48px); }
.ecosystem-map h3 { margin: 12px 0; font-size: 36px; }

.pipeline,
.gateway-diagram {
  max-width: var(--container);
  min-height: 260px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(#e8f2ff 1px, transparent 1px),
    linear-gradient(90deg, #e8f2ff 1px, transparent 1px),
    #fff;
  background-size: 32px 32px;
  padding: 32px;
  overflow-x: auto;
}
.pipeline span,
.gateway-diagram span {
  min-width: 144px;
  display: grid;
  place-items: center;
  min-height: 72px;
  border: 1px solid #a8caff;
  border-radius: var(--radius);
  background: #fff;
  color: var(--primary);
  font-weight: 800;
  text-align: center;
}
.pipeline span + span::before,
.gateway-diagram span + span::before { content: ""; }

.gateway-diagram span:nth-child(3) {
  min-width: 180px;
  min-height: 100px;
  border-radius: 24px;
  background: var(--soft-blue);
}

.usecase-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.usecase-grid h3 { margin: 0 0 14px; font-size: 24px; }
.usecase-grid p { color: var(--muted); }
.used-at {
  max-width: 920px;
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.used-at p { grid-column: 1 / -1; margin: 0; color: var(--primary); font: 800 28px/1.2 var(--text-family-primary, "Public Sans"), sans-serif; }
.used-at span { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-weight: 800; }

.model-box {
  max-width: 1029px;
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  background: #fff;
}
.model-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #eef6ff;
}
.model-tabs button {
  min-height: 56px;
  border: 0;
  border-right: 1px solid #bfd8f4;
  background: transparent;
  color: #335173;
  font-weight: 800;
  cursor: pointer;
}
.model-tabs button.active { color: #fff; background: var(--primary); }
.model-box > p {
  margin: 0;
  padding: 16px 24px;
  color: var(--muted);
  border-bottom: 1px dashed var(--line-strong);
  font-weight: 700;
}
.model-box .diagram { border: 0; border-radius: 0; width: 100%; }

.pricing-grid { grid-template-columns: repeat(3, 1fr); }
.price-card {
  min-height: 620px;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border: 2px solid var(--primary); box-shadow: 0 22px 48px rgba(22,119,255,0.16); }
.price-card h3 { margin: 0; color: var(--primary); }
.price-card strong { display: block; margin: 24px 0; font: 800 34px/1.2 var(--text-family-primary, "Public Sans"), sans-serif; }
.price-card ul { margin: auto 0 0; padding: 0; display: grid; gap: 12px; list-style: none; color: var(--muted); }
.price-card li::before { content: "✓"; color: var(--primary); margin-right: 8px; font-weight: 800; }
.price-card .btn { width: 100%; margin-bottom: 24px; border-radius: var(--radius); }

.footer-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 24px;
  padding: 72px max(48px, calc((100vw - var(--container)) / 2));
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6,21,38,0.96), rgba(9,36,65,0.96)),
    url("assets/cubes-bg.jpg") left center / cover no-repeat;
}
.footer-cta h2 { max-width: 848px; margin: 0; font-size: clamp(30px, 3.2vw, 40px); }
.footer-cta p { max-width: 848px; margin: 0; color: #dbeafe; font-size: 20px; }

.footer {
  padding: 48px 0 24px;
  background: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.3fr) repeat(3, 1fr);
  gap: 24px;
  padding: 0 48px;
}
.footer p { max-width: 361px; color: var(--muted); }
.footer h3 { margin: 0 0 16px; font: 800 16px/1.4 "Inter", sans-serif; }
.footer a:not(.brand) { display: block; margin: 10px 0; color: var(--muted); }
.socials { display: flex; gap: 16px; margin-top: 16px; }
.socials span { width: 24px; height: 24px; border-radius: 50%; background: var(--primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  padding: 24px 48px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 520ms ease, transform 520ms ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.home-hero.reveal,
.page-hero.reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .nav-link { transition: none; }
}

@media (max-width: 1180px) {
  .top-nav { grid-template-columns: auto auto 1fr; padding: 0 32px; }
  .menu-toggle { display: block; justify-self: end; order: 3; }
  .language { display: none; }
  .primary-menu {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 66px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }
  .primary-menu.open { display: flex; }
  .nav-link { justify-content: space-between; }
  .product-bar { padding: 0 32px; }
  .product-links { display: none; }
  .page-hero,
  .feature-row,
  .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-copy { order: 0; }
  .page-hero .hero-copy { text-align: center; }
  .card-grid,
  .benefit-grid,
  .pricing-grid,
  .usecase-grid { grid-template-columns: repeat(2, 1fr); }
  .leader-grid,
  .proof-grid,
  .trust-strip div { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  :root { --pad: 16px; }
  .top-nav,
  .product-bar { height: 64px; padding: 0 16px; }
  .brand-symbol { width: 34px; height: 34px; }
  .brand-text { font-size: 18px; }
  .product-name strong { font-size: 22px; }
  .download-btn { display: none; }
  .home-hero { padding: 54px 16px 36px; }
  .home-hero h1,
  .page-hero h1 { font-size: 34px; }
  .home-hero p,
  .page-hero p,
  .section-head p { font-size: 16px; line-height: 24px; }
  .home-emblem { width: 88vw; margin: 40px 0 24px; }
  .home-cta div { display: grid; gap: 14px; }
  .btn { width: 100%; min-height: 52px; font-size: 16px; }
  .page-hero { min-height: auto; padding: 56px 16px; gap: 32px; }
  .hero-visual { min-height: 330px; }
  .device-stack { min-height: 300px; }
  .chart-panel { width: 240px; height: 160px; right: 0; }
  .message-panel { width: 260px; height: 120px; left: 0; }
  .mini-panel { width: 140px; height: 100px; }
  .trust-strip { padding: 24px 16px; }
  .trust-strip div,
  .card-grid,
  .app-grid,
  .benefit-grid,
  .leader-grid,
  .proof-grid,
  .ecosystem-map,
  .pricing-grid,
  .usecase-grid,
  .used-at { grid-template-columns: 1fr; }
  .ecosystem-map article:nth-child(even) { transform: none; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .section-head { margin-bottom: 32px; }
  .feature-list { gap: 56px; }
  .feature-art { min-height: 300px; }
  .diagram { height: 300px; }
  .pipeline,
  .gateway-diagram { justify-content: flex-start; }
  .model-tabs { grid-template-columns: 1fr; }
  .model-tabs button { border-right: 0; border-bottom: 1px solid #bfd8f4; }
  .footer-cta { padding: 56px 16px; }
  .footer-grid { grid-template-columns: 1fr; padding: 0 16px; }
  .footer-bottom { flex-direction: column; padding: 24px 16px 0; }
}
