/* Genspark Desktop marketing site — shared styles (en + zh pages). */

:root {
  --bg: #0b0c0f;
  --bg-panel: #121419;
  --bg-elev: #191c23;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --accent: #4f7cff;
  --accent-soft: rgba(79, 124, 255, 0.14);
  --green: #34d399;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

/* ── Header ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 12, 15, 0.75);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.nav { display: flex; gap: 22px; font-size: 13.5px; color: var(--text-muted); }
.nav a:hover { color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang-switch { font-size: 12.5px; color: var(--text-dim); }
.lang-switch a { color: var(--text-muted); }
.lang-switch a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  color: var(--text);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: var(--bg-elev); }
.btn.primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}
.btn.primary:hover { background: #3f6af0; }
.btn.large { padding: 13px 26px; font-size: 15px; border-radius: 12px; }
.btn:active { transform: translateY(1px); }

/* ── Hero ───────────────────────────────────────────────── */

.hero { padding: 88px 0 40px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 480px;
  background: radial-gradient(600px 300px at 50% 0%, rgba(79, 124, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 auto 18px;
  max-width: 820px;
  font-weight: 800;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub {
  color: var(--text-muted);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero-ctas { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 14px; font-size: 12.5px; color: var(--text-dim); }
.hero-meta .ver { font-family: var(--mono); color: var(--text-muted); }

/* ── App window mockup ──────────────────────────────────── */

.mockup {
  margin: 56px auto 0;
  max-width: 960px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--bg-panel);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02);
  overflow: hidden;
  text-align: left;
  font-size: 11.5px;
}
.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.mock-dot { width: 11px; height: 11px; border-radius: 50%; }
.mock-dot.r { background: #ff5f57; } .mock-dot.y { background: #febc2e; } .mock-dot.g { background: #28c840; }
.mock-title { margin: 0 auto; color: var(--text-dim); font-size: 11px; transform: translateX(-24px); }
.mock-body { display: grid; grid-template-columns: 170px 1fr 300px; min-height: 380px; }
.mock-side { border-right: 1px solid var(--border); padding: 12px 10px; color: var(--text-dim); }
.mock-side .ws { padding: 7px 9px; border-radius: 8px; margin-bottom: 3px; }
.mock-side .ws.active { background: var(--accent-soft); color: var(--text); }
.mock-side .sess { padding: 5px 9px; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-chat { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 9px 12px; border-radius: 10px; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; }
.msg.ai { align-self: flex-start; background: var(--bg-elev); color: var(--text-muted); }
.tool-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 10.5px;
}
.tool-chip .ok { color: var(--green); }
.mock-files { border-left: 1px solid var(--border); padding: 12px; color: var(--text-dim); }
.mock-files .fhead { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.slide-thumb {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: #111;
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
  padding: 10px 12px;
  position: relative;
  overflow: hidden;
}
.slide-thumb .st-title { font-weight: 800; font-size: 12px; }
.slide-thumb .st-line { height: 5px; border-radius: 3px; background: #e5e7eb; margin-top: 6px; }
.slide-thumb .st-line.w60 { width: 60%; }
.slide-thumb .st-line.w80 { width: 80%; }
.slide-thumb .st-badge {
  position: absolute; right: 6px; bottom: 6px;
  background: rgba(0,0,0,0.55); color: #fff;
  border-radius: 8px; padding: 1px 7px; font-size: 9px;
}
.slide-thumb.alt { background: linear-gradient(135deg, #1e293b, #0f172a); color: #e2e8f0; }
.slide-thumb.alt .st-line { background: rgba(255,255,255,0.18); }

/* ── Sections ───────────────────────────────────────────── */

section { padding: 72px 0; }
.section-kicker {
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
h2.section-title {
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 800;
}
p.section-sub { color: var(--text-muted); max-width: 620px; margin: 0 0 40px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card .ico {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 15.5px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-muted); font-size: 13.5px; }

/* ── Download ───────────────────────────────────────────── */

.download-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 720px; }
.dl-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dl-card .os { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.dl-card .arch { color: var(--text-dim); font-size: 12.5px; }
.dl-card .ver { font-family: var(--mono); color: var(--text-muted); font-size: 12px; min-height: 18px; }
.dl-card .btn { margin-top: 14px; justify-content: center; }
.dl-note { margin-top: 18px; color: var(--text-dim); font-size: 12.5px; }

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0 40px;
  color: var(--text-dim);
  font-size: 12.5px;
}
.site-footer .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .spacer { margin-left: auto; }

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 880px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .mock-body { grid-template-columns: 150px 1fr; }
  .mock-files { display: none; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .grid { grid-template-columns: 1fr; }
  .download-cards { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
}
