:root {
  --primary: #7b3fe4;
  --primary-dark: #6a32c8;
  --on-primary: #ffffff;
  --background: #141618;
  --surface: #1e2124;
  --surface-alt: #2a2d31;
  --text: #ffffff;
  --text-secondary: #b0b3b8;
  --text-muted: #8a8d92;
  --border: #2f3236;
  --live: #f87171;
  --max: 1120px;
  --radius: 12px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--background);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.25rem, 4vw, 2rem);
  background: rgba(20, 22, 24, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 1.15rem;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.nav a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: calc(100vh - 3.75rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--surface);
}

.hero-stage {
  position: absolute;
  inset: 0;
  min-height: 100%;
  border: 0;
  border-radius: 0;
  z-index: 0;
  background: var(--surface-alt);
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(20, 22, 24, 0.94) 0%,
      rgba(20, 22, 24, 0.72) 42%,
      rgba(20, 22, 24, 0.35) 100%
    ),
    linear-gradient(0deg, rgba(20, 22, 24, 0.82) 0%, transparent 48%);
  pointer-events: none;
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 5.5rem) clamp(1.25rem, 4vw, 2rem)
    clamp(2.75rem, 7vh, 4.5rem);
}

.brand {
  font-weight: 800;
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 1rem;
  color: var(--text);
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 0.85rem;
  max-width: 24ch;
  color: var(--text-secondary);
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 38ch;
  color: var(--text-secondary);
  font-size: 1.02rem;
  font-weight: 500;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

.btn-ghost:hover {
  background: var(--surface-alt);
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.media-slot {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  min-height: 260px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
}

.media-slot.is-filled {
  border-color: var(--border);
}

.media-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.media-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 1.5rem;
  line-height: 1.45;
  z-index: 1;
}

.media-hint small {
  display: inline-block;
  margin-top: 0.35rem;
  opacity: 0.85;
  font-size: 0.78rem;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 4vw, 2rem) 0.25rem;
}

.section-head {
  max-width: 36rem;
}

.section-head h2,
.feature-text h2,
.download .section-head h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  margin: 0 0 0.6rem;
  line-height: 1.2;
  color: var(--text);
}

.section-head p,
.feature-text p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 40ch;
  font-weight: 500;
}

.feature {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 3.75rem) clamp(1.25rem, 4vw, 2rem);
  display: grid;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 860px) {
  .feature-split {
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    gap: 2.75rem;
  }

  .feature-reverse {
    grid-template-columns: 1.15fr 1fr;
  }

  .feature-reverse .feature-text {
    order: 2;
  }

  .feature-reverse .media-slot {
    order: 1;
  }
}

.feature-text h2 {
  max-width: 16ch;
}

.download {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.75rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2rem);
  border-top: 1px solid var(--border);
}

.download-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (min-width: 720px) {
  .download-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.download-card {
  padding: 1.35rem 1.35rem 1.2rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
}

.download-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}

.download-card p {
  color: var(--text-secondary);
  margin: 0 0 1.15rem;
  font-weight: 500;
}

.download-card .btn {
  width: 100%;
}

.download-meta {
  margin: 0.8rem 0 0 !important;
  font-size: 0.86rem;
  color: var(--text-muted) !important;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2.25rem clamp(1.25rem, 4vw, 2rem) 2.75rem;
  text-align: center;
  color: var(--text-secondary);
}

.footer-brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 0.35rem;
  letter-spacing: -0.03em;
}

.footer-links {
  margin-top: 0.7rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}
