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

:root {
  --bg: #0f0c1c;
  --bg-soft: #131024;
  --surface: #18142c;
  --surface-2: #201a3a;
  --border: #2a2447;
  --text: #f4f2fb;
  --text-muted: #a79fc4;
  --text-faint: #756c96;
  --indigo: #6c5ce7;
  --indigo-light: #9b8cff;
  --indigo-dim: #4b3fa8;

  --tier-s: #ff5c7a;
  --tier-a: #ffb454;
  --tier-b: #ffe66d;
  --tier-c: #6ee7b7;
  --tier-d: #5cc8ff;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;

  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 42% at 18% -6%, rgba(108, 92, 231, 0.24), transparent 60%),
    radial-gradient(46% 34% at 96% 8%, rgba(255, 92, 122, 0.10), transparent 60%);
}

h1, h2, h3, h4 {
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

:focus-visible {
  outline: 2px solid var(--indigo-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(15, 12, 28, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--tier-s), var(--indigo) 55%, var(--tier-d));
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--indigo);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}
.nav-cta:hover { background: var(--indigo-light); }

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 40px;
  text-align: center;
}
.platform-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.platform-pill {
  padding: 7px 15px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  max-width: 15ch;
  margin: 0 auto;
  color: var(--text);
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--indigo-light), var(--tier-s) 60%, var(--tier-a));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub {
  max-width: 52ch;
  margin: 22px auto 0;
  color: var(--text-muted);
  font-size: 18px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--indigo);
  color: #fff;
}
.btn-primary:hover { background: var(--indigo-light); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--indigo-light); color: var(--indigo-light); }
.btn svg { flex-shrink: 0; }

/* ---------- Tier board (hero visual, inside an iPhone) ---------- */
.iphone-mockup {
  margin: 56px auto 0;
  width: clamp(226px, 62vw, 288px);
  position: relative;
}
.device {
  position: relative;
  aspect-ratio: 9 / 19.3;
  border-radius: 50px;
  border: 9px solid #08060f;
  background: var(--bg-soft);
  overflow: hidden;
  box-shadow:
    0 50px 110px -40px rgba(108, 92, 231, 0.5),
    inset 0 0 0 2px rgba(255,255,255,0.05);
}
.device::before,
.device::after {
  content: '';
  position: absolute;
  background: #08060f;
}
/* volume buttons (left) */
.device::before {
  left: -12px;
  top: 92px;
  width: 3px;
  height: 52px;
  border-radius: 2px;
  box-shadow: 0 66px 0 #08060f;
}
/* power button (right) */
.device::after {
  right: -12px;
  top: 118px;
  width: 3px;
  height: 78px;
  border-radius: 2px;
}
.island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 22px;
  background: #08060f;
  border-radius: 20px;
  z-index: 3;
}
.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 4px;
  border-radius: 3px;
  background: rgba(255,255,255,0.28);
  z-index: 3;
}
.screen {
  position: absolute;
  inset: 0;
  padding: 46px 12px 22px;
  display: flex;
  align-items: center;
}
.board-visual {
  position: relative;
  width: 100%;
}
.board {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tier-row {
  display: flex;
  align-items: center;
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface-2);
  min-height: 34px;
  opacity: 0;
  transform: translateX(-16px);
  animation: rowIn 0.5s cubic-bezier(.2,.8,.2,1) forwards;
}
.tier-row.row-s { animation-delay: 0.15s; }
.tier-row.row-a { animation-delay: 0.28s; }
.tier-row.row-b { animation-delay: 0.41s; }
.tier-row.row-c { animation-delay: 0.54s; }
.tier-row.row-d { animation-delay: 0.67s; }

@keyframes rowIn {
  to { opacity: 1; transform: translateX(0); }
}

.tier-label {
  width: 30px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 12.5px;
  color: #1a1330;
  flex-shrink: 0;
}
.row-s .tier-label { background: var(--tier-s); }
.row-a .tier-label { background: var(--tier-a); }
.row-b .tier-label { background: var(--tier-b); }
.row-c .tier-label { background: var(--tier-c); }
.row-d .tier-label { background: var(--tier-d); }

.tier-slots {
  flex: 1;
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 5px 6px;
  min-height: 34px;
}
.chip {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.chip.filled {
  border: none;
  background: linear-gradient(140deg, var(--indigo-light), var(--indigo));
}

.drag-chip {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(140deg, #fff, #d8d0ff);
  box-shadow: 0 10px 22px -6px rgba(0,0,0,0.55);
  opacity: 0;
  animation: dragMove 3.2s ease-in-out 1.1s infinite;
}
@keyframes dragMove {
  0%   { opacity: 0; top: 80%; left: 74%; transform: scale(0.9) rotate(0deg); }
  8%   { opacity: 1; top: 80%; left: 74%; transform: scale(1.08) rotate(-5deg); }
  32%  { opacity: 1; top: 3%;  left: 9%;  transform: scale(1.08) rotate(3deg); }
  42%  { opacity: 1; top: 1%;  left: 7%;  transform: scale(0.95) rotate(0deg); }
  50%  { opacity: 0; top: 1%;  left: 7%;  transform: scale(0.9) rotate(0deg); }
  100% { opacity: 0; top: 1%;  left: 7%;  transform: scale(0.9) rotate(0deg); }
}

/* ---------- Section shell ---------- */
section { padding: 92px 0; position: relative; }
.section-head {
  max-width: 620px;
  margin: 0 0 46px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}
.section-head p {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 17px;
}

@media (max-width: 720px) {
  section { padding: 52px 0; }
  .section-head { margin-bottom: 32px; }
  .hero { padding: 48px 0 8px; }
  .iphone-mockup { margin-top: 40px; }
  .hero-actions { margin-top: 26px; }
  .trust { padding: 30px; gap: 22px; }
  .cta-final { padding-bottom: 40px; }
  .price-card { padding: 28px 24px; }
}

/* ---------- Bento feature grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.bento-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.bento-card.c-wide { grid-column: span 4; }
.bento-card.c-narrow { grid-column: span 2; }
.bento-card.c-half { grid-column: span 3; }

.bento-card .swatch {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  margin-bottom: 22px;
}
.bento-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.bento-card p {
  color: var(--text-muted);
  font-size: 15.5px;
}

@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card.c-wide, .bento-card.c-narrow, .bento-card.c-half { grid-column: span 1; }
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  border-top: 2px solid var(--indigo-dim);
  padding-top: 22px;
}
.step .step-tag {
  color: var(--indigo-light);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 14px;
}
.step h3 { margin-top: 10px; font-size: 20px; }
.step p { margin-top: 10px; color: var(--text-muted); font-size: 15.5px; }

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

/* ---------- Screenshot showcase ---------- */
.showcase-strip {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 10px 4px 26px;
  scrollbar-width: thin;
}
.phone {
  flex: 0 0 auto;
  width: 232px;
}
.phone-frame {
  width: 232px;
  height: 472px;
  border-radius: 34px;
  border: 8px solid var(--surface-2);
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.phone-frame .notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 20px;
  background: var(--surface-2);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-frame .placeholder-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--text-faint);
  font-size: 12.5px;
  text-align: center;
  padding: 20px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.02) 0 12px, transparent 12px 24px);
}
.phone-frame .placeholder-inner svg { opacity: 0.5; }
.phone-caption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.price-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 38px 34px;
}
.price-card.pro {
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border-color: var(--indigo-dim);
  box-shadow: 0 30px 70px -40px rgba(108, 92, 231, 0.6);
}
.price-card .plan-name {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-muted);
}
.price-card.pro .plan-name { color: var(--indigo-light); }
.price-card .plan-price {
  font-family: 'Sora', sans-serif;
  font-size: 34px;
  font-weight: 800;
  margin: 10px 0 22px;
}
.price-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.price-card li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: var(--text-muted);
}
.price-card li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--indigo-light);
  margin-top: 8px;
  flex-shrink: 0;
}

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

/* ---------- Trust / no sign-in callout ---------- */
.trust {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(120deg, var(--surface), var(--bg-soft));
  padding: 52px;
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.trust h3 { font-size: 24px; max-width: 20ch; }
.trust p { color: var(--text-muted); margin-top: 10px; max-width: 42ch; }
.trust a.link-arrow {
  color: var(--indigo-light);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

/* ---------- Final CTA ---------- */
.cta-final { text-align: center; padding-bottom: 60px; }
.cta-final h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 16ch; margin: 0 auto; }
.cta-final p { color: var(--text-muted); margin: 18px auto 32px; max-width: 44ch; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--text-faint);
}
footer a:hover { color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; }

/* ---------- Privacy page ---------- */
.legal {
  padding: 70px 0 100px;
  max-width: 760px;
  margin: 0 auto;
}
.legal .updated {
  color: var(--text-faint);
  font-size: 14px;
  margin-bottom: 40px;
}
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 8px; }
.legal h2 {
  font-size: 20px;
  margin-top: 44px;
  margin-bottom: 14px;
  color: var(--text);
}
.legal p, .legal li {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
}
.legal ul { padding-left: 20px; margin: 14px 0; display: flex; flex-direction: column; gap: 8px; }
.legal a.mail { color: var(--indigo-light); font-weight: 600; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 30px;
}
.back-link:hover { color: var(--text); }

@media (max-width: 1025px) {
  .hero {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 1025px) {
  .hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .hero .iphone-mockup {
    margin-right: -144px;
  }
}