:root {
  --brand: #f7cc58;
  --brand-ink: #2b2106;
  --bg: #070b14;
  --bg-2: #0d1525;
  --bg-3: #13213b;
  --panel: rgba(12, 20, 34, 0.82);
  --panel-strong: rgba(9, 15, 27, 0.95);
  --line: rgba(140, 170, 210, 0.34);
  --text: #e8eef8;
  --muted: #9eaec4;
  --link: #9dcaff;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.44);
  --radius-lg: 1.15rem;
  --radius-md: 0.8rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.64;
  color: var(--text);
  background:
    radial-gradient(circle at 14% -8%, rgba(89, 142, 219, 0.3) 0%, transparent 34%),
    radial-gradient(circle at 100% 24%, rgba(37, 98, 186, 0.3) 0%, transparent 36%),
    linear-gradient(168deg, var(--bg) 0%, var(--bg-2) 56%, var(--bg-3) 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(122, 154, 198, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(122, 154, 198, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 52% 34%, black 40%, transparent 88%);
}

h1,
h2,
h3,
.brand span {
  font-family: "Space Grotesk", "Sora", sans-serif;
  letter-spacing: 0.01em;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 2.2rem));
  margin-inline: auto;
}

.bg-grid,
.bg-orb {
  display: none;
}

.bg-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(4px);
  pointer-events: none;
  z-index: -1;
}

.bg-glow-a {
  width: 28rem;
  height: 28rem;
  top: -10rem;
  left: -9rem;
  background: radial-gradient(circle, rgba(247, 204, 88, 0.12) 0%, transparent 70%);
}

.bg-glow-b {
  width: 24rem;
  height: 24rem;
  right: -8rem;
  top: 16rem;
  background: radial-gradient(circle, rgba(97, 160, 241, 0.19) 0%, transparent 72%);
}

.site-header {
  margin-top: 1rem;
  padding: 0.7rem 0.92rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(9, 16, 28, 0.76);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0.68rem;
  z-index: 40;
  overflow: visible;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.52rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.brand span {
  font-size: 1.06rem;
  font-weight: 700;
  color: #f7fbff;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  overflow: visible;
}

.nav-download-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-download-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.7rem;
}

.site-nav > a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #ccddf4;
  font-weight: 600;
  padding: 0.3rem 0.45rem;
}

.site-nav > a:hover {
  color: var(--brand);
}

.nav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--brand-ink) !important;
  border: 1px solid rgba(247, 204, 88, 0.9);
  border-radius: 999px;
  padding: 0.58rem 1.04rem !important;
  background: linear-gradient(120deg, var(--brand) 0%, #ffd968 100%);
  box-shadow: 0 8px 16px rgba(247, 204, 88, 0.24);
}

.nav-qr-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 0.2rem);
  padding: 0.42rem;
  border-radius: 0.94rem;
  border: 1px solid rgba(247, 204, 88, 0.45);
  background: rgba(8, 14, 25, 0.94);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.44);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 45;
}

.nav-download-wrap:hover .nav-qr-popover,
.nav-download-wrap:focus-within .nav-qr-popover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-qr-popover .qr-card {
  min-width: 10.2rem;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.nav-qr-popover .qr-card p {
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(149, 178, 217, 0.46);
  border-radius: 0.65rem;
  background: rgba(14, 24, 41, 0.96);
  padding: 0.42rem 0.72rem;
  color: #d9e8f8;
  font-weight: 700;
}

main {
  padding-bottom: 1.7rem;
}

.hero {
  margin-top: 1.2rem;
  border: 1px solid rgba(133, 165, 207, 0.44);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 82% 0%, rgba(247, 204, 88, 0.11) 0%, transparent 34%),
    radial-gradient(circle at 10% 100%, rgba(97, 160, 241, 0.15) 0%, transparent 36%),
    linear-gradient(145deg, #091225 0%, #0c1831 55%, #0f2040 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  padding: clamp(1.2rem, 2.9vw, 2rem);
}

.kicker,
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
  color: #9dc9ff;
}

.hero-copy h1 {
  margin: 0.56rem 0 0.66rem;
  line-height: 1.1;
  font-size: clamp(2rem, 4.9vw, 3.4rem);
  color: #f6fbff;
  max-width: 13ch;
}

.hero-copy p {
  margin: 0;
  color: #bfd2ea;
  max-width: 56ch;
}

.hero-actions {
  margin-top: 1.18rem;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  flex-wrap: wrap;
}

.hero-badges {
  margin-top: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
}

.hero-badges span {
  border: 1px solid rgba(130, 163, 205, 0.52);
  border-radius: 999px;
  background: rgba(13, 25, 44, 0.84);
  color: #c7dbf2;
  font-size: 0.76rem;
  padding: 0.22rem 0.58rem;
}

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  text-decoration: none;
  border-radius: 0.72rem;
  border: 1px solid rgba(247, 204, 88, 0.75);
  background: #000;
  color: #f3f7ff;
  padding: 0.42rem 0.72rem;
  min-width: 10.6rem;
  min-height: 2.7rem;
  box-shadow: 0 0 0 1px rgba(247, 204, 88, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.appstore-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(247, 204, 88, 0.45);
}

.appstore-icon {
  width: 1.12rem;
  height: 1.12rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.badge-copy {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.08;
}

.badge-copy small {
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  font-weight: 500;
}

.badge-copy strong {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 0.72rem;
  font-size: 0.91rem;
  font-weight: 700;
  padding: 0.68rem 1.03rem;
  transition: transform 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(120deg, var(--brand) 0%, #ffd968 100%);
  color: var(--brand-ink);
  box-shadow: 0 10px 24px rgba(247, 204, 88, 0.3);
}

.btn-secondary {
  border: 1px solid rgba(132, 165, 207, 0.58);
  background: rgba(11, 22, 39, 0.72);
  color: #d6e5f5;
}

.hero-preview {
  position: relative;
  min-height: 26rem;
}

.phone {
  margin: 0;
  border: 1px solid rgba(128, 161, 203, 0.45);
  border-radius: 1.3rem;
  background: #091428;
  padding: 0.45rem;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36);
  width: clamp(8.5rem, 34%, 11rem);
  position: absolute;
}

.phone img {
  width: 100%;
  aspect-ratio: 10 / 21;
  object-fit: cover;
  border-radius: 0.9rem;
}

.phone-main {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 3;
}

.phone-left {
  left: 5%;
  bottom: 0;
  transform: rotate(-8deg);
  z-index: 2;
}

.phone-right {
  right: 5%;
  bottom: 0;
  transform: rotate(8deg);
  z-index: 1;
}

.panel {
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: clamp(1.02rem, 2.4vw, 1.5rem);
}

.section-head {
  margin-bottom: 0.78rem;
}

.section-head h2,
.final-cta h2,
.legal-wrap h1,
.legal-wrap h2 {
  margin: 0.24rem 0 0;
  line-height: 1.2;
  font-size: clamp(1.44rem, 3.2vw, 2.2rem);
  color: #f3f8ff;
}

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

.platform-card {
  border: 1px solid rgba(122, 155, 197, 0.4);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  padding: 0.9rem;
}

.platform-card h3 {
  margin: 0;
  font-size: 1.12rem;
  color: #edf4fd;
}

.platform-card p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.platform-card ul {
  margin: 0.6rem 0 0;
  padding-left: 1rem;
  color: #bed2eb;
  font-size: 0.86rem;
}

.platform-card li + li {
  margin-top: 0.2rem;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.62rem;
}

.icon-item {
  border: 1px solid rgba(122, 156, 198, 0.4);
  border-radius: 0.72rem;
  background: var(--panel-strong);
  min-height: 6.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 0.4rem;
}

.icon-item img {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
}

.icon-item span {
  color: #c5d8f1;
  font-size: 0.74rem;
  text-align: center;
}

.icon-more .icon-plus {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 1px solid rgba(151, 183, 224, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #dbeafd;
}

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

.screen-card {
  margin: 0;
  border: 1px solid rgba(119, 153, 196, 0.44);
  border-radius: 1rem;
  overflow: hidden;
  background: #0a1428;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.screen-card img {
  width: 100%;
  aspect-ratio: 10 / 21;
  object-fit: cover;
}

.screen-indicators {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.46rem;
  margin-top: 0.72rem;
}

.screen-dot {
  width: 0.42rem;
  height: 0.42rem;
  border: 0;
  border-radius: 999px;
  background: rgba(146, 173, 207, 0.55);
  padding: 0;
  cursor: pointer;
}

.screen-dot.is-active {
  width: 1rem;
  background: var(--brand);
}

.final-cta {
  margin-top: 1.2rem;
  border: 1px solid rgba(123, 156, 197, 0.45);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 84% 0%, rgba(247, 204, 88, 0.18) 0%, transparent 44%),
    linear-gradient(125deg, rgba(10, 18, 33, 0.95) 0%, rgba(12, 24, 43, 0.94) 100%);
  box-shadow: var(--shadow);
  padding: 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.final-cta h2 {
  max-width: 29ch;
}

.cta-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.qr-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  border: 1px solid rgba(247, 204, 88, 0.56);
  border-radius: 0.84rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(247, 204, 88, 0.18) 0%, transparent 50%),
    rgba(9, 16, 28, 0.92);
  padding: 0.5rem;
  min-width: 8.3rem;
  text-align: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
}

.qr-card img {
  width: 6.2rem;
  height: 6.2rem;
  border-radius: 0.4rem;
  margin: 0 auto;
  background: #fff;
}

.qr-card p {
  margin: 0.36rem 0 0;
  color: #d8e8fa;
  font-size: 0.74rem;
  font-weight: 600;
}

.site-footer {
  margin-top: 1rem;
  margin-bottom: 2rem;
  border-top: 1px solid rgba(133, 165, 205, 0.34);
  padding-top: 0.95rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: #9bb1cb;
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 0.92rem;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
}

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

.legal-header {
  position: static;
}

.legal-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.legal-btn {
  color: #d8e6f8;
  border: 1px solid rgba(132, 165, 207, 0.56);
  background: rgba(12, 23, 40, 0.86);
}

.legal-wrap {
  margin-top: 1.15rem;
  border: 1px solid rgba(128, 162, 204, 0.46);
  border-radius: var(--radius-lg);
  background: rgba(10, 18, 32, 0.86);
  padding: clamp(1rem, 2.35vw, 1.7rem);
  box-shadow: var(--shadow);
}

.legal-wrap .legal-meta {
  margin-top: 0.2rem;
  color: #95a9c4;
  font-size: 0.9rem;
}

.legal-wrap section {
  margin-top: 0.98rem;
  border-top: 1px solid rgba(121, 153, 194, 0.34);
  padding-top: 0.9rem;
}

.legal-wrap h2 {
  font-size: clamp(1.18rem, 2.2vw, 1.48rem);
}

.legal-wrap ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.legal-wrap a {
  color: var(--link);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-wrap p,
.legal-wrap li {
  overflow-wrap: anywhere;
}

.reveal {
  opacity: 0;
  transform: translateY(13px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-preview {
    min-height: 24rem;
  }

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

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

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

  .cta-actions {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    right: 0;
    top: calc(100% + 0.42rem);
    width: min(15rem, 83vw);
    border: 1px solid rgba(130, 164, 206, 0.56);
    border-radius: 0.84rem;
    background: rgba(10, 18, 33, 0.97);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.42);
    display: none;
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.24rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-header {
    position: relative;
  }

  .legal .site-header {
    position: static;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.55rem;
    padding: 0.62rem 0.7rem;
  }

  .legal .brand {
    flex: 1 1 100%;
    min-width: 0;
  }

  .legal .brand span {
    white-space: normal;
    font-size: 0.92rem;
    line-height: 1.2;
  }

  .legal .legal-actions {
    width: 100%;
  }

  .legal .legal-btn {
    padding: 0.5rem 0.72rem;
    font-size: 0.84rem;
  }

  .legal .legal-wrap {
    padding: 0.9rem;
  }

  .legal .legal-wrap ul {
    padding-left: 1.05rem;
  }

  .site-nav a {
    padding: 0.5rem 0.55rem;
  }

  .nav-download {
    text-align: center;
    width: 100%;
  }

  .nav-qr-popover {
    display: none;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-preview {
    min-height: 22.5rem;
  }

  .phone {
    width: 8.8rem;
  }

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

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

  #screens.panel {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }

  #screens .section-head {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }

  .screen-grid {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding: 0 0.45rem 0.2rem;
    width: 100%;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .screen-card {
    width: auto;
    min-width: 0;
    max-height: none;
    flex: 0 0 calc(100vw - 3.2rem);
    scroll-snap-align: start;
    margin: 0;
    border-radius: 0.9rem;
  }

  .screen-card img {
    aspect-ratio: 10 / 21;
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  .screen-indicators {
    display: flex;
  }

  .qr-card {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .btn,
  .phone {
    transition: none;
    transform: none;
  }
}
