/* ── Shared CSS for NoFlattery landing page ── */
/* Language-specific values set via CSS custom properties in each HTML file:
   --mockup-header: "DECISION RECORD" | "KẾT LUẬN" | "CONCLUSIÓN"
   --pricing-badge: "MOST POPULAR" | "PHỔ BIẾN NHẤT" */

:root {
  --bg: #09090b;
  --surface: #18181b;
  --surface-hover: #27272a;
  --border: #27272a;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --accent: #7C3AED;
  --accent-hover: #6D28D9;
  --kicker: #a1a1aa;
  --success: #22c55e;
  --warning: #eab308;
  --danger: #f43f5e;
  --agent-analyst: #A78BFA;
  --agent-strategist: #60A5FA;
  --agent-humanist: #22D3EE;
  --agent-integrator: #34D399;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 {
  line-height: 1.3;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 65ch;
  line-height: 1.7;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--kicker);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
  margin-top: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -4px rgba(124, 58, 237, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--text-muted);
}

.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 0;
  transition: background 0.2s, border-color 0.2s;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  width: 28px;
  height: 28px;
  background: url('/favicon-32x32.png') center / cover no-repeat;
  border-radius: 6px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

.brand {
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.navlinks {
  margin-left: 1rem;
}

.navlinks a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.navlinks a:hover {
  color: var(--text);
}

/* ── Lang switcher ── */
.lang-switch {
  margin-left: auto;
  margin-right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-mono);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  user-select: none;
  position: relative;
  white-space: nowrap;
}

.lang-switch:hover,
.lang-switch.open {
  color: var(--text);
  border-color: var(--text-muted);
}

.lang-switch .chevron {
  font-size: 0.6rem;
  margin-left: 1px;
  transition: transform 0.2s;
}

.lang-switch.open .chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  min-width: 52px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.lang-switch.open .lang-dropdown {
  display: block;
}

.lang-dropdown a {
  display: block;
  margin: 0 !important;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.lang-dropdown a:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.lang-dropdown a.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.lang-label {
  display: none;
}

.hero {
  padding: 8rem 0 3rem;
  text-align: center;
}

.hero p {
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-secondary {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.hero-secondary:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  background: var(--surface);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.trust-badge svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.mockup-record {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 480px;
  width: 100%;
  margin: 3rem auto 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: left;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.mockup-record::before {
  content: var(--mockup-header);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--border);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 6px 12px;
  letter-spacing: 0.05em;
}

.mockup-record .content {
  margin-top: 20px;
}

.mockup-record .verdict {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.mockup-record .meta {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 0.8rem;
}

.mockup-record .divider {
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

.mockup-record .next-step {
  color: var(--text);
  line-height: 1.5;
}

.mockup-record .next-step strong {
  color: var(--accent);
}

section {
  padding: 2.5rem 0;
}

.sec {
  margin-bottom: 3rem;
}

.steps,
.uc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.2s, border-color 0.2s;
}

.step:hover {
  transform: translateY(-2px);
  border-color: var(--text-muted);
}

.step-num {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.usecases {
  background: var(--bg);
}

.usecase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.usecase:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.usecase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.04), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.usecase:hover::before {
  opacity: 1;
}

.usecase h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-weight: 600;
}

.usecase p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 100%;
}

.usecase p em {
  color: var(--text);
  font-style: normal;
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
}

.provider-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
}

.provider-bar span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.provider-logo {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.provider-logo:hover {
  opacity: 1;
  color: var(--text);
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.agent-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.agent-card:hover {
  transform: translateY(-2px);
  border-color: var(--text-muted);
}

.agent-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
}

.agent-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.agent-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 100%;
  line-height: 1.55;
}

.agent-analyst .agent-icon {
  background: color-mix(in srgb, var(--agent-analyst) 15%, transparent);
}

.agent-analyst h4 {
  color: var(--agent-analyst);
}

.agent-strategist .agent-icon {
  background: color-mix(in srgb, var(--agent-strategist) 15%, transparent);
}

.agent-strategist h4 {
  color: var(--agent-strategist);
}

.agent-humanist .agent-icon {
  background: color-mix(in srgb, var(--agent-humanist) 15%, transparent);
}

.agent-humanist h4 {
  color: var(--agent-humanist);
}

.agent-integrator .agent-icon {
  background: color-mix(in srgb, var(--agent-integrator) 15%, transparent);
}

.agent-integrator h4 {
  color: var(--agent-integrator);
}

.social-proof {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  background: var(--surface);
}

.social-proof > .wrap > .reveal > p:first-child {
  margin: 0 auto 1.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.social-proof .quote {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  background: transparent;
  border-left: 3px solid var(--accent);
  border-radius: 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.social-proof .quote p {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}

.social-proof .quote p.attribution {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.metrics {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.metric {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
}

.metric span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
  text-transform: none;
  letter-spacing: 0;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.why-card {
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.why-card.bad {
  background: color-mix(in srgb, var(--danger) 5%, transparent);
  border-color: color-mix(in srgb, var(--danger) 20%, transparent);
}

.why-card.good {
  background: color-mix(in srgb, var(--success) 5%, transparent);
  border-color: color-mix(in srgb, var(--success) 20%, transparent);
}

.why-card h3 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.why-card.bad h3 {
  color: var(--danger);
}

.why-card.good h3 {
  color: var(--success);
}

.why-card p {
  font-size: 0.95rem;
  max-width: 100%;
}

#pricing .trust-badge {
  margin-bottom: 2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 30px -10px rgba(124, 58, 237, 0.2);
}

.price-card.featured::before {
  content: var(--pricing-badge);
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.price-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  margin: 1rem 0;
}

.price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.features {
  list-style: none;
  margin: 1.5rem 0;
}

.features li {
  padding: 0.5rem 0;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.features li svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq summary {
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .pm {
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq details[open] summary .pm {
  transform: rotate(45deg);
}

.faq p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  max-width: 100%;
}

.final {
  text-align: center;
  padding: 2.5rem 0;
}

.final .inner {
  max-width: 600px;
  margin: 0 auto;
}

.final h2 {
  margin-bottom: 1rem;
}

.final p {
  margin: 0 auto 2rem;
}

footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.navlinks a {
  margin-left: 0;
  margin-right: 1.5rem;
}

.foot-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.foot-trust a {
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.foot-trust a:hover {
  color: var(--text);
}

.foot-trust a svg {
  width: 14px;
  height: 14px;
}

.made b {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 40;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.to-top:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

/* ─── Hamburger toggle (hidden on desktop) ─── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
  line-height: 0;
}

/* ─── Laptop (MacBook Air 13" — 1280×800) ─── */
@media (max-height: 900px) {
  .hero {
    padding: 7rem 0 4rem;
  }
}

/* ─── Mobile (≤768px) ─── */
@media (max-width: 768px) {
  .wrap {
    padding: 0 16px;
  }

  /* Nav: hamburger + collapsible links — scoped to header nav only */
  .nav-toggle {
    display: block;
  }

  nav .navlinks {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 16px;
    flex-direction: column;
    gap: 0;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  }

  nav .navlinks.open {
    display: flex;
  }

  nav .navlinks>a {
    margin: 0;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
  }

  nav .navlinks>a:last-of-type {
    border-bottom: none;
  }

  .nav-inner {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .nav-inner .btn[style] {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.8rem !important;
  }

  nav {
    padding: 0.75rem 0;
  }

  /* Footer links — stack vertically, not hidden */
  footer .navlinks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  footer .navlinks a {
    margin: 0;
    font-size: 0.8rem;
  }

  footer .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  footer .foot-trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* Hero */
  .hero {
    padding: 5rem 0 1.5rem;
  }

  h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .hero p {
    margin-bottom: 1.25rem;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }

  .hero-actions .btn {
    width: auto;
    max-width: 260px;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
  }

  .hero-secondary {
    padding: 0.4rem 0;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .final h2 br {
    display: none;
  }

  /* Trust badge + mockup */
  .trust-badge {
    font-size: 0.65rem;
    padding: 0.35rem 0.6rem;
    margin-top: 1rem;
  }

  .mockup-record {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    margin-top: 0;
  }

  .mockup-record .verdict {
    font-size: 0.8rem;
  }

  .mockup-record .meta {
    font-size: 0.7rem;
  }

  .mockup-record .next-step {
    font-size: 0.7rem;
  }

  .mockup-record::before {
    font-size: 0.6rem;
    padding: 4px 8px;
  }

  .mockup-record .content {
    margin-top: 14px;
  }

  /* Provider bar */
  .provider-bar {
    gap: 0.75rem;
    padding: 1rem 0;
    font-size: 0.7rem;
  }

  .provider-logo {
    font-size: 0.75rem;
  }

  /* Demo placeholder — override inline padding */
  [style*="padding: 4rem"] {
    padding: 2rem 1rem !important;
  }

  /* Sections */
  section {
    padding: 3rem 0;
  }

  .sec {
    margin-bottom: 1.5rem;
  }

  /* Steps grid → single column (HTML class: .steps) */
  .steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .step {
    padding: 1.25rem;
  }

  /* Agents grid → 2 columns (HTML class: .agent-grid) */
  .agent-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .agent-card {
    padding: 1rem;
  }

  .agent-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  /* Use cases → single column (HTML class: .uc-grid) */
  .uc-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .usecase {
    padding: 1.25rem;
  }

  /* Social proof */
  .metrics {
    gap: 2rem;
  }

  .metric {
    font-size: 1.25rem;
  }

  /* Why cards → stack */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .why-card {
    padding: 1.25rem;
  }

  .why-card p {
    font-size: 0.9rem;
  }

  /* Pricing → stack */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
  }

  .price-card {
    padding: 1.5rem;
  }

  .price {
    font-size: 1.75rem;
  }

  .features li {
    font-size: 0.85rem;
  }

  /* FAQ */
  .faq summary {
    font-size: 0.9rem;
  }

  /* Final CTA */
  .final {
    padding: 3rem 0;
  }

  .final .inner {
    padding: 0 8px;
  }

  .final .hero-actions {
    flex-direction: column;
  }

  /* Footer */
  footer {
    padding: 2rem 0;
  }

  /* Back to top */
  .to-top {
    bottom: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
  }
}

/* ─── Small phones (≤400px) ─── */
@media (max-width: 400px) {
  h1 {
    font-size: 1.5rem;
  }

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

  .hero {
    padding: 5rem 0 2rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* ─── Metrics bar ─── */
.metrics-bar {
  padding: 3rem 0;
}

.metrics-bar .wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.metrics-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.metric {
  text-align: center;
  min-width: 140px;
}

.metric-num {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .metrics-grid {
    gap: 2rem;
  }

  .metric-num {
    font-size: 2rem;
  }
}