:root {
  --bg: #f7f9fc;
  --bg-soft: #eef4f7;
  --surface: #ffffff;
  --surface-soft: #f6f3ff;
  --text: #131522;
  --muted: #5f6b7a;
  --line: #dfe7ef;
  --brand: #6d4aff;
  --brand-strong: #4f2ed8;
  --aqua: #16b7c8;
  --green: #21a67a;
  --shadow: 0 24px 70px rgba(25, 33, 61, .12);
  --radius: 18px;
  --container: 1160px;
}

html[data-theme="dark"] {
  --bg: #10141d;
  --bg-soft: #171e2b;
  --surface: #151b26;
  --surface-soft: #201b35;
  --text: #f4f7fb;
  --muted: #aeb8c7;
  --line: #2b3545;
  --shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
}
.skip-link:focus { top: 16px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 0 max(20px, calc((100vw - var(--container)) / 2));
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand, .header-actions, .desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  font-size: 1.35rem;
  font-weight: 800;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.desktop-nav a {
  color: var(--muted);
  font-weight: 700;
  font-size: .94rem;
}

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

.button, .theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.button:hover { background: var(--brand-strong); }
.button--small { min-height: 38px; padding-inline: 14px; }
.button--large { min-height: 52px; padding-inline: 22px; }
.button--ghost, .theme-toggle {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 74px;
  left: 20px;
  right: 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.mobile-nav.open { display: grid; gap: 10px; }

.hero {
  padding: 88px 0 72px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--surface-soft) 68%, transparent), transparent 50%),
    radial-gradient(circle at 85% 12%, rgba(22, 183, 200, .18), transparent 28%);
}

.hero-grid, .two-column, .community-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}

h1, h2 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.03;
}

h1 {
  max-width: 690px;
  font-size: 4.9rem;
}

h2 {
  font-size: 3.35rem;
}

.hero-lead, .section-heading p, .cta-box p {
  color: var(--muted);
  font-size: 1.1rem;
}

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

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.hero-facts div, .feature-list article, .tool-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.hero-facts dt {
  font-weight: 800;
  color: var(--text);
}

.hero-facts dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .92rem;
}

.hero-preview, .screen-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-preview img, .screen-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: top left;
}

.hero-preview figcaption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: .9rem;
}

.section { padding: 92px 0; }
.section-soft { background: var(--bg-soft); }

.section-dark {
  color: #fff;
  background: #121827;
}

.section-dark .section-heading p,
.section-dark .screens-grid span {
  color: rgba(255, 255, 255, .68);
}

.section-heading { max-width: 650px; }
.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

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

.feature-list article {
  display: grid;
  gap: 6px;
}

.feature-list strong, .tool-card strong, .screens-grid strong {
  font-size: 1.05rem;
}

.feature-list span, .tool-card span, .plain-list, .screens-grid span {
  color: var(--muted);
}

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

.tool-card {
  min-height: 150px;
  display: grid;
  align-content: space-between;
}

.tool-card span {
  font-weight: 800;
  color: var(--brand);
}

.community-section {
  background:
    radial-gradient(circle at 6% 16%, rgba(33, 166, 122, .14), transparent 26%),
    var(--bg);
}

.plain-list {
  padding-left: 20px;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.screens-grid article {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
}

.screens-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.screens-grid strong,
.screens-grid span {
  display: block;
  padding-inline: 16px;
}

.screens-grid strong { padding-top: 14px; }
.screens-grid span { padding-bottom: 16px; }

.cta {
  padding: 92px 0;
}

.cta-box {
  display: grid;
  gap: 18px;
  place-items: center;
  text-align: center;
  padding: 60px 24px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(109, 74, 255, .15), rgba(22, 183, 200, .12)),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cta-box h2 {
  max-width: 780px;
}

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

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s ease, transform .45s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: .08s; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .hero-grid, .two-column, .community-grid {
    grid-template-columns: 1fr;
  }
  .hero-facts, .tool-grid, .screens-grid {
    grid-template-columns: 1fr;
  }
  .site-header { padding-inline: 20px; }
  .theme-toggle { display: none; }
  h1 { font-size: 3.6rem; }
  h2 { font-size: 2.7rem; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .hero { padding-top: 56px; }
  .section { padding: 68px 0; }
  .header-actions .button { display: none; }
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.25rem; }
}
