:root {
  color-scheme: light dark;
  --bg: #0f1115;
  --bg-soft: #171a20;
  --panel: #1d2129;
  --panel-2: #222733;
  --text: #f1f4f8;
  --muted: #aeb7c4;
  --border: #323947;
  --accent: #5b8cff;
  --accent-hover: #79a2ff;
  --shadow: 0 14px 40px rgba(0, 0, 0, .24);
  --radius: 18px;
  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: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; }

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(circle at 10% 10%, rgba(91, 140, 255, .22), transparent 32%),
    radial-gradient(circle at 90% 20%, rgba(99, 102, 241, .14), transparent 28%),
    var(--bg);
}

.hero-grid,
.two-column {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9db9ff;
  font-weight: 700;
  margin-bottom: 12px;
}

h1, h2, h3 {
  line-height: 1.15;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -.045em;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -.035em;
  margin-bottom: 14px;
}

h3 { margin-bottom: 10px; }

.lead {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 760px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 700;
  transition: .18s ease;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.button.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button.secondary {
  background: rgba(255,255,255,.03);
}

.button.secondary:hover {
  background: rgba(255,255,255,.07);
}

.button.large {
  min-height: 56px;
  padding-inline: 28px;
}

.small-note {
  color: var(--muted);
  font-size: .9rem;
}

.summary-card,
.tech-card,
.support-card,
.download-panel,
.step,
.screen-card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.summary-card,
.tech-card {
  padding: 28px;
}

.summary-card ul,
.tech-card ul {
  margin: 0;
  padding-left: 20px;
}

.summary-card li,
.tech-card li {
  margin: 9px 0;
}

.section {
  padding: 78px 0;
}

.section.muted {
  background: var(--bg-soft);
  border-top: 1px solid rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.03);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading p,
.two-column p,
.download-panel p {
  color: var(--muted);
}

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

.screen-card {
  margin: 0;
  overflow: hidden;
}

.screen-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background:
    linear-gradient(135deg, #242a35, #171b22);
}

.screen-card figcaption {
  padding: 13px 16px 15px;
  color: var(--muted);
  font-size: .95rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.step {
  padding: 22px;
  box-shadow: none;
}

.step-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(91,140,255,.16);
  color: #a8c0ff;
  font-weight: 800;
  margin-bottom: 18px;
}

.step p {
  color: var(--muted);
  font-size: .94rem;
  margin-bottom: 0;
}

code {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.download-panel {
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.download-panel h2 {
  margin-bottom: 8px;
}

.download-panel p {
  margin-bottom: 0;
}

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

.support-card {
  padding: 20px;
  box-shadow: none;
}

.support-label {
  display: block;
  color: var(--muted);
  font-size: .84rem;
  margin-bottom: 8px;
}

.support-card code {
  display: block;
  overflow-wrap: anywhere;
  color: #d9e3ff;
}

.support-warning {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 18px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

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

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

@media (max-width: 700px) {
  .container {
    width: min(100% - 24px, 1160px);
  }

  .hero {
    padding: 56px 0 48px;
  }

  .section {
    padding: 56px 0;
  }

  .screens-grid,
  .support-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .download-panel,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .button.large {
    width: 100%;
  }
}


/* Detailed instructions */
.guide {
  display: grid;
  gap: 18px;
}

.guide-block {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 26px;
}

.guide-title {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.guide-title h3 {
  font-size: 1.25rem;
  margin: 1px 0 5px;
}

.guide-title p {
  color: var(--muted);
  margin: 0;
}

.guide-number {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(91,140,255,.16);
  color: #b2c7ff;
  font-weight: 800;
}

.guide-content {
  margin: 18px 0 0 54px;
  color: var(--muted);
}

.guide-content strong {
  color: var(--text);
}

.instruction-list {
  margin: 0;
  padding-left: 22px;
}

.instruction-list li {
  margin: 9px 0;
  padding-left: 4px;
}

.code-line {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: #101319;
  border-radius: 10px;
  overflow-x: auto;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  color: #d8e3ff;
}

.notice,
.example-box {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  background: rgba(91,140,255,.07);
}

.notice strong {
  color: #dce6ff;
}

.example-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.example-box pre {
  margin: 0;
  white-space: pre-wrap;
  color: #d8e3ff;
}

.threshold-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
  margin: 14px 0;
}

.threshold-table > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 10px;
  padding: 11px 14px;
}

@media (max-width: 700px) {
  .guide-block {
    padding: 20px;
  }

  .guide-content {
    margin-left: 0;
  }

  .threshold-table {
    grid-template-columns: 1fr;
  }
}


/* Product branding */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.brand-icon {
  width: 82px;
  height: 82px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .28));
}

.brand-name {
  font-size: clamp(2.15rem, 5vw, 3.9rem);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 850;
}

.brand-name span {
  color: #9db9ff;
  font-weight: 750;
}

.brand-author {
  margin-top: 9px;
  color: var(--muted);
  font-size: .95rem;
  letter-spacing: .045em;
}

.hero-title {
  max-width: 760px;
  font-size: clamp(1.75rem, 3.4vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  margin-bottom: 20px;
}

@media (max-width: 700px) {
  .brand-icon {
    width: 66px;
    height: 66px;
  }

  .brand-lockup {
    gap: 14px;
    margin-bottom: 22px;
  }

  .brand-name {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-title {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
  }
}
