:root {
  --bs-font-family-heading: 'Outfit', sans-serif;
  --bf-font: 'Outfit', system-ui, sans-serif;
  --bf-accent: #4d9fff;
  --bf-accent-strong: #6eb0ff;
  --bf-accent-dim: rgba(77, 159, 255, 0.16);
  --bf-ink: #f4f6f8;
  --bf-muted: rgba(255, 255, 255, 0.7);
  --bf-line: rgba(255, 255, 255, 0.12);
  --bf-panel: rgba(255, 255, 255, 0.05);
  --bf-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bs-primary: #4d9fff;
  --bs-primary-rgb: 77, 159, 255;
  --bs-link-color: #4d9fff;
  --bs-link-hover-color: #6eb0ff;
}

html {
  scroll-behavior: smooth;
}

body.site {
  font-family: var(--bf-font);
  color: var(--bf-ink);
  overflow-x: clip;
}

.heading,
.navbar-brand,
.hero-title,
.section-title,
.cta-title,
.footer-logo,
.feature-title,
.download-title {
  font-family: var(--bs-font-family-heading);
  letter-spacing: 0.04em;
}

.accent-dot {
  color: var(--bf-accent);
}

/* ——— Nav ——— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.35s var(--bf-ease),
    backdrop-filter 0.35s var(--bf-ease),
    border-color 0.35s var(--bf-ease);
  border-bottom: 1px solid transparent;
  background: transparent;
}

.site-nav.is-scrolled {
  background: rgba(21, 22, 23, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--bf-line);
}

.site-nav .navbar-brand {
  letter-spacing: 0.08em;
}

.brand-mark {
  opacity: 0.92;
  flex-shrink: 0;
}

.site-nav .nav-link {
  color: rgba(255, 255, 255, 0.72) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding-inline: 0.85rem !important;
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav .nav-link:hover {
  color: #fff !important;
  text-decoration: none !important;
}

.site-nav .nav-link.active {
  color: #fff !important;
  font-weight: 600;
  text-decoration: none !important;
  border-bottom-color: var(--bf-accent);
}

.btn-open,
.btn-download,
.btn-open-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.25rem;
  text-decoration: none;
  border: 1px solid transparent;
  background-image: none !important;
  transition: transform 0.2s var(--bf-ease),
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-open {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  padding: 0.55rem 1.1rem;
}

.btn-open:hover {
  background-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn-download {
  background-color: var(--bf-accent);
  color: #06101f;
}

.btn-download:hover {
  background-color: var(--bf-accent-strong);
  color: #02060d;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(77, 159, 255, 0.28);
}

.btn-open-ghost {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-open-ghost:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
}

.btn-disabled,
.btn-download:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border-color: transparent !important;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 0;
  text-align: center;
}

.hero-copy {
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
  animation: hero-copy-in 0.9s var(--bf-ease) both;
}

@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-kicker,
.section-kicker {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bf-accent);
}

.hero-title {
  margin-bottom: 0.85rem;
  line-height: 1.05;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #ffffff 35%, rgba(255, 255, 255, 0.72));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 auto 1.75rem;
  max-width: 28rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 300;
  line-height: 1.45;
  color: var(--bf-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-visual {
  position: relative;
  width: min(1180px, calc(100% - 1.5rem));
  margin: 0 auto;
}

.hero-visual::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -8%;
  height: 40%;
  background: radial-gradient(
    ellipse at center,
    rgba(2, 17, 65, 0.55) 0%,
    transparent 70%
  );
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}

.hero-frame {
  position: relative;
  z-index: 1;
  border-radius: 1.05rem 1.05rem 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  transform: perspective(1800px) rotateX(3deg);
  transform-origin: center bottom;
  animation: hero-settle 1.35s var(--bf-ease) both;
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    #151617 0%,
    rgba(21, 22, 23, 0.55) 18%,
    rgba(21, 22, 23, 0.08) 38%,
    transparent 58%
  );
  pointer-events: none;
}

.hero-shot {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

@keyframes hero-settle {
  from {
    opacity: 0;
    transform: perspective(1800px) rotateX(7deg) translateY(32px);
  }
  to {
    opacity: 1;
    transform: perspective(1800px) rotateX(3deg) translateY(0);
  }
}

/* ——— Features ——— */
.features {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.features-intro {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.section-sub {
  margin: 0;
  color: var(--bf-muted);
  font-size: 1.05rem;
  font-weight: 300;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
  border-top: 1px solid var(--bf-line);
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature {
  padding: 1.75rem 1.35rem;
  border-bottom: 1px solid var(--bf-line);
  transition: background-color 0.25s ease;
}

@media (min-width: 768px) {
  .feature:nth-child(odd) {
    border-right: 1px solid var(--bf-line);
  }
}

.feature:hover {
  background: var(--bf-panel);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1rem;
  border-radius: 0.65rem;
  background: var(--bf-accent-dim);
  color: var(--bf-accent);
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  letter-spacing: 0.03em;
}

.feature-text {
  margin: 0;
  color: var(--bf-muted);
  font-weight: 300;
  line-height: 1.55;
  max-width: 28rem;
}

/* ——— CTA band ——— */
.cta-band {
  padding: 0 1rem 4.5rem;
}

.cta-band-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 1.75rem;
  border: 1px solid var(--bf-line);
  border-radius: 1rem;
  background:
    linear-gradient(120deg, rgba(77, 159, 255, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.03);
}

@media (min-width: 768px) {
  .cta-band-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.25rem 2.5rem;
  }

  .cta-band .hero-actions {
    justify-content: flex-end;
    flex-shrink: 0;
  }
}

.cta-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.cta-text {
  margin: 0;
  color: var(--bf-muted);
  font-weight: 300;
}

/* ——— Download ——— */
.download-page {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 4.5rem;
}

.download-intro {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.75rem;
}

.download-intro .section-sub {
  margin-top: 0.75rem;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 920px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .download-grid {
    grid-template-columns: 1fr 1fr;
  }

  .download-card-wide {
    grid-column: 1 / -1;
  }
}

.download-card {
  padding: 1.6rem 1.5rem 1.45rem;
  border: 1px solid var(--bf-line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.download-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--bf-accent-dim);
  color: var(--bf-accent);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.status-ready {
  color: var(--bf-accent);
  background: var(--bf-accent-dim);
  border-color: rgba(77, 159, 255, 0.28);
}

.status-soon {
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.download-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.download-text {
  color: var(--bf-muted);
  font-weight: 300;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  max-width: 34rem;
}

.download-meta {
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  font-weight: 300;
}

.download-note {
  text-align: center;
  margin: 2rem 0 0;
  color: var(--bf-muted);
  font-weight: 300;
}

.download-note a {
  color: var(--bf-accent);
  text-decoration: none;
}

.download-note a:hover {
  color: var(--bf-accent-strong);
  text-decoration: underline;
}

/* ——— Legal ——— */
.legal-page {
  padding-top: clamp(2rem, 5vw, 3.5rem) !important;
}

.legal-page .text-muted {
  color: var(--bf-muted) !important;
}

.legal-page .text-start {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 300;
  line-height: 1.7;
}

.legal-page h2 {
  font-family: var(--bs-font-family-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.legal-page ul {
  padding-left: 1.15rem;
}

.legal-page li {
  margin-bottom: 0.45rem;
}

.legal-page .badge {
  background-image: none !important;
  background-color: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--bf-line);
  font-weight: 500;
}

/* ——— 404 ——— */
.error-page {
  min-height: 55vh;
  display: flex;
  align-items: center;
  padding: 4rem 0 5rem;
}

.error-lead {
  color: var(--bf-muted);
  font-weight: 300;
  margin: 0.75rem auto 1.75rem;
  max-width: 26rem;
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--bf-line);
  background: rgba(0, 0, 0, 0.22);
  padding: 3rem 0 2.5rem;
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 992px) {
  .site-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.footer-logo {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-bottom: 0.55rem;
}

.footer-logo:hover {
  color: var(--bf-accent);
}

.footer-brand p,
.footer-copy {
  margin: 0;
  color: var(--bf-muted);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-bottom: 0.85rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
}

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

.footer-meta {
  text-align: left;
}

@media (min-width: 992px) {
  .footer-meta {
    text-align: right;
  }

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

/* ——— Motion ——— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--bf-ease),
    transform 0.7s var(--bf-ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: clamp(2.6rem, 14vw, 3.4rem);
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .hero-frame {
    transform: none;
    animation: hero-fade 1s var(--bf-ease) both;
  }

  @keyframes hero-fade {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .feature {
    padding: 1.45rem 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-frame {
    animation: none;
    transform: none;
  }

  .hero-copy {
    animation: none;
  }

  .btn-download:hover,
  .btn-open:hover,
  .btn-open-ghost:hover {
    transform: none;
  }
}
