/* ============================================================
   RbxDesk landing — layout, marketing sections, chrome.
   Tokens: theme.css  |  Panel demo: panel.css
   ============================================================ */

/* ---------- layout ---------- */
.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--r-control);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.18s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* ---------- buttons (landing — not popup full-width) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  padding: 0;
  border: none;
  border-radius: var(--r-control);
  font-family: var(--font-sans);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-1);
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.99);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 14.5px;
  letter-spacing: -0.01em;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s var(--ease), gap 0.18s var(--ease);
}

.text-link:hover {
  color: var(--accent-strong);
  gap: 9px;
}

.text-link i {
  font-size: 15px;
}

/* ---------- nav ---------- */
#nav-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid transparent;
  background: color-mix(in oklab, var(--bg-2) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in oklab, var(--bg-2) 92%, transparent);
  box-shadow: 0 12px 40px -24px rgba(0, 0, 0, 0.55);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-decoration: none;
  flex-shrink: 0;
}

.brand b {
  font-weight: 700;
  color: var(--accent-strong);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.mark-shell {
  fill: var(--surface);
  stroke: var(--line-strong);
  stroke-width: 1;
}

.mark-key {
  fill: var(--accent);
}

.mark-key-1 {
  opacity: 0.95;
}

.mark-key-2 {
  fill: color-mix(in oklab, var(--accent) 55%, var(--surface-2));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: var(--r-control);
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: color-mix(in oklab, var(--surface) 60%, transparent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 88px) 0 clamp(56px, 9vw, 96px);
  overflow: visible;
}

.hero-aura {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse 70% 55% at 18% 0%, var(--aura), transparent 68%),
    radial-gradient(ellipse 50% 40% at 85% 15%, color-mix(in oklab, var(--active) 12%, transparent), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.35rem, 5.2vw, 3.65rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--text);
}

.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--text) 0%, var(--accent-strong) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 12px 6px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--surface) 55%, transparent);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--active);
  box-shadow: 0 0 0 3px var(--active-soft);
}

.hero-sub {
  max-width: 34ch;
  margin: 0 0 28px;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.62;
  color: var(--text-dim);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
}

.hero-console {
  position: relative;
}

.panel-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 12.5px;
  text-align: center;
}

.panel-hint i {
  color: var(--accent-strong);
  font-size: 15px;
}

/* ---------- proof strip ---------- */
.proof {
  padding: 28px 0 36px;
  border-block: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 40%, transparent);
}

.proof-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.proof-inner > p {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
}

.logo-wall {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logo-wall li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-control);
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--surface) 50%, transparent);
  opacity: 0.82;
  transition: opacity 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.logo-wall li:hover {
  opacity: 1;
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.logo-wall img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.35);
}

/* ---------- section heads ---------- */
.section-head {
  margin-bottom: clamp(28px, 4vw, 40px);
  max-width: 58ch;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-lead {
  margin: 0;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.65;
  color: var(--text-dim);
}

/* ---------- capabilities / bento ---------- */
.capabilities {
  padding: clamp(64px, 9vw, 96px) 0;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.bento-cell {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 180px;
  padding: 22px 20px;
  border-radius: calc(var(--r-card) + 2px);
  border: 1px solid var(--line);
  background:
    linear-gradient(155deg, color-mix(in oklab, var(--accent) 5%, var(--surface)), var(--bg-2));
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--text) 4%, transparent);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.bento-cell:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}

.cell-feature {
  grid-column: span 7;
  min-height: 220px;
}

.cell-wide {
  grid-column: span 5;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}

.cell-top h3,
.bento-cell > h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.cell-top p,
.bento-cell > p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--text-dim);
}

.cell-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cell-icon {
  font-size: 22px;
  color: var(--accent-strong);
}

.cell-wide-copy {
  flex: 1;
  min-width: 0;
}

.mini-roster {
  display: flex;
  align-items: center;
  gap: -6px;
  margin-top: auto;
  padding-top: 8px;
}

.rbx-avatar {
  display: inline-flex;
  width: 38px;
  height: 38px;
  margin-left: -8px;
  border-radius: 50%;
  border: 2px solid var(--bg-2);
  background: var(--surface-2);
  overflow: hidden;
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.45);
}

.rbx-avatar:first-child {
  margin-left: 0;
}

.rbx-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- how / steps ---------- */
.how {
  padding: clamp(64px, 9vw, 96px) 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, color-mix(in oklab, var(--accent) 6%, transparent), transparent 70%),
    color-mix(in oklab, var(--bg) 35%, transparent);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 24px 20px 22px;
  border-radius: calc(var(--r-card) + 2px);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--surface), var(--bg-2));
}

.step-n {
  display: block;
  margin-bottom: 14px;
  color: color-mix(in oklab, var(--accent) 70%, var(--text-dim));
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.step-icon {
  display: block;
  margin-bottom: 14px;
  font-size: 24px;
  color: var(--accent-strong);
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.step p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--text-dim);
}

/* ---------- use cases ---------- */
.usecases {
  padding: clamp(64px, 9vw, 96px) 0;
}

.usecases-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.usecases-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.usecases-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--surface) 55%, transparent);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.usecases-list li:hover {
  border-color: var(--line-strong);
  background: color-mix(in oklab, var(--surface) 80%, transparent);
}

.usecases-list i {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 22px;
  color: var(--accent-strong);
}

.usecases-list h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.usecases-list p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dim);
}

/* ---------- privacy ---------- */
.privacy {
  padding: clamp(48px, 7vw, 72px) 0 clamp(64px, 9vw, 96px);
}

.privacy-panel {
  padding: clamp(28px, 4vw, 40px);
  border-radius: calc(var(--r-card) + 4px);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(145deg, color-mix(in oklab, var(--accent) 7%, var(--surface)), var(--bg-2));
  box-shadow: var(--shadow-2);
}

.privacy-head {
  max-width: 58ch;
  margin-bottom: 28px;
}

.privacy-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.privacy-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-facts li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg-2) 65%, transparent);
}

.privacy-facts i {
  font-size: 22px;
  color: var(--accent-strong);
}

.privacy-facts strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.privacy-facts span {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
}

/* ---------- faq ---------- */
.faq {
  padding: clamp(48px, 7vw, 72px) 0 clamp(64px, 9vw, 96px);
}

.faq-inner {
  max-width: 720px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-list details {
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--surface) 45%, transparent);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.faq-list details[open] {
  border-color: var(--line-strong);
  background: color-mix(in oklab, var(--surface) 75%, transparent);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary i {
  flex-shrink: 0;
  color: var(--text-dim);
  font-size: 16px;
  transition: transform 0.22s var(--ease), color 0.22s var(--ease);
}

.faq-list details[open] summary i {
  transform: rotate(45deg);
  color: var(--accent-strong);
}

.faq-list details > p {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--text-dim);
}

/* ---------- final cta ---------- */
.final {
  padding: 0 0 clamp(72px, 10vw, 104px);
}

.final-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: clamp(36px, 6vw, 52px) clamp(24px, 4vw, 40px);
  border-radius: calc(var(--r-card) + 6px);
  border: 1px solid var(--accent-line);
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, var(--accent-soft), transparent 65%),
    linear-gradient(160deg, var(--surface), var(--bg-2));
  box-shadow: var(--shadow-2);
}

.final-panel h2 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.final-panel > p {
  margin: 0;
  max-width: 46ch;
  font-size: 1rem;
  line-height: 1.62;
  color: var(--text-dim);
}

/* ---------- footer ---------- */
.footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 50%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px 40px;
  align-items: start;
  margin-bottom: 28px;
}

.footer-brand p {
  margin: 12px 0 0;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.footer-links a:hover {
  color: var(--accent-strong);
}

.footer-legal p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: color-mix(in oklab, var(--text-dim) 85%, transparent);
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 500;
  width: min(520px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: var(--r-card);
  border: 1px solid var(--line-strong);
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-2);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(12px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0s linear 0.24s;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0s linear 0s;
}

/* ---------- reveal animations ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-console {
    max-width: 420px;
    margin-inline: auto;
  }

  .cell-feature,
  .cell-wide,
  .bento-cell {
    grid-column: span 6;
  }

  .usecases-grid {
    grid-template-columns: 1fr;
  }

  .privacy-facts {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .cell-feature,
  .cell-wide,
  .bento-cell {
    grid-column: auto;
  }

  .cell-wide {
    flex-direction: column;
  }

  .proof-inner {
    justify-content: center;
    text-align: center;
  }

  .logo-wall {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .bento-cell:hover,
  .logo-wall li:hover {
    transform: none;
  }
}
