:root {
  color-scheme: light;
  --ink: #24304a;
  --space: #0d1838;
  --cream: #fff8e8;
  --paper: #ffffff;
  --line: #ded5bf;
  --muted: #5d667d;
  --purple: #6c5ce7;
  --opony-purple: #8c79f6;
  --red: #ef5350;
  --yellow: #ffc857;
  --blue: #58c8f5;
  --shadow: 0 18px 50px rgba(36, 48, 74, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--cream);
  color: var(--ink);
  font-family:
    Avenir Next,
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(239, 83, 80, 0.08), transparent 28%),
    linear-gradient(270deg, rgba(88, 200, 245, 0.1), transparent 30%),
    var(--cream);
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(36, 48, 74, 0.1);
  background: rgba(255, 248, 232, 0.92);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(13, 24, 56, 0.18);
}

.brand span {
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
  font-weight: 750;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--purple);
}

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--purple);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

figure {
  margin: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: 4rem;
  line-height: 1.02;
  font-weight: 950;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.1rem;
  line-height: 1.12;
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.28;
  font-weight: 900;
}

.lead {
  max-width: 660px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.6;
  font-weight: 600;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 900;
  text-decoration: none;
}

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

.button:hover,
.button:focus-visible {
  border-color: var(--purple);
  background: var(--purple);
  color: white;
}

.hero-art {
  overflow: hidden;
  border: 1px solid rgba(36, 48, 74, 0.12);
  border-radius: 8px;
  background: var(--space);
  box-shadow: var(--shadow);
}

.hero-art img {
  width: 100%;
  height: auto;
}

.band {
  padding: 56px 0;
}

.band.dark {
  background: var(--space);
  color: white;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 600;
}

.dark .section-intro {
  color: rgba(255, 255, 255, 0.72);
}

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

.feature {
  min-height: 172px;
  padding: 22px;
  border: 1px solid rgba(36, 48, 74, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.feature p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 600;
}

.swatches {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.swatch.red {
  background: var(--red);
}

.swatch.yellow {
  background: var(--yellow);
}

.swatch.blue {
  background: var(--blue);
}

.swatch.purple {
  background: var(--opony-purple);
}

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

.screen {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.screen img {
  width: 100%;
}

.doc {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.doc-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.doc-header h1 {
  margin-bottom: 14px;
  font-size: 3rem;
}

.doc-meta {
  color: var(--muted);
  font-weight: 700;
}

.doc-section {
  margin-top: 32px;
}

.doc-section p,
.doc-section li {
  color: #3b455f;
  font-size: 1.02rem;
  line-height: 1.7;
  font-weight: 560;
}

.doc-section ul {
  padding-left: 22px;
}

.notice {
  padding: 18px 20px;
  border: 1px solid rgba(108, 92, 231, 0.22);
  border-radius: 8px;
  background: rgba(108, 92, 231, 0.08);
}

.footer {
  border-top: 1px solid rgba(36, 48, 74, 0.12);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  text-decoration: none;
}

@media (max-width: 780px) {
  .nav {
    min-height: 64px;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.88rem;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-grid,
  .feature-grid,
  .screens {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 32px;
  }

  h1 {
    font-size: 2.65rem;
  }

  .doc-header h1 {
    font-size: 2.35rem;
  }

  .lead {
    font-size: 1.08rem;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
    gap: 10px;
  }

  h1 {
    font-size: 2.1rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 1.65rem;
  }

  .lead {
    font-size: 1rem;
  }

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

  .button {
    width: 100%;
  }
}
