:root {
  --bg: #ffffff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-2: #ffffff;
  --line: rgba(249, 115, 22, 0.14);
  --text: #0f172a;
  --muted: #64748b;
  --mint: #f97316;
  --ice: #fb923c;
  --warn: #f59e0b;
  --tech: rgba(249, 115, 22, 0.35);
  --tech-line: rgba(234, 88, 12, 0.16);
  --shadow: 0 18px 48px rgba(180, 80, 20, 0.1);
  --radius: 18px;
  --font: "Noto Sans SC", "Segoe UI", sans-serif;
  --display: "Noto Sans SC", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --nav-h: 64px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  color-scheme: light;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button,
a { font: inherit; }
button { cursor: pointer; }
button,
.btn,
.cat,
.nav-toggle {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(249, 115, 22, 0.22);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 40;
  background: var(--mint);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.bg-aurora,
.bg-grid,
.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-aurora {
  background: rgba(249, 115, 22, 0.04);
}

.bg-grid {
  display: none;
}

.bg-noise {
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='80' height='80' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.nav,
main,
.footer {
  position: relative;
  z-index: 1;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  border-bottom: 1px solid transparent;
}

.nav-scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--nav-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.logo-word {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-word strong {
  font-family: var(--display);
  letter-spacing: 0.14em;
  font-size: 13px;
}

.logo-word em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  gap: 2px;
  margin-right: auto;
}

.nav-links > a {
  color: var(--muted);
  text-decoration: none;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  font-weight: 500;
  font-size: 14px;
}

.nav-actions .btn,
.nav-sheet-actions .btn {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(249, 115, 22, 0.22);
  background: #ffffff;
  box-shadow: none;
  font-weight: 500;
}

.nav-links > a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links > a.active {
  color: var(--mint);
  background: rgba(249, 115, 22, 0.08);
}

.nav-actions .nav-cta.active,
.nav-sheet-actions .nav-cta.active,
.nav.menu-open .nav-toggle {
  color: var(--mint);
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.4);
}

.nav.menu-open .nav-toggle span {
  background: var(--mint);
}

.footer a,
.footer button {
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
}

.footer a:hover,
.footer button:hover {
  color: var(--text);
}

.nav-login {
  background: transparent !important;
}

.nav-login:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05) !important;
}

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

.btn {
  border: 1px solid rgba(249, 115, 22, 0.22);
  background: #ffffff;
  color: var(--text);
  border-radius: 10px;
  padding: 9px 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn.primary {
  color: #ffffff;
  font-weight: 700;
  background: var(--mint);
  border-color: var(--mint);
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.18);
}

.btn.ghost {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--text);
}
.btn.lg { padding: 12px 20px; min-width: 148px; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(249, 115, 22, 0.15); }
  .card:hover {
    border-color: rgba(249, 115, 22, 0.35);
    box-shadow: 0 12px 32px rgba(180, 80, 20, 0.08);
  }
  .quote:hover,
  .product:hover,
  .scenario:hover,
  .feature:hover,
  .testimonial:hover {
    transform: translateY(-3px);
  }
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(249, 115, 22, 0.22);
  background: #ffffff;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease;
}

.nav-sheet-actions,
.nav-backdrop {
  display: none;
}

.nav-lock {
  overflow: hidden;
}

.hero,
.section,
.trust,
.cta,
.footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding-top: 36px;
  padding-bottom: 12px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-pills span {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 999px;
  padding: 4px 10px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--mint);
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
}

h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  margin: 0 0 14px;
}

h1 span {
  color: var(--mint);
}

h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin: 0 0 10px;
}

.lead,
.section-head p,
.card p,
.footer-brand p {
  color: var(--muted);
}

.card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.lead {
  max-width: 540px;
  font-size: 16px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 24px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.hero-stats div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.hero-stats dt {
  color: var(--muted);
  font-size: 12px;
}

.hero-stats dd {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 24px;
}

.hero-visual {
  position: relative;
}

.hero-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(234, 88, 12, 0.12);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 16px 48px rgba(180, 80, 20, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.panel-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(234, 88, 12, 0.1);
}

.panel-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.panel-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: blink 2s ease-in-out infinite;
}

.panel-chrome code {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-family: var(--mono);
  opacity: 0.75;
}

.panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  padding: 16px 16px 10px;
}

.panel-metrics small {
  color: var(--muted);
  font-size: 11px;
}

.panel-metrics b {
  display: block;
  margin-top: 4px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
}

.spark {
  width: 108px;
  height: 32px;
  overflow: visible;
  opacity: 0.85;
}

.instance-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
}

.instance-list li {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 16px;
  border-top: 1px solid rgba(234, 88, 12, 0.08);
  transition: background 0.35s ease;
}

.instance-list strong,
.instance-list small { display: block; }

.instance-list small,
.instance-list em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.instance-list strong {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}

.state {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--mint);
  font-weight: 600;
}

.state.syncing {
  color: var(--ice);
  background: rgba(251, 146, 60, 0.1);
}

.pulse { background: rgba(249, 115, 22, 0.05); }

.panel-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid rgba(234, 88, 12, 0.1);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: blink 2s ease-in-out infinite;
}

.trust {
  padding: 28px 24px 0;
  text-align: center;
}

.trust p { color: var(--muted); margin: 0 0 8px; }

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  color: var(--muted);
  font-family: var(--display);
  letter-spacing: 0.12em;
  animation: marquee 28s linear infinite;
  padding: 10px 0 4px;
}

.section { padding: 80px 24px; }
.section + .section { padding-top: 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 28px;
}

.product-grid,
.scenario-grid,
.quote-grid,
.bento {
  display: grid;
  gap: 16px;
}

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

.bento {
  grid-template-columns: 1.15fr 1fr;
}

.feature-lg { grid-row: span 3; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  min-height: 100%;
  box-shadow: 0 2px 12px rgba(180, 80, 20, 0.04);
}

.product,
.scenario {
  display: flex;
  flex-direction: column;
}

.card-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.card-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.16);
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--mint);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tag {
  width: fit-content;
  font-size: 12px;
  color: var(--ice);
  border: 1px solid rgba(251, 146, 60, 0.25);
  background: rgba(251, 146, 60, 0.06);
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 500;
}

.card h3 {
  margin: 0;
  font-size: 18px;
}

.card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product ul,
.scenario ul {
  margin-top: auto;
}

.card li {
  font-size: 12px;
  color: var(--mint);
  background: rgba(249, 115, 22, 0.08);
  border-radius: 999px;
  padding: 4px 8px;
}

.feature .index,
.scenario .index {
  color: var(--muted);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.feature .index {
  font-size: 15px;
}

.scenario h3 {
  margin: 8px 0 8px;
}

.bars {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.bars span {
  height: 8px;
  width: var(--w);
  border-radius: 99px;
  background: var(--mint);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: none;
}

.steps li {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

@media (min-width: 981px) {
  .steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 34px;
    right: -10px;
    width: 20px;
    height: 1px;
    background: var(--mint);
  }
}

.steps b {
  font-family: var(--display);
  color: var(--mint);
}

.steps h3 { margin: 10px 0 8px; }

.pricing-shell {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.price-cats {
  display: grid;
  gap: 4px;
  position: sticky;
  top: 80px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cat {
  text-align: left;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease;
}

  .cat:hover {
  background: rgba(249, 115, 22, 0.06);
}

.cat strong {
  grid-column: 1;
  font-size: 14px;
}

.cat span {
  grid-column: 1;
  color: var(--muted);
  font-size: 12px;
}

.cat em {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-style: normal;
  font-family: var(--display);
  color: var(--muted);
  font-size: 16px;
}

.cat.active {
  color: var(--mint);
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.4);
}

.cat.active span,
.cat.active em {
  color: var(--mint);
}

.empty-cat {
  grid-column: 1 / -1;
  color: var(--muted);
  margin: 12px 0;
}

.pricing-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pricing-layout.cols-2,
.pricing-layout.cols-3 {
  grid-template-columns: 1fr 1fr;
}

.quote {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 16px;
}

.quote.featured:not(.active) {
  border-color: rgba(249, 115, 22, 0.28);
}

.quote.active {
  box-shadow: none;
}

.hot {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: var(--mint);
  border-radius: 999px;
  padding: 2px 8px;
  vertical-align: middle;
}

.quote header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.quote .eyebrow {
  margin: 0 0 6px;
  color: #000000;
}

.quote h3 {
  font-size: 18px;
}

.quote h3 a {
  color: inherit;
  text-decoration: none;
}

.quote h3 a:hover {
  color: var(--mint);
}

.quote-extra {
  margin: 6px 0 0;
  color: #000000;
  font-size: 12px;
}

.price { margin: 0; text-align: right; }

.price b {
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 30px);
  color: #000000;
}

.price small {
  color: #000000;
  margin-left: 4px;
  font-size: 12px;
}

.price em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  color: #000000;
  font-size: 12px;
  font-weight: 400;
}

.quote.active .price em {
  color: #000000;
}

.spec {
  list-style: none;
  padding: 0;
  margin: 16px 0 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.spec li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  color: var(--muted);
  background: none;
  border-radius: 0;
  font-size: 12px;
}

.spec strong { color: var(--text); }

.includes {
  margin: 0 0 auto !important;
  padding-bottom: 14px;
}

.includes li {
  color: var(--muted) !important;
  background: none !important;
  padding-left: 0 !important;
}

.includes li::before {
  content: "✓ ";
  color: var(--mint);
}

.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.quote-actions .btn {
  flex: 1 1 0;
  min-width: 0;
}

.quotes-wrap blockquote p {
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 18px;
}

.quotes-wrap footer {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.testimonial footer b {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: var(--display);
  font-size: 13px;
  color: var(--mint);
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.testimonial footer div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.testimonial footer strong {
  color: var(--text);
  font-weight: 600;
}

.cta { padding: 56px 24px 20px; }

.cta-inner {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 40px;
  background: rgba(255, 255, 255, 0.94);
}

.cta-inner .hero-cta { margin-bottom: 0; }

.footer { padding: 40px 24px 24px; }

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.footer-brand { max-width: 280px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand .status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 140px);
  gap: 24px;
}

.footer h4 { margin: 0 0 10px; }

.footer-cols div {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  padding-top: 18px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  max-width: min(420px, calc(100% - 32px));
  background: rgba(255, 255, 255, 0.94);
  color: var(--mint);
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(8px);
}

.toast.show {
  animation: toast-in 0.28s ease forwards;
}

.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(180, 80, 20, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100% - 32px));
  margin: 12vh auto 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.modal-card h2 { margin: 0 0 8px; }
.modal-card p { margin: 0 0 18px; color: var(--muted); }

.modal-card label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.modal-card input {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 12px;
  padding: 11px 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.in {
  animation: fadeup 0.7s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeup {
  to { opacity: 1; transform: none; }
}

@keyframes aurora {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2%, 1.5%) scale(1.04); }
}

@keyframes blink {
  50% { opacity: 0.45; }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes toast-in {
  to { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
  .panel-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .spark {
    display: none;
  }
}

@media (max-width: 980px) {
  body {
    line-height: 1.5;
  }

  .nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: var(--line);
    padding-top: env(safe-area-inset-top, 0px);
  }

  .nav-inner {
    position: relative;
    padding: 6px 14px;
    gap: 8px;
    min-height: 48px;
  }

  .logo {
    margin-right: auto;
    margin-left: 0;
  }

  .nav-actions .nav-login {
    display: inline-flex;
    padding: 6px 10px;
    min-width: 0;
    font-size: 12px;
  }

  .nav-actions .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: calc(48px + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px 14px 16px;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.96);
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 20px 20px;
    max-height: calc(100dvh - 48px - env(safe-area-inset-top, 0px));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-links > a {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
  }

  .nav-links > a.active {
    color: var(--mint);
    background: rgba(249, 115, 22, 0.12);
    border-color: rgba(249, 115, 22, 0.55);
  }

  .nav-sheet-actions {
    display: grid;
    gap: 10px;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .nav-sheet-actions .btn {
    width: 100%;
    min-height: 46px;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 19;
    background: rgba(180, 80, 20, 0.28);
  }

  .nav-backdrop[hidden] {
    display: none;
  }

  html {
    scroll-padding-top: 60px;
  }

  .hero,
  .section,
  .trust,
  .cta,
  .footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero,
  .pricing-shell,
  .product-grid,
  .scenario-grid,
  .quote-grid,
  .bento,
  .steps {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 36px;
  }

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

  .section-head p {
    font-size: 13px;
  }

  .hero {
    gap: 0;
    padding-top: 12px;
    padding-bottom: 4px;
    grid-template-columns: 1fr;
  }

  .hero-pills {
    gap: 6px;
    margin-bottom: 8px;
  }

  .hero-pills span {
    font-size: 11px;
    padding: 2px 8px;
  }

  .eyebrow {
    margin-bottom: 6px;
    letter-spacing: 0.1em;
    font-size: 11px;
  }

  h1 {
    font-size: clamp(26px, 7.2vw, 32px);
    margin: 0 0 8px;
  }

  h2 {
    font-size: clamp(20px, 5.4vw, 26px);
    margin: 0 0 6px;
  }

  .card h3,
  .quote h3 {
    font-size: 16px;
  }

  .lead {
    font-size: 13px;
    line-height: 1.55;
  }

  .hero-cta {
    margin: 12px 0 0;
    gap: 8px;
  }

  .btn {
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
  }

  .btn.lg {
    padding: 8px 12px;
    min-width: 0;
  }

  .hero-cta .btn.lg {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }

  .hero-stats,
  .hero-visual {
    display: none;
  }

  .trust {
    padding-top: 16px;
  }

  .trust p {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .marquee-track {
    gap: 28px;
    font-size: 12px;
    padding: 4px 0;
  }

  .price-cats {
    position: static;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding: 6px;
    margin-bottom: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .price-cats::-webkit-scrollbar {
    display: none;
  }

  .cat {
    flex: 0 0 auto;
    width: auto;
    min-width: 118px;
    padding: 8px 10px;
    border-radius: 10px;
  }

  .cat strong {
    font-size: 12px;
  }

  .cat span {
    display: none;
  }

  .cat em {
    font-size: 13px;
  }

  .pricing-shell {
    gap: 8px;
  }

  .pricing-layout,
  .pricing-layout.cols-2,
  .pricing-layout.cols-3 {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .feature-lg { grid-row: auto; }

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

  .quote {
    padding: 12px;
    border-radius: 14px;
  }

  .quote header {
    flex-direction: column;
    gap: 4px;
  }

  .price {
    text-align: left;
  }

  .price b {
    font-size: 20px;
  }

  .price em {
    display: none;
  }

  .quote .includes {
    display: none;
  }

  .spec {
    margin: 8px 0 6px;
    gap: 4px 10px;
  }

  .spec li:nth-child(n + 7) {
    display: none;
  }

  .quote-actions {
    flex-direction: row;
    gap: 6px;
  }

  .quote-actions .btn {
    width: auto;
    flex: 1 1 0;
    padding: 6px 8px;
    font-size: 12px;
  }

  .card {
    padding: 14px;
    border-radius: 14px;
  }

  .product-grid,
  .scenario-grid,
  .steps,
  .bento,
  .quote-grid {
    gap: 10px;
  }

  .footer-bottom { flex-direction: column; align-items: stretch; gap: 8px; }

  .footer-top {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding-bottom: 20px;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    width: 100%;
  }

  .footer-cols h4 {
    font-size: 13px;
  }

  .footer-cols a,
  .footer-cols button {
    font-size: 12px;
  }

  .hot {
    margin-left: 4px;
    font-size: 10px;
    padding: 1px 6px;
  }

  .cta { padding: 32px 14px 12px; }
  .cta-inner { padding: 18px; border-radius: 18px; }
  .toast {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    font-size: 13px;
    padding: 10px 12px;
  }

  .steps li {
    padding: 14px;
  }

  .quotes-wrap blockquote p {
    font-size: 15px;
  }
}

@media (max-width: 560px) {
  .nav-inner {
    padding: 6px 12px;
    min-height: 48px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .nav-links {
    top: calc(48px + env(safe-area-inset-top, 0px));
    max-height: calc(100dvh - 48px - env(safe-area-inset-top, 0px));
  }

  .nav-links > a {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .hero-pills {
    display: none;
  }

  h1 {
    font-size: clamp(24px, 7vw, 28px);
  }

  .lead {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-cta .btn.lg,
  .btn.lg {
    width: auto;
    flex: 1 1 calc(50% - 8px);
  }

  .spec,
  .pricing-layout,
  .pricing-layout.cols-2,
  .pricing-layout.cols-3 {
    grid-template-columns: 1fr 1fr;
  }

  .instance-list li {
    grid-template-columns: 1fr auto;
  }

  .instance-list em { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover,
  .card:hover,
  .quote:hover,
  .product:hover,
  .scenario:hover,
  .feature:hover,
  .testimonial:hover { transform: none; }
  .bg-aurora,
  .marquee-track,
  .dot,
  .panel-live i,
  .reveal,
  .reveal.in,
  .toast.show,
  .nav-links {
    animation: none;
    transition: none;
  }
  .reveal { opacity: 1; transform: none; }
}
