:root {
  --bg: #070b14;
  --bg-2: #0a1020;
  --panel: rgba(13, 20, 36, .72);
  --panel-solid: #0d1424;
  --line: rgba(148, 163, 184, .16);
  --line-strong: rgba(148, 163, 184, .28);
  --text: #f4f7ff;
  --muted: #9aa8c0;
  --soft: #6f7e98;
  --blue: #6f9dff;
  --blue-2: #9cc0ff;
  --cyan: #79e6ff;
  --green: #69e6a5;
  --amber: #ffca7a;
  --radius: 22px;
  --max: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 600px at 78% -10%, rgba(73, 111, 255, .16), transparent 60%),
    radial-gradient(800px 500px at 5% 30%, rgba(44, 205, 255, .07), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
code, pre { font-family: var(--mono); }
::selection { background: rgba(111, 157, 255, .35); color: #fff; }
.wrap { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; }

.ambient { position: fixed; pointer-events: none; z-index: 0; filter: blur(80px); opacity: .5; }
.ambient-a { width: 420px; height: 420px; top: -160px; right: -120px; background: #2c4fff; }
.ambient-b { width: 320px; height: 320px; top: 40vh; left: -160px; background: #0d7d9c; opacity: .25; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 20, .7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(7, 11, 20, .88); }
.site-header .header-inner {
  display: flex; align-items: center; gap: 28px; height: 70px;
  width: calc(100% - 64px); max-width: none; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 16px; flex: none; }
.brand img { border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
.nav { display: flex; align-items: center; gap: 26px; margin-left: 12px; }
.nav a { color: var(--muted); font-size: 13px; transition: color .15s ease; }
.nav a:hover { color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ghost-btn, .primary-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: 11px; padding: 9px 15px; font-size: 12.5px; font-weight: 650;
  border: 1px solid var(--line-strong); transition: .18s ease; white-space: nowrap;
}
.ghost-btn { color: var(--text); background: rgba(255, 255, 255, .035); }
.ghost-btn:hover { background: rgba(255, 255, 255, .08); }
.primary-btn { color: #06101f; background: linear-gradient(135deg, var(--blue-2), var(--blue)); border-color: transparent; box-shadow: 0 12px 30px -14px rgba(111, 157, 255, .8); }
.primary-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.primary-btn.large { padding: 13px 20px; font-size: 14px; border-radius: 13px; }
.nav-toggle { display: none; background: none; border: 0; width: 36px; height: 36px; padding: 9px; margin-left: auto; }
.nav-toggle span { display: block; height: 1.5px; background: var(--text); margin: 5px 0; transition: .2s; }

.hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; gap: 44px; align-items: center; min-height: 760px; padding-top: 64px; padding-bottom: 72px; }
.hero-copy { max-width: 620px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--blue-2); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(105, 230, 165, .09); animation: pulse 2.4s ease infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(105, 230, 165, 0); } }
.hero h1 { margin: 22px 0 0; font-size: clamp(44px, 6.2vw, 78px); line-height: 1.03; letter-spacing: -.055em; font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #fff 5%, var(--blue-2) 55%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin: 24px 0 0; color: var(--muted); font-size: clamp(15px, 1.7vw, 17px); line-height: 1.85; max-width: 540px; }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 32px; flex-wrap: wrap; }
.text-btn { color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; transition: color .15s; }
.text-btn span { color: var(--blue-2); }
.text-btn:hover { color: var(--text); }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 30px; color: var(--soft); font-size: 11px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }

.hero-visual { position: relative; min-height: 620px; display: flex; align-items: center; justify-content: center; }
.halo { position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(91, 139, 255, .24), transparent 66%); filter: blur(12px); }
.phone { position: relative; z-index: 2; width: min(292px, 72vw); border-radius: 42px; padding: 9px; background: linear-gradient(160deg, #2a3448, #080c15 42%, #202a3c); box-shadow: 0 42px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .06); transform: rotate(2.2deg); }
.phone img { width: 100%; height: auto; border-radius: 34px; aspect-ratio: 780 / 1688; object-fit: cover; }
.phone-speaker { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 74px; height: 5px; border-radius: 99px; background: #02050a; z-index: 3; }
.phone-glow { position: absolute; inset: -30px; z-index: -1; background: radial-gradient(closest-side, rgba(111, 157, 255, .2), transparent); }
.float-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 13px; border: 1px solid rgba(148, 163, 184, .22); background: rgba(11, 18, 32, .82); backdrop-filter: blur(14px); box-shadow: 0 18px 40px -24px #000; animation: float 7s ease-in-out infinite; }
.float-card b { display: block; font-size: 11px; font-weight: 700; white-space: nowrap; }
.float-card small { display: block; color: var(--soft); font-size: 9.5px; margin-top: 1px; white-space: nowrap; }
.fc-live { top: 16%; left: 0; }
.fc-approval { right: -2%; top: 44%; animation-delay: -2s; }
.fc-trace { left: 4%; bottom: 12%; animation-delay: -4s; }
.fc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); flex: none; }
.fc-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: rgba(111, 157, 255, .12); color: var(--blue-2); font-size: 11px; font-weight: 800; flex: none; }
@keyframes float { 50% { transform: translateY(-8px); } }

.marquee { position: relative; z-index: 1; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; background: rgba(8, 13, 24, .5); }
.marquee-track { display: flex; align-items: center; gap: 18px; width: max-content; animation: marquee 34s linear infinite; color: var(--soft); font-family: var(--mono); font-size: 10px; letter-spacing: .18em; }
.marquee-track i { color: var(--blue); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { position: relative; z-index: 1; padding-top: 112px; padding-bottom: 20px; }
.section-head { max-width: 680px; }
.section-head h2 { margin: 18px 0 0; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -.045em; font-weight: 800; }
.section-head p { margin: 20px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.85; max-width: 600px; }
.section-head code { color: var(--blue-2); font-size: .92em; }
#why .section-head { max-width: 760px; }

.arch { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 14px; margin-top: 44px; }
.arch-node { position: relative; padding: 22px 20px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)); }
.arch-node.accent { border-color: rgba(111, 157, 255, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 18px 50px -36px var(--blue); }
.arch-kicker { display: block; font-family: var(--mono); color: var(--soft); font-size: 9px; letter-spacing: .13em; margin-bottom: 10px; }
.arch-node b { display: block; font-size: 15px; letter-spacing: -.01em; }
.arch-node small { display: block; margin-top: 6px; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.arch-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: var(--soft); font-family: var(--mono); font-size: 8px; white-space: nowrap; }
.arch-link i { font-style: normal; color: var(--blue); font-size: 16px; }

.code-card { margin-top: 22px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #080d18; }
.code-head, .install-head { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--soft); font-family: var(--mono); font-size: 9.5px; }
.code-head span:nth-child(2), .install-head span:first-child { margin-right: auto; }
.code-dots { display: flex; gap: 5px; }
.code-dots i { width: 7px; height: 7px; border-radius: 50%; background: #243049; }
.copy-mini { border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--muted); border-radius: 7px; padding: 4px 8px; font-size: 9px; cursor: pointer; }
.copy-mini:hover { color: var(--text); border-color: var(--line-strong); }
.code-card pre, .install-box pre { margin: 0; padding: 18px; overflow-x: auto; color: #b9c8e3; font-size: 11.5px; line-height: 1.8; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.feature { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, .032), rgba(255, 255, 255, .008)); transition: transform .2s ease, border-color .2s ease; }
.feature:hover { transform: translateY(-3px); border-color: rgba(111, 157, 255, .3); }
.feature-wide { grid-column: span 2; display: grid; grid-template-columns: 1fr auto; column-gap: 24px; }
.feature-wide .feature-icon, .feature-wide h3, .feature-wide p, .feature-wide .mini-pill-row { grid-column: 1; }
.feature-wide .mini-pill-row { grid-column: 1 / -1; }
.feature-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(111, 157, 255, .1); border: 1px solid rgba(111, 157, 255, .18); color: var(--blue-2); font-size: 16px; margin-bottom: 18px; }
.feature h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.feature p { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.feature strong { color: var(--text); font-weight: 650; }
.mini-pill-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 17px; }
.pill { font-family: var(--mono); font-size: 9px; color: var(--soft); border: 1px solid var(--line); border-radius: 99px; padding: 4px 8px; background: rgba(255, 255, 255, .025); }

.gallery { margin-top: 44px; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; background: linear-gradient(150deg, rgba(17, 26, 45, .92), rgba(9, 14, 25, .92)); }
.gallery-tabs { display: flex; gap: 8px; padding: 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.gallery-tabs button { border: 1px solid var(--line); border-radius: 99px; padding: 7px 13px; color: var(--muted); background: transparent; font-size: 11.5px; cursor: pointer; white-space: nowrap; }
.gallery-tabs button.active { color: #07101f; background: var(--blue-2); border-color: transparent; font-weight: 700; }
.gallery-stage { display: grid; grid-template-columns: 320px 1fr; gap: 36px; align-items: center; padding: 34px 38px 38px; }
.gallery-phone { border-radius: 28px; padding: 7px; background: linear-gradient(160deg, #2a3448, #080c15); box-shadow: 0 30px 70px -38px #000; }
.gallery-phone img { width: 100%; height: auto; border-radius: 22px; aspect-ratio: 780 / 1688; object-fit: cover; }
.gallery-index { font-family: var(--mono); color: var(--blue-2); font-size: 10px; letter-spacing: .12em; }
.gallery-copy h3 { margin: 14px 0 0; font-size: clamp(24px, 3vw, 36px); line-height: 1.1; letter-spacing: -.04em; }
.gallery-copy p { margin: 13px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.8; max-width: 420px; }
.bullet-list { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.bullet-list li { color: var(--soft); font-size: 12px; padding-left: 15px; position: relative; }
.bullet-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); }

.demo-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: center; border: 1px solid var(--line); border-radius: 28px; padding: 38px; background: radial-gradient(700px 300px at 10% 20%, rgba(111, 157, 255, .08), transparent 60%), rgba(12, 18, 31, .7); }
.demo-copy h2 { margin: 16px 0 0; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.045em; line-height: 1.06; }
.demo-copy p { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 14px 0 20px; }
.video-wrap { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong); background: #000; box-shadow: 0 30px 70px -40px #000; }
.video-wrap video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }

.start-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 50px; align-items: start; }
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step-no { font-family: var(--mono); color: var(--blue-2); font-size: 10px; padding-top: 4px; flex: none; }
.step b { font-size: 14px; }
.step p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.install-box { margin-top: 22px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #080d18; }

.faq-section { padding-bottom: 60px; }
.faq { margin-top: 34px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 0; font-size: 14px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue-2); font-size: 18px; font-weight: 300; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 22px; color: var(--muted); font-size: 12.5px; line-height: 1.8; max-width: 760px; }
.faq details code { color: var(--blue-2); }

.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 30px 0 40px; }
.footer-inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.footer-brand img { border-radius: 7px; }
.footer-brand span { color: var(--soft); font-size: 11px; }
.footer-links { display: flex; gap: 20px; margin-left: auto; color: var(--muted); font-size: 11.5px; }
.footer-links a:hover { color: var(--text); }
.site-footer small { color: var(--soft); font-size: 10px; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-track, .float-card, .pulse { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 46px; gap: 20px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { min-height: 560px; margin-top: 8px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-wide { grid-column: span 2; }
  .arch { grid-template-columns: 1fr; }
  .arch-link { flex-direction: row; padding: 2px 0; }
  .arch-link i { transform: rotate(90deg); }
  .gallery-stage { grid-template-columns: 260px 1fr; gap: 26px; padding: 26px; }
  .demo-panel { grid-template-columns: 1fr; gap: 24px; padding: 26px; }
  .start-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 720px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .site-header .header-inner { height: 60px; width: calc(100% - 32px); }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 12px 16px 16px; background: rgba(7, 11, 20, .98); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 11px 4px; font-size: 13px; border-bottom: 1px solid rgba(148, 163, 184, .08); }
  .nav-toggle { display: block; order: 3; }
  .header-actions { display: none; }
  .hero { padding-top: 34px; }
  .hero h1 { font-size: clamp(38px, 11.4vw, 56px); }
  .lede { font-size: 14px; }
  .hero-visual { min-height: 510px; }
  .phone { width: min(260px, 70vw); }
  .float-card { padding: 8px 10px; }
  .fc-live { left: 0; top: 10%; }
  .fc-approval { right: 0; }
  .fc-trace { bottom: 7%; }
  .section { padding-top: 78px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: span 1; display: block; }
  .gallery-stage { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .gallery-phone { width: min(240px, 68vw); }
  .gallery-copy { width: 100%; }
  .demo-panel { padding: 20px; border-radius: 20px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 14px; }
  .footer-links { margin-left: 0; }
}

.gallery-phone img { transition: opacity .18s ease, transform .18s ease; }
.gallery-phone img.switching { opacity: .18; transform: scale(.985); }
