:root {
  --bg: #050512;
  --bg-elevated: rgba(20, 22, 33, 0.95);
  --bg-card: rgba(18, 20, 32, 0.9);
  --bg-card-strong: #191b2a;
  --bg-contrast: #050815;
  --border-subtle: rgba(255, 255, 255, 0.06);

  --accent: #ff3355;
  --accent-soft: rgba(255, 51, 85, 0.12);
  --accent-strong: #ff165d;
  --accent-blue: #4aa8ff;

  --text: #f8fafc;
  --text-soft: #9ca3af;
  --text-soft2: #6b7280;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 22px 70px rgba(0, 0, 0, 0.6);
}

/* RESET / BASE ------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #050815 0, #020010 45%, #000 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* LAYOUT ------------------------------------------------------------------ */

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
}

.main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
}

/* Background decoration */

.bg-gradient {
  pointer-events: none;
  position: fixed;
  inset: -200px;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.14), transparent 55%),
    radial-gradient(circle at top right, rgba(248, 113, 113, 0.16), transparent 55%),
    radial-gradient(circle at bottom, rgba(129, 140, 248, 0.12), transparent 60%);
  opacity: 0.9;
  z-index: -3;
}

.bg-orbit {
  pointer-events: none;
  position: fixed;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.75;
  z-index: -2;
}

.bg-orbit--left {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.7), transparent 70%);
  top: 18%;
  left: -120px;
}

.bg-orbit--right {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.7), transparent 70%);
  top: 45%;
  right: -150px;
}

/* NAVBAR ------------------------------------------------------------------ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  backdrop-filter: blur(26px);
  background: linear-gradient(to bottom, rgba(5, 6, 18, 0.96), transparent);
}

.nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav__logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: radial-gradient(circle at 20% 0, #f97373, #7c2d77);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(248, 113, 113, 0.68);
}

.nav__logo-icon {
  font-size: 18px;
  transform: translateY(1px);
}

.nav__brand-text {
  display: flex;
  flex-direction: column;
}

.nav__brand-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.nav__brand-tagline {
  font-size: 0.7rem;
  color: var(--text-soft2);
}

.nav__links {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.nav__links--desktop {
  flex: 1;
  justify-content: center;
}

.nav__link {
  background: transparent;
  border: none;
  color: var(--text-soft);
  font-size: 0.86rem;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(to right, #60a5fa, #fb7185);
  transition: width 0.18s ease-out;
}

.nav__link:hover {
  color: var(--text);
}

.nav__link:hover::after {
  width: 60%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__cta {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(252, 165, 165, 0.25);
  font-size: 0.86rem;
  text-decoration: none;
  color: var(--text);
  background: radial-gradient(circle at 10% 0, #fb7185, #7c3aed);
  box-shadow: 0 12px 35px rgba(248, 113, 113, 0.5);
  white-space: nowrap;
}

.nav__cta--mobile {
  margin: 0.6rem 0 0.2rem;
  justify-content: center;
  display: inline-flex;
}

.nav__menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  padding: 0;
  cursor: pointer;
}

.nav__menu-toggle span {
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav__menu-toggle.is-open span:nth-child(1) {
  transform: translateY(2px) rotate(45deg);
}

.nav__menu-toggle.is-open span:nth-child(2) {
  transform: translateY(-2px) rotate(-45deg);
}

.nav__links--mobile {
  display: none;
  flex-direction: column;
  padding: 0 1.5rem 1rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), #020617);
  border-bottom: 1px solid rgba(107, 114, 128, 0.4);
}

/* HERO -------------------------------------------------------------------- */

.section {
  margin-bottom: 5rem;
}

.section--hero {
  margin-top: 1rem;
}

.section--padded {
  padding-top: 1rem;
}

.section--contrast {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), #020617);
  border-radius: 40px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-soft);
}

.section--center {
  text-align: center;
}

.section--grid .section__header {
  max-width: 640px;
}

.section__header {
  margin-bottom: 2.2rem;
}

.section__header h2 {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

.section__header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 0.6rem;
}

.hero__title {
  font-size: clamp(2.3rem, 3.4vw, 3rem);
  line-height: 1.05;
  margin: 0 0 0.6rem;
}

.hero__title-gradient {
  background: linear-gradient(to right, #60a5fa, #fb7185, #fbbf24);
  -webkit-background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin: 0 0 1.4rem;
  color: var(--text-soft);
  font-size: 0.98rem;
  max-width: 32rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.8rem;
  color: var(--text-soft2);
}

.hero__meta-item {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), #020617);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hero__meta-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.62rem;
  color: #9ca3af;
}

.hero__meta-value {
  font-size: 0.8rem;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease,
    border-color 0.18s ease;
}

.button--primary {
  background: radial-gradient(circle at 0 0, #fb7185, #7c3aed);
  border-color: rgba(252, 165, 165, 0.3);
  box-shadow: 0 18px 45px rgba(248, 113, 113, 0.55);
}

.button--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 60px rgba(248, 113, 113, 0.7);
}

.button--ghost {
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
}

.button--ghost:hover {
  border-color: rgba(248, 250, 252, 0.75);
  background: rgba(15, 23, 42, 0.9);
}

.button--full {
  width: 100%;
}

.button--subtle {
  border-color: rgba(156, 163, 175, 0.35);
  background: rgba(17, 24, 39, 0.95);
  font-size: 0.86rem;
}

/* Hero preview device */

.hero__preview {
  display: flex;
  justify-content: center;
}

.device-frame {
  position: relative;
  width: 290px;
  padding: 0.85rem 0.85rem 0.9rem;
  border-radius: 32px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top, #0b1020, #020617);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.device-frame__status {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #9ca3af;
  margin-bottom: 0.3rem;
}

.device-frame__header {
  padding: 0.5rem 0.35rem 0.15rem;
}

.device-frame__subtitle {
  font-size: 0.7rem;
  color: #a5b4fc;
}

.device-frame__title {
  margin: 0.12rem 0 0;
  font-size: 1.15rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pill--live {
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.6);
}

.device-frame__scorecard {
  margin-top: 0.2rem;
  padding: 0.5rem 0.35rem 0.55rem;
  border-radius: 19px;
  background: linear-gradient(135deg, #030712, #020617 35%, #020617 65%, #0f172a);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

.score-row--header {
  font-size: 0.7rem;
  color: var(--text-soft2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.score-row__fighter {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.score-row__fighter--right {
  justify-content: flex-end;
}

.score-row__name {
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-row__score {
  font-weight: 700;
  font-size: 0.9rem;
}

.score-row__score--blue {
  color: #60a5fa;
}

.score-row__score--red {
  color: #fb7185;
}

.score-row__round-meta {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-soft2);
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.score-row__badge {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(55, 65, 81, 0.75);
  font-size: 0.7rem;
}

.score-summary {
  margin: 0.45rem 0 0.4rem;
  padding: 0.45rem 0.4rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
}

.score-summary__block {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.score-summary__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
}

.score-summary__value {
  font-weight: 600;
  font-size: 0.96rem;
}

.score-summary__value--muted {
  color: #e5e7eb;
}

.score-summary__divider {
  width: 1px;
  height: 2rem;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(148, 163, 184, 0.7),
    transparent
  );
}

.device-frame__cta {
  margin-top: 0.35rem;
}

.device-frame__footer {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.68rem;
}

.chip {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--text-soft2);
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.2rem 1.1rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.7);
}

.feature-card__icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.15);
  margin-bottom: 0.7rem;
}

.feature-card h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.feature-card p {
  margin: 0 0 0.6rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.feature-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-soft2);
}

.feature-card__list li {
  padding-left: 0.9rem;
  position: relative;
  margin-bottom: 0.25rem;
}

.feature-card__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #60a5fa;
}

/* How it works ------------------------------------------------------------ */

.how-it-works {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.how-it-works__steps {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.how-step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(75, 85, 99, 0.65);
  cursor: pointer;
  text-align: left;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.1s ease;
}

.how-step__index {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  background: rgba(148, 163, 184, 0.2);
  color: #e5e7eb;
}

.how-step__body h3 {
  margin: 0 0 0.15rem;
  font-size: 0.98rem;
}

.how-step__body p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-soft2);
}

.how-step.is-active {
  background: radial-gradient(circle at top left, #0f172a, #020617);
  border-color: rgba(248, 113, 113, 0.7);
  transform: translateY(-1px);
}

.how-step.is-active .how-step__index {
  background: radial-gradient(circle at 0 0, #fb7185, #3b82f6);
  color: white;
}

.how-it-works__panel {
  padding: 1.1rem 1.2rem;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(75, 85, 99, 0.85);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  min-height: 210px;
}

.how-panel {
  display: none;
}

.how-panel.is-active {
  display: block;
}

.how-panel h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.how-panel p {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.how-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-soft2);
  font-size: 0.86rem;
}

/* Split section ----------------------------------------------------------- */

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.split-card {
  padding: 1.4rem 1.2rem 1.35rem;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(75, 85, 99, 0.7);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.9);
}

.split-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.split-card p {
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.split-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-soft2);
  font-size: 0.87rem;
}

.split-card__list li {
  padding-left: 1rem;
  margin-bottom: 0.32rem;
  position: relative;
}

.split-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #4ade80;
  font-size: 0.8rem;
}

/* Tech cards -------------------------------------------------------------- */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.tech-card {
  padding: 1.3rem 1.25rem;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(75, 85, 99, 0.9);
}

.tech-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.tech-card p {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.tech-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  color: var(--text-soft2);
}

/* FAQ --------------------------------------------------------------------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.faq-item {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(75, 85, 99, 0.85);
  text-align: left;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.1s ease;
}

.faq-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
}

.faq-item__header h3 {
  margin: 0;
  font-size: 0.96rem;
}

.faq-item__icon {
  font-size: 1.1rem;
  color: var(--text-soft2);
}

.faq-item__body {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.22s ease,
    opacity 0.18s ease;
}

.faq-item.is-open {
  background: radial-gradient(circle at top left, #0f172a, #020617);
  border-color: rgba(248, 113, 113, 0.7);
  transform: translateY(-1px);
}

.faq-item.is-open .faq-item__body {
  max-height: 280px;
  opacity: 1;
}

/* Download / CTA ---------------------------------------------------------- */

.download h2 {
  margin: 0 0 0.7rem;
  font-size: 1.6rem;
}

.download p {
  margin: 0 0 1.1rem;
  color: var(--text-soft);
}

.download__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.download__hint {
  font-size: 0.82rem;
  color: var(--text-soft2);
}

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

.footer {
  border-top: 1px solid rgba(31, 41, 55, 0.85);
  padding: 1.2rem 1.5rem 2rem;
}

.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-soft2);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer__logo {
  font-size: 1.1rem;
}

.footer__name {
  font-weight: 600;
}

/* Reveal on scroll -------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.4s ease-out,
    transform 0.4s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE -------------------------------------------------------------- */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.4rem;
  }

  .hero__preview {
    order: -1;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how-it-works {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
  }

  .split-grid,
  .tech-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav__links--desktop {
    display: none;
  }

  .nav__menu-toggle {
    display: inline-flex;
  }

  .nav__links--mobile {
    display: none;
  }

  .nav__links--mobile.is-open {
    display: flex;
  }
}

@media (max-width: 640px) {
  .main {
    padding: 6.4rem 1.1rem 3.3rem;
  }

  .section {
    margin-bottom: 4rem;
  }

  .section--contrast {
    padding: 1.6rem 1.2rem;
  }

  .device-frame {
    width: 100%;
    max-width: 320px;
  }

  .features-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__meta {
    flex-direction: column;
  }

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