:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-deep: #030712;
  --panel: rgba(12, 24, 43, 0.76);
  --panel-strong: rgba(17, 32, 55, 0.94);
  --line: rgba(148, 163, 184, 0.22);
  --text: #eff6ff;
  --muted: #9fb1c7;
  --muted-strong: #c7d2e1;
  --blue: #39a5ff;
  --blue-strong: #66c7ff;
  --cyan: #6ee7f9;
  --green: #7dd3a7;
  --amber: #f7c66f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(57, 165, 255, 0.24), transparent 38rem),
    radial-gradient(circle at 88% 18%, rgba(110, 231, 249, 0.18), transparent 34rem),
    linear-gradient(180deg, #07111f 0%, #06101d 48%, #030712 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

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

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

.shell-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(42px);
  pointer-events: none;
  opacity: 0.65;
}

.shell-glow-one {
  width: 21rem;
  height: 21rem;
  background: rgba(57, 165, 255, 0.18);
  left: -8rem;
  top: 20rem;
}

.shell-glow-two {
  width: 25rem;
  height: 25rem;
  background: rgba(110, 231, 249, 0.13);
  right: -9rem;
  top: 6rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem 1.4rem;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.2rem;
}

.brand img { width: 34px; height: 34px; }

nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.93rem;
  color: var(--muted-strong);
}

nav a {
  padding: 0.55rem 0.72rem;
  border-radius: 999px;
}

nav a:hover {
  background: rgba(148, 163, 184, 0.12);
  color: white;
}

.section-pad {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5rem 1.4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 3.2rem;
  align-items: center;
  padding-top: 5.4rem;
}

.eyebrow {
  color: var(--blue-strong);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 1rem;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  font-size: clamp(3.3rem, 6vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
  margin-bottom: 1.45rem;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 4.35rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.13rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.hero-lede,
.section-heading p,
.screenshot-copy p {
  color: var(--muted-strong);
  font-size: 1.1rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #03101f;
  box-shadow: 0 14px 42px rgba(57, 165, 255, 0.28);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.58);
  color: #e8f3ff;
}

.button-secondary:hover { border-color: rgba(110, 231, 249, 0.55); }

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

.hero-stats div {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.95rem;
  background: rgba(15, 23, 42, 0.46);
}

.hero-stats strong {
  display: block;
  font-size: 0.98rem;
  color: white;
  margin-bottom: 0.38rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.hero-visual { position: relative; }

.browser-card {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(14, 27, 48, 0.96), rgba(5, 12, 23, 0.96));
  box-shadow: var(--shadow), 0 0 0 1px rgba(57, 165, 255, 0.08) inset;
  overflow: hidden;
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.62);
}

.browser-bar span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #334155;
}
.browser-bar span:nth-child(1) { background: #f87171; }
.browser-bar span:nth-child(2) { background: #fbbf24; }
.browser-bar span:nth-child(3) { background: #34d399; }
.browser-bar p {
  margin: 0 auto;
  color: #93a4ba;
  font-size: 0.78rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.browser-card img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  object-position: top left;
}

.logo-row {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.4rem 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--muted);
}

.logo-row span {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.42);
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.section-heading { max-width: 640px; }
.section-heading.centered {
  text-align: center;
  margin: 0 auto 2.4rem;
}

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

.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  background: linear-gradient(180deg, rgba(15, 30, 51, 0.72), rgba(9, 18, 32, 0.72));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.17);
}

.icon {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(57, 165, 255, 0.16);
  color: var(--cyan);
  border: 1px solid rgba(110, 231, 249, 0.22);
  font-weight: 900;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.68;
  margin-bottom: 0;
}

.architecture { padding-top: 4rem; }

.flow-card {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 1.2rem;
  background: rgba(9, 18, 32, 0.68);
  box-shadow: var(--shadow);
}

.flow-node,
.flow-server,
.flow-arrow {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.68);
}

.flow-node strong,
.flow-server strong { display: block; margin-bottom: 0.45rem; }
.flow-node span,
.flow-server span { color: var(--muted); line-height: 1.55; }

.flow-arrow {
  grid-column: 1 / 4;
  text-align: center;
  color: var(--blue-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  border-style: dashed;
}

.flow-server {
  grid-column: 1 / 4;
  background: linear-gradient(135deg, rgba(57, 165, 255, 0.16), rgba(110, 231, 249, 0.08));
}

.screenshot-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: center;
}

.screenshot-frame {
  display: block;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 0.7rem;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: var(--shadow);
}

.screenshot-frame img {
  height: 520px;
  width: 100%;
  object-fit: cover;
  object-position: top left;
  border-radius: 18px;
}

.screenshot-frame span {
  display: block;
  padding: 0.9rem 0.4rem 0.2rem;
  color: var(--blue-strong);
  font-weight: 800;
}

.quickstart {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: center;
}

.code-wrap {
  border: 1px solid rgba(110, 231, 249, 0.22);
  border-radius: 24px;
  background: #020617;
  box-shadow: var(--shadow);
  overflow: hidden;
}

pre {
  margin: 0;
  padding: 1.4rem;
  overflow-x: auto;
}

code {
  color: #dbeafe;
  font-size: 0.96rem;
  line-height: 1.7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.quick-links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.quick-links a {
  color: var(--blue-strong);
  font-weight: 800;
  border-bottom: 1px solid rgba(102, 199, 255, 0.35);
}

.cta {
  margin-top: 1rem;
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid rgba(110, 231, 249, 0.24);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(57, 165, 255, 0.18), rgba(15, 23, 42, 0.7));
  box-shadow: var(--shadow);
}

.cta h2 { max-width: 820px; margin-bottom: 0; }

footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.4rem 4rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
}

footer div { display: flex; gap: 1rem; }
footer a { color: var(--muted-strong); }

@media (max-width: 920px) {
  nav { display: none; }
  .hero,
  .split-section,
  .screenshot-section,
  .quickstart {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 3rem; }
  .browser-card { transform: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .quick-links { grid-column: auto; }
  .cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .section-pad { padding: 3.5rem 1rem; }
  .hero-stats { grid-template-columns: 1fr; }
  .flow-card { grid-template-columns: 1fr; }
  .flow-arrow,
  .flow-server { grid-column: auto; }
  .browser-card img,
  .screenshot-frame img { height: 380px; }
  footer { flex-direction: column; }
}
