:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface2: #1a1a26;
  --border: #2a2a3e;
  --accent: #e8c547;
  --accent2: #7c6af7;
  --text: #e8e8f0;
  --text-muted: #7878a0;
  --danger: #f04060;
  --success: #40c080;
  --radius: 12px;
  --maxw: 1080px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--text);
  font-weight: 300;
  background: radial-gradient(circle at 76% -14%, rgba(124, 106, 247, 0.2), transparent 38%),
    radial-gradient(circle at 15% -25%, rgba(232, 197, 71, 0.15), transparent 36%),
    var(--bg);
  line-height: 1.55;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: linear-gradient(to right, rgba(124, 106, 247, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(124, 106, 247, 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  z-index: -1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

.wrap {
  width: min(var(--maxw), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  margin-top: 18px;
  padding: 0.85rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(18, 18, 26, 0.72);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding-left: 16px;
  padding-right: 12px;
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(232, 197, 71, 0.15);
}

.site-nav {
  display: inline-flex;
  gap: 1rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 400;
}

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

.hero {
  padding: 4.5rem 0 3rem;
  animation: rise 650ms ease-out both;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  max-width: 16ch;
}

.accent {
  color: var(--accent2);
}

.lead {
  max-width: 62ch;
  color: var(--text-muted);
  margin: 1.1rem 0 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.62rem 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 160ms ease, background-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-solid {
  background: var(--accent);
  color: #0a0a0f;
}

.btn-solid:hover {
  background: #f1d779;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface2);
}

.hero-points {
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 1rem;
  list-style: none;
}

.hero-points li {
  color: var(--text-muted);
  position: relative;
  padding-left: 1.1rem;
}

.hero-points li::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  left: 0;
  top: 0.5rem;
  background: var(--accent);
}

.section {
  padding: 3rem 0;
  animation: rise 700ms ease both;
  animation-delay: 120ms;
}

.section-head h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  max-width: 24ch;
}

.screenshots .section-head h2 {
  max-width: 32ch;
}

.shot-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.85rem;
}

.shot {
  margin: 0;
  grid-column: span 6;
  background: linear-gradient(180deg, rgba(26, 26, 38, 0.85), rgba(18, 18, 26, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.shot-large {
  grid-column: span 12;
}

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

.shot-grid-mobile {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.shot-mobile {
  grid-column: span 2;
}

.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent2);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  margin-bottom: 0.35rem;
}

.card-upcoming {
  border-color: rgba(124, 106, 247, 0.35);
}

.cards {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.card,
.install-card {
  background: linear-gradient(180deg, rgba(26, 26, 38, 0.85), rgba(18, 18, 26, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.card:hover,
.install-card:hover {
  border-color: rgba(124, 106, 247, 0.55);
}

.card h3,
.install-card h3 {
  font-size: 1.05rem;
}

.card p,
.install-card p {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
}

.install-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

pre {
  margin: 0.75rem 0 0;
  white-space: pre-wrap;
  background: rgba(10, 10, 15, 0.85);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  overflow-x: auto;
  color: var(--accent);
}

code {
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
}

.community {
  padding-bottom: 4.2rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

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

.site-footer a {
  color: var(--accent2);
  text-decoration: none;
}

@media (max-width: 800px) {
  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero-points,
  .cards,
  .install-grid {
    grid-template-columns: 1fr;
  }

  .shot,
  .shot-large {
    grid-column: span 12;
  }

  .shot-grid-mobile {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .shot-mobile {
    grid-column: span 2;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
