:root {
  --bg: #0f172a;
  --bg-soft: rgba(56, 189, 248, 0.08);
  --panel: rgba(17, 24, 39, 0.76);
  --panel-strong: rgba(30, 41, 59, 0.88);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #67e8f9;
  --accent-3: #7dd3fc;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 32%),
    radial-gradient(circle at 85% 10%, rgba(14, 165, 233, 0.12), transparent 28%),
    linear-gradient(180deg, #0f172a 0%, #111827 50%, #0f172a 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
  pointer-events: none;
}

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

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 64px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 16px 20px;
  background: rgba(17, 24, 39, 0.78);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.header-menu {
  display: contents;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

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

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  position: relative;
  display: flex;
  width: 82px;
  height: 82px;
  align-items: center;
  justify-content: center;
}

.brand-badge::before,
.brand-badge::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
}

.brand-badge::before {
  width: 92px;
  height: 82px;
  transform: translate(-50%, -50%) rotate(-8deg);
  border-radius: 58% 42% 52% 48% / 48% 55% 45% 52%;
  background:
    radial-gradient(circle at 45% 45%,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(255, 255, 255, 0.58) 32%,
      rgba(186, 230, 253, 0.24) 58%,
      rgba(186, 230, 253, 0.04) 78%,
      transparent 100%);
  filter: blur(9px);
  opacity: 0.95;
}

.brand-badge::after {
  width: 68px;
  height: 62px;
  transform: translate(-50%, -50%) rotate(12deg);
  border-radius: 45% 55% 60% 40% / 52% 44% 56% 48%;
  background: rgba(255, 255, 255, 0.42);
  filter: blur(5px);
  opacity: 0.75;
}

.brand-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-family: "Manrope", sans-serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.nav,
.topbar-actions,
.hero-actions,
.hero-proof,
.dashboard-header,
.feature-grid,
.showcase-layout,
.showcase-stack,
.stats-grid {
  display: flex;
}

.nav,
.topbar-actions {
  align-items: center;
  gap: 22px;
}

.nav a,
.text-link {
  color: var(--muted);
  transition: color 180ms ease;
}

.nav a:hover,
.text-link:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 18px 44px rgba(56, 189, 248, 0.24);
}

.button-small {
  padding: 11px 18px;
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  padding: 92px 0 56px;
  align-items: center;
}

.eyebrow,
.feature-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.showcase-copy h2,
.cta-card h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.hero-text,
.showcase-copy p,
.cta-card p,
.feature-card p,
.stat-card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions {
  gap: 14px;
  margin-top: 32px;
}

.hero-proof {
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-proof div,
.stat-card,
.feature-card,
.showcase-card,
.dashboard-card,
.cta-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
}

.hero-proof div {
  min-width: 168px;
  padding: 18px;
  border-radius: var(--radius-md);
}

.hero-proof strong,
.stat-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.hero-proof span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-panel {
  position: relative;
  min-height: 730px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top, rgba(141, 199, 255, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  overflow: hidden;
}

.hero-orbit {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.7;
}

.hero-orbit-a {
  inset: 40px auto auto 50px;
  width: 180px;
  height: 180px;
  background: rgba(243, 199, 122, 0.18);
}

.hero-orbit-b {
  inset: auto 34px 38px auto;
  width: 220px;
  height: 220px;
  background: rgba(134, 213, 195, 0.14);
}

.dashboard-card {
  position: absolute;
  border-radius: 26px;
  backdrop-filter: blur(18px);
}

.dashboard-main {
  inset: 38px 34px 286px 34px;
  padding: 24px;
}

.dashboard-side {
  right: 34px;
  bottom: 34px;
  width: calc((100% - 86px) / 2);
  padding: 20px;
}

.dashboard-bottom {
  left: 34px;
  bottom: 34px;
  width: calc((100% - 86px) / 2);
  padding: 20px;
}

.dashboard-header {
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--muted);
}

.status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-live {
  background: #8df7c8;
  box-shadow: 0 0 18px rgba(141, 247, 200, 0.7);
}

.chip {
  margin-left: auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
}

.deploy-list {
  display: grid;
  gap: 14px;
}

.deploy-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.deploy-list h3,
.feature-card h3,
.showcase-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.deploy-list p,
.dashboard-side span,
.dashboard-bottom span {
  margin: 0;
  color: var(--muted);
}

.dashboard-side p,
.dashboard-bottom p {
  margin: 0 0 8px;
  color: var(--muted);
}

.dashboard-side strong,
.dashboard-bottom strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.95rem, 2vw, 2rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
  margin-bottom: 10px;
}

.mini-bars {
  display: flex;
  align-items: end;
  gap: 9px;
  height: 66px;
  margin-top: 20px;
}

.mini-bars span {
  display: block;
  flex: 1;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, rgba(141, 199, 255, 0.95), rgba(141, 199, 255, 0.16));
}

.mini-bars span:nth-child(1) { height: 44%; }
.mini-bars span:nth-child(2) { height: 68%; }
.mini-bars span:nth-child(3) { height: 53%; }
.mini-bars span:nth-child(4) { height: 80%; }
.mini-bars span:nth-child(5) { height: 62%; }
.mini-bars span:nth-child(6) { height: 100%; }

.logo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin: 8px 0 24px;
  padding: 18px 0;
  color: rgba(148, 163, 184, 0.68);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.section {
  padding: 72px 0;
}

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

.section-heading h2,
.showcase-copy h2,
.cta-card h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.feature-grid {
  gap: 20px;
}

.feature-card,
.showcase-card,
.stat-card {
  flex: 1;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.showcase-layout {
  gap: 26px;
  align-items: stretch;
}

.showcase-copy {
  flex: 0.9;
}

.showcase-stack {
  flex: 1.1;
  flex-direction: column;
  gap: 18px;
}

.showcase-card span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 14px;
  font-weight: 800;
  color: #111;
}

.accent-sand span {
  background: var(--accent);
}

.accent-mint span {
  background: var(--accent-2);
}

.accent-sky span {
  background: var(--accent-3);
}

.stats-grid {
  gap: 18px;
}

.stat-card strong {
  font-size: 2.4rem;
}

.cta-card {
  padding: 42px;
  border-radius: var(--radius-xl);
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.16), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
}

.cta-card p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-card .hero-actions {
  justify-content: center;
}

.demo-dialog {
  width: min(calc(100% - 32px), 640px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(103, 232, 249, 0.32);
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: var(--shadow);
}

.demo-dialog::backdrop {
  background: rgba(2, 8, 23, 0.76);
  backdrop-filter: blur(6px);
}

.demo-dialog-panel {
  position: relative;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 30px 20px 24px;
  background:
    radial-gradient(circle at 85% 0%, rgba(56, 189, 248, 0.17), transparent 13rem),
    linear-gradient(145deg, rgba(30, 41, 59, 0.99), rgba(15, 23, 42, 0.99));
}

.demo-dialog h2 {
  margin: 8px 42px 8px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.65rem, 7vw, 2.2rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.demo-dialog-intro {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.demo-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.demo-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.demo-form-field {
  display: grid;
  gap: 7px;
}

.demo-form label {
  color: #dce8f5;
  font-size: 0.82rem;
  font-weight: 800;
}

.demo-form label span {
  color: var(--muted);
  font-weight: 600;
}

.demo-form input,
.demo-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: rgba(2, 13, 27, 0.4);
  color: var(--text);
  font: inherit;
}

.demo-form input {
  min-height: 50px;
  padding: 12px 14px;
}

.demo-form textarea {
  min-height: 88px;
  padding: 12px 14px;
  resize: vertical;
}

.demo-form input:focus,
.demo-form textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.16);
}

.demo-form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.demo-field-error,
.demo-form-error {
  margin: 0;
  color: #fda4af;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.45;
}

.demo-form-error {
  padding: 10px 12px;
  border: 1px solid rgba(251, 113, 133, 0.45);
  border-radius: 10px;
  background: rgba(251, 113, 133, 0.1);
}

.demo-form-privacy {
  margin: -2px 0 2px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.55;
}

.demo-form .button,
.demo-success .button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.demo-success {
  display: grid;
  justify-items: start;
  padding: 8px 2px 2px;
}

.demo-success[hidden] {
  display: none;
}

.demo-success-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  place-items: center;
  border: 1px solid rgba(125, 211, 252, 0.45);
  border-radius: 50%;
  background: rgba(125, 211, 252, 0.12);
  color: var(--accent-2);
  font-size: 1.4rem;
  font-weight: 800;
}

.demo-success > p:not(.eyebrow) {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

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

@media (max-width: 1080px) {
  .topbar {
    border-radius: 28px;
  }

  .hero,
  .showcase-layout,
  .feature-grid,
  .stats-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-panel {
    min-height: 730px;
  }

  .logo-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 560px) {
  .demo-dialog-panel {
    padding: 36px;
  }

  .demo-dialog-close {
    top: 20px;
    right: 20px;
  }

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

  .demo-form-field-full,
  .demo-form-error,
  .demo-form-privacy,
  .demo-form .button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .topbar {
    position: sticky;
    top: 10px;
    display: flex;
    flex-wrap: wrap;
    min-height: 68px;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 24px;
  }

  .brand-badge {
    width: 44px;
    height: 44px;
  }

  .brand-badge::before {
    width: 48px;
    height: 44px;
    filter: blur(5px);
  }

  .brand-badge::after {
    width: 38px;
    height: 36px;
    filter: blur(3px);
  }

  .brand-logo {
    width: 100%;
    height: 100%;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .js .nav-toggle {
    display: flex;
  }

  .header-menu {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    padding: 12px 4px 4px;
  }

  .js .header-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 20px;
    background: rgba(17, 24, 39, 0.97);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    transition:
      max-height 260ms ease,
      padding 260ms ease,
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .js .header-menu.is-open {
    visibility: visible;
    max-height: 420px;
    padding: 12px;
    border-color: var(--line);
    opacity: 1;
    transform: translateY(0);
  }

  .nav,
  .topbar-actions,
  .hero-actions,
  .hero-proof {
    flex-wrap: wrap;
  }

  .nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav a,
  .text-link {
    display: flex;
    min-height: 46px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
  }

  .nav a:hover,
  .text-link:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .topbar-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .topbar-actions .button {
    width: 100%;
  }

  .hero-panel {
    min-height: 790px;
  }

  .dashboard-main {
    inset: 22px 18px 316px 18px;
  }

  .dashboard-bottom,
  .dashboard-side {
    width: calc((100% - 54px) / 2);
  }

  .dashboard-bottom {
    left: 18px;
    right: auto;
    bottom: 18px;
  }

  .dashboard-side {
    left: auto;
    right: 18px;
    bottom: 18px;
  }

  .logo-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .cta-card {
    padding: 30px 22px;
  }
}
