:root {
  --ink: #241b4d;
  --muted: #6b6889;
  --brand-a: #4f5bea;
  --brand-b: #9b45e0;
  --accent: #ff3d7f;
  --bg: #ffffff;
  --tint: #f6f4ff;
  --card: #ffffff;
  --line: #ece9f8;
  --shadow: 0 12px 40px rgba(60, 40, 140, .10);
  --shadow-up: 0 20px 50px rgba(60, 40, 140, .18);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: "Nunito", system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Buttons */
.btn { display: inline-block; padding: 12px 26px; border-radius: 999px; font-weight: 700; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(255, 61, 127, .35); }
.btn-ghost { color: #fff; border: 2px solid rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { padding: 9px 22px; border: 2px solid rgba(255, 255, 255, .6); }
.btn-light { background: #fff; color: var(--brand-a); }
.btn[aria-disabled="true"] { opacity: .75; cursor: default; }

/* Top bar */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; transition: background .25s, box-shadow .25s; }
.topbar.scrolled { background: rgba(79, 91, 234, .92); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(40, 30, 120, .2); }
.nav { max-width: 1140px; margin: 0 auto; padding: 18px 16px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; font-size: 1.6rem; font-weight: 800; letter-spacing: -.5px; }
.brand-mark { width: 42px; height: 42px; margin-right: 8px; }
.brand-dark .brand-mark { width: 36px; height: 36px; }
.brand span { color: var(--accent); }
.menu { display: flex; align-items: center; gap: 30px; font-weight: 600; }
.menu a:not(.btn) { opacity: .9; }
.menu a:not(.btn):hover { opacity: 1; }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.menu-btn span { display: block; height: 2px; width: 24px; margin: 0 auto; background: #fff; border-radius: 2px; }

/* Hero */
.hero { position: relative; color: #fff; background: linear-gradient(135deg, var(--brand-a) 0%, #7a4fe6 55%, var(--brand-b) 100%); padding: 130px 16px 170px; overflow: hidden; }
.hero-inner { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.hero-text { position: relative; isolation: isolate; }
.ghost-mark { position: absolute; left: -70px; top: -120px; width: 460px; pointer-events: none; user-select: none; z-index: -1; }
.ghost-mark img { width: 100%; opacity: .08; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; font-weight: 700; opacity: .8; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.08; font-weight: 800; margin: 12px 0 20px; }
.lead { font-size: 1.15rem; max-width: 500px; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.platforms { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-weight: 600; font-size: .95rem; opacity: .9; }
.platforms li { display: flex; align-items: center; gap: 8px; }
.platforms svg { width: 20px; height: 20px; fill: #fff; --glyph-hole: #6a55e8; }

/* Hero devices: a laptop with the phone leaning in front of it */
.hero-devices { position: relative; z-index: 2; padding: 20px 96px 60px 0; }
.laptop { width: 100%; max-width: 520px; margin-left: auto; filter: drop-shadow(0 40px 60px rgba(20, 10, 80, .45)); }
.laptop-screen { padding: 12px 12px 14px; border-radius: 18px 18px 0 0; background: #1c1a2e; box-shadow: inset 0 0 0 2px #2d2a45; }
.laptop-screen img { border-radius: 6px; }
.laptop-base { height: 16px; margin: 0 -7%; border-radius: 0 0 14px 14px; background: linear-gradient(#e9e8f2, #bdbbd0); position: relative; }
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 18%; height: 6px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #a9a7bd; }
/* Upright, standing to the right of the laptop and only overlapping its bezel edge. */
.phone { position: absolute; right: 0; bottom: 46px; width: 150px; padding: 6px; border-radius: 28px; background: #f4f4f8; box-shadow: 0 30px 60px rgba(20, 10, 80, .5), inset 0 0 0 2px #d9d9e3; }
.phone img { border-radius: 24px; }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 120px; }
.wave-back { fill: rgba(255, 255, 255, .25); }
.wave-front { fill: var(--bg); }

/* Sections */
.section { padding: 90px 16px; }
.section-tint { background: var(--tint); }
.title { font-size: clamp(1.8rem, 4vw, 2.4rem); text-align: center; color: var(--brand-a); font-weight: 700; }
.title::after { content: ""; display: block; width: 60px; height: 3px; margin: 14px auto 50px; border-radius: 2px; background: var(--accent); }

.cards { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 38px 28px; text-align: center; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-up); }
.icon { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.card h3 { color: var(--brand-a); font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); }

/* Apps */
.filters { display: flex; justify-content: center; gap: 10px; margin: -20px 0 36px; }
.chip { font: inherit; font-weight: 700; padding: 8px 20px; border-radius: 999px; border: 2px solid #ddd8f5; background: #fff; color: var(--muted); cursor: pointer; transition: .15s; }
.chip:hover { color: var(--brand-a); border-color: var(--brand-a); }
.chip.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); }
.app-card[hidden] { display: none; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tags li { display: flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; color: var(--brand-a); background: var(--tint); }
.tags svg { width: 15px; height: 15px; fill: currentColor; --glyph-hole: var(--tint); }
.apps { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; }
.app-card { display: flex; gap: 24px; align-items: flex-start; background: var(--card); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.app-icon { flex: none; border-radius: 22px; box-shadow: 0 10px 24px rgba(79, 91, 234, .25); }
.app-card h3 { font-size: 1.5rem; }
.app-tag { color: var(--muted); margin-bottom: 14px; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 6px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.badge { display: inline-block; margin-top: 14px; padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); }
.app-card-next { align-items: center; background: transparent; border: 2px dashed #d6d0f0; box-shadow: none; }
.next-plus { flex: none; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 2rem; color: var(--brand-a); background: #fff; }

/* About */
.about { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: center; }
.about-text p { color: var(--muted); font-size: 1.08rem; margin-bottom: 16px; }
.stats { display: grid; gap: 16px; }
.stats li { display: flex; align-items: baseline; gap: 14px; padding: 18px 24px; border-radius: 18px; background: var(--tint); }
.stats strong { font-size: 2rem; font-weight: 800; background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); -webkit-background-clip: text; background-clip: text; color: transparent; min-width: 90px; }
.stats span { color: var(--muted); font-weight: 600; }

/* Contact */
.contact { max-width: 1000px; margin: 0 auto; text-align: center; color: #fff; padding: 60px 24px; border-radius: 28px; background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); box-shadow: var(--shadow-up); }
.contact h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.contact p { opacity: .9; margin: 8px 0 26px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 16px; }
.footer-inner { max-width: 1140px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.brand-dark { color: var(--ink); font-size: 1.3rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-weight: 600; }
.footer-links a:hover { color: var(--brand-a); }
.soon { opacity: .6; }
.copy { color: var(--muted); font-size: .9rem; }

/* Tablet & phone */
@media (max-width: 900px) {
  .hero { padding-top: 110px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .lead { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .ghost-mark { left: 50%; transform: translateX(-50%); }
  .platforms { justify-content: center; }
  .hero-devices { max-width: 520px; margin: 0 auto; width: 100%; padding-right: 64px; }
  .laptop-base { margin: 0 -4%; }
  .phone { width: 100px; bottom: 50px; border-radius: 18px; padding: 4px; }
  .phone img { border-radius: 14px; }
  .cards, .apps, .about { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: flex; }
  .menu { position: absolute; top: 100%; left: 16px; right: 16px; flex-direction: column; gap: 4px; padding: 14px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: var(--shadow-up); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s; }
  .menu.open { opacity: 1; visibility: visible; transform: none; }
  .menu li { width: 100%; }
  .menu a:not(.btn) { display: block; padding: 10px 14px; border-radius: 10px; }
  .menu a:not(.btn):hover { background: var(--tint); }
  .menu .btn-outline { display: block; text-align: center; margin-top: 6px; color: #fff; background: var(--accent); border-color: var(--accent); }
  .app-card { flex-direction: column; align-items: center; text-align: center; }
  .ticks { text-align: left; }
  .tags { justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
