/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:       #08071a;
  --surface:  rgba(255,255,255,0.05);
  --border:   rgba(255,255,255,0.10);
  --border-hi: rgba(255,255,255,0.18);
  --ink:      #f0eeff;
  --muted:    rgba(200,196,240,0.62);
  --violet:   #7c5cfc;
  --violet-hi:#a07fff;
  --mint:     #00e5d4;
  --gold:     #f6c547;
  --coral:    #ff7f5e;
  --shadow:   0 32px 80px rgba(0,0,0,0.52);
  --r-xl:     36px;
  --r-lg:     28px;
  --r-md:     20px;
  --r-pill:   999px;
  --content:  1180px;
  --ease:     cubic-bezier(.22,.68,0,1.2);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html  { scroll-behavior: smooth; }
body  {
  margin: 0;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img   { display: block; max-width: 100%; }
a     { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: "Sora", sans-serif; }
p     { margin: 0; }
ol,ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

/* ─── Background noise + glow canvas ────────────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% -5%,  rgba(124,92,252,.28) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 10%,  rgba(0,229,212,.16)  0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(246,197,71,.14)  0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Section wrapper ────────────────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 96px 0;
}

/* ─── Typography ─────────────────────────────────────────── */
h1 {
  margin: 0;
  font-size: clamp(3.4rem, 6.5vw, 5.6rem);
  line-height: .96;
  letter-spacing: -.06em;
}
h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -.05em;
}
h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -.03em;
}
.eyebrow {
  margin: 0 0 14px;
  font-family: "Sora", sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--violet-hi);
}
.gradient-text {
  font-style: normal;
  background: linear-gradient(100deg, var(--violet-hi) 0%, var(--mint) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  min-height: 52px;
  border-radius: var(--r-pill);
  font-family: "Sora", sans-serif;
  font-size: .94rem;
  font-weight: 700;
  transition: transform 180ms var(--ease), box-shadow 180ms ease, opacity 180ms ease;
  cursor: pointer;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--violet) 0%, #5b8aff 100%);
  box-shadow: 0 16px 40px rgba(100,80,255,.38);
}
.button-primary:hover {
  box-shadow: 0 22px 50px rgba(100,80,255,.52);
}
.button-ghost {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-hi);
}
.button-ghost:hover { background: rgba(255,255,255,.09); }
.button-xl {
  min-height: 62px;
  padding: 0 34px;
  font-size: 1.05rem;
}

/* ─── NAV ────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 32px;
  background: rgba(8,7,26,.72);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  box-shadow: 0 8px 24px rgba(100,80,255,.45);
}
.topnav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: .92rem;
  color: var(--muted);
}
.topnav a:hover { color: var(--ink); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-family: "Sora", sans-serif;
  font-size: .88rem;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  transition: transform 180ms var(--ease), background 180ms ease;
}
.nav-cta:hover { transform: translateY(-2px); background: rgba(255,255,255,.09); }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  min-height: calc(100vh - 80px);
  padding-top: 80px;
  padding-bottom: 80px;
}
.hero-body { animation: rise 0.9s var(--ease) both; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: rgba(124,92,252,.14);
  border: 1px solid rgba(124,92,252,.35);
  font-family: "Sora", sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: var(--violet-hi);
}
.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(0,229,212,.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,229,212,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(0,229,212,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,229,212,0); }
}

.hero h1 { margin-bottom: 24px; }

.hero-text {
  max-width: 42rem;
  font-size: 1.07rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: var(--muted);
}
.trust-stars { color: var(--gold); letter-spacing: 2px; }

/* ─── Hero visual ────────────────────────────────────────── */
.hero-visual {
  position: relative;
  min-height: 720px;
  animation: rise 1s var(--ease) .12s both;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.glow-a {
  width: 340px; height: 340px;
  background: rgba(124,92,252,.35);
  top: 60px; left: -20px;
}
.glow-b {
  width: 280px; height: 280px;
  background: rgba(0,229,212,.22);
  bottom: 80px; right: 0;
}
.glow-c {
  width: 200px; height: 200px;
  background: rgba(246,197,71,.20);
  bottom: 200px; left: 80px;
}

.floating-chip {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  background: rgba(18,14,44,.82);
  border: 1px solid var(--border-hi);
  backdrop-filter: blur(16px);
  font-family: "Sora", sans-serif;
  font-size: .84rem;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.chip-scan  { top: 90px;  left: 0; animation: float 4s ease-in-out infinite; }
.chip-star  { top: 260px; right: 10px; animation: float 4s ease-in-out 1.3s infinite; }
.chip-level { bottom: 100px; left: 30px; animation: float 4s ease-in-out 0.7s infinite; }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Phone stack */
.phone {
  position: absolute;
  overflow: hidden;
  border-radius: 46px;
  background: #0e0d22;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 0 0 10px #111028,
    0 40px 80px rgba(0,0,0,.7),
    inset 0 1px 0 rgba(255,255,255,.12);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }

.phone-front {
  z-index: 3;
  width: 300px; height: 594px;
  inset: 100px 80px auto auto;
  transform: rotate(-5deg);
}
.phone-back {
  z-index: 1;
  width: 232px; height: 460px;
  inset: 24px auto auto 80px;
  transform: rotate(-13deg);
  opacity: .88;
}
.phone-side {
  z-index: 2;
  width: 206px; height: 408px;
  inset: auto auto 20px 100px;
  transform: rotate(9deg);
  opacity: .92;
}

/* ─── Stats band ──────────────────────────────────────────── */
.stats-band {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto 0;
  padding: 28px 40px;
  max-width: var(--content);
  background: rgba(255,255,255,.04);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 24px;
}
.stat strong {
  font-family: "Sora", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}
.stat span {
  font-size: .82rem;
  color: var(--muted);
}
.stat-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── Section heading ────────────────────────────────────── */
.section-head {
  max-width: 720px;
  margin-bottom: 52px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p  { font-size: 1rem; line-height: 1.8; color: var(--muted); }

/* ─── Bento grid ─────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.bento-tall { grid-row: span 1; }
.bento-wide { grid-column: span 3; }

.bento-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 240ms var(--ease), border-color 240ms ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
}
.card-tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-family: "Sora", sans-serif;
  font-size: .76rem;
  font-weight: 700;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--border);
  color: var(--muted);
  letter-spacing: .04em;
}
.bento-card h3 { color: var(--ink); }
.bento-card p  { font-size: .96rem; line-height: 1.75; color: var(--muted); margin-top: 8px; }

.card-orb {
  position: absolute;
  bottom: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  opacity: .45;
}
.orb-violet { background: var(--violet); }
.orb-mint   { background: var(--mint); }
.orb-gold   { background: var(--gold); }
.orb-coral  { background: var(--coral); }

.card-violet { border-color: rgba(124,92,252,.25); }
.card-mint   { border-color: rgba(0,229,212,.20); }
.card-gold   { border-color: rgba(246,197,71,.20); }
.card-coral  { border-color: rgba(255,127,94,.20); }

/* ─── Flow section ───────────────────────────────────────── */
.flow-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.flow-text .eyebrow { margin-bottom: 16px; }
.flow-text h2 { margin-bottom: 32px; }

.flow-list { display: grid; gap: 0; }
.flow-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.flow-list li:last-child { border-bottom: 1px solid var(--border); }
.flow-n {
  flex-shrink: 0;
  font-family: "Sora", sans-serif;
  font-size: .82rem;
  font-weight: 700;
  color: var(--violet-hi);
  margin-top: 2px;
}
.flow-list strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.flow-list span { font-size: .92rem; line-height: 1.7; color: var(--muted); }

.flow-visual {
  position: relative;
  min-height: 580px;
}
.flow-glow {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(124,92,252,.28);
  filter: blur(80px);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.fv-back,
.fv-front {
  position: absolute;
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(0,0,0,.6);
  border: 1px solid var(--border-hi);
}
.fv-back  { width: 240px; top: 20px; left: 0;  transform: rotate(-8deg); opacity: .8; }
.fv-front { width: 290px; bottom: 20px; right: 0; transform: rotate(7deg); }

.flow-note {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: rgba(18,14,44,.88);
  border: 1px solid var(--border-hi);
  backdrop-filter: blur(16px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.flow-note strong { font-size: .94rem; display: block; }
.flow-note span   { font-size: .84rem; color: var(--muted); line-height: 1.6; }

/* ─── Screen gallery ─────────────────────────────────────── */
.screen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sc-wide { grid-column: span 3; }

.screen-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 240ms var(--ease), border-color 240ms ease;
}
.screen-card:hover { transform: translateY(-4px); border-color: var(--border-hi); }
.sc-wrap {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.03);
}
.sc-wrap img { width: 100%; object-fit: cover; }
.sc-wide .sc-wrap img { max-height: 560px; object-position: top; }

.screen-card figcaption { padding: 0 4px 4px; }
.screen-card strong { display: block; font-size: .96rem; margin-bottom: 5px; }
.screen-card span   { font-size: .88rem; color: var(--muted); line-height: 1.65; }

/* ─── CTA ────────────────────────────────────────────────── */
.cta-section {
  position: relative;
  text-align: center;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 100px;
}
.cta-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.cta-glow-a {
  width: 500px; height: 500px;
  background: rgba(124,92,252,.28);
  top: -100px; left: 50%;
  transform: translateX(-50%);
}
.cta-glow-b {
  width: 300px; height: 300px;
  background: rgba(0,229,212,.15);
  bottom: -50px; right: 10%;
}
.cta-section .eyebrow { justify-content: center; display: flex; }
.cta-section h2 {
  margin: 0 auto 20px;
  max-width: 600px;
}
.cta-section > p {
  max-width: 480px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
}
.cta-section .button { margin: 0 auto; }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: .96rem;
}
.footer-brand img {
  width: 32px; height: 32px;
  border-radius: 10px;
}
.footer-copy { font-size: .85rem; color: var(--muted); }
.footer-links {
  display: flex;
  gap: 22px;
  font-size: .85rem;
  color: var(--muted);
}
.footer-links a:hover { color: var(--ink); }

/* ─── Animation ──────────────────────────────────────────── */
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive: tablet ─────────────────────────────────── */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: unset; }
  .hero-visual { order: -1; min-height: 640px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-wide { grid-column: span 2; }
  .flow-section { grid-template-columns: 1fr; }
  .flow-visual { min-height: 480px; }
  .screen-grid { grid-template-columns: repeat(2, 1fr); }
  .sc-wide { grid-column: span 2; }
}

@media (max-width: 760px) {
  .section { width: min(calc(100% - 32px), var(--content)); padding: 64px 0; }
  .topbar  { padding: 16px 20px; }
  .topnav  { display: none; }

  .phone-front { width: 230px; height: 456px; inset: 80px 20px auto auto; }
  .phone-back  { width: 178px; height: 352px; inset: 16px auto auto 8px; }
  .phone-side  { width: 158px; height: 312px; inset: auto auto 10px 28px; }
  .chip-star   { display: none; }

  .stats-band  { flex-wrap: wrap; gap: 16px; padding: 24px 20px; }
  .stat-sep    { display: none; }
  .stat        { flex: 1 1 40%; }

  .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }

  .screen-grid { grid-template-columns: 1fr; }
  .sc-wide { grid-column: span 1; }
  .sc-wide .sc-wrap img { max-height: 320px; }

  .footer-inner { flex-direction: column; text-align: center; gap: 12px; }
  .footer-copy  { order: 3; }
}

@media (max-width: 480px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.1rem; }

  .hero-visual { min-height: 500px; }
  .phone-front { width: 200px; height: 396px; right: 10px; }
  .phone-back  { width: 148px; height: 292px; }
  .phone-side  { width: 134px; height: 264px; left: 10px; }

  .floating-chip { padding: 9px 13px; font-size: .78rem; }
  .chip-level { display: none; }

  .bento-card { padding: 24px; }
  .cta-section { padding-top: 72px; padding-bottom: 72px; }
}
