:root {
  --bg: #050b14;
  --bg-secondary: #071221;
  --surface: rgba(10, 25, 42, 0.78);
  --surface-strong: #0c1d30;
  --surface-soft: #10253c;
  --surface-elevated: #122e4a;
  --border: rgba(146, 208, 255, 0.14);
  --border-strong: rgba(146, 208, 255, 0.24);
  --text: #f4fbff;
  --muted: #98aec2;
  --blue: #49a8f0;
  --blue-strong: #2b78c8;
  --blue-soft: #91d1ff;
  --orange: #ea8d2b;
  --green: #40c56b;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.25);
  --radius: 24px;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text);
  overflow-x: hidden;
  background: #0a0a0f;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(59, 130, 246, 0.1), transparent 28rem),
    radial-gradient(circle at 86% 40%, rgba(139, 92, 246, 0.08), transparent 24rem),
    radial-gradient(circle at 50% 102%, rgba(59, 130, 246, 0.06), transparent 30rem);
  filter: blur(20px);
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

.grid-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.navbar,
.hero,
.signal-band,
.showcase,
.features,
.documentation-shell,
.cta-strip,
.site-footer {
  position: relative;
}

.hero,
.signal-band,
.showcase,
.features,
.documentation-shell,
.cta-strip,
.site-footer {
  z-index: 1;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(5, 11, 20, 0.82);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.nav-brand-icon {
  width: 56px;
  height: 56px;
  padding: 6px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(73, 168, 240, 0.16), rgba(10, 25, 42, 0.25));
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.nav-brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  background: rgba(73, 168, 240, 0.09);
  border-color: var(--border);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 18%, rgba(59, 130, 246, 0.12), transparent 30%),
    radial-gradient(circle at 85% 12%, rgba(139, 92, 246, 0.08), transparent 18%),
    radial-gradient(circle at 50% 75%, rgba(59, 130, 246, 0.08), transparent 25%);
  pointer-events: none;
}

.hero-home {
  padding: 7rem 0 5rem;
}

.hero-docs {
  padding: 7rem 0 4rem;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-grid-docs {
  align-items: start;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(73, 168, 240, 0.12);
  border: 1px solid var(--border);
  color: var(--blue-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-copy h1 {
  max-width: 11ch;
  margin: 1rem 0 1.25rem;
  font-size: clamp(2.9rem, 6vw, 5.1rem);
  line-height: 1.04;
}

.hero-docs .hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 5vw, 4.3rem);
}

.hero-subtitle {
  max-width: 62ch;
  margin: 0 0 1.75rem;
  font-size: 1.12rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-strong) 100%);
  color: #04101c;
  box-shadow: 0 12px 30px rgba(73, 168, 240, 0.25);
}

.btn-secondary {
  background: rgba(10, 25, 42, 0.72);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  box-shadow: var(--shadow-soft);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-facts span {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(10, 25, 42, 0.82);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
}

.visual-card,
.doc-summary-card,
.signal-card,
.feature-card,
.doc-section,
.doc-sidebar-card,
.cta-strip-inner,
.showcase-frame {
  background: linear-gradient(180deg, rgba(12, 29, 48, 0.92), rgba(7, 18, 33, 0.94));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.visual-card {
  padding: 1.2rem;
}

.visual-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.system-badge,
.mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
}

.status-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(234, 141, 43, 0.14);
}

.icon-cluster {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: stretch;
}

.hero-icon-shell {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(73, 168, 240, 0.12), rgba(10, 25, 42, 0.28));
  border: 1px solid var(--border);
}

.hero-icon {
  width: 100%;
  max-width: 140px;
  filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.25));
}

.mini-panels {
  display: grid;
  gap: 1rem;
}

.mini-panel {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.mini-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--blue-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
}

.mini-panel strong {
  font-size: 1rem;
}

.visual-screenshot-frame {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #03060c;
}

.visual-screenshot {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.signal-band {
  padding: 0 0 4rem;
}

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

.signal-card {
  padding: 1.2rem;
}

.signal-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--blue-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.signal-card strong {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
}

.signal-card p,
.feature-card p,
.section-heading p,
.doc-section p,
.site-footer p,
.summary-row p {
  color: var(--muted);
}

.showcase,
.features,
.documentation-shell,
.cta-strip {
  padding: 2rem 0 5rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 1rem 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
}

.section-heading.align-left {
  max-width: 860px;
}

.showcase-frame {
  padding: 1rem;
}

.centered-image {
  width: 100%;
  border-radius: calc(var(--radius) - 10px);
}

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

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-soft), transparent);
  opacity: 0.7;
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  background: rgba(73, 168, 240, 0.12);
  color: var(--blue-soft);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--border);
}

.feature-image {
  margin-bottom: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0a1220;
}

.feature-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
}

.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 1.6rem;
}

.cta-strip-inner h2 {
  margin: 0.75rem 0 0.35rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.site-footer {
  padding: 0 0 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-brand p {
  max-width: 32ch;
}

.footer-section h4,
.footer-brand h4 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
}

.footer-section a {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--muted);
}

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

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  text-align: center;
}

.documentation-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.doc-sidebar-card {
  position: sticky;
  top: 6.75rem;
  padding: 1.2rem;
}

.doc-sidebar-title {
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--text);
}

.doc-sidebar-links {
  display: grid;
  gap: 0.65rem;
}

.doc-sidebar-links a {
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--muted);
}

.doc-sidebar-links a:hover {
  color: var(--text);
  background: rgba(73, 168, 240, 0.08);
}

.doc-note {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(234, 141, 43, 0.08);
  border: 1px solid rgba(234, 141, 43, 0.18);
  color: #ffdcb7;
  font-size: 0.92rem;
}

.documentation-content {
  max-width: none;
  padding: 0;
}

.doc-section {
  padding: 1.4rem;
  margin-bottom: 1.2rem;
}

.doc-section h3 {
  margin-bottom: 0.75rem;
  font-size: 1.45rem;
}

.doc-image {
  width: 100%;
  margin: 1rem 0 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.doc-image-small {
  max-width: 560px;
}

.doc-section ul {
  margin: 1rem 0 0 1.1rem;
  padding: 0;
}

.doc-section li {
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.doc-section code {
  padding: 0.18rem 0.45rem;
  border-radius: 10px;
  background: rgba(73, 168, 240, 0.12);
  color: var(--blue-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.doc-section a {
  color: var(--blue-soft);
  font-weight: 600;
}

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

.doc-summary-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.2rem;
}

.summary-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.summary-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: rgba(73, 168, 240, 0.12);
  color: var(--blue-soft);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--border);
}

.summary-row strong {
  display: block;
  margin-bottom: 0.18rem;
}

@media (max-width: 1024px) {
  .hero-grid,
  .documentation-grid {
    grid-template-columns: 1fr;
  }

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

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

  .doc-sidebar-card {
    position: static;
  }
}

@media (max-width: 720px) {
  body::before {
    opacity: 0.7;
  }

  .navbar-inner {
    padding: 0.85rem 0;
  }

  .nav-links {
    display: none;
  }

  .nav-brand-copy small {
    display: none;
  }

  .hero-home,
  .hero-docs {
    padding: 6rem 0 4rem;
  }

  .hero-copy h1,
  .hero-docs .hero-copy h1 {
    max-width: none;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .icon-cluster,
  .signal-grid,
  .features-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .visual-topbar,
  .cta-strip-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-strip-inner .btn {
    width: 100%;
  }
}
