@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --mn-bg: #07080c;
  --mn-bg-soft: #0f1115;
  --mn-bg-panel: #171a20;
  --mn-bg-panel-2: #20242b;
  --mn-bg-green: #171a20;
  --mn-bg-light: #f5f6f8;
  --mn-bg-light-2: #eceef2;

  --mn-text: #f9fafc;
  --mn-text-muted: #c0c5cf;
  --mn-text-light: #171a20;
  --mn-text-light-muted: #535964;

  --mn-border: rgba(182, 188, 201, 0.16);
  --mn-border-strong: rgba(205, 210, 220, 0.26);
  --mn-border-light: rgba(95, 103, 120, 0.14);

  --mn-accent-purple: #8b909b;
  --mn-accent-green: #8b909b;
  --mn-accent-pink: #8b909b;
  --mn-accent-cyan: #a1a6b0;

  --mn-grad-primary: linear-gradient(130deg, #f4f5f7 0%, #e4e7ed 100%);
  --mn-grad-hero: radial-gradient(50% 60% at 8% 0%, rgba(160, 165, 175, 0.09), transparent 70%),
    radial-gradient(48% 60% at 94% 14%, rgba(120, 126, 138, 0.06), transparent 72%);

  --mn-radius-sm: 10px;
  --mn-radius-md: 14px;
  --mn-radius-lg: 20px;
  --mn-radius-pill: 999px;

  --mn-space-section: clamp(4.8rem, 7.8vw, 7.2rem);
  --mn-space-stack: 1.1rem;

  --mn-shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.24);
  --mn-shadow-card: 0 12px 30px rgba(0, 0, 0, 0.24);
  --mn-shadow-light: 0 10px 24px rgba(0, 0, 0, 0.1);

  --mn-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mn-speed: 230ms;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--mn-bg);
  color: var(--mn-text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.brand {
  margin-top: 0;
  font-family: "Space Grotesk", Inter, "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.2;
}

p,
li {
  line-height: 1.65;
}

a {
  color: #d4d7de;
  text-decoration: none;
  transition: color var(--mn-speed) var(--mn-ease);
}

a:hover,
a:focus-visible {
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid #a4aab5;
  outline-offset: 2px;
}

.container {
  width: min(1240px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--mn-border);
  background: rgba(8, 10, 14, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition:
    background var(--mn-speed) var(--mn-ease),
    box-shadow var(--mn-speed) var(--mn-ease),
    transform 260ms var(--mn-ease),
    opacity 220ms var(--mn-ease);
}

.site-header.is-hidden-after-second {
  transform: translateY(-115%);
  opacity: 0;
  pointer-events: none;
}

.site-header.is-scrolled {
  background: rgba(8, 10, 14, 0.97);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
}

.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.nav-home {
  gap: 1.2rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.8vw, 1.4rem);
  min-width: 0;
}

.nav-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 28% 28%, #ffffff 0 24%, #b9bec9 46%, #7e8594 100%);
  box-shadow: 0 0 8px rgba(240, 242, 247, 0.14);
}

.nav-links {
  display: flex;
  gap: 0.62rem;
  flex-wrap: wrap;
}

.nav-links-home {
  gap: 0.35rem;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(168, 174, 186, 0.24);
  background: rgba(12, 18, 29, 0.86);
  padding: 0;
  place-items: center;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #d8dde6;
  display: block;
  transition: transform 180ms var(--mn-ease), opacity 140ms var(--mn-ease);
}

.nav-toggle span + span {
  margin-top: 4px;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links a {
  font-size: 0.92rem;
  padding: 0.26rem 0.56rem;
  border-radius: var(--mn-radius-pill);
  color: var(--mn-text-muted);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #ffffff;
}

.nav-links a.is-active,
.nav-links a[aria-current="page"] {
  color: #ffffff;
  border: 1px solid var(--mn-border-strong);
  background: rgba(157, 163, 174, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: var(--mn-radius-sm);
  padding: 0.66rem 1.15rem;
  font-size: 0.94rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition:
    transform var(--mn-speed) var(--mn-ease),
    box-shadow var(--mn-speed) var(--mn-ease),
    background var(--mn-speed) var(--mn-ease),
    color var(--mn-speed) var(--mn-ease);
  will-change: transform;
}

.btn-primary {
  background: #ffffff;
  color: #11141a;
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  background: #f2f4f7;
  box-shadow: none;
}

.btn-gh {
  border-color: rgba(188, 194, 205, 0.24);
  background: rgba(20, 23, 30, 0.9);
  color: #e3e7ee;
  min-width: 122px;
}

.btn-gh strong {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
}

.btn-start {
  min-width: 106px;
}

.btn-secondary {
  border-color: var(--mn-border);
  background: rgba(26, 29, 37, 0.85);
  color: #e1e5ec;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(40, 44, 55, 0.92);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-shell {
  margin: 0;
}

.section-block {
  padding: var(--mn-space-section) 0;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 700px;
}

.section-dark {
  background: #0e1015;
  color: var(--mn-text);
}

.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--mn-grad-hero);
  opacity: 0.48;
}

.section-dark > .container {
  position: relative;
  z-index: 1;
}

.section-light {
  background: #eff1f4;
  color: var(--mn-text-light);
}

.section-emerald {
  background: #12151b;
  color: var(--mn-text);
}

.section-navy {
  background: #13161d;
  color: var(--mn-text);
}

.section-head {
  margin-bottom: clamp(1.25rem, 2.2vw, 2rem);
}

.section-head h2 {
  margin-bottom: 0.8rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.76rem;
  margin-bottom: 0.86rem;
  border-radius: var(--mn-radius-pill);
  border: 1px solid var(--mn-border-strong);
  background: rgba(141, 146, 157, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 700;
  color: #e6e9ee;
}

.eyebrow-light {
  color: #4f5664;
  border-color: rgba(90, 98, 112, 0.25);
  background: rgba(125, 131, 144, 0.14);
}

.eyebrow-emerald {
  color: #e6e9ee;
  border-color: rgba(164, 171, 184, 0.24);
  background: rgba(130, 137, 148, 0.16);
}

.muted {
  color: var(--mn-text-muted);
}

.section-light .muted,
.section-light .note,
.section-light p,
.section-light li {
  color: var(--mn-text-light-muted);
}

.hero {
  padding-top: calc(var(--mn-space-section) + 1.55rem);
  padding-bottom: clamp(3.4rem, 5vw, 4.8rem);
}

.hero-reference {
  min-height: calc(100vh - 80px);
  display: grid;
  align-items: center;
}

.hero-reference-inner {
  text-align: center;
  max-width: 850px;
}

.hero-reference-inner h1 {
  margin-left: auto;
  margin-right: auto;
  max-width: 11.5ch;
}

.hero-reference-inner .muted {
  margin-inline: auto;
  max-width: 64ch;
}

.hero-centered-cta {
  justify-content: center;
}

.hero-chip-row {
  margin-top: 2.2rem;
  display: flex;
  justify-content: center;
  gap: 0.52rem;
  flex-wrap: wrap;
}

.hero-chip {
  border-radius: 10px;
  border: 1px solid rgba(176, 181, 191, 0.22);
  background: rgba(26, 29, 36, 0.86);
  color: #e0e4eb;
  padding: 0.48rem 0.86rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: center;
}

.hero h1 {
  margin-bottom: 1rem;
  max-width: 12.2ch;
}

.hero .muted {
  font-size: 1.06rem;
  max-width: 60ch;
}

.hero-panel {
  background: linear-gradient(165deg, rgba(35, 39, 48, 0.95), rgba(21, 24, 31, 0.92));
  padding: clamp(1.2rem, 2vw, 1.6rem);
}

.hero-main .cta-row {
  margin-top: 1.35rem;
}

.hero-main {
  padding-right: clamp(0rem, 1.2vw, 0.8rem);
}

.hero-points {
  margin: 1.1rem 0 0;
  padding-left: 1rem;
}

.hero-points li {
  margin-bottom: 0.38rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  margin-top: 1.2rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

.page-grid-2,
.split-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border-radius: var(--mn-radius-md);
  border: 1px solid var(--mn-border);
  background: rgba(24, 28, 35, 0.95);
  padding: clamp(1.1rem, 1.5vw, 1.45rem);
  color: #ebedf2;
  box-shadow: var(--mn-shadow-card);
  transition:
    transform var(--mn-speed) var(--mn-ease),
    border-color var(--mn-speed) var(--mn-ease);
}

.card:hover,
.card:focus-within {
  transform: translateY(-1px);
  border-color: rgba(178, 184, 194, 0.3);
}

.card h2,
.card h3 {
  color: #ffffff;
}

.card .note {
  color: #c5cad3;
}

.section-light .card {
  border-color: var(--mn-border-light);
  background: #ffffff;
  color: var(--mn-text-light);
  box-shadow: var(--mn-shadow-light);
}

.section-light .card h2,
.section-light .card h3 {
  color: var(--mn-text-light);
}

.card-dark {
  background: rgba(20, 24, 31, 0.95);
}

.kpi-strip,
.trust-bar {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-bar {
  margin-top: 1.8rem;
}

.trust-bar p {
  margin: 0;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--mn-border);
  background: rgba(27, 31, 40, 0.88);
  border-radius: var(--mn-radius-pill);
  text-align: center;
  color: #d8dce3;
  font-size: 0.86rem;
}

.workflow {
  display: grid;
  gap: 0.74rem;
}

.workflow-item {
  display: flex;
  gap: 0.74rem;
  border-radius: var(--mn-radius-sm);
  border: 1px solid rgba(151, 158, 170, 0.22);
  background: rgba(28, 32, 39, 0.72);
  padding: 0.86rem;
}

.workflow-item span {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(127, 134, 145, 0.26);
}

.workflow-item h3 {
  margin-bottom: 0.3rem;
}

.workflow-item p {
  margin: 0;
  color: #cdd2db;
}

.code-panel {
  border-radius: var(--mn-radius-md);
  border: 1px solid rgba(164, 170, 180, 0.22);
  background: rgba(22, 26, 34, 0.9);
  padding: 1.15rem;
}

.code-panel h3 {
  color: #eef1f6;
}

code,
pre {
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;
}

pre {
  margin: 0.65rem 0 0.8rem;
  padding: 0.94rem;
  border-radius: var(--mn-radius-sm);
  border: 1px solid rgba(161, 168, 180, 0.2);
  background: rgba(16, 19, 24, 0.95);
  color: #d9dde6;
  overflow-x: auto;
}

.pricing-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.2rem, 2vw, 1.8rem);
  border-radius: var(--mn-radius-lg);
  border: 1px solid var(--mn-border);
  background: rgba(27, 31, 39, 0.92);
}

.cta-final h2 {
  max-width: 17ch;
}

.community-shell {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(0.9rem, 1.8vw, 1.5rem);
  align-items: center;
}

.community-panel {
  background: rgba(28, 33, 41, 0.92);
}

.community-panel .pill-row {
  margin-top: 0.7rem;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.signal {
  border: 1px solid var(--mn-border);
  border-radius: var(--mn-radius-md);
  padding: 0.82rem;
  background: rgba(27, 31, 40, 0.86);
}

.signal h3 {
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.signal p {
  margin: 0;
  color: #cbd0d9;
  font-size: 0.88rem;
}

.section-head-centered {
  text-align: center;
}

.serve-shell {
  max-width: 980px;
  margin: 0 auto;
}

.serve-top-tabs {
  display: inline-flex;
  gap: 0.5rem;
  border-radius: 12px 12px 0 0;
  margin-bottom: 0.78rem;
}

.serve-tab,
.serve-mode-tab {
  background: rgba(22, 26, 34, 0.86);
  color: #d3d8e1;
  border: 1px solid rgba(168, 174, 186, 0.16);
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.serve-tab.is-active,
.serve-mode-tab.is-active {
  background: rgba(126, 132, 145, 0.24);
  border-color: rgba(178, 183, 193, 0.36);
  color: #ffffff;
}

.serve-panel {
  border-radius: 14px;
  border: 1px solid rgba(167, 173, 185, 0.2);
  background: rgba(20, 24, 31, 0.95);
  padding: clamp(1rem, 2vw, 1.28rem);
}

.serve-mode-tabs {
  display: inline-flex;
  gap: 0.45rem;
  margin-bottom: 0.92rem;
}

.serve-mode-static {
  border-radius: 8px;
  border: 1px solid rgba(164, 170, 183, 0.22);
  background: rgba(26, 30, 38, 0.85);
  padding: 0.36rem 0.66rem;
  font-size: 0.84rem;
  color: #d9dde4;
}

.serve-command-panel {
  border-radius: 10px;
  border: 1px solid rgba(163, 170, 183, 0.2);
  background: rgba(16, 19, 26, 0.94);
  padding: 0.94rem;
  display: flex;
  gap: 0.78rem;
  align-items: center;
  justify-content: space-between;
}

.serve-command-text {
  margin: 0;
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;
  font-size: 0.88rem;
  color: #e2e6ed;
}

.btn-copy {
  border-color: rgba(169, 175, 188, 0.2);
  background: rgba(37, 41, 50, 0.92);
  color: #eff2f7;
  flex-shrink: 0;
}

.feature-showcase-card {
  margin-top: 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(162, 169, 182, 0.2);
  background: rgba(21, 25, 32, 0.96);
  padding: clamp(1.2rem, 2vw, 1.7rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.88fr);
  gap: 1rem;
}

.feature-checklist {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.feature-checklist li {
  margin-bottom: 0.45rem;
  color: #d2d7df;
}

.feature-showcase-visual {
  border-radius: 14px;
  border: 1px solid rgba(161, 168, 182, 0.2);
  background: rgba(16, 19, 26, 0.98);
  padding: 1rem;
}

.chat-visual {
  display: grid;
  gap: 0.6rem;
}

.chat-bubble {
  max-width: 88%;
  border-radius: 10px;
  border: 1px solid rgba(156, 164, 178, 0.2);
  background: rgba(30, 35, 45, 0.88);
  color: #e2e6ed;
  padding: 0.58rem 0.72rem;
  font-size: 0.84rem;
}

.chat-bubble-alt {
  justify-self: end;
  background: rgba(41, 45, 56, 0.86);
}

.trace-lines {
  height: 62px;
  border-radius: 10px;
  border: 1px solid rgba(145, 152, 166, 0.2);
  background:
    linear-gradient(90deg, transparent 0 42%, rgba(176, 182, 194, 0.78) 42% 58%, transparent 58% 100%),
    linear-gradient(180deg, rgba(112, 119, 132, 0.4), rgba(86, 93, 106, 0.24));
}

.memory-tag {
  width: fit-content;
  border-radius: 9px;
  border: 1px solid rgba(155, 163, 178, 0.2);
  background: rgba(39, 44, 54, 0.9);
  color: #e1e5ed;
  padding: 0.5rem 0.64rem;
  font-size: 0.8rem;
}

.feature-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  border-radius: 16px;
  border: 1px solid rgba(162, 170, 183, 0.2);
  background: rgba(21, 25, 32, 0.96);
  padding: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.55rem;
}

.feature-card-visual {
  margin-top: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(160, 167, 181, 0.2);
  min-height: 132px;
  background: rgba(23, 27, 35, 0.92);
  padding: 0.7rem;
}

.feature-card-terminal {
  display: grid;
  align-content: center;
  gap: 0.6rem;
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;
  color: #d4d9e2;
  font-size: 0.82rem;
}

.feature-card-orbit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.feature-card-orbit span {
  border-radius: 8px;
  border: 1px solid rgba(161, 167, 180, 0.24);
  background: rgba(45, 50, 60, 0.84);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: #dde2ea;
  min-height: 42px;
}

.feature-card-log {
  display: grid;
  place-items: center;
}

.feature-card-log p {
  margin: 0;
  border-radius: 8px;
  border: 1px solid rgba(160, 167, 181, 0.2);
  background: rgba(47, 52, 62, 0.9);
  color: #d8dde6;
  padding: 0.7rem;
  font-size: 0.82rem;
}

.note {
  max-width: 74ch;
}

.checklist {
  padding-left: 1.12rem;
  margin: 0;
}

.checklist li {
  margin-bottom: 0.34rem;
}

.table-shell {
  overflow-x: auto;
  border-radius: var(--mn-radius-md);
  border: 1px solid var(--mn-border-light);
  background: rgba(255, 255, 255, 0.74);
  padding: 0.55rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border: 1px solid rgba(102, 110, 124, 0.2);
  padding: 0.7rem;
  text-align: left;
  vertical-align: top;
}

.table th {
  background: #e6e9ee;
}

.page-hero h1 {
  margin-bottom: 0.75rem;
  max-width: 16ch;
}

.page-hero .muted {
  max-width: 66ch;
}

.legal-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 90px;
}

.legal-toc nav {
  display: grid;
  gap: 0.35rem;
}

.legal-toc nav a {
  color: var(--mn-text-light-muted);
  font-size: 0.92rem;
}

.legal-content h2 {
  margin-top: 1.34rem;
  margin-bottom: 0.42rem;
  font-size: 1.2rem;
  scroll-margin-top: 104px;
}

details summary {
  cursor: pointer;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--mn-border);
  background: #090b10;
  padding: 1.8rem 0 2.2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.74rem 1rem;
}

.footer-links a {
  color: #d6dae2;
}

.footer-meta {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(170, 176, 188, 0.16);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.8rem;
}

.footer-meta h3 {
  margin-bottom: 0.42rem;
  color: #ffffff;
}

.footer-meta p,
.footer-meta strong {
  color: #bcc2ce;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    transform 620ms var(--mn-ease),
    opacity 620ms var(--mn-ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal].reveal-delay-1 { transition-delay: 80ms; }
[data-reveal].reveal-delay-2 { transition-delay: 160ms; }
[data-reveal].reveal-delay-3 { transition-delay: 240ms; }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.pill {
  padding: 0.38rem 0.76rem;
  border-radius: var(--mn-radius-pill);
  font-size: 0.78rem;
  border: 1px solid var(--mn-border);
  color: #dfe3ea;
  background: rgba(36, 40, 49, 0.8);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .nav {
    min-height: 62px;
  }

  .nav-home {
    align-items: center;
    position: relative;
  }

  .nav-left {
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .nav-right {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  .nav-toggle {
    display: grid;
  }

  .site-header:not(.nav-open) .nav-links {
    display: none;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    margin: 0 auto;
    width: min(560px, 96%);
    border: 1px solid rgba(171, 177, 189, 0.24);
    background: rgba(10, 15, 25, 0.98);
    border-radius: 14px;
    padding: 0.6rem;
    box-shadow: 0 18px 42px rgba(1, 8, 22, 0.5);
    gap: 0.24rem;
    z-index: 30;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.54rem 0.6rem;
    border-radius: 9px;
  }

  .hero-layout,
  .feature-showcase-card,
  .community-shell,
  .page-grid-2,
  .split-layout,
  .grid-3,
  .kpi-strip,
  .trust-bar,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .pricing-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-toc {
    position: static;
  }

  .footer-meta {
    grid-template-columns: 1fr;
  }

  .section-dark::before {
    opacity: 0.55;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: calc(var(--mn-space-section) + 0.9rem);
    padding-bottom: 2.8rem;
  }

  .hero-reference {
    min-height: calc(84vh - 52px);
  }

  .hero h1 {
    max-width: 15ch;
    font-size: clamp(1.9rem, 9vw, 3.1rem);
  }

  .hero .muted {
    font-size: 1rem;
  }

  .btn {
    min-height: 44px;
  }

  .cta-row {
    width: 100%;
  }

  .cta-row .btn {
    flex: 1 1 220px;
  }

  .serve-command-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-card-grid {
    grid-template-columns: 1fr;
  }

  .btn-gh {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --mn-space-section: clamp(3.6rem, 11vw, 4.8rem);
  }

  .container {
    width: min(1240px, 93.5%);
  }

  .nav-links {
    width: min(420px, 96%);
  }

  .nav-right {
    gap: 0.45rem;
  }

  .nav-links a {
    font-size: 0.84rem;
    padding: 0.24rem 0.48rem;
  }

  h1 {
    font-size: clamp(1.8rem, 8.3vw, 2.45rem);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(1.45rem, 6.3vw, 2rem);
    line-height: 1.14;
  }

  .hero .cta-row .btn,
  .pricing-strip .cta-row .btn,
  .community-panel .cta-row .btn,
  .cta-final .cta-row .btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .btn-start {
    min-width: 96px;
    padding-inline: 0.84rem;
    min-height: 40px;
    font-size: 0.86rem;
  }

  .section-block {
    contain-intrinsic-size: 520px;
  }
}

@media (min-width: 1200px) and (max-width: 1460px) {
  :root {
    --mn-space-section: clamp(4.6rem, 6vw, 6.2rem);
  }

  .container {
    width: min(1160px, 91%);
  }

  .hero h1 {
    font-size: clamp(2.5rem, 4.6vw, 3.4rem);
  }
}

@media (min-width: 1461px) {
  :root {
    --mn-space-section: clamp(5.3rem, 6vw, 7rem);
  }

  .container {
    width: min(1280px, 90%);
  }
}
