:root {
  --accent: #7f52ff;
  --accent-hover: #6b40e8;
  --accent-soft: rgba(127, 82, 255, 0.15);
  --bg-dark: #110e19;
  --bg-panel: #19131e;
  --bg-toolbar: #211a2e;
  --bg-alt: #16121f;
  --bg-elevated: #1e1829;
  --border: #2d2540;
  --border-light: #2d2540;
  --fg: #e8e4f0;
  --fg-muted: #9b92b0;
  --fg-light: #e8e4f0;
  --text-muted: #9b92b0;
  --max-w: 1120px;
  --font-ui: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-code: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', 'Cascadia Code', Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1280px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 14, 25, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(127, 82, 255, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-link:hover {
  text-decoration: none;
  opacity: 0.9;
}

.logo-img {
  height: 28px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  color: #fff;
  text-decoration: none;
}

.nav-github {
  opacity: 0.85;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: #fff;
}

.btn-light {
  background: var(--accent);
  color: #fff;
}

.btn-light:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  border-color: #fff;
  color: #fff;
}

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(127, 82, 255, 0.22), transparent),
    var(--bg-dark);
  color: var(--fg);
  padding: 64px 0 0;
}

.hero-inner {
  text-align: center;
  padding-bottom: 48px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--fg-muted);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 8px;
}

.hero-screenshot {
  margin-top: 48px;
  padding: 0 24px 0;
}

.screenshot-frame {
  max-width: var(--max-w);
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  background: var(--bg-panel);
}

.screenshot-frame img {
  width: 100%;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--fg);
}

.section-alt {
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(127, 82, 255, 0.06), transparent),
    var(--bg-alt);
}

.section:not(.section-dark):not(.section-alt) {
  background: var(--bg-panel);
}

.section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.2;
  color: #fff;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 0 48px;
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.pillar h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: #fff;
}

.pillar p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* Feature list: text left, screenshot right */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-light);
}

.feature-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.feature-row-body {
  align-self: center;
}

.feature-row-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}

.feature-row h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.3;
  color: #fff;
}

.feature-row p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.feature-row-shot {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.feature-row-shot img {
  width: 100%;
  display: block;
}

/* Screenshot carousel */
.shot-carousel {
  position: relative;
}

.shot-carousel-viewport {
  overflow: hidden;
  max-height: 700px;
}

.shot-carousel-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.shot-carousel-slide {
  flex: 0 0 100%;
  margin: 0;
}

.shot-carousel-slide img {
  width: 100%;
  max-height: 700px;
  display: block;
  object-fit: contain;
  object-position: top center;
  background: var(--bg-elevated);
}

.shot-carousel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.2);
}

.shot-carousel-label {
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shot-carousel-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shot-carousel-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--fg);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.shot-carousel-btn:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(127, 82, 255, 0.15);
}

.shot-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.shot-carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.shot-carousel-dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

.shot-carousel-dot:hover {
  background: rgba(127, 82, 255, 0.7);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 48px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 1.05rem;
  margin: 4px 0 8px;
  color: #fff;
}

.step p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--fg-muted);
}

/* CTA band */
.cta-band {
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(127, 82, 255, 0.18), transparent),
    var(--bg-toolbar);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 1.75rem;
}

.cta-band p {
  color: var(--fg-muted);
  margin: 0 0 12px;
}

.cta-band p:last-of-type {
  margin-bottom: 28px;
}

.cta-links {
  font-size: 14px;
}

.cta-links a {
  color: var(--fg);
}

.cta-links a:hover {
  color: #fff;
}

.footer-credit {
  color: var(--fg-muted);
}

/* Page content */
.page-hero {
  background: var(--bg-dark);
  color: var(--fg);
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 2rem;
}

.page-hero p {
  margin: 0;
  color: var(--fg-muted);
  max-width: 560px;
}

.page-content {
  padding: 56px 0 80px;
  background: var(--bg-dark);
}

.page-content h2 {
  font-size: 1.35rem;
  margin: 32px 0 12px;
  color: #fff;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p,
.page-content li {
  color: var(--fg-muted);
  line-height: 1.65;
}

.page-content a {
  color: var(--accent);
}

.page-content ul {
  padding-left: 1.25rem;
}

.req-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.req-table th,
.req-table td {
  text-align: left;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
}

.req-table th {
  background: var(--bg-elevated);
  font-weight: 600;
  width: 180px;
  color: #fff;
}

.req-table td {
  color: var(--fg-muted);
  background: var(--bg-panel);
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: var(--fg-muted);
  padding: 40px 0;
  font-size: 13px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--fg-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-credit a {
  color: var(--fg-muted);
  text-decoration: none;
}

.footer-credit a:hover {
  color: #fff;
  text-decoration: none;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-text {
  flex: 1;
  min-width: 240px;
  margin: 0;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-actions .btn {
  padding: 8px 18px;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 40px;
  }

  .feature-list {
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .nav {
    gap: 16px;
  }

  .nav .nav-hide-mobile {
    display: none;
  }

  .hero {
    padding-top: 40px;
  }

  .section {
    padding: 56px 0;
  }
}
