:root {
  --bg: #0b0b0f;
  --panel: #0e0e14;
  --panel-hover: #12121a;
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.14);
  --text: #f5f7fb;
  --text-muted: #9aa1ad;
  --text-dim: #717988;
  --accent: #38bdf8;
  --accent-hover: #60a5fa;
  --accent-subtle: rgba(56, 189, 248, 0.12);
  --max: 1230px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

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

img, svg {
  display: block;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #0b0b0f;
  pointer-events: none;
}

.edge-dots {
  position: fixed;
  top: 12px;
  bottom: 12px;
  width: 13px;
  z-index: 40;
  pointer-events: none;
  opacity: .45;
  transition: opacity .45s ease;
}

.edge-dots-left {
  left: 17px;
  background-image: radial-gradient(circle, rgba(132, 214, 244, .75) 1.5px, transparent 1.8px);
  background-size: 13px 16px;
}

.edge-dots-right {
  right: 17px;
  background-image: radial-gradient(circle, rgba(132, 214, 244, .75) 1.5px, transparent 1.8px);
  background-size: 13px 16px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1500;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #38bdf8, #60a5fa, #a855f7);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
  will-change: transform;
}

.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease;
}

.nav-wrapper.nav-scrolled {
  background: rgba(11, 11, 15, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.navbar {
  height: 72px;
  width: min(calc(100% - 40px), var(--max));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  white-space: nowrap;
}

.brand-name {
  color: #f5f5f7;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s ease;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

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

.nav-discord {
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 12px;
  transition: color .2s ease;
}

.nav-discord:hover {
  color: #fff;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #040914;
  border-radius: 9px;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 18px;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.2);
  transition: transform .2s ease, background .2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.nav-cta span {
  font-size: 15px;
  line-height: 1;
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.hero-section {
  height: min(790px, 100vh);
  min-height: 660px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #08080b;
  will-change: transform;
  transition: transform .08s linear;
}

.hero-video {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  filter: blur(10px) saturate(.72) brightness(.42);
  transform: scale(1.075);
  opacity: .78;
  will-change: transform;
}

.hero-video-blur {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 8, 11, .58) 0%, rgba(8, 8, 11, .24) 45%, rgba(8, 8, 11, .52) 100%),
              radial-gradient(ellipse at 55% 45%, transparent 0%, rgba(8, 8, 11, .5) 72%, rgba(8, 8, 11, .78) 100%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 8, 11, .7) 0%, rgba(8, 8, 11, .1) 35%, rgba(8, 8, 11, .78) 100%);
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(1080px, calc(100% - 40px));
  text-align: center;
  margin: 35px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform, opacity;
  transition: transform .08s linear, opacity .15s linear;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 20px;
}

.hero-title {
  max-width: 980px;
  font-size: clamp(48px, 5.1vw, 78px);
  line-height: 1.04;
  letter-spacing: -.06em;
  font-weight: 800;
  color: #fafafa;
  text-wrap: balance;
}

.hero-accent {
  display: inline-block;
  background: linear-gradient(90deg, #36a8ff 0%, #43d7ff 42%, #b26dff 72%, #36a8ff 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heroAccentShift 7s linear infinite;
}

@keyframes heroAccentShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-subtitle {
  max-width: 720px;
  margin: 28px auto 0;
  font-size: 18px;
  line-height: 1.6;
  color: #c0c1ca;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-primary {
  min-width: 190px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 9px;
  background: var(--accent);
  color: #040914;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(56, 189, 248, .2);
  transition: transform .2s ease, background .2s ease;
}

.hero-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.hero-secondary {
  min-width: 190px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 9px;
  background: rgba(7, 8, 11, .28);
  border: 1px solid rgba(140, 170, 195, .35);
  font-size: 15px;
  font-weight: 600;
  color: #d8d9df;
  transition: all .2s ease;
}

.hero-secondary:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(120, 205, 255, .55);
  color: #fff;
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  background: linear-gradient(transparent, #0b0b0f);
  z-index: 2;
  pointer-events: none;
}

.compatibility-strip {
  position: relative;
  z-index: 5;
  border: 0;
  padding: 26px 0 44px;
  background: #0b0b0f;
  overflow: hidden;
}

.strip-label {
  text-align: left;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto 16px;
  color: #777987;
  font-size: 13px;
  letter-spacing: .02em;
}

.compatibility-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.compatibility-track {
  display: flex;
  width: max-content;
  animation: compatScroll 30s linear infinite;
}

.compatibility-track span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 42px;
  padding: 0 25px;
  color: #9295a2;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
  border-right: 1px solid rgba(255, 255, 255, .07);
}

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

.astro-section, .impact-section, .metrics-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.section-heading {
  max-width: 860px;
  margin: 0 auto 60px;
  text-align: center;
}

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

.section-heading h2 {
  font-size: clamp(36px, 4.2vw, 58px);
  font-weight: 800;
  letter-spacing: -.055em;
  color: #fafafa;
  line-height: 1.1;
}

.section-heading > p:last-child {
  font-size: 17px;
  color: #a1a6b3;
  margin-top: 18px;
  line-height: 1.6;
}

.astro-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, .025);
  border-radius: 16px;
  overflow: hidden;
}

.astro-feature {
  background: #0d0d12;
  padding: 34px 28px 38px;
  min-height: 270px;
  transition: background .2s ease;
}

.astro-feature:hover {
  background: #111118;
}

.feature-number {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 44px;
}

.astro-feature h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #f1f4f9;
}

.astro-feature p {
  font-size: 14px;
  line-height: 1.7;
  color: #8f919c;
}

.detection-heading {
  margin-top: 100px;
  margin-bottom: 48px;
}

.detection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, .025);
  border-radius: 16px;
  overflow: hidden;
}

.detection-card {
  background: #0d0d12;
  padding: 34px 28px 38px;
  min-height: 260px;
  transition: background .2s ease;
}

.detection-card:hover {
  background: #111118;
}

.detection-card .feature-number {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 44px;
}

.detection-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #f1f4f9;
}

.detection-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #8f919c;
}

.impact-section {
  background: #0a0a0f;
  border-top: 1px solid rgba(255, 255, 255, .05);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.impact-item {
  min-height: 140px;
  padding: 28px 22px;
  background: rgba(8, 8, 13, .74);
  border-radius: 8px;
  text-align: center;
}

.impact-item span {
  font-size: 24px;
  color: var(--accent);
  font-weight: 700;
}

.impact-item h3 {
  font-size: 14px;
  font-weight: 500;
  margin-top: 26px;
  color: #e1e1e6;
}

.metrics-section {
  background: #0b0b10;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  text-align: left;
  padding: 32px 28px 24px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  font-size: 40px;
  letter-spacing: -.055em;
  font-weight: 800;
  color: var(--accent);
}

.metric span {
  display: block;
  font-size: 12px;
  color: #d0d1d8;
  margin-top: 8px;
}

.pricing-section {
  background: #0a0a0f;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  background: #0e0e14;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.pricing-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.pricing-card.popular {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 45px rgba(56, 189, 248, 0.08);
}

.starter-badge, .popular-badge, .pro-badge, .custom-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  margin-bottom: 18px;
}

.starter-badge { color: #7dd3fc; }
.popular-badge { color: #38bdf8; }
.pro-badge { color: #a78bfa; }
.custom-badge { color: #c084fc; }

.pricing-header {
  margin-bottom: 16px;
}

.plan-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.plan-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: #fff;
}

.plan-pill-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #8c94a4;
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.03);
}

.plan-pill-tag.pop {
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.35);
  background: var(--accent-subtle);
}

.plan-pill-tag.pro {
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.35);
}

.plan-pill-tag.ent {
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.35);
}

.plan-desc {
  font-size: 13px;
  color: #8c94a4;
  margin-top: 8px;
  line-height: 1.5;
}

.plan-price {
  display: flex;
  align-items: baseline;
  margin-top: 20px;
}

.price-currency {
  font-size: 16px;
  font-weight: 600;
  color: #9aa1b0;
}

.price-val {
  font-size: 46px;
  letter-spacing: -.06em;
  font-weight: 800;
  color: #fff;
  margin-left: 2px;
}

.price-period {
  font-size: 12px;
  color: #717988;
  margin-left: 6px;
}

.plan-billing-note {
  font-size: 11px;
  color: #636c7c;
  margin-top: 4px;
}

.plan-divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 24px;
}

.plan-feature {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 11px;
  height: 11px;
}

.feature-text {
  font-size: 13px;
  color: #9aa1ad;
  line-height: 1.5;
}

.feature-text strong {
  color: #f1f4f9;
}

.plan-cta {
  margin-top: auto;
  padding-top: 10px;
}

.btn-plan {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all .2s ease;
  box-sizing: border-box;
}

.btn-plan:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.btn-plan-popular {
  background: var(--accent);
  color: #040914;
  border-color: var(--accent);
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
}

.btn-plan-popular:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #040914;
}

.faq-section {
  background: #0b0b10;
}

.faq-container {
  width: min(920px, 100%);
  margin: 0 auto;
}

.faq-item {
  background: #f0f0f1;
  border-radius: 12px;
  margin-bottom: 12px;
  color: #141722;
  overflow: hidden;
  transition: background .2s ease;
}

.faq-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #18202b;
  cursor: pointer;
  gap: 16px;
}

.faq-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  stroke: #1c2b3b;
  transition: transform .25s ease;
  flex-shrink: 0;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  color: #303744;
  font-size: 14.5px;
  line-height: 1.7;
  padding: 0 24px;
  transition: max-height .3s ease, padding .3s ease;
}

.faq-item.active .faq-content {
  max-height: 300px;
  padding: 0 24px 22px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.final-cta {
  background: #0b0b10;
  padding: 40px 0 120px;
}

.cta-inner {
  border-radius: 16px;
  text-align: center;
  padding: 90px 24px;
  background: radial-gradient(circle at 50% 0, rgba(56, 189, 248, 0.12), transparent 48%), #0d0d13;
  border: 1px solid var(--line);
}

.cta-inner h2 {
  font-size: clamp(34px, 4.5vw, 56px);
  letter-spacing: -.06em;
  line-height: 1.1;
  font-weight: 800;
  color: #fafafa;
}

.cta-inner > p:not(.eyebrow) {
  max-width: 580px;
  margin: 18px auto 0;
  color: #8c94a4;
  font-size: 16px;
  line-height: 1.6;
}

.page-hero {
  padding-top: 150px;
  padding-bottom: 50px;
  text-align: center;
  position: relative;
}

.page-hero h1 {
  font-size: clamp(38px, 4.5vw, 58px);
  font-weight: 800;
  letter-spacing: -.05em;
  color: #fafafa;
  margin-top: 14px;
  margin-bottom: 18px;
  line-height: 1.1;
}

.page-hero p {
  font-size: 16.5px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

.subpage-section {
  padding: 20px 0 100px;
}

.subpage-container {
  max-width: 920px;
}

.doc-card {
  background: #0e0e14;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 32px;
  margin-bottom: 24px;
}

.doc-card h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: #f1f4f9;
  margin-bottom: 14px;
}

.doc-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: #e2e8f0;
  margin: 20px 0 10px;
}

.doc-card p {
  font-size: 14.5px;
  line-height: 1.75;
  color: #8f96a3;
  margin-bottom: 14px;
}

.doc-card p:last-child {
  margin-bottom: 0;
}

.doc-card ul, .doc-card ol {
  margin: 14px 0 16px 22px;
  color: #8f96a3;
  line-height: 1.8;
  font-size: 14px;
}

.doc-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #7dd3fc;
}

.code-block {
  background: #07080c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 18px 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  color: #7dd3fc;
  line-height: 1.6;
  overflow-x: auto;
  margin: 16px 0;
  white-space: pre;
}

.subpage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.subpage-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.subpage-grid .doc-card {
  margin-bottom: 0;
  padding: 28px 24px;
}

.site-footer {
  padding: 0;
  background: #080a0e;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.reference-footer-inner {
  min-height: 124px;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  align-items: center;
  gap: 30px;
}

.reference-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #8992a2;
  font-size: 16px;
  font-weight: 600;
  width: max-content;
}

.reference-footer-logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}

.reference-footer-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.reference-footer-tagline {
  text-align: center;
  color: #7e8796;
  font-size: 13px;
}

.reference-footer-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  color: #7e8796;
  font-size: 13px;
  flex-wrap: wrap;
}

.reference-footer-links a {
  transition: color .2s ease;
}

.reference-footer-links a:hover {
  color: #fff;
}

.reference-footer-links span {
  color: #515966;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
  will-change: opacity, transform;
}

.reveal.slide-left {
  transform: translate3d(-32px, 0, 0);
}

.reveal.slide-right {
  transform: translate3d(32px, 0, 0);
}

.reveal.slide-scale {
  transform: translate3d(0, 24px, 0) scale(.97);
}

.reveal.reveal-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

@media (max-width: 900px) {
  .edge-dots {
    display: none !important;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-discord {
    display: none;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 20px;
    right: 20px;
    padding: 18px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: rgba(11, 11, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-link {
    font-size: 15px;
    padding: 6px 0;
    width: 100%;
  }
  .astro-feature-grid, .detection-grid, .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    margin: 0 auto;
  }
  .reveal.slide-left,
  .reveal.slide-right {
    transform: translate3d(0, 24px, 0) !important;
  }
  .reference-footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 32px 0;
    gap: 18px;
    text-align: center;
  }
  .reference-footer-links {
    justify-content: center;
  }
  .subpage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 36px), var(--max));
    margin-left: auto;
    margin-right: auto;
  }
  .navbar {
    width: min(calc(100% - 36px), var(--max));
    margin-left: auto;
    margin-right: auto;
  }
  .hero-section {
    min-height: 620px;
  }
  .hero-title {
    font-size: 38px;
  }
  .hero-subtitle {
    font-size: 15px;
    margin-top: 20px;
  }
  .hero-buttons {
    width: 100%;
    gap: 12px;
  }
  .hero-primary, .hero-secondary {
    min-width: 140px;
    padding: 14px 20px;
    font-size: 14px;
    width: 100%;
  }
  .astro-section, .impact-section, .metrics-section {
    padding: 80px 0;
  }
  .astro-feature-grid, .detection-grid, .impact-grid, .metric-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card {
    padding: 24px 20px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    text-align: center;
    padding: 28px 16px;
  }
  .metric:last-child {
    border-bottom: 0;
  }
  .doc-card {
    padding: 24px 18px;
  }
  .page-hero {
    padding-top: 110px;
    padding-bottom: 24px;
  }
  .page-hero h1 {
    font-size: 34px;
  }
  .cta-inner {
    padding: 60px 18px;
  }
  .cta-inner h2 {
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .compatibility-track, .hero-accent { animation: none !important; }
  .reveal, .reveal.slide-left, .reveal.slide-right, .reveal.slide-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .edge-dots { display: none; }
}
