@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("assets/fonts/montserrat-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url("assets/fonts/host-grotesk-latin.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Fragment Mono"; src: url("assets/fonts/fragment-mono-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --page: #0a0a0a;
  --text: #fff;
  --desc: hsla(0, 0%, 100%, .56);
  --muted: hsla(0, 0%, 100%, .4);
  --border: hsla(0, 0%, 100%, .1);
  --border-subtle: hsla(0, 0%, 100%, .08);
  --surface: hsla(0, 0%, 100%, .03);
  --surface-2: hsla(0, 0%, 100%, .06);
  --brand: #6799fe;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Montserrat", var(--font-body);
  --font-mono: "Fragment Mono", ui-monospace, Consolas, "PingFang SC", monospace;
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--page); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--brand); color: #fff; }
.wrap { width: min(100% - 48px, var(--container)); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(100% - 144px, var(--container)); } }

/* header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  width: min(100% - 48px, var(--container)); margin-inline: auto; padding-top: 8px;
}
.header-bar {
  display: flex; align-items: center; gap: 24px; padding: 4px 0;
  border: 1px solid transparent; border-radius: 100px;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease, padding .3s ease;
}
.header-bar.is-scrolled {
  padding: 6px 16px; background: hsla(0, 0%, 100%, .12);
  border-color: hsla(0, 0%, 100%, .14);
  backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
}
.brand { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.brand img { width: 28px; height: 28px; border-radius: 7px; background: #fff; flex: none; }
.brand-word { font-family: "Host Grotesk", var(--font-body); font-size: 21px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.brand-chip {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px;
  border-radius: 5px; background: #fff; color: #0a0a0a;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; line-height: 1;
}
.plugin-tag { margin-left: 2px; font-size: 13px; color: rgba(255,255,255,.55); white-space: nowrap; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 14px; color: rgba(255,255,255,.7); }
.nav-links a:hover { color: #fff; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 100px; border: 1px solid transparent;
  font-family: var(--font-body); font-size: 14px; font-weight: 500; line-height: 1; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn-primary { background: #fff; color: #0a0a0a; }
.btn-primary:hover { background: #e9e9e9; color: #0a0a0a; }
.btn-secondary {
  background: hsla(0, 0%, 100%, .04); color: #fff;
  border-color: hsla(0, 0%, 100%, .16); backdrop-filter: blur(20px);
}
.btn-secondary:hover { background: hsla(0, 0%, 100%, .1); color: #fff; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 154px 0 90px; background: #0a101c; }
.hero-bg {
  position: absolute; inset: -12% -10% 0; height: 118%; z-index: 0;
  pointer-events: none; filter: blur(58px); opacity: .95;
  background:
    radial-gradient(920px 620px at 72% 22%, rgba(120, 162, 224, .55), transparent 64%),
    radial-gradient(900px 680px at 42% 58%, rgba(36, 70, 124, .62), transparent 70%),
    linear-gradient(114deg, #07101d 0%, #0b1728 34%, #1d3a5c 62%, #0c1727 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 38%, transparent 18%, rgba(6, 10, 18, .55) 82%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 220px; z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,.55) 55%, #0a0a0a 100%);
}
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-family: var(--font-display); font-size: clamp(38px, 5.6vw, 64px);
  font-weight: 400; line-height: 1.24; letter-spacing: -.035em; color: #fff;
}
.grad { background: linear-gradient(96deg, #9db8ff, #58bcc8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 720px; margin-top: 22px; font-size: 16px; line-height: 1.75; color: var(--desc); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.hero-meta { margin-top: 16px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hero-preview { width: min(100%, 1020px); margin-top: 54px; }
.window {
  border-radius: 16px; border: 1px solid hsla(0,0%,100%,.12); overflow: hidden;
  background: linear-gradient(180deg, #171a20, #101114);
  box-shadow: 0 0 0 1px hsla(0,0%,100%,.04), 0 30px 80px rgba(0,0,0,.45);
}
.window-bar {
  height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 16px;
  border-bottom: 1px solid var(--border-subtle); background: hsla(0,0%,100%,.03);
  font-size: 12.5px; color: rgba(255,255,255,.7);
}
.dots { display: flex; gap: 8px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff6058; display: block; }
.dots i:nth-child(2) { background: #ffbd2e; }
.dots i:nth-child(3) { background: #28c840; }
.window-meta { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px; }
.shot { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.shot-frame {
  border-radius: 12px; border: 1px solid hsla(0,0%,100%,.12); overflow: hidden;
  background: #fff; box-shadow: 0 16px 36px rgba(0,0,0,.28);
}
.shot-frame img { width: 100%; height: auto; display: block; }
.shot figcaption { font-size: 12px; color: var(--desc); }

/* sections */
.section { padding: 100px 0; }
.section-head { max-width: 780px; margin-bottom: 42px; display: flex; flex-direction: column; gap: 12px; }
.section h2 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 40px); font-weight: 500; letter-spacing: -.03em; line-height: 1.35; }
.section-head > p { font-size: 16px; color: var(--desc); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card {
  padding: 30px; border: 1px solid var(--border); border-radius: 16px;
  background: var(--surface); display: flex; flex-direction: column; gap: 12px;
}
.card-icon { color: var(--brand); display: inline-flex; }
.card-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 20px; font-weight: 500; color: #fff; }
.card p { font-size: 14px; line-height: 1.7; color: var(--desc); }
.check-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.check-list li { position: relative; padding-left: 20px; font-size: 13.5px; color: var(--desc); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-size: 12px; }

/* steps */
.steps { display: flex; flex-direction: column; border-top: 1px solid var(--border-subtle); }
.steps li { display: flex; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--border-subtle); }
.steps li > span { font-family: var(--font-mono); font-size: 20px; color: var(--brand); flex: none; width: 38px; }
.steps h3 { font-size: 19px; font-weight: 500; margin-bottom: 6px; color: #fff; }
.steps p { font-size: 14.5px; line-height: 1.75; color: var(--desc); }
.note { margin-top: 22px; font-size: 12.5px; color: var(--muted); }

/* install */
.install-card {
  border: 1px solid rgba(103,153,254,.28); border-radius: 20px;
  background:
    radial-gradient(700px 420px at 15% 0%, rgba(77,107,254,.16), transparent 65%),
    var(--surface);
  padding: 42px;
}
.install-card h2 { margin: 12px 0; }
.install-card > p { font-size: 14.5px; color: var(--desc); max-width: 720px; }
.command {
  display: flex; align-items: center; gap: 12px; margin: 24px 0 8px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 12px; background: #0d0f13;
}
.command code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-family: var(--font-mono); font-size: 13px; color: #dce7ff; }
.command button {
  flex: none; height: 32px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface-2); color: #fff;
  font: inherit; font-size: 12px; cursor: pointer;
}
.command button:hover { background: hsla(0,0%,100%,.12); }
#copy-status { min-height: 1.6em; font-size: 12px; color: var(--brand); }
.version { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.version code { font-family: var(--font-mono); color: rgba(255,255,255,.7); }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 500; color: #bcd0ff; }
.text-link:hover { color: #fff; }

/* support */
.support-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 36px; }
.faq { display: grid; gap: 8px; max-width: 880px; }
details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 0 20px; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 0; cursor: pointer; list-style: none; font-size: 15px; color: #fff; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 300; font-size: 20px; color: var(--desc); }
details[open] summary::after { content: "−"; }
details p { padding: 0 0 18px; font-size: 14px; line-height: 1.7; color: var(--desc); }

/* footer */
.footer { border-top: 1px solid var(--border-subtle); padding: 54px 0 34px; background: #080b10; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand p { margin-top: 14px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px 26px; align-content: flex-start; font-size: 14px; color: rgba(255,255,255,.72); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--border-subtle);
  font-size: 12px; line-height: 1.7; color: var(--muted);
}
.filing { margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.filing a:hover { color: #fff; }

@media (max-width: 900px) {
  .site-header { width: calc(100% - 20px); padding-top: 8px; }
  .nav-links { display: none; }
  .header-actions .btn-secondary { display: none; }
  .header-actions { margin-left: auto; }
  .brand-word { font-size: 18px; }
  .brand img { width: 26px; height: 26px; }
  .plugin-tag { font-size: 12px; }
  .hero { padding-top: 124px; }
  .hero h1 { font-size: clamp(34px, 8vw, 46px); }
  .hero-preview { margin-top: 40px; }
  .shot-grid { grid-template-columns: 1fr; padding: 16px; gap: 14px; }
  .section { padding: 72px 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .install-card { padding: 28px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .plugin-tag { display: none; }
  .header-bar.is-scrolled { padding: 5px 10px; }
  .hero h1 { font-size: clamp(30px, 9.2vw, 38px); }
  .shot-grid { grid-template-columns: 1fr; }
  .steps li { gap: 16px; }
  .steps li > span { width: 28px; font-size: 16px; }
  .install-card { padding: 24px 18px; }
  .command { align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
