:root {
  --bg: #0b0f1a;
  --bg2: #0e1424;
  --surface: #141a2a;
  --surface-2: #1a2236;
  --border: #2a3450;
  --primary: #5b8cff;
  --accent: #9b6bff;
  --text: #e6ecff;
  --muted: #8a96b3;
  --radius: 16px;
  --maxw: 1120px;
  --font:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter,
    Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(
      1200px 600px at 50% -10%,
      rgba(91, 140, 255, 0.14),
      transparent 60%
    ),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}

/* ---------------- Nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  max-width: var(--maxw);
  margin: 0 auto;
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  font-size: 18px;
}
.brand:hover {
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}
.nav-links a.ext {
  color: var(--primary);
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 22px 24px;
}
.glow {
  position: absolute;
  inset: -120px 0 auto 0;
  height: 420px;
  background: radial-gradient(
    600px 280px at 30% 20%,
    rgba(155, 107, 255, 0.22),
    transparent 70%
  );
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff, #b9c6ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: 18px;
  color: #c2ccec;
  margin: 0 0 26px;
  max-width: 36ch;
}
.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border 0.15s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 8px 30px rgba(91, 140, 255, 0.35);
}
.btn.ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn.ghost:hover {
  border-color: var(--primary);
}
.hero-meta {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}
.hero-meta li {
  position: relative;
  padding-left: 18px;
}
.hero-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
}

/* ---------------- Window frame + media ---------------- */
.window {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.window-bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #38415e;
}
.window-bar span:nth-child(1) {
  background: #ff5f57;
}
.window-bar span:nth-child(2) {
  background: #febc2e;
}
.window-bar span:nth-child(3) {
  background: #28c840;
}
.demo {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}
.window.wide {
  max-width: 920px;
  margin: 0 auto;
}

/* ---------------- Sections ---------------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 22px;
}
.section h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto 40px;
  font-size: 17px;
}

/* ---------------- Feature cards ---------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition:
    transform 0.18s ease,
    border 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 140, 255, 0.5);
}
.card .ic {
  font-size: 26px;
  margin-bottom: 10px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------------- Showcase ---------------- */
.showcase-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 48px;
  align-items: center;
}
.showcase-media {
  display: flex;
  justify-content: center;
}
.showcase-media img {
  width: 100%;
  max-width: 340px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.showcase-copy h2 {
  text-align: left;
}
.showcase-copy p {
  color: #c2ccec;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.ticks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--text);
}
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  font-size: 12px;
  font-weight: 700;
}

/* ---------------- Tour gallery ---------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery figure {
  margin: 0;
  text-align: center;
}
.gallery img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s ease, border 0.18s ease;
}
.gallery img:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 140, 255, 0.5);
}
.gallery figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------------- Commands ---------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
}
.chips code {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.muted-chips {
  margin-top: 14px;
}
.muted-chips code {
  color: var(--muted);
}

/* ---------------- Privacy ---------------- */
.privacy .section-sub {
  margin-bottom: 0;
}

/* ---------------- Creator ---------------- */
.creator-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--surface), var(--bg2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.creator-card h2 {
  text-align: left;
  margin: 0 0 4px;
  font-size: 24px;
}
.creator-card .role {
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 10px;
}
.creator-card p {
  color: var(--muted);
  margin: 0 0 16px;
}
.avatar {
  border-radius: 50%;
  border: 2px solid var(--border);
  object-fit: cover;
  flex: none;
}
.creator-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.creator-links .btn {
  padding: 9px 16px;
  font-size: 14px;
}

/* ---------------- Footer ---------------- */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 30px 22px;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}
.footer .brand {
  font-size: 16px;
}
.footer a {
  color: var(--muted);
}
.footer a:hover {
  color: var(--text);
}

/* ---------------- Reveal animation ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .showcase-copy h2 {
    text-align: center;
  }
  .nav-links {
    gap: 14px;
  }
}
@media (max-width: 560px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .nav-links a:not(.ext) {
    display: none;
  }
  .creator-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .creator-card h2,
  .creator-links {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
