/* ============================================================
   Rbxport — landing page styles
   ============================================================ */

:root {
  --bg: #050608;
  --bg-2: #090b0f;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #eef1f6;
  --muted: #9aa3b2;
  --muted-2: #667085;

  --c1: #22d3ee; /* cyan   */
  --c2: #6366f1; /* indigo */
  --c3: #a855f7; /* violet */
  --accent: #22d3ee;

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --nav-h: 68px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.grad {
  background: linear-gradient(92deg, var(--c1) 0%, #7dd3fc 55%, var(--c2) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--accent);
  color: #05070b;
  font-weight: 700;
  box-shadow: 0 10px 30px -12px rgba(34, 211, 238, 0.7);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px -12px rgba(34, 211, 238, 0.85);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Greyed-out, non-interactive buttons while downloads are not live yet. */
.btn.is-soon {
  pointer-events: none;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted-2);
  border-color: var(--border);
  box-shadow: none;
  font-weight: 600;
}

.btn.is-soon svg {
  opacity: 0.6;
}

.btn.is-soon .btn-label {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.soon-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.nav-cta .soon-tag {
  font-size: 0.6rem;
  padding: 2px 7px;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(5, 6, 8, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: block;
}

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 0.95rem;
  color: var(--muted);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  transition: color 0.15s ease;
}

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

.nav-cta {
  padding: 9px 18px;
  font-size: 0.92rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 62%, rgba(34, 211, 238, 0.16), transparent 70%),
    radial-gradient(45% 40% at 22% 30%, rgba(99, 102, 241, 0.18), transparent 70%),
    radial-gradient(40% 35% at 80% 75%, rgba(168, 85, 247, 0.12), transparent 70%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  /* Read by hero.js: how tall the open lid is (fraction of the viewport height)
     and where its centre sits (fraction from the top). */
  --hero-fill: 0.47;
  --hero-center: 0.77;
  --hero-margin: 1.2;
}

.hero-video {
  position: absolute;
  width: 2px;
  height: 2px;
  opacity: 0;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: calc(var(--nav-h) + clamp(14px, 3.5vh, 40px));
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--c1);
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.6);
}

.hero-sub {
  max-width: 720px;
  margin: 0 auto 24px;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--muted);
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta .btn {
  padding: 13px 22px;
  font-size: 0.98rem;
}

.dl-os-btn {
  min-width: 222px;
}

.hero-alt {
  margin-top: 14px;
  font-size: 0.84rem;
  color: var(--muted-2);
}

.hero-alt a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-alt a:hover {
  color: var(--text);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12vh;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero-play {
  position: absolute;
  left: 50%;
  bottom: clamp(56px, 9vh, 96px);
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(5, 6, 8, 0.7);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-play[hidden] {
  display: none;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 3;
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  opacity: 0.8;
}

.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.7);
  animation: scroll-hint 1.8s ease-in-out infinite;
}

@keyframes scroll-hint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Flat fallback (no WebGL) */
.hero-flat {
  position: relative;
  z-index: 2;
  align-self: center;
  padding-bottom: 60px;
}

.hero.is-flat .hero-canvas {
  display: none;
}

.flat-frame {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, #2a2c31, #17181c);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.flat-screen {
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 1.9394;
}

.flat-screen .hero-video {
  position: static;
  width: 100%;
  height: 100%;
  opacity: 1;
  display: block;
  object-fit: cover;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(72px, 12vh, 130px) 0;
}

.section-head {
  max-width: 660px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-bottom: 16px;
}

.section-lede {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

/* ---------- Features ---------- */

.features {
  padding-top: clamp(20px, 4vh, 40px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  position: relative;
  padding: 28px 26px 30px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(120px 80px at 20% 0%, rgba(34, 211, 238, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.feature:hover {
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-2px);
}

.feature:hover::before {
  opacity: 1;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 13px;
  color: var(--c1);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature p {
  color: var(--muted);
  font-size: 0.98rem;
}

.facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.facts li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c1);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.8);
}

/* ---------- For professionals ---------- */

.pro {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(99, 102, 241, 0.1), transparent 70%),
    var(--bg);
}

.pro-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.pro-item {
  position: relative;
  padding: 34px 28px 38px;
  border-right: 1px solid var(--border);
}

.pro-item:last-child {
  border-right: none;
}

.pro-item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--c1), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.pro-item:hover::before {
  transform: scaleX(1);
}

.pro-num {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c1);
  margin-bottom: 26px;
}

.pro-art {
  color: var(--text);
  margin-bottom: 26px;
}

.pro-art svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.pro-item h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  max-width: 300px;
}

.pro-item p {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 320px;
}

/* ---------- Comparison table ---------- */

.compare {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cmp {
  width: 100%;
  min-width: 520px;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 auto;
}

.cmp th,
.cmp td {
  padding: 16px 22px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}

.cmp thead th {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom-color: var(--border-strong);
}

.cmp .cmp-feature {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
}

.cmp tbody th[scope="row"] {
  text-align: left;
  font-weight: 500;
  color: var(--text);
}

.cmp tbody tr:last-child th,
.cmp tbody tr:last-child td {
  border-bottom: none;
}

/* Highlighted Rbxport column */
.cmp .cmp-us {
  background: rgba(34, 211, 238, 0.07);
  border-left: 1px solid rgba(34, 211, 238, 0.35);
  border-right: 1px solid rgba(34, 211, 238, 0.35);
}

.cmp thead th.cmp-us {
  border-top: 1px solid rgba(34, 211, 238, 0.35);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  background: rgba(34, 211, 238, 0.14);
}

.cmp tbody tr:last-child td.cmp-us {
  border-bottom: 1px solid rgba(34, 211, 238, 0.35);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.cmp-usname {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cmp-usname svg {
  display: block;
}

/* Yes / no marks */
.ic {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.ic.yes {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
}

.ic.no {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
}

.cmp .txt {
  color: var(--muted);
}

.cmp .txt.strong {
  color: var(--text);
  font-weight: 700;
}

/* Category divider rows */
.cmp .cmp-cat th,
.cmp .cmp-cat td {
  padding-top: 30px;
  padding-bottom: 12px;
  vertical-align: middle;
}

.cmp tbody tr.cmp-cat:first-child th,
.cmp tbody tr.cmp-cat:first-child td {
  padding-top: 22px;
}

.cmp .cmp-cat th[scope="colgroup"] {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--c1);
}

/* Whole-category rows that carry their own value */
.cmp .cmp-cat-val th[scope="colgroup"] {
  color: var(--text);
}

.cmp .cmp-cost th[scope="colgroup"] {
  color: var(--c1);
}

/* "Coming soon" badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.badge.soon {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.cmp-note {
  margin-top: 22px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted-2);
}

/* ---------- Closing CTA ---------- */

.cta-band {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(50% 60% at 50% 100%, rgba(34, 211, 238, 0.14), transparent 70%),
    var(--bg);
}

.cta-inner {
  text-align: center;
  max-width: 640px;
}

.cta-inner h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-bottom: 14px;
}

.cta-inner .section-lede {
  margin-bottom: 30px;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}

.footer-note {
  font-size: 0.8rem;
  color: var(--muted-2);
  max-width: 460px;
  text-align: center;
  flex: 1 1 300px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
  .pro-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
  .pro-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 30px 8px 34px;
  }
  .pro-item:last-child {
    border-bottom: none;
  }
}

@media (max-width: 820px) {
  .hero {
    grid-template-rows: auto minmax(50vh, 1fr);
  }
  .hero-canvas {
    position: relative;
    grid-row: 2;
    --hero-fill: 0.6;
    --hero-center: 0.5;
    --hero-margin: 1.04;
  }
  .hero-copy {
    padding-top: calc(var(--nav-h) + 24px);
    padding-bottom: 8px;
  }
  .hero::after {
    height: 14vh;
  }
}

@media (max-width: 560px) {
  .hero-cta .btn {
    width: 100%;
  }
  .dl-os-btn {
    min-width: 0;
  }
  .nav-cta {
    display: none;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .scroll-hint {
    display: none;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
