:root {
  --purple: #9138b0;
  --purple-deep: #6b1f86;
  --blue: #03a3db;
  --pink: #d60070;
  --orange: #e67003;
  --green: #73ab00;
  --ink: #1c1224;
  --muted: #6b5f78;
  --line: rgba(145, 56, 176, 0.14);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --bg: #f6f1fb;
  --radius: 28px;
  --radius-sm: 16px;
  --shadow: 0 18px 50px rgba(108, 31, 134, 0.12);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Outfit", ui-rounded, "Avenir Next", system-ui, sans-serif;
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #f7f2fb;
}

.atmosphere span {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
}

.atmosphere .orb-a {
  width: 420px;
  height: 420px;
  background: #c975e2;
  top: -140px;
  left: -80px;
}

.atmosphere .orb-b {
  width: 380px;
  height: 380px;
  background: #57c4ed;
  right: -90px;
  top: 38%;
}

.atmosphere .orb-c {
  width: 320px;
  height: 320px;
  background: #fc85c4;
  left: 28%;
  bottom: -120px;
}

a { color: var(--purple); }

img { max-width: 100%; display: block; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(246, 241, 251, 0.72);
  border-bottom: 1px solid transparent;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 6px 16px rgba(145, 56, 176, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 650;
  border-radius: 999px;
  padding: 12px 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  color: white;
  background: linear-gradient(180deg, #a855c8, var(--purple-deep));
  box-shadow: 0 10px 24px rgba(107, 31, 134, 0.28);
}

.btn-dark {
  color: white;
  background: #111;
  padding: 14px 20px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 32px;
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 36ch;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.apple-mark {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.fine-print {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.phone {
  width: min(320px, 100%);
  margin: 0 auto;
  background: #1a1022;
  border-radius: 42px;
  padding: 12px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.3);
}

.phone-screen {
  background: linear-gradient(180deg, #f4ecfb, #fff);
  border-radius: 32px;
  min-height: 540px;
  padding: 22px 16px 16px;
  overflow: hidden;
}

.phone-status {
  height: 8px;
  width: 88px;
  background: #1a1022;
  border-radius: 999px;
  margin: 0 auto 18px;
}

.phone-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.phone-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 4px 0 16px;
}

.class-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 10px;
}

.dot {
  width: 12px;
  height: 42px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.dot.purple { background: var(--purple); }
.dot.blue { background: var(--blue); }
.dot.pink { background: var(--pink); }
.dot.green { background: var(--green); }

.class-card strong { display: block; font-size: 0.95rem; }
.class-card span { color: var(--muted); font-size: 0.8rem; }

.task-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.pill {
  background: rgba(145, 56, 176, 0.12);
  color: var(--purple-deep);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 999px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px 0 8px;
}

.card {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 30px rgba(108, 31, 134, 0.06);
  backdrop-filter: blur(12px);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.icon.purple { background: var(--purple); }
.icon.blue { background: var(--blue); }
.icon.pink { background: var(--pink); }
.icon.orange { background: var(--orange); }
.icon.green { background: var(--green); }

.card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.pro {
  margin: 48px 0;
  padding: 36px;
  border-radius: 36px;
  background: linear-gradient(135deg, #2a1038, #6b1f86 55%, #03a3db);
  color: white;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
}

.pro h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.pro p { margin: 0 0 18px; opacity: 0.9; }

.pro ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.pro li::before {
  content: "✓ ";
  color: #b7f08a;
}

.cta-band {
  text-align: center;
  padding: 8px 0 64px;
}

.cta-band h2 {
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.legal {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 8px;
}

.legal .meta {
  color: var(--muted);
  margin-bottom: 28px;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 32px 0 10px;
  letter-spacing: -0.02em;
}

.legal p, .legal li { color: #3d3348; }

.legal ul { padding-left: 1.2em; }

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

.support-grid .card h3 { margin-bottom: 6px; }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.footer-links a:hover { color: var(--ink); }

.copy { color: var(--muted); font-size: 0.9rem; }

.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 20px;
}

@media (max-width: 860px) {
  .hero, .pro, .features, .support-grid {
    grid-template-columns: 1fr;
  }

  .nav-links .hide-sm { display: none; }

  .hero { padding-top: 28px; }

  .pro { padding: 28px; }
}
