:root {
  color-scheme: dark;
  --bg: #070a12;
  --bg-soft: #0b1020;
  --panel: #101827;
  --panel-2: #131f32;
  --line: #243246;
  --ink: #eef6ff;
  --muted: #a8b6c9;
  --dim: #7f8ea3;
  --accent: #38bdf8;
  --accent-2: #22d3ee;
  --green: #34d399;
  --rose: #fb7185;
  --yellow: #facc15;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -20%, rgba(56, 189, 248, 0.16), transparent 34rem),
    linear-gradient(180deg, #070a12 0%, #0a0f1d 54%, #08111d 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(36, 50, 70, 0.86);
  background: rgba(7, 10, 18, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent);
}

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(70px, 10vw, 126px) 22px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.72fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(46px, 6.2vw, 82px);
  line-height: 0.98;
  font-weight: 840;
  letter-spacing: 0;
}

.hero-copy p,
.section p {
  color: var(--muted);
}

.hero-copy p {
  margin: 24px 0 0;
  max-width: 720px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.58;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent);
  color: #06111f;
  font-size: 14px;
  font-weight: 780;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.demo-hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.82fr);
}

.demo-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 14, 26, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-top {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 24, 39, 0.92);
}

.preview-top span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--rose);
}

.preview-top span:nth-child(2) {
  background: var(--yellow);
}

.preview-top span:nth-child(3) {
  background: var(--green);
}

.preview-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.preview-board section {
  min-width: 0;
  border: 1px solid rgba(36, 50, 70, 0.74);
  border-radius: 8px;
  background: rgba(16, 24, 39, 0.78);
  padding: 12px;
}

.preview-board h2 {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-board p {
  margin: 8px 0 0;
  border-left: 3px solid var(--accent);
  border-radius: 7px;
  background: rgba(238, 246, 255, 0.06);
  color: var(--ink);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.35;
  padding: 10px;
}

.preview-board section:nth-child(2) p {
  border-left-color: var(--rose);
}

.preview-board section:nth-child(3) p {
  border-left-color: var(--green);
}

.demo-details {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 0.7fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: start;
}

.fact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 24, 39, 0.96), rgba(11, 16, 32, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.fact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.fact-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.fact-head strong {
  color: var(--green);
  font-size: 13px;
}

.fact-panel dl {
  margin: 0;
  padding: 4px 20px 20px;
}

.fact-panel div {
  padding: 17px 0;
  border-bottom: 1px solid rgba(36, 50, 70, 0.72);
}

.fact-panel div:last-child {
  border-bottom: 0;
}

.fact-panel dt {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 780;
}

.fact-panel dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 62px 22px;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.06;
  letter-spacing: 0;
}

.section > p,
.section-heading p {
  margin: 16px 0 0;
  max-width: 770px;
  font-size: 17px;
  line-height: 1.65;
}

.surface {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: start;
}

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

.surface-grid article,
.steps li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 24, 39, 0.82);
  padding: 20px;
}

.surface-grid h3 {
  margin: 0;
  font-size: 18px;
}

.surface-grid p,
.steps p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.82fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: start;
}

.checklist {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.checklist li {
  display: flex;
  gap: 11px;
  color: var(--muted);
  line-height: 1.55;
}

.checklist li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.62);
}

.terminal {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #030712;
  color: #c9f4ff;
  padding: 22px;
  overflow: auto;
  box-shadow: var(--shadow);
}

.terminal code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre;
}

.section-heading {
  max-width: 820px;
}

.steps {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.steps span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 820;
}

.steps strong {
  display: block;
  margin-top: 12px;
  font-size: 18px;
}

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 22px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
}

.footer a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 920px) {
  .hero,
  .surface,
  .split,
  .demo-details {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero {
    padding-top: 44px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-copy,
  .fact-panel,
  .demo-preview,
  .section,
  .terminal {
    width: 100%;
    max-width: calc(100vw - 44px);
    min-width: 0;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: 32px;
    line-height: 1.12;
    overflow-wrap: break-word;
  }

  .hero-copy p {
    font-size: 16px;
    overflow-wrap: break-word;
  }

  .fact-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .fact-panel dd,
  .checklist li,
  .terminal code {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .surface-grid,
  .preview-board,
  .steps {
    grid-template-columns: 1fr;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero-copy,
  .fact-panel,
  .demo-preview,
  .section,
  .terminal {
    max-width: 346px;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
