@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --bg:      #030311;
  --text-1:  #ffffff;
  --text-2:  #c4b5fd;
  --text-3:  #7c72a8;
  --p-hi:    #d8b4fe;
  --p-mid:   #a855f7;
  --p-low:   #7c3aed;
  --border:  rgba(255,255,255,.07);
  --border-hi: rgba(196,181,253,.22);
  --max-w:   1040px;
}

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Stars canvas ───────────────────────────────────────── */
#stars-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
}

/* ── Nav ────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  padding: 18px 24px;
}
.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: rgba(12,10,35,.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-hi);
  border-radius: 100px;
  padding: 10px 10px 10px 18px;
  width: 100%;
  max-width: var(--max-w);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text-1);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.2px;
  white-space: nowrap;
}
.nav-logo img {
  width: 28px; height: 28px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}
.nav-logo .icon-fallback {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, #4c1d95, #9333ea);
  display: none;
}
.nav-links { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--text-3);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 100px;
  transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(196,181,253,.1);
  color: var(--p-hi);
}
.nav-cta {
  display: inline-block;
  background: var(--text-1);
  color: #0a0820;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 100px;
  flex-shrink: 0;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--p-hi); transform: scale(1.03); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 28px 100px;
  overflow: hidden;
  isolation: isolate;
}

/* Aurora top-center glow */
.hero-aurora {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(109,40,217,.42) 0%, rgba(88,28,135,.18) 45%, transparent 70%);
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
  animation: auroraBreath 6s ease-in-out infinite;
}
@keyframes auroraBreath {
  0%,100% { opacity: .8; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;  transform: translateX(-50%) scale(1.06); }
}

/* Icon */
.hero-icon {
  position: relative;
  z-index: 2;
  margin-bottom: 36px;
}
.hero-icon .rings {
  position: absolute;
  inset: -36px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(196,181,253,.15), rgba(109,40,217,.3), rgba(196,181,253,.15));
  animation: spinRing 8s linear infinite;
  filter: blur(1px);
}
@keyframes spinRing {
  to { transform: rotate(360deg); }
}
.hero-icon .glow-blob {
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,.55) 0%, transparent 70%);
  filter: blur(16px);
  animation: blobPulse 3s ease-in-out infinite;
}
@keyframes blobPulse {
  0%,100% { opacity: .65; transform: scale(1);    }
  50%      { opacity: 1;   transform: scale(1.12); }
}
.hero-icon img,
.hero-icon .icon-fallback {
  position: relative;
  width: 128px; height: 128px;
  border-radius: 28px;
  display: block;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12),
    0 24px 64px rgba(0,0,0,.6),
    0 0 80px rgba(168,85,247,.25);
}
.hero-icon .icon-fallback {
  background: linear-gradient(145deg, #2d0b6e, #7c3aed, #c084fc);
  display: flex; align-items: center; justify-content: center;
}
.hero-icon .icon-fallback svg { width: 52px; height: 52px; }

/* Title */
.hero-title {
  position: relative;
  z-index: 2;
  font-size: clamp(80px, 14vw, 148px);
  font-weight: 700;
  letter-spacing: -5px;
  line-height: .93;
  background: linear-gradient(160deg, #ffffff 20%, #ddd6fe 55%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 22px;
}

/* Tagline */
.hero-sub {
  position: relative;
  z-index: 2;
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--text-2);
  font-weight: 400;
  line-height: 1.6;
  max-width: 420px;
  margin-bottom: 42px;
}
.hero-sub strong {
  color: var(--text-1);
  font-weight: 600;
}

/* CTA row */
.hero-ctas {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #080619;
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.2px;
  padding: 15px 30px;
  border-radius: 100px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12),
    0 8px 32px rgba(0,0,0,.45),
    0 0 60px rgba(196,181,253,.18);
  transition: transform .25s, box-shadow .25s, background .2s;
}
.btn-appstore svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-appstore:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.2),
    0 14px 44px rgba(0,0,0,.5),
    0 0 80px rgba(196,181,253,.3);
}
.hero-badge {
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: .2px;
}
.hero-badge strong { color: var(--p-hi); font-weight: 600; }

/* ── Divider ────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hi), transparent);
  position: relative; z-index: 2;
}

/* ── Container ──────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

/* ── Section base ───────────────────────────────────────── */
.section { padding: 110px 0; }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--p-hi);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.08;
  color: var(--text-1);
  margin-bottom: 14px;
}
.section-sub {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 480px;
  font-weight: 400;
}

/* ── Features — open columns, no cards ─────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.feat-col {
  padding: 52px 40px;
  border-right: 1px solid var(--border);
  transition: background .3s;
}
.feat-col:first-child { border-left: 1px solid var(--border); }
.feat-col:hover { background: rgba(255,255,255,.022); }

.feat-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--p-mid);
  margin-bottom: 24px;
}
.feat-icon-circle {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(109,40,217,.25), rgba(168,85,247,.12));
  border: 1px solid rgba(196,181,253,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 22px;
}
.feat-col h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -.3px;
  margin-bottom: 10px;
}
.feat-col p {
  font-size: 15px;
  color: var(--text-3);
  line-height: 1.75;
  font-weight: 400;
}

/* ── Screenshots ────────────────────────────────────────── */
.shots-section { padding: 110px 0 80px; }

.phones-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 60px 0 20px;
  gap: 0;
}

/* Glow behind phones */
.phones-glow {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 300px;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(109,40,217,.3) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

.phone {
  position: relative;
  border-radius: 46px;
  overflow: visible;
  flex-shrink: 0;
}
.phone-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 46px;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,.13);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  background: #0d0d1f;
}
.phone-shell::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px; height: 26px;
  background: #000;
  border-radius: 100px;
  z-index: 10;
}
.phone-screen {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
}
.phone-placeholder-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #110820 0%, #3b1280 55%, #7c3aed 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,.28);
  font-size: 11px;
  letter-spacing: .3px;
}
.phone-placeholder-inner span { font-size: 9px; font-family: monospace; opacity: .5; }

.phone-left {
  width: 220px;
  transform: rotate(-7deg) translateX(22px) translateY(40px);
  z-index: 1;
}
.phone-left .phone-shell {
  box-shadow:
    -16px 32px 80px rgba(0,0,0,.6),
    0 0 40px rgba(109,40,217,.15);
}

.phone-center {
  width: 256px;
  z-index: 3;
}
.phone-center .phone-shell {
  box-shadow:
    0 40px 100px rgba(0,0,0,.7),
    0 0 80px rgba(109,40,217,.3),
    0 0 0 1.5px rgba(255,255,255,.15);
}

.phone-right {
  width: 220px;
  transform: rotate(7deg) translateX(-22px) translateY(40px);
  z-index: 1;
}
.phone-right .phone-shell {
  box-shadow:
    16px 32px 80px rgba(0,0,0,.6),
    0 0 40px rgba(109,40,217,.15);
}

/* ── Developer ──────────────────────────────────────────── */
.dev-section { padding: 110px 0; }

.dev-card {
  position: relative;
  background: linear-gradient(145deg, rgba(255,255,255,.055) 0%, rgba(255,255,255,.02) 100%);
  border: 1px solid var(--border-hi);
  border-radius: 28px;
  padding: 70px 60px;
  text-align: center;
  backdrop-filter: blur(12px);
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
}
.dev-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,181,253,.5), transparent);
}
.dev-card::after {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 400px;
  background: radial-gradient(circle, rgba(109,40,217,.12) 0%, transparent 70%);
  pointer-events: none;
}

.dev-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--p-hi);
  background: rgba(168,85,247,.1);
  border: 1px solid rgba(196,181,253,.2);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.dev-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--p-hi);
  animation: dotBlink 2s ease-in-out infinite;
}
@keyframes dotBlink { 0%,100%{opacity:1} 50%{opacity:.25} }

.dev-name {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 22px;
}
.dev-body {
  font-size: 17px;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 12px;
  line-height: 1.8;
  font-weight: 400;
}
.dev-body strong { color: var(--text-1); font-weight: 600; }
.dev-location { font-size: 13px; color: var(--text-3); margin-top: 14px; }

/* ── Contact ────────────────────────────────────────────── */
.contact-section {
  padding: 60px 0 120px;
  text-align: center;
}
.email-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-1);
  text-decoration: none;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -.5px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-hi);
  border-radius: 100px;
  padding: 18px 36px;
  transition: all .28s;
}
.email-pill svg { width: 22px; height: 22px; color: var(--p-hi); flex-shrink: 0; }
.email-pill:hover {
  background: rgba(168,85,247,.12);
  border-color: rgba(196,181,253,.4);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(109,40,217,.2);
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 28px;
  position: relative; z-index: 2;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  text-align: center;
}
.footer-links { list-style: none; display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  color: var(--text-3);
  text-decoration: none;
  font-size: 13px;
  padding: 5px 11px;
  border-radius: 100px;
  transition: all .2s;
}
.footer-links a:hover { color: var(--p-hi); background: rgba(196,181,253,.08); }
.footer-copy { font-size: 12px; color: var(--text-3); opacity: .45; line-height: 1.8; }

/* ── Legal pages ────────────────────────────────────────── */
.legal-wrap { padding-top: 100px; }
.legal-body {
  max-width: 700px;
  margin: 0 auto;
  padding: 56px 28px 100px;
}
.legal-body h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; color: var(--text-1);
  letter-spacing: -1px; margin-bottom: 8px;
}
.legal-date {
  font-size: 13px; color: var(--text-3);
  line-height: 1.8;
  padding-bottom: 28px; margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.legal-body h2 { font-size: 18px; font-weight: 700; color: var(--text-1); margin: 36px 0 10px; letter-spacing: -.3px; }
.legal-body h3 { font-size: 15px; font-weight: 600; color: var(--p-hi); margin: 20px 0 8px; }
.legal-body p, .legal-body li { font-size: 15px; color: var(--text-2); line-height: 1.88; margin-bottom: 12px; font-weight: 400; }
.legal-body ul, .legal-body ol { margin: 6px 0 12px 22px; }
.legal-body li { margin-bottom: 5px; }
.legal-body a { color: var(--p-hi); text-decoration: none; border-bottom: 1px solid rgba(216,180,254,.2); }
.legal-body a:hover { color: var(--text-1); border-color: rgba(255,255,255,.35); }
.note-box {
  background: rgba(109,40,217,.07);
  border: 1px solid rgba(196,181,253,.14);
  border-radius: 12px;
  padding: 16px 20px; margin: 20px 0;
}
.note-box p { margin: 0; font-size: 14px; color: var(--text-2); }

/* ── Support FAQ ────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-size: 16px; font-weight: 700; color: var(--text-1);
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: flex-start; gap: 16px; user-select: none;
}
.faq-q svg { flex-shrink: 0; transition: transform .25s; margin-top: 3px; opacity: .35; }
.faq-item.open .faq-q svg { transform: rotate(180deg); opacity: .7; }
.faq-a {
  font-size: 15px; color: var(--text-2); line-height: 1.8; font-weight: 400;
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding-top .3s;
}
.faq-item.open .faq-a { max-height: 400px; padding-top: 10px; }
.contact-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-hi);
  border-radius: 20px;
  padding: 40px 36px; text-align: center;
  max-width: 500px; margin: 0 auto;
}
.contact-card h2 { font-size: 22px; font-weight: 700; color: var(--text-1); margin-bottom: 10px; }
.contact-card p { font-size: 15px; color: var(--text-2); line-height: 1.7; margin-bottom: 24px; font-weight: 400; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .features-grid { grid-template-columns: 1fr; }
  .feat-col { border-right: none; border-bottom: 1px solid var(--border); padding: 36px 28px; }
  .feat-col:first-child { border-left: none; }
  .phone-left { width: 168px; transform: rotate(-7deg) translateX(14px) translateY(30px); }
  .phone-center { width: 200px; }
  .phone-right { width: 168px; transform: rotate(7deg) translateX(-14px) translateY(30px); }
  .dev-card { padding: 48px 28px; }
}
@media (max-width: 640px) {
  nav { padding: 12px 16px; }
  .nav-pill { padding: 8px 8px 8px 16px; gap: 16px; }
  .nav-links { display: none; }
  .section, .shots-section, .dev-section { padding: 72px 0; }
  .phone-left { display: none; }
  .phone-right { display: none; }
  .phone-center { width: 240px; }
  .contact-section { padding: 40px 0 80px; }
  .email-pill { font-size: 18px; padding: 14px 24px; }
}

/* ── Scroll-reveal base (JS applies these) ──────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Smooth page load fade-in ───────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-icon    { animation: fadeUp .7s cubic-bezier(.16,1,.3,1) .1s both; }
.hero-title   { animation: fadeUp .7s cubic-bezier(.16,1,.3,1) .22s both; }
.hero-sub     { animation: fadeUp .7s cubic-bezier(.16,1,.3,1) .34s both; }
.hero-ctas    { animation: fadeUp .7s cubic-bezier(.16,1,.3,1) .44s both; }

/* ── Focus / accessibility ──────────────────────────────── */
a:focus-visible {
  outline: 2px solid var(--p-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Selection color ────────────────────────────────────── */
::selection {
  background: rgba(168,85,247,.35);
  color: var(--text-1);
}
