:root {
  --bg: #07080f;
  --bg-2: #0d0f1c;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #eef0ff;
  --muted: #9097b8;
  --cyan: #3ee8ff;
  --violet: #8b5cff;
  --pink: #ff5ca8;
  --grad: linear-gradient(135deg, var(--cyan), var(--violet));
  --radius: 20px;
  --maxw: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.container { width: min(var(--maxw), 92%); margin: 0 auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Background orbs ---------- */
.orb { position: fixed; border-radius: 50%; filter: blur(120px); opacity: .35; z-index: -1; pointer-events: none; }
.orb-1 { width: 520px; height: 520px; background: var(--violet); top: -160px; left: -140px; animation: float 18s ease-in-out infinite; }
.orb-2 { width: 460px; height: 460px; background: var(--cyan); top: 30%; right: -180px; animation: float 22s ease-in-out infinite reverse; }
.orb-3 { width: 380px; height: 380px; background: var(--pink); bottom: -160px; left: 30%; opacity: .18; animation: float 26s ease-in-out infinite; }
@keyframes float { 50% { transform: translate(40px, 60px) scale(1.08); } }
.grid-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(160%);
  background: rgba(7, 8, 15, .6);
  border-bottom: 1px solid var(--card-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 30px; font-size: .94rem; color: var(--muted); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 14px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .3s, background .3s;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--grad); color: #05060d; box-shadow: 0 10px 40px -10px rgba(110, 120, 255, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(110, 160, 255, .9); }
.btn-ghost { background: var(--card); border-color: var(--card-border); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: .9rem; border-radius: 11px; }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 70px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 99px; font-size: .82rem; color: var(--muted);
  background: var(--card); border: 1px solid var(--card-border); margin-bottom: 24px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #3dff9a; box-shadow: 0 0 10px #3dff9a; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; margin-bottom: 22px; }
.hero p.lead { color: var(--muted); font-size: 1.12rem; max-width: 540px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.meta { display: flex; flex-wrap: wrap; gap: 22px; font-size: .86rem; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta b { color: var(--text); font-weight: 600; }

/* ---------- Phone mockup ---------- */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone-wrap::before {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: var(--grad); filter: blur(90px); opacity: .35; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.phone {
  position: relative; width: 290px; height: 590px; border-radius: 48px; padding: 12px;
  background: linear-gradient(160deg, #2a2d42, #0e1020);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.8), inset 0 0 0 1.5px rgba(255,255,255,.12);
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-14px) rotate(-1deg); } }
.screen { width: 100%; height: 100%; border-radius: 38px; background: #090a14; overflow: hidden; position: relative; padding: 50px 18px 18px; }
.island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 20px; background: #000; }
.app-title { font-weight: 800; font-size: 1.3rem; margin-bottom: 14px; }
.input-mock {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px; font-size: .74rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: var(--muted); margin-bottom: 12px;
  white-space: nowrap; overflow: hidden;
}
.input-mock .typing { border-right: 2px solid var(--cyan); animation: caret .8s step-end infinite; overflow: hidden; }
@keyframes caret { 50% { border-color: transparent; } }
.mock-btn { width: 100%; padding: 11px; border-radius: 12px; border: 0; background: var(--grad); color: #05060d; font-weight: 700; font-size: .85rem; margin-bottom: 18px; }
.mock-section { font-size: .72rem; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .08em; }
.dl-item { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.04); margin-bottom: 9px; }
.thumb { width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0; position: relative; overflow: hidden; }
.thumb::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: 12px solid rgba(255,255,255,.9); border-top: 8px solid transparent; border-bottom: 8px solid transparent; left: 4px; }
.t1 { background: linear-gradient(135deg, #ff7a59, #ff3d8b); }
.t2 { background: linear-gradient(135deg, #3ee8ff, #3d6bff); }
.t3 { background: linear-gradient(135deg, #8b5cff, #e14dff); }
.dl-info { flex: 1; min-width: 0; }
.dl-info .name { font-size: .74rem; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-info .sub { font-size: .64rem; color: var(--muted); margin-bottom: 6px; }
.bar { height: 5px; border-radius: 5px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 5px; }
.bar i.anim { animation: load 3.2s ease-in-out infinite; }
@keyframes load { 0% { width: 8%; } 80%, 100% { width: 100%; } }
.done { font-size: .64rem; color: #3dff9a; }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -.02em; line-height: 1.2; margin-bottom: 14px; }
.section-head p { color: var(--muted); }

/* ---------- Feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; padding: 30px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--card-border);
  transition: transform .35s, border-color .35s, background .35s; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(110, 140, 255, .14), transparent 45%);
}
.card:hover { transform: translateY(-6px); border-color: rgba(140, 150, 255, .35); }
.card:hover::before { opacity: 1; }
.icon-box {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(62,232,255,.16), rgba(139,92,255,.16)); border: 1px solid rgba(140,150,255,.25);
}
.icon-box svg { width: 24px; height: 24px; stroke: var(--cyan); }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .94rem; }

/* ---------- Steps / how it works ---------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.flow .card { text-align: center; }
.flow .num {
  width: 48px; height: 48px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; background: var(--grad); color: #05060d;
}

/* ---------- Install tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 34px; }
.tab {
  padding: 10px 22px; border-radius: 12px; font-size: .95rem; font-weight: 600; cursor: pointer;
  background: var(--card); border: 1px solid var(--card-border); color: var(--muted); transition: all .25s; font-family: inherit;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--grad); color: #05060d; border-color: transparent; }
.panel { display: none; animation: fade .45s ease; }
.panel.active { display: grid; grid-template-columns: .8fr 1.2fr; gap: 26px; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }
.panel-info h3 { font-size: 1.5rem; margin-bottom: 10px; }
.panel-info p { color: var(--muted); margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag { font-size: .78rem; padding: 4px 11px; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid var(--card-border); color: var(--muted); }
.tag.good { color: #3dff9a; border-color: rgba(61,255,154,.3); }
.tag.warn { color: #ffc95c; border-color: rgba(255,201,92,.3); }
.steps { list-style: none; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 16px 18px 16px 62px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--card-border); margin-bottom: 10px; color: #cfd3ee; font-size: .95rem; }
.steps li::before {
  content: counter(st); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: var(--cyan);
  background: rgba(62,232,255,.1); border: 1px solid rgba(62,232,255,.3);
}
.steps code, .faq code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .85em; padding: 2px 7px; border-radius: 6px; background: rgba(139,92,255,.15); color: #c9b8ff; }

/* ---------- Download box ---------- */
.download-box {
  position: relative; border-radius: 28px; padding: 60px 40px; text-align: center; overflow: hidden;
  background: linear-gradient(135deg, rgba(62,232,255,.1), rgba(139,92,255,.14));
  border: 1px solid rgba(140,150,255,.3);
}
.download-box::after {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; background: var(--grad); filter: blur(40px); opacity: .25;
}
.download-box img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 22px; box-shadow: 0 20px 50px -10px rgba(110,120,255,.6); }
.download-box h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 10px; letter-spacing: -.02em; }
.download-box > p { color: var(--muted); margin-bottom: 28px; }
.file-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.file-meta .tag { font-size: .82rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border-radius: 16px; background: var(--card); border: 1px solid var(--card-border); margin-bottom: 12px; transition: border-color .3s; }
.faq details[open] { border-color: rgba(140,150,255,.35); }
.faq summary { cursor: pointer; padding: 20px 24px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--cyan); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); font-size: .95rem; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--card-border); padding: 40px 0; color: var(--muted); font-size: .86rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.disclaimer { max-width: 640px; font-size: .8rem; opacity: .8; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 120px); z-index: 100;
  padding: 14px 22px; border-radius: 14px; background: rgba(20, 22, 40, .92); border: 1px solid rgba(140,150,255,.35);
  backdrop-filter: blur(12px); font-size: .92rem; transition: transform .45s cubic-bezier(.2,.9,.3,1.3); max-width: 90vw;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .meta { justify-content: center; }
  .features, .flow { grid-template-columns: 1fr 1fr; }
  .panel.active { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .features, .flow { grid-template-columns: 1fr; }
  .hero { padding-top: 50px; }
  section { padding: 64px 0; }
  .download-box { padding: 44px 22px; }
}
