:root {
  --bg: #06070d;
  --panel: #10121c;
  --panel-raised: #151827;
  --ink: #f7f6ff;
  --soft: #a5a5b5;
  --line: #2a2c3c;
  --purple: #9a62ff;
  --purple-hot: #c09bff;
  --cyan: #77d6ff;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(850px 620px at 78% 7%, rgba(126, 67, 255, 0.22), transparent 65%),
    radial-gradient(700px 500px at 16% 42%, rgba(70, 185, 255, 0.08), transparent 70%),
    var(--bg);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; }
a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; border-radius: 5px; }

.review-bar {
  padding: 0.65rem 1rem;
  color: #0b0614;
  background: linear-gradient(90deg, var(--purple-hot), var(--cyan));
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.site-header {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.studio-link,
.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 780;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: 1rem; }
.site-nav a { color: var(--soft); }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); }

.hero,
.feature-section,
.gallery-section,
.privacy-section,
.closing {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  min-height: 760px;
  padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(5rem, 9vw, 8rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.75fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 7rem);
}

.kicker,
.eyebrow {
  margin: 0 0 1rem;
  color: var(--purple-hot);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; letter-spacing: -0.045em; }
h1 {
  max-width: 10ch;
  margin-bottom: 1.6rem;
  font-size: clamp(3.8rem, 8.5vw, 7.8rem);
  font-weight: 820;
  line-height: 0.91;
}
h1 span { color: var(--purple); }
h2 { font-size: clamp(2.45rem, 5.7vw, 5.25rem); font-weight: 760; line-height: 0.98; }
h3 { margin-bottom: 0.7rem; font-size: 1.35rem; font-weight: 740; line-height: 1.12; }
.lede { max-width: 39rem; margin: 0; color: #cbc9d6; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.button-row { margin-top: 2rem; display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem; }
.button {
  min-height: 50px;
  padding: 0.9rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--purple);
  border-radius: 999px;
  color: #0b0614;
  background: linear-gradient(135deg, var(--purple-hot), var(--purple));
  box-shadow: 0 16px 50px -22px rgba(154, 98, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 820;
  text-decoration: none;
}
.button:hover { filter: brightness(1.08); }
.button.secondary { color: var(--ink); background: transparent; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; font-weight: 720; }
.status-line { margin: 2rem 0 0; color: #8f8e9d; font-size: 0.92rem; }
.status-line span { width: 8px; height: 8px; margin-right: 0.55rem; display: inline-block; border-radius: 50%; background: var(--purple); box-shadow: 0 0 16px var(--purple); }

/* The decorative .rank-ring is 475px and outgrows .hero-visual between about 800px and 1240px.
   Clip horizontal overflow at the full-width main so it stops widening the document.
   hidden is the fallback for browsers without overflow: clip. */
main { overflow-x: hidden; overflow-x: clip; }
.hero-visual { position: relative; min-height: 650px; display: grid; place-items: center; }
.hero-phone {
  position: relative;
  z-index: 2;
  width: min(100%, 346px);
  margin: 0;
  overflow: hidden;
  border: 1px solid #353747;
  border-radius: 48px;
  background: #090a0f;
  box-shadow: 0 36px 110px -28px #000, 0 0 80px rgba(154, 98, 255, 0.16);
  transform: rotate(2deg);
}
.hero-phone img { width: 100%; height: auto; display: block; }
.app-icon {
  position: absolute;
  z-index: 3;
  top: 4%;
  right: -2%;
  width: 112px;
  height: auto;
  border-radius: 25%;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.72), 0 0 46px rgba(154, 98, 255, 0.32);
  transform: rotate(-5deg);
}
.rank-ring {
  position: absolute;
  width: 475px;
  height: 475px;
  border: 1px solid rgba(154, 98, 255, 0.3);
  border-radius: 50%;
  box-shadow: inset 0 0 90px rgba(154, 98, 255, 0.06), 0 0 70px rgba(119, 214, 255, 0.06);
}
.rank-ring::before,
.rank-ring::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(119, 214, 255, 0.12); }
.rank-ring::before { inset: 16%; }
.rank-ring::after { inset: 32%; }

.feature-section { padding: clamp(5rem, 10vw, 9rem) 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 790px; margin-bottom: clamp(2.3rem, 5vw, 4rem); }
.section-heading h2 { margin-bottom: 1.2rem; }
.section-heading > p:last-child { max-width: 52rem; color: var(--soft); font-size: 1.12rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature-grid article { min-height: 270px; padding: 2rem; background: linear-gradient(145deg, var(--panel-raised), var(--panel)); }
.feature-grid p { margin: 0; color: var(--soft); }
.number { display: block; margin-bottom: 4rem; color: var(--cyan); font-size: 0.73rem; font-weight: 820; letter-spacing: 0.14em; }

.gallery-section { padding: clamp(5rem, 10vw, 9rem) 0; }
.screen-gallery { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 1.1rem; align-items: start; }
.screen-card { grid-column: span 2; margin: 0; }
.screen-card:nth-child(even) { margin-top: 4rem; }
.screen-card img { width: 100%; height: auto; display: block; border: 1px solid #3a3c4d; border-radius: 26px; background: #0a0b10; box-shadow: 0 22px 55px -28px #000; }
.screen-card figcaption { padding: 1rem 0.25rem 0; }
.screen-card figcaption strong { display: block; margin-bottom: 0.35rem; font-size: 0.95rem; line-height: 1.35; }
.screen-card figcaption span { display: block; color: #8f8e9d; font-size: 0.84rem; line-height: 1.5; }

.privacy-section {
  margin-bottom: clamp(5rem, 10vw, 9rem);
  padding: clamp(3rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.68fr);
  align-items: center;
  gap: clamp(2rem, 8vw, 7rem);
  border: 1px solid var(--line);
  border-radius: 36px;
  background: linear-gradient(135deg, #151827, #0b0c13);
}
.privacy-section h2 { max-width: 10ch; margin-bottom: 0; }
.privacy-section p:not(.eyebrow) { color: var(--soft); font-size: 1.12rem; }
.privacy-section .text-link { margin-top: 0.7rem; color: var(--cyan); }

.closing { padding: clamp(5rem, 10vw, 9rem) 1rem; text-align: center; }
.closing img { width: 104px; height: auto; border-radius: 25%; box-shadow: 0 20px 65px rgba(154, 98, 255, 0.26); }
.closing .eyebrow { margin-top: 1.7rem; }
.closing h2 { margin-bottom: 1rem; }
.closing > p:not(.eyebrow) { color: var(--soft); font-size: 1.1rem; }
.closing .button { margin-top: 1rem; }
.closing .button-row { margin-top: 1rem; justify-content: center; }

.site-footer { margin-top: 2rem; padding: 2.5rem 1rem; border-top: 1px solid var(--line); color: var(--soft); background: #04050a; }
.footer-inner { width: min(1180px, 100%); margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--ink); }

@media (max-width: 800px) {
  .site-header { align-items: flex-start; }
  .site-nav { max-width: 235px; justify-content: flex-end; flex-wrap: wrap; gap: 0 0.85rem; }
  .site-nav a { font-size: 0.67rem; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 3.5rem; }
  .hero-visual { min-height: 570px; }
  .hero-phone { width: min(78vw, 330px); transform: none; }
  .app-icon { right: 2%; }
  .rank-ring { width: min(100%, 430px); height: auto; aspect-ratio: 1; }
  .feature-grid { grid-template-columns: 1fr; }
  .screen-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
  .screen-card { grid-column: span 1; }
  .screen-card:nth-child(even) { margin-top: 2rem; }
  .privacy-section { grid-template-columns: 1fr; border-radius: 24px; }
}

@media (max-width: 480px) {
  .screen-gallery { grid-template-columns: 1fr; }
  .screen-card:nth-child(even) { margin-top: 0; }
  .screen-card img { border-radius: 30px; }
}

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