/* Polaris — landing. Dark-tech / north-star language.
   One accent (starlight blue), one radius rule (cards 16px, ctas pill), SF stack. */

:root {
  --bg: #070b12;
  --bg-2: #0b1119;
  --surface: #0e1622;
  --surface-2: #121c2b;
  --line: rgba(148, 178, 220, 0.12);
  --line-strong: rgba(148, 178, 220, 0.22);
  --text: rgba(255, 255, 255, 0.88);      /* AntD dark heading/body D9 */
  --muted: rgba(255, 255, 255, 0.65);     /* AntD dark secondary A6   */
  --faint: rgba(255, 255, 255, 0.38);     /* AntD dark disabled 40 — decoration only */
  --accent: #6ea8ff;
  --accent-soft: rgba(110, 168, 255, 0.14);
  --accent-line: rgba(110, 168, 255, 0.35);
  --good: #4ade80;
  --r-card: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5715;
}
::selection { background: var(--accent-soft); }

/* ------- starfield ------- */
.stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.stars i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: #cfe2ff; opacity: .35;
  animation: twinkle var(--tw, 6s) ease-in-out infinite;
}
@keyframes twinkle { 0%,100% { opacity: .12 } 50% { opacity: .55 } }
.stars .flare {
  position: absolute; border-radius: 50%; filter: blur(70px);
  background: radial-gradient(circle, rgba(110,168,255,.16), transparent 70%);
}
.stars .flare.a { width: 560px; height: 560px; top: -180px; right: -120px; }
.stars .flare.b { width: 420px; height: 420px; top: 45%; left: -160px; opacity: .6; }

main, nav, footer { position: relative; z-index: 1; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ------- nav ------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 11, 18, .72); border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; color: var(--text); }
.logo svg { display: block; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* ------- buttons ------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  padding: 11px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s, background .2s, border-color .2s, box-shadow .2s;
  cursor: pointer; font-family: var(--font);
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--accent); color: #071120;
  box-shadow: 0 0 0 1px var(--accent-line), 0 8px 30px -8px rgba(110,168,255,.45);
}
.btn-primary:hover { background: #8dbdff; box-shadow: 0 0 0 1px var(--accent-line), 0 10px 36px -8px rgba(110,168,255,.6); }
.btn-ghost { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.btn.small { padding: 8px 16px; font-size: 14px; }

/* ------- hero ------- */
.hero { min-height: 100dvh; display: flex; align-items: center; padding: 130px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  border: 1px solid var(--accent-line); border-radius: 999px;
  padding: 5px 13px; background: var(--accent-soft); margin-bottom: 26px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
h1 {
  font-size: clamp(42px, 5.6vw, 68px); line-height: 1.02;
  letter-spacing: -0.035em; font-weight: 600; margin-bottom: 22px;
}
h1 em { font-style: normal; color: var(--accent); }
.sub { font-size: 18px; color: var(--muted); max-width: 46ch; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-meta { font-family: var(--mono); font-size: 12px; color: var(--faint); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-meta span::before { content: "· "; color: var(--accent); }
.hero-meta span:first-child::before { content: ""; }

/* ------- app mock ------- */
.mock {
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-card); overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(110,168,255,.06), 0 0 120px -40px rgba(110,168,255,.25);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.mock:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(.5deg); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.mock-bar b { width: 11px; height: 11px; border-radius: 50%; background: #2a3648; }
.mock-bar b:nth-child(1) { background: #ff5f57; } .mock-bar b:nth-child(2) { background: #febc2e; } .mock-bar b:nth-child(3) { background: #28c840; }
.mock-bar span { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.mock-body { display: grid; grid-template-columns: 148px 1fr; min-height: 340px; }
.mock-side { border-right: 1px solid var(--line); padding: 14px 10px; background: rgba(255,255,255,.015); }
.mock-side .grp { font-size: 12px; letter-spacing: .08em; color: var(--faint); padding: 8px 8px 5px; font-family: var(--mono); }
.mock-side .mi {
  display: flex; align-items: center; gap: 8px; padding: 7px 9px; margin: 1px 0;
  font-size: 12px; color: var(--muted); border-radius: 7px;
}
.mock-side .mi.on { background: var(--accent-soft); color: var(--accent); }
.mock-side .mi i { width: 6px; height: 6px; border-radius: 2px; background: currentColor; opacity: .6; }
.mock-main { padding: 16px; }
.mock-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.mock-title h4 { font-size: 14px; font-weight: 600; }
.mock-title span { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.krow {
  display: grid; grid-template-columns: 1fr 52px 46px 60px; gap: 8px;
  padding: 9px 10px; font-size: 12px; border-radius: 9px; align-items: center;
}
.krow:nth-child(odd) { background: rgba(255,255,255,.02); }
.krow .k { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.krow .v { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; }
.krow .rank { font-family: var(--mono); font-size: 12px; text-align: right; }
.krow .rank.up { color: var(--good); } .krow .rank.dn { color: #f87171; }
.krow .bars { display: flex; gap: 2.5px; align-items: flex-end; height: 16px; justify-content: flex-end; }
.krow .bars i { width: 3.5px; background: var(--accent); opacity: .5; border-radius: 1px; }

/* ------- sections ------- */
section { padding: 96px 0; }
.sec-head { max-width: 560px; margin-bottom: 52px; }
.sec-head .tag { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .06em; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.03em; font-weight: 600; margin: 12px 0 14px; }
.sec-head p { color: var(--muted); font-size: 16px; }

/* ------- bento ------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 26px;
  transition: border-color .25s, transform .25s, background .25s;
}
.card:hover { border-color: var(--accent-line); transform: translateY(-3px); background: var(--surface-2); }
.card.c-4 { grid-column: span 4; } .card.c-3 { grid-column: span 3; } .card.c-2 { grid-column: span 2; }
.card .glyph {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.card h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); }
.card .foot { margin-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--faint); }

/* mini chart inside a card */
.spark { display: flex; gap: 3px; align-items: flex-end; height: 34px; margin-top: 18px; }
.spark i { flex: 1; background: linear-gradient(to top, var(--accent), transparent 160%); border-radius: 2px 2px 0 0; opacity: .8; min-width: 4px; }

/* ------- steps ------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.step {
  border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px;
  background: linear-gradient(180deg, var(--surface), transparent);
}
.step::before {
  counter-increment: s; content: "0" counter(s);
  font-family: var(--mono); font-size: 14px; color: var(--accent);
  display: inline-block; padding: 4px 10px; margin-bottom: 16px;
  border: 1px solid var(--accent-line); border-radius: 999px; background: var(--accent-soft);
}
.step h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* ------- pricing ------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan {
  border: 1px solid var(--line); border-radius: var(--r-card); padding: 30px 26px;
  background: var(--surface); position: relative; display: flex; flex-direction: column;
  transition: border-color .25s, transform .25s;
}
.plan:hover { transform: translateY(-3px); }
.plan.hot { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 55%); }
.plan .badge {
  position: absolute; top: -11px; left: 24px; font-family: var(--mono); font-size: 12px;
  background: var(--accent); color: #071120; font-weight: 600;
  padding: 3px 11px; border-radius: 999px;
}
.plan .name { font-size: 14px; font-weight: 600; color: var(--muted); }
.plan .price { font-size: 44px; font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: -.04em; margin: 10px 0 2px; }
.plan .per { font-size: 14px; color: var(--faint); margin-bottom: 22px; }
.plan ul { list-style: none; margin-bottom: 28px; flex: 1; }
.plan li { font-size: 14px; color: var(--muted); padding: 6px 0 6px 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 13px; width: 12px; height: 2px; background: var(--accent); border-radius: 1px; }
.plan li b { color: var(--text); font-weight: 600; }
.plan .btn { justify-content: center; }

/* ------- download ------- */
.dl {
  border: 1px solid var(--accent-line); border-radius: 24px;
  background: radial-gradient(120% 160% at 50% -20%, var(--accent-soft), var(--surface) 55%);
  text-align: center; padding: 72px 32px;
}
.dl h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.03em; margin-bottom: 14px; }
.dl p { color: var(--muted); margin-bottom: 32px; }
.dl .req { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 22px; }

/* ------- faq ------- */
.faq { max-width: 720px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 4px;
  font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 18px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 14px; padding: 0 4px 22px; max-width: 60ch; }

/* ------- footer ------- */
footer { border-top: 1px solid var(--line); padding: 36px 0 60px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-in p { font-size: 14px; color: var(--faint); }
.foot-links { display: flex; gap: 20px; }
.foot-links a { font-size: 14px; color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); }

/* ------- reveal ------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .mock { transform: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card.c-4, .card.c-3, .card.c-2 { grid-column: span 2; }
  .steps, .pricing { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, .stars i { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* vs strip */
.vs {
  display: flex; justify-content: center; gap: 20px; align-items: baseline; flex-wrap: wrap;
  font-size: 14px; color: var(--muted);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.vs-l s { color: var(--faint); }
.vs-r b { color: var(--accent); font-weight: 600; }

/* app-faithful mock details */
.khead {
  display: grid; grid-template-columns: 1fr 52px 52px 46px; gap: 8px;
  padding: 0 10px 7px; font-size: 12px; letter-spacing: .05em;
  color: var(--faint); font-family: var(--mono); border-bottom: 1px solid var(--line); margin-bottom: 4px;
}
.khead span { text-align: right; } .khead span:first-child { text-align: left; }
.krow { grid-template-columns: 1fr 52px 52px 46px; }
.krow .m { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.krow .m b { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.krow .m i { display: block; width: 44px; height: 3px; background: rgba(148,178,220,.18); border-radius: 2px; overflow: hidden; }
.krow .m i u { display: block; height: 100%; background: var(--accent); border-radius: 2px; opacity: .85; }
.mock-side .mi.proj { align-items: flex-start; gap: 9px; background: rgba(255,255,255,.04); }
.mock-side .appicon {
  width: 22px; height: 22px; border-radius: 5.5px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #4a6fa5); display: grid; place-items: center;
  font-size: 12px; font-weight: 600; color: #071120; font-style: normal;
}
.mock-side .mi.proj b { display: block; font-size: 12px; font-weight: 600; color: var(--text); }
.mock-side .mi.proj small { font-size: 12px; color: var(--faint); display: block; }
.mock-side .mi .plus { width: 14px; font-style: normal; text-align: center; opacity: .7; }

/* app showcase */
.shot-frame {
  border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 100px -40px rgba(0,0,0,.9), 0 0 140px -50px rgba(110,168,255,.3);
  margin-bottom: 40px;
}
.shot-frame img { display: block; width: 100%; height: auto; }
.bene-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.bene {
  border-left: 2px solid var(--accent-line); padding: 18px 22px;
  background: linear-gradient(90deg, var(--accent-soft), transparent 60%);
  border-radius: 0 12px 12px 0;
}
.bene h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.bene p { font-size: 14px; color: var(--muted); }
.bene b { color: var(--accent); font-weight: 600; }
@media (max-width: 900px) { .bene-grid { grid-template-columns: 1fr; } }
