/* SuperStar landing page. Self-contained: styles.css is shared with the docs, terms, privacy and sign-in pages. */

:root {
  --bg: #050508;
  --ground: #0b0b14;
  --tile: #12121c;
  --ink: #f5f5f7;
  --ink-2: #cfcfdb;
  --ink-3: #a1a1b5;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-text: #b39dfb;
  --accent-soft: #c4b5fd;
  --display: "Sora", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1200px;
  --section: clamp(120px, 14vw, 200px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
}

p {
  margin: 0;
}

code {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95em;
  color: var(--accent-soft);
}

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Frame: one pair of equal margins at every width. */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- Navigation: a plain bar, no glass ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  transition: background-color 0.3s var(--ease);
}

.nav.scrolled {
  background: rgba(5, 5, 8, 0.94);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--ink-2);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

/* ---------- Buttons: flat fills, fully round, decided once ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 15px;
}

.btn-lg {
  min-height: 56px;
  padding: 0 32px;
  font-size: 17px;
}

.btn-solid {
  background: var(--accent);
  color: #fff;
}

.btn-solid:hover {
  background: var(--accent-hover);
}

.btn-quiet {
  background: var(--tile);
  color: var(--ink);
}

.btn-quiet:hover {
  background: #1c1c2a;
}

/* ---------- Type roles ---------- */

.h2 {
  font-size: clamp(2.5rem, 1.7rem + 3.4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.lead {
  margin-top: 20px;
  max-width: 24ch;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.25rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.section {
  position: relative;
  z-index: 1;
  padding-block: var(--section);
}

.section-alt {
  background: rgba(11, 11, 20, 0.86);
}

.section-head {
  margin-bottom: clamp(56px, 6vw, 96px);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  padding: clamp(56px, 8vw, 120px) 0 clamp(96px, 10vw, 140px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.6rem, 1.3rem + 5.4vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.hero-sub {
  margin-top: 28px;
  max-width: 34em;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 760px;
  margin-top: clamp(72px, 9vw, 120px);
}

.stat-num {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.25rem, 1.8rem + 2.2vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  display: block;
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 15px;
}

/* Interface fragments: the bot's real output, drawn in HTML. */

.shot {
  margin: 0;
  padding: 22px;
  border-radius: 18px;
  background: var(--tile);
  color: var(--ink-2);
  font-size: 15px;
}

.shot figcaption {
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 14px;
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 16px;
  color: var(--ink);
  font-weight: 600;
}

.shot-hash {
  color: var(--ink-3);
}

.shot-msg {
  display: flex;
  gap: 14px;
}

.shot-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.shot-name {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.shot-name time {
  margin-left: 6px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 400;
}

.shot-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  vertical-align: 1px;
}

.embed {
  margin-top: 10px;
  padding: 18px 20px;
  border-radius: 10px;
  background: var(--ground);
  border-left: 4px solid var(--accent);
}

.embed-title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.embed-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 0;
}

.embed-fields dt {
  color: var(--ink-3);
  font-size: 13px;
}

.embed-fields dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 600;
}

.shot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.btn-mini {
  padding: 8px 14px;
  border-radius: 6px;
  background: #23233a;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.btn-mini-danger {
  background: #b4233f;
  color: #fff;
}

/* Marquee: a band of the commands, moving slowly. */

.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--ground);
  padding-block: 26px;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.marquee-group {
  display: flex;
  flex: none;
  gap: 48px;
  padding-right: 48px;
}

.marquee-group span {
  color: var(--accent-soft);
  font-family: var(--display);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.5rem);
  font-weight: 600;
  white-space: nowrap;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Features ---------- */

.features-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(56px, 7vw, 120px);
  align-items: start;
}

.features-side {
  position: sticky;
  top: 120px;
}

.features-side .shot {
  margin-top: clamp(48px, 5vw, 72px);
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 200px;
  margin-top: 8px;
}

.bars span {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: var(--accent);
}

.feature-list {
  display: grid;
  gap: clamp(48px, 5vw, 72px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: grid;
  gap: 14px;
}

.feature h3 {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.feature p {
  max-width: 36em;
  font-size: 17px;
}

.cmds {
  margin-top: 4px;
  color: var(--ink-3) !important;
  font-size: 15px !important;
}

/* ---------- Commands: searchable ---------- */

.search {
  margin-bottom: 20px;
}

.search input {
  width: 100%;
  max-width: 560px;
  height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--tile);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
}

.search input::placeholder {
  color: var(--ink-3);
}

.search input:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

.search-status {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 15px;
}

.cmd-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 72px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cmd-group[hidden] {
  display: none;
}

.cmd-group h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  letter-spacing: -0.015em;
}

.cmd-group p {
  color: var(--ink-2);
  line-height: 1.9;
}

/* ---------- Setup ---------- */

.setup-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-steps h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
  letter-spacing: -0.015em;
}

.setup-steps p {
  font-size: 16px;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 880px;
}

.faq-item {
  padding: 0 28px;
  border-radius: 16px;
  background: var(--tile);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--accent-text);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding-bottom: 26px;
  max-width: 62ch;
}

/* ---------- Closing field ---------- */

.cta {
  position: relative;
  z-index: 1;
  padding: clamp(104px, 12vw, 168px) 0;
  background: var(--accent);
}

.cta-title {
  max-width: 14ch;
  color: #fff;
  font-size: clamp(2.75rem, 1.6rem + 4.6vw, 6rem);
  line-height: 0.98;
}

.cta-sub {
  margin-top: 24px;
  max-width: 30em;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
}

.cta .hero-actions {
  margin-top: 40px;
}

.btn-invert {
  background: #fff;
  color: #1d0b44;
}

.btn-invert:hover {
  background: #ede9fe;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.26);
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  z-index: 1;
  padding: 80px 0 0;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.footer-links a {
  color: var(--ink-2);
  font-size: 15px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-copy {
  color: var(--ink-3);
  font-size: 14px;
}

.footer-word {
  margin: 48px 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: min(14.2vw, 240px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

/* ---------- Motion: entrances only run when script is on ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

.js .hero-copy.reveal {
  transition-delay: 0.05s;
}

.js .shot-embed.reveal {
  transition-delay: 0.16s;
}

.js .setup-steps li:nth-child(2) {
  transition-delay: 0.08s;
}

.js .setup-steps li:nth-child(3) {
  transition-delay: 0.16s;
}

.js .setup-steps li:nth-child(4) {
  transition-delay: 0.24s;
}

/* ---------- Legal pages (privacy, terms) ---------- */

.legal {
  position: relative;
  z-index: 1;
  padding: clamp(72px, 9vw, 128px) 0 var(--section);
}

.legal-inner {
  max-width: 760px;
}

.legal-head {
  margin-bottom: clamp(48px, 6vw, 72px);
}

.legal-meta {
  margin-top: 20px;
  color: var(--ink-3);
  font-size: 15px;
}

.legal-body section + section {
  margin-top: 52px;
}

.legal-body h2 {
  margin-bottom: 14px;
  font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.legal-body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
}

.legal-body p + p,
.legal-body p + ul,
.legal-body ul + p,
.legal-body ul + h3,
.legal-body p + h3,
.legal-body h3 + p {
  margin-top: 14px;
}

.legal-body h3 {
  margin-top: 36px;
  margin-bottom: 10px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.legal-body ul {
  margin: 0;
  padding-left: 1.25em;
  list-style: disc;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.75;
}

.legal-body li + li {
  margin-top: 8px;
}

.legal-body strong {
  color: inherit;
  font-weight: 600;
}

.legal-body a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}

.legal-body a:hover {
  color: var(--ink);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid,
  .features-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .features-side {
    position: static;
  }

  .features-side .shot {
    max-width: 560px;
  }

  .setup-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cmd-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta .btn-quiet {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 12px var(--gutter) 24px;
    background: var(--bg);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
    font-size: 1.05rem;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .stats {
    gap: 16px;
  }

  .stat-num {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 13px;
  }

  .embed-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .setup-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .lead {
    font-size: 1.5rem;
  }

  .feature p {
    font-size: 16px;
  }

  .hero-actions .btn,
  .cta .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
