:root {
  --color-bg: #020617;
  --color-bg-alt: #0b1220;
  --color-surface: rgba(15, 23, 42, 0.92);
  --color-border: rgba(148, 163, 184, 0.4);
  --color-accent: #38bdf8;
  --color-accent-soft: #0ea5e9;
  --color-accent-2: #60a5fa;
  --color-muted: #94a3b8;
  --color-text: #e2e8f0;
  --color-danger: #f97373;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at bottom, rgba(96, 165, 250, 0.12), transparent 60%),
    linear-gradient(145deg, #020617, #020617 45%, #020617 70%, #020617 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(90deg, rgba(148, 163, 184, 0.25) 1px, transparent 1px),
    linear-gradient(180deg, rgba(148, 163, 184, 0.18) 1px, transparent 1px);
  background-size: 80px 80px;
  mix-blend-mode: screen;
  z-index: -1;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

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

a:hover {
  text-decoration: none;
}

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

.section {
  padding: 5rem 1.75rem 4.5rem;
}

.section-first {
  padding-top: calc(var(--header-height) + 4.5rem);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

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

/* GLASSMORPHISM */

.glass {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 45%),
              radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.card {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.11), transparent 50%),
              rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease, background 260ms ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 140deg, rgba(56, 189, 248, 0.18), transparent, rgba(96, 165, 250, 0.12), transparent);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-15px) translateZ(0);
  box-shadow: 0 26px 65px rgba(15, 23, 42, 0.9);
  border-color: rgba(56, 189, 248, 0.6);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 55%),
              rgba(15, 23, 42, 0.98);
}

.card:hover::before {
  opacity: 0.65;
}

/* GRADIENT TEXT */

.gradient-text {
  background-image: linear-gradient(120deg, var(--color-accent), var(--color-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* HEADER */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

.logo-text {
  font-weight: 600;
  font-size: 1.05rem;
}

.logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.92rem;
}

.nav a {
  color: var(--color-muted);
  position: relative;
  padding-bottom: 0.15rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background-image: linear-gradient(120deg, var(--color-accent), var(--color-accent-2));
  transition: width 200ms ease;
}

.nav a:hover {
  color: #e5f5ff;
}

.nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0.25rem;
  border-radius: 999px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.26rem;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-text);
  transition: transform 200ms ease, opacity 200ms ease;
}

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

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

/* HERO */

.hero-grid {
  display: grid;
  gap: 3rem;
}

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

.hero::before {
  content: "";
  position: absolute;
  inset: -15%;
  background-image: url('generated-image.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(80%, 960px);
  opacity: 0.08;
  mix-blend-mode: screen;
  pointer-events: none;
  filter: saturate(130%);
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.hero-subtitle .dot {
  color: rgba(148, 163, 184, 0.8);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.hero-footnote {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}

.orbital {
  position: relative;
  width: min(260px, 70vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.3), rgba(15, 23, 42, 0.95));
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.9);
}

.orbital-core {
  width: 70px;
  height: 70px;
  border-radius: 40% 60% 60% 40%;
  background: radial-gradient(circle at 30% 20%, #e0f9ff, var(--color-accent));
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.9);
}

.orbital-ring {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-top-color: rgba(56, 189, 248, 0.9);
  border-bottom-color: rgba(96, 165, 250, 0.7);
  mix-blend-mode: screen;
  animation: spin 16s linear infinite;
}

.ring-2 {
  inset: 5%;
  animation-duration: 22s;
  animation-direction: reverse;
}

.ring-3 {
  inset: 30%;
  animation-duration: 28s;
}

.hero-metrics-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.pill {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  font-size: 0.78rem;
  color: var(--color-muted);
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.btn-primary {
  background-image: linear-gradient(120deg, var(--color-accent), var(--color-accent-2));
  color: #020617;
  box-shadow: 0 18px 35px rgba(56, 189, 248, 0.45);
}

.btn-primary:hover {
  transform: translateY(-3px) translateZ(0);
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.8);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.95);
  color: var(--color-text);
  border-color: rgba(148, 163, 184, 0.5);
}

.btn-ghost:hover {
  border-color: rgba(56, 189, 248, 0.75);
  background: rgba(15, 23, 42, 1);
  transform: translateY(-2px) translateZ(0);
}

/* SECTION HEADERS */

.section-header {
  margin-bottom: 2.2rem;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--color-muted);
  max-width: 480px;
}

/* FEATURES */

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

.feature-card {
  min-height: 180px;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.95));
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.card-title {
  font-size: 1.02rem;
  margin-bottom: 0.6rem;
}

.card-body {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* METRICS */

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

.metric-card {
  text-align: left;
}

.metric-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}

.metric-value {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.metric-footnote {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.metric-disclaimer {
  grid-column: 1 / -1;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* DEMO */

.demo-layout {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.demo-code {
  padding: 0;
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.code-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.7);
}

.code-status-dot:nth-child(1) { background: #f97373; }
.code-status-dot:nth-child(2) { background: #facc15; }
.code-status-dot:nth-child(3) { background: #22c55e; }

.code-title {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--color-muted);
}

pre {
  margin: 0;
  padding: 1.15rem 1.15rem 1.35rem;
  font-family: SFMono-Regular, ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  color: #e5f5ff;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 1));
  overflow-x: auto;
}

code {
  white-space: pre;
}

/* CONTACT */

.contact-grid {
  display: grid;
  gap: 1.75rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.contact-label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.contact-email {
  font-size: 1.1rem;
  font-weight: 500;
}

.contact-email:hover {
  color: #e5f5ff;
}

.contact-note {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

/* FOOTER */

.site-footer {
  padding: 1.5rem 1.75rem 2.2rem;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 1));
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* REVEAL ON SCROLL */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px) translateZ(0);
  transition: opacity 460ms ease, transform 460ms ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}

/* SECTION ANCHOR OFFSET */

section {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

/* ANIMATIONS */

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    inset: calc(var(--header-height) - 4px) 1.25rem auto 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.4);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transform-origin: top right;
    transform: scale(0.96) translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-open .nav {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
  }

  .section {
    padding-inline: 1.25rem;
  }

  .site-footer {
    padding-inline: 1.25rem;
  }
}

@media (min-width: 768px) {
  :root {
    --header-height: 80px;
  }

  .section {
    padding: 5.5rem 2.25rem 4.75rem;
  }

  .section-first {
    padding-top: calc(var(--header-height) + 5.25rem);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
  }

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

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

  .demo-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .demo-layout .section-header {
    flex: 0 0 38%;
  }

  .demo-code {
    flex: 1;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.6rem;
  }

  .section-title {
    font-size: 1.7rem;
  }
}
