:root {
  color-scheme: dark;
  --bg: #070b14;
  --bg-elevated: rgba(13, 18, 32, 0.82);
  --bg-elevated-strong: rgba(18, 25, 44, 0.95);
  --surface: rgba(17, 24, 39, 0.72);
  --surface-strong: rgba(19, 28, 48, 0.92);
  --surface-soft: rgba(124, 58, 237, 0.08);
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(129, 140, 248, 0.34);
  --text: #ecf2ff;
  --text-muted: #a8b3c8;
  --heading: #f8fbff;
  --accent: #8b5cf6;
  --accent-strong: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.14);
  --success: #38bdf8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1160px;
  --transition-fast: 180ms ease;
  --transition-base: 240ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.2), transparent 32%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.16), transparent 28%),
    linear-gradient(180deg, #060a13 0%, #0a1020 45%, #070b14 100%);
  color: var(--text);
  line-height: 1.6;
}

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

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

button,
a,
summary {
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    opacity var(--transition-fast);
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(125, 211, 252, 0.7);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  transform: translateY(-200%);
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: #b8c3d8;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.9rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  line-height: 1.1;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.3;
}

p {
  margin: 0;
  color: var(--text-muted);
}

.section-lead,
.hero-lead {
  font-size: 1.05rem;
  max-width: 62ch;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-logo {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
}

.brand-text {
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  flex-wrap: wrap;
}

.site-nav a,
.footer-shell p,
.hero-points,
.lang-button {
  color: var(--text-muted);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.lang-button:hover,
.lang-button:focus-visible {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
}

.lang-button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.lang-button.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.35);
}

.button-secondary {
  border-color: var(--border);
  background: rgba(15, 23, 42, 0.75);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--border-strong);
  background: rgba(24, 35, 61, 0.92);
}

.hero {
  padding-top: 4.5rem;
}

.hero-grid,
.problem-solution-grid,
.split-section {
  display: grid;
  gap: 1.6rem;
}

.hero-grid {
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 1.35rem;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-points {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 1.35rem;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--success), var(--accent));
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.12);
}

.card-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(10, 16, 32, 0.88) 100%);
  box-shadow: var(--shadow);
}

.hero-visual {
  padding: 1rem;
  display: grid;
  gap: 1rem;
  background:
    linear-gradient(180deg, rgba(99, 102, 241, 0.14), rgba(11, 18, 33, 0.88)),
    rgba(10, 16, 32, 0.9);
}

.shot {
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 10px);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(12, 18, 31, 0.9);
}

.shot img {
  width: 100%;
  height: auto;
}

.shot-secondary {
  max-width: 78%;
  justify-self: end;
}

.narrow-flow {
  display: grid;
  gap: 1.35rem;
}

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

.problem-solution-grid .card-panel,
.feature-card,
.use-case-grid .card-panel,
.step-card,
.open-source-panel,
.final-cta-panel,
.faq-item {
  padding: 1.5rem;
}

.accent-panel {
  background:
    linear-gradient(180deg, rgba(99, 102, 241, 0.2), rgba(12, 18, 31, 0.92)),
    rgba(17, 24, 39, 0.9);
  border-color: rgba(129, 140, 248, 0.26);
}

.feature-grid,
.use-case-grid,
.steps-grid {
  display: grid;
  gap: 1rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.6rem;
}

.feature-card {
  display: grid;
  gap: 0.7rem;
}

.use-case-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 1.6rem;
}

.steps-grid {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-card {
  display: grid;
  gap: 0.8rem;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 3rem;
  min-height: 2rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.26);
  font-size: 0.85rem;
  font-weight: 700;
}

.split-section {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
}

.why-list {
  display: grid;
  gap: 1rem;
}

.why-item {
  padding: 0 0 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.why-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.open-source-panel,
.final-cta-panel {
  display: grid;
  gap: 1rem;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item summary {
  cursor: pointer;
  color: var(--heading);
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--text-muted);
  font-size: 1.2rem;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 0.9rem;
}

.final-cta {
  padding-bottom: 6rem;
}

.final-cta-panel {
  background:
    linear-gradient(180deg, rgba(99, 102, 241, 0.18), rgba(12, 18, 31, 0.95)),
    rgba(17, 24, 39, 0.92);
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: 1.4rem 0 2.6rem;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .hero-grid,
  .split-section,
  .problem-solution-grid,
  .feature-grid,
  .use-case-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-shell {
    flex-wrap: wrap;
  }

  .site-nav {
    display: flex;
    flex: 1 1 100%;
    order: 3;
    justify-content: center;
    gap: 0.9rem 1.2rem;
    padding-bottom: 0.75rem;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 4.4rem 0;
  }

  .nav-shell,
  .nav-actions,
  .footer-shell,
  .hero-actions,
  .cta-row {
    align-items: stretch;
  }

  .nav-shell,
  .hero-grid,
  .problem-solution-grid,
  .feature-grid,
  .use-case-grid,
  .steps-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .nav-shell {
    display: grid;
    padding: 1rem 0;
  }

  .nav-actions {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .button {
    width: 100%;
  }

  .shot-secondary {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
