:root {
  --bg: #05070f;
  --bg-deep: #02030a;
  --card: rgba(16, 18, 33, 0.78);
  --card-soft: rgba(28, 25, 49, 0.56);
  --line: rgba(201, 190, 255, 0.18);
  --line-strong: rgba(201, 190, 255, 0.34);
  --text: #f5efe9;
  --muted: rgba(245, 239, 233, 0.68);
  --soft: rgba(245, 239, 233, 0.48);
  --accent: #c8b8ff;
  --accent-2: #8f7aff;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1160px;
  --section-space: 62px;
  --section-space-tight: 54px;
  --section-space-mobile: 50px;
  --section-space-mobile-tight: 46px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 70% 8%, rgba(143, 122, 255, 0.18), transparent 30%),
    radial-gradient(circle at 12% 34%, rgba(52, 74, 132, 0.20), transparent 34%),
    linear-gradient(180deg, #070917 0%, var(--bg) 46%, var(--bg-deep) 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.30) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(200,184,255,.16) 0 1px, transparent 1.5px);
  background-size: 180px 180px, 260px 260px;
  background-position: 30px 80px, 120px 20px;
  opacity: .28;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

a { color: inherit; }
p { line-height: 1.7; }
img { max-width: 100%; display: block; }

.site-header {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand, .footer-brand {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 0 28px rgba(200,184,255,.20);
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  padding: 10px 14px;
  border-radius: 999px;
}
.nav-links a:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,.04);
}

main {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 76vh;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 52px;
  align-items: center;
  padding: 46px 0 54px;
}
.eyebrow {
  color: var(--accent);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: .78rem;
}
h1, h2, h3 {
  margin: 0;
  letter-spacing: -.045em;
}
h1 {
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  line-height: .95;
  max-width: 760px;
}
h2 {
  font-size: clamp(2rem, 4.3vw, 4rem);
  line-height: 1;
}
h3 {
  font-size: 1.35rem;
}
.lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--muted);
  max-width: 640px;
  margin: 26px 0 0;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.store-button, .button {
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.06);
  color: var(--text);
  text-decoration: none;
  border-radius: 18px;
  padding: 14px 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
}
.store-button span {
  display: block;
  color: var(--soft);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.store-button strong {
  display: block;
  font-size: 1rem;
}
.button.primary {
  background: linear-gradient(135deg, #d7caff, #a996ff);
  color: #080a16;
  border-color: transparent;
}
.hero-note {
  margin-top: 20px;
  color: var(--soft);
  font-size: .95rem;
}
.hero-visual {
  position: relative;
  min-height: 660px;
}
.phone-stack {
  position: relative;
  height: 660px;
}
.phone-frame {
  position: absolute;
  width: 270px;
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.phone-frame img {
  border-radius: 32px;
  width: 100%;
}
.phone-frame.one {
  top: 0;
  right: 98px;
  z-index: 3;
}
.phone-frame.two {
  top: 96px;
  left: 4px;
  opacity: .72;
  transform: rotate(-6deg) scale(.92);
}
.phone-frame.three {
  bottom: 0;
  right: 0;
  opacity: .78;
  transform: rotate(5deg) scale(.92);
}
.glow-orb {
  position: absolute;
  width: 280px;
  height: 280px;
  right: 40px;
  top: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,184,255,.32), rgba(143,122,255,.08) 46%, transparent 70%);
  filter: blur(4px);
}
.section {
  padding: var(--section-space) 0;
}
.section-tight {
  padding: var(--section-space-tight) 0;
}
.section-header {
  max-width: 760px;
  margin-bottom: 28px;
}
.section-header p {
  color: var(--muted);
  font-size: 1.08rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card, .legal-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card), rgba(9, 11, 22, .74));
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 18px 55px rgba(0,0,0,.23);
}
.card p, .legal-card p, .legal-card li {
  color: var(--muted);
}
.screenshot-groups {
  display: grid;
  gap: 40px;
}
.screenshot-group {
  display: grid;
  gap: 18px;
}
.screenshot-group-header {
  max-width: 620px;
}
.screenshot-group-header h3 {
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  line-height: 1.08;
}
.screenshot-group-header p {
  margin: 10px 0 0;
  color: var(--muted);
}
.screenshot-row {
  --shot-gap: 16px;
  --shot-width: minmax(248px, calc((100% - (var(--shot-gap) * 3)) / 4));
  display: flex;
  flex-wrap: nowrap;
  gap: var(--shot-gap);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(200,184,255,.28) transparent;
  max-width: 100%;
}
.swipe-hint {
  display: none;
  margin-top: 14px;
  color: var(--soft);
  font-size: .92rem;
}
.shot-card {
  flex: 0 0 var(--shot-width);
  min-width: var(--shot-width);
  scroll-snap-align: start;
}
.shot {
  aspect-ratio: 260 / 540;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 8px;
  background: rgba(255,255,255,.04);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  overflow: hidden;
}
.shot img {
  border-radius: 22px;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  background: #080a16;
}
.shot-title {
  display: none;
  margin-top: 14px;
}
.shot-copy {
  display: none;
  margin: 8px 0 0;
  color: var(--muted);
}
.cta {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 52px 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(200,184,255,.18), transparent 44%),
    rgba(255,255,255,.035);
}
.cta p {
  color: var(--muted);
}
.cta .hero-actions {
  justify-content: center;
}
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}
.footer-links a {
  position: relative;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  text-decoration: none;
  transition: color .18s ease, text-shadow .18s ease;
}
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: rgba(200,184,255,.72);
  opacity: 0;
  transform: scaleX(.8);
  transform-origin: left;
  transition: opacity .18s ease, transform .18s ease;
}
.footer-links a:hover {
  color: #d7cbff;
  text-shadow: 0 0 12px rgba(200,184,255,.20);
}
.footer-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}
.copyright {
  grid-column: 1 / -1;
  color: var(--soft);
  font-size: .9rem;
}

.page-hero {
  padding: 64px 0 30px;
  max-width: 800px;
}
.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
}
.page-hero p {
  color: var(--muted);
  font-size: 1.15rem;
}
.legal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-bottom: 70px;
}
.legal-card h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  line-height: 1.25;
}
.legal-card ul {
  padding-left: 22px;
}
.notice {
  border: 1px solid rgba(200,184,255,.3);
  background: rgba(200,184,255,.08);
}
.auth-panel {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.auth-card {
  width: min(620px, 100%);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card), rgba(7,9,18,.86));
  border-radius: var(--radius-xl);
  padding: 42px;
  box-shadow: var(--shadow);
}
.auth-card img {
  width: 86px;
  height: 86px;
  margin: 0 auto 20px;
  border-radius: 24px;
}
.auth-card p {
  color: var(--muted);
}
.auth-card-form {
  text-align: left;
  max-width: 680px;
}
.auth-card-form img,
.auth-card-form .eyebrow,
.auth-card-form h1,
.auth-card-form .auth-intro {
  text-align: center;
}
.auth-card-form .eyebrow {
  margin-bottom: 8px;
}
.auth-card-form h1 {
  font-size: clamp(2.65rem, 6vw, 4.5rem);
  line-height: .96;
  max-width: 11ch;
  margin: 0 auto;
}
.auth-intro {
  margin: 16px auto 0;
  max-width: 34ch;
  font-size: 1.05rem;
}
.auth-stage {
  margin-top: 34px;
}
.auth-help {
  margin-top: 28px;
  text-align: center;
  font-size: .96rem;
}
.auth-status {
  margin: 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}
.auth-status-error {
  border-color: rgba(255, 195, 203, 0.22);
  background: rgba(98, 26, 38, 0.16);
}
.auth-status-success {
  border-color: rgba(200,184,255,.24);
  background: linear-gradient(180deg, rgba(200,184,255,.11), rgba(200,184,255,.06));
  text-align: center;
}
.auth-status-title {
  margin: 0;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 700;
}
.auth-status-copy {
  margin: 10px 0 0;
}
.auth-form {
  margin: 0;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(12, 14, 28, 0.9), rgba(7, 9, 18, 0.84));
  box-shadow: 0 20px 50px rgba(0,0,0,.24);
}
.auth-field {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}
.auth-field span {
  color: var(--text);
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.auth-field input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 56px;
  padding: 15px 18px;
  border: 1px solid rgba(201, 190, 255, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(10, 12, 24, 0.96), rgba(7, 9, 18, 0.92));
  color: var(--text);
  font: inherit;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.03),
    0 10px 30px rgba(0,0,0,.16);
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    transform .18s ease;
}
.auth-field input::placeholder {
  color: var(--soft);
}
.auth-field input:focus {
  border-color: rgba(200,184,255,.44);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 0 0 4px rgba(200,184,255,.11),
    0 14px 34px rgba(0,0,0,.18);
  background: linear-gradient(180deg, rgba(12, 15, 30, 0.98), rgba(9, 12, 24, 0.96));
  transform: translateY(-1px);
}
.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}
.auth-submit:disabled {
  opacity: .72;
  cursor: wait;
}
.form-message {
  margin: 2px 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: .96rem;
  line-height: 1.55;
}
.form-message-error {
  color: #ffe4e7;
  border-color: rgba(255, 195, 203, 0.22);
  background: rgba(98, 26, 38, 0.18);
}
.auth-success-actions {
  margin: 20px 0 0;
}
.is-hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 28px;
    gap: 32px;
  }
  .hero-visual { min-height: 590px; }
  .phone-frame.one { right: 8%; }
  .phone-frame.two { left: 2%; }
  .phone-frame.three { right: 3%; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .screenshot-row {
    --shot-width: minmax(260px, calc((100% - var(--shot-gap)) / 2));
  }
}
@media (max-width: 680px) {
  .site-header {
    gap: 16px;
    padding: 20px 0 12px;
    align-items: stretch;
    flex-direction: column;
  }
  .brand {
    justify-content: flex-start;
  }
  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    justify-content: stretch;
  }
  .nav-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    background: rgba(255,255,255,.03);
    border-color: rgba(201, 190, 255, 0.1);
  }
  main, .site-header, .site-footer { width: min(100% - 28px, var(--max)); }
  .hero {
    padding: 22px 0 40px;
    gap: 22px;
  }
  .hero-actions { flex-direction: column; }
  .store-button, .button { width: 100%; justify-content: center; }
  .hero-note {
    margin-top: 16px;
  }
  .hero-visual {
    min-height: auto;
    padding-top: 6px;
    overflow: visible;
  }
  .phone-stack {
    height: auto;
    display: flex;
    justify-content: center;
  }
  .phone-frame {
    width: min(240px, 58vw);
    position: relative;
  }
  .phone-frame.one {
    right: auto;
    top: auto;
    bottom: auto;
  }
  .phone-frame.two,
  .phone-frame.three {
    display: none;
  }
  .section {
    padding: var(--section-space-mobile) 0;
  }
  .section-tight {
    padding: var(--section-space-mobile-tight) 0;
  }
  .section-header {
    margin-bottom: 22px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .card, .legal-card {
    padding: 20px;
  }
  .screenshot-groups {
    gap: 34px;
  }
  .screenshot-group {
    gap: 16px;
  }
  .screenshot-row {
    --shot-gap: 14px;
    --shot-width: clamp(220px, 84vw, 360px);
    gap: var(--shot-gap);
    padding-bottom: 12px;
  }
  .swipe-hint {
    display: block;
  }
  .shot-title,
  .shot-copy {
    display: block;
  }
  .shot {
    max-width: none;
    margin: 0;
  }
  .page-hero {
    padding: 44px 0 22px;
  }
  .page-hero p {
    font-size: 1.02rem;
  }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; gap: 10px 16px; }
  .auth-card {
    padding: 32px 22px;
  }
  .auth-card-form h1 {
    max-width: 10.5ch;
  }
  .auth-stage {
    margin-top: 28px;
  }
  .auth-status,
  .auth-form {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 430px) {
  h1 {
    max-width: 12ch;
  }
}
