@font-face {
  font-family: "Warden Sans";
  src: url("assets/noto-sans-sc.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #070b10;
  --bg-2: #0b1119;
  --panel: rgba(13, 20, 29, 0.82);
  --card: #111a25;
  --card-2: #0e1620;
  --border: #223146;
  --border-soft: rgba(148, 163, 184, 0.16);
  --text: #e9eef7;
  --muted: #94a5bb;
  --faint: #64748b;
  --green: #34d399;
  --cyan: #22d3ee;
  --blue: #5b8cff;
  --yellow: #e8c45a;
  --magenta: #c084fc;
  --red: #fb7185;
  --radius: 16px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: "Warden Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 78% -10%, rgba(6, 182, 212, 0.13), transparent 62%),
    radial-gradient(900px 700px at 12% 8%, rgba(34, 197, 94, 0.10), transparent 58%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  z-index: -1;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.7rem, 6.2vw, 5.3rem); margin-bottom: 1.2rem; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 0.85rem; }
h3 { font-size: 1.12rem; margin-bottom: 0.45rem; }
code, pre, .mono { font-family: var(--mono); }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--green); color: #04100b; padding: 8px 12px; border-radius: 8px;
}
.skip-link:focus { left: 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 16, 0.78);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(18px);
}
.nav { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.18em; font-size: 0.95rem; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 24px; margin-left: 18px; color: var(--muted); font-size: 0.92rem; }
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  background: transparent; color: var(--muted); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 0.82rem; cursor: pointer;
}
.lang-toggle:hover { color: var(--text); border-color: var(--faint); }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; padding: 11px 20px; font-weight: 650; font-size: 0.92rem;
  border: 1px solid transparent; transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #04100b;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 8px 26px rgba(34, 211, 238, 0.18);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--text); border-color: var(--border); background: rgba(17, 26, 37, 0.56); }
.btn-ghost:hover { border-color: var(--faint); background: var(--card); }
.btn-small { padding: 8px 13px; font-size: 0.84rem; }
.btn-wide { width: 100%; margin: 12px 0 10px; }
.text-link { color: var(--muted); font-size: 0.9rem; border-bottom: 1px solid transparent; }
.text-link:hover { color: var(--cyan); border-color: rgba(34, 211, 238, 0.45); }
.center-actions { text-align: center; margin-top: 26px; }

/* Hero */
.hero { padding: clamp(52px, 8vw, 104px) 0 clamp(44px, 6vw, 76px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--green); font-size: 0.74rem; font-weight: 750; letter-spacing: 0.17em;
  text-transform: uppercase; margin-bottom: 18px;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.gradient-text {
  background: linear-gradient(100deg, #d8fff1 0%, var(--green) 40%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 34rem; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 9px 18px; padding: 0; margin: 0; list-style: none; color: var(--faint); font-size: 0.82rem; }
.hero-points li::before { content: "✓"; color: var(--green); margin-right: 7px; }
.hero-visual { position: relative; }
.visual-glow {
  position: absolute; inset: 10% 4% -12% 4%; z-index: -1; filter: blur(60px);
  background: radial-gradient(circle at 55% 30%, rgba(34, 211, 238, 0.28), transparent 68%);
}
.window {
  border: 1px solid var(--border); background: #0b1119; border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow); transform: perspective(1200px) rotateY(-2.5deg) rotateX(1deg);
}
.hero-visual .window:hover { transform: none; }
.window-bar {
  display: flex; align-items: center; gap: 6px; height: 31px; padding: 0 12px;
  background: #111923; border-bottom: 1px solid var(--border-soft);
}
.window-bar span { width: 8px; height: 8px; border-radius: 50%; background: #334155; }
.window-bar span:nth-child(1) { background: #fb7185; }
.window-bar span:nth-child(2) { background: #e8c45a; }
.window-bar span:nth-child(3) { background: #34d399; }
.window-bar em { font-style: normal; color: var(--faint); font-size: 0.68rem; margin-left: 8px; }
.window img { width: 100%; height: auto; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: rgba(11, 17, 25, 0.52); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-head { max-width: 660px; margin-bottom: 38px; }
.section-head p:last-child { color: var(--muted); margin-bottom: 0; }
.kicker { color: var(--cyan); margin-bottom: 12px; }
.muted { color: var(--muted); }
.small { font-size: 0.8rem; }

/* Cards and feature grid */
.card {
  background: linear-gradient(160deg, rgba(18, 28, 40, 0.95), rgba(12, 19, 28, 0.95));
  border: 1px solid var(--border); border-radius: var(--radius);
}
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 24px; transition: border-color 0.2s ease, transform 0.2s ease; }
.feature:hover { border-color: #304865; transform: translateY(-2px); }
.feature p { color: var(--muted); font-size: 0.91rem; margin-bottom: 0; }
.icon {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 10px; margin-bottom: 15px; font-size: 1.15rem; font-weight: 700;
  background: rgba(148, 163, 184, 0.08); border: 1px solid var(--border-soft);
}
.icon-green { color: var(--green); }
.icon-cyan { color: var(--cyan); }
.icon-blue { color: var(--blue); }
.icon-yellow { color: var(--yellow); }
.icon-magenta { color: var(--magenta); }
.icon-red { color: var(--red); }

/* Screenshots */
.shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.shot { margin: 0; }
.shot .window { transform: none; }
.shot figcaption { color: var(--faint); font-size: 0.83rem; margin-top: 12px; }

/* Download */
.download-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.download-card { padding: 20px; }
.platform-tag {
  display: inline-block; color: var(--cyan); font-size: 0.68rem; font-weight: 750;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 7px;
}
.download-card h3 { margin-bottom: 0; }
.download-card p.mono { color: var(--faint); font-size: 0.76rem; margin: 3px 0 8px; }
.download-note { color: var(--faint); font-size: 0.8rem; margin-top: 24px; text-align: center; }
.download-note code { color: var(--muted); background: var(--card-2); border: 1px solid var(--border-soft); padding: 2px 6px; border-radius: 5px; font-size: 0.75rem; }

/* Install */
.install-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 42px; align-items: center; }
.install-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.code-card { padding: 20px; overflow: auto; }
.code-card pre { margin: 0; font-size: 0.82rem; line-height: 1.75; color: #cbd5e1; }
.code-card .c { color: var(--faint); }

/* Docs */
.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.doc-card { padding: 22px; position: relative; transition: border-color 0.2s ease, transform 0.2s ease; }
.doc-card:hover { border-color: #304865; transform: translateY(-2px); }
.doc-card p { color: var(--muted); font-size: 0.86rem; margin: 0; }
.doc-arrow { position: absolute; top: 18px; right: 18px; color: var(--faint); }

/* Footer */
.site-footer { border-top: 1px solid var(--border-soft); padding: 34px 0 42px; background: rgba(7, 11, 16, 0.7); }
.footer-grid { display: grid; grid-template-columns: 1.2fr auto 1fr; gap: 28px; align-items: center; }
.footer-links { display: flex; gap: 18px; color: var(--muted); font-size: 0.86rem; }
.footer-links a:hover { color: var(--text); }
.footer-grid .small { text-align: right; margin: 0; }

@media (max-width: 980px) {
  .hero-grid, .install-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 760px; }
  .window { transform: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid, .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .shot-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid .small { text-align: left; }
}
@media (max-width: 720px) {
  .container { width: min(100% - 32px, 1180px); }
  .nav-links { display: none; }
  .nav { min-height: 60px; }
  .nav-actions { gap: 6px; }
  .hero { padding-top: 42px; }
  .hero-points { display: grid; gap: 6px; }
  .feature-grid, .download-grid, .doc-grid { grid-template-columns: 1fr; }
  .download-note { text-align: left; }
  .footer-links { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
