:root {
  --brand: #d4714e;
  --brand-hover: #c5623f;
  --bg: #ffffff;
  --bg-secondary: #f7f7f5;
  --bg-tertiary: #f0efed;
  --text: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-muted: #9b9b9b;
  --border: #e8e7e5;
  --radius: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* -- Nav -- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
nav.scrolled { border-bottom-color: var(--border); }
nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 17px;
}
.nav-logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; color: var(--text-secondary); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-btn { color: #fff; }
.nav-links a.nav-btn:hover { color: #fff; }
.nav-btn {
  padding: 8px 20px;
  background: var(--text);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: opacity 0.2s;
}
.nav-btn:hover { opacity: 0.85; }

/* -- Language Switcher -- */
.lang-switch {
  display: inline-flex; align-items: center;
  padding: 4px; gap: 2px;
  background: var(--bg-secondary);
  border-radius: 6px;
  border: 1px solid var(--border);
}
.lang-switch button {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s;
}
.lang-switch button.active {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* -- Hero -- */
.hero {
  padding: 160px 0 80px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 10px;
  background: var(--bg-secondary);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #34a853;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: italic;
  color: var(--brand);
}
.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  font-size: 15px; font-weight: 600;
  border: none; cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  font-size: 15px; font-weight: 500;
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s;
}
.btn-ghost:hover { background: var(--bg-secondary); }
.btn-ghost svg, .btn-primary svg { width: 16px; height: 16px; }
.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* -- Screenshot window -- */
.hero-window {
  margin: 64px auto 0;
  max-width: 960px;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-secondary);
  box-shadow: 0 8px 40px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
}
.window-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.window-dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.window-dot-r { background: #ff5f57; }
.window-dot-y { background: #febc2e; }
.window-dot-g { background: #28c840; }
.window-body {
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
}
.window-body img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 13px;
}
.img-placeholder svg { width: 36px; height: 36px; opacity: 0.25; }

/* -- Section common -- */
section { padding: 100px 0; }
.section-divider { border: none; border-top: 1px solid var(--border); margin: 0; }
.section-label {
  font-size: 13px; font-weight: 600; color: var(--brand);
  letter-spacing: 0.5px; margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400; line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 16px; color: var(--text-secondary);
  max-width: 520px; line-height: 1.7;
}
.text-center { text-align: center; }
.text-center .section-desc { margin: 0 auto; }

/* -- Privacy -- */
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 56px;
}
.privacy-list { display: flex; flex-direction: column; gap: 24px; }
.privacy-item {
  display: flex; gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.privacy-item:hover { background: var(--bg-secondary); }
.privacy-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
}
.privacy-icon svg { width: 18px; height: 18px; color: var(--brand); }
.privacy-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.privacy-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.privacy-visual {
  display: flex; align-items: center; justify-content: center;
}
.shield-circle {
  width: 240px; height: 240px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.shield-circle::before {
  content: '';
  position: absolute; inset: 16px;
  border-radius: 50%;
  border: 1px dashed var(--border);
}
.shield-circle svg { width: 48px; height: 48px; color: var(--brand); }

/* -- Features -- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 56px;
}
.feature-card {
  padding: 32px 28px;
  background: var(--bg);
  transition: background 0.2s;
}
.feature-card:hover { background: var(--bg-secondary); }
.feature-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-card:hover .feature-icon { background: var(--bg-tertiary); }
.feature-icon svg { width: 18px; height: 18px; color: var(--brand); }
.feature-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* -- Preview -- */
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 56px;
}
.preview-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s;
}
.preview-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.preview-card-img {
  aspect-ratio: 16 / 10;
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.preview-card-img img { width: 100%; height: 100%; object-fit: cover; }
.preview-card-text {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-secondary);
}
.preview-card-text strong { color: var(--text); }

/* -- Tech -- */
.tech-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.tech-pill {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: background 0.2s;
}
.tech-pill:hover { background: var(--bg-secondary); }
.tech-pill-icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tech-pill-icon svg { width: 24px; height: 24px; }
.tech-pill h4 { font-size: 14px; font-weight: 600; }
.tech-pill span { font-size: 12px; color: var(--text-muted); }

/* -- CTA -- */
.cta {
  text-align: center;
}
.cta-card {
  padding: 72px 48px;
  border-radius: var(--radius);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}
.cta-card h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 400;
  margin-bottom: 12px;
}
.cta-card p {
  font-size: 16px; color: var(--text-secondary);
  margin-bottom: 32px;
}
.cta-buttons {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
}
.btn-os {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  cursor: pointer; background: var(--bg);
  font-family: var(--font);
  transition: background 0.2s;
  color: var(--text);
}
.btn-os:hover { background: var(--bg-tertiary); }
.btn-os svg { width: 16px; height: 16px; }
.cta-edition { margin-top: 32px; }
.cta-edition:first-of-type { margin-top: 0; }
.cta-edition-title {
  font-size: 18px; font-weight: 600; margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.cta-edition-desc {
  font-size: 14px; color: var(--text-secondary); margin-bottom: 20px;
}
.cta-divider {
  width: 80px; height: 1px; background: var(--border);
  margin: 36px auto;
}
.cta-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  color: #fff; background: var(--brand);
  border-radius: 4px;
}
.cta-docker-snippet {
  margin-top: 14px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 20px;
  background: #1a1a1a; color: #e0e0e0;
  border-radius: 8px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  max-width: 100%;
  overflow-x: auto;
  position: relative;
}
.cta-docker-snippet code {
  white-space: nowrap;
}
.snippet-copy {
  flex-shrink: 0;
  background: transparent; border: none;
  color: #888; cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.snippet-copy:hover { color: #fff; background: rgba(255,255,255,0.1); }
.cta-feature-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-secondary);
}
.cta-feature-tag svg { color: #34a853; }

/* -- Footer -- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-left {
  display: flex; align-items: center; gap: 16px;
}
.footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
}
.footer-logo svg { width: 20px; height: 20px; }
.license {
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text-secondary); }
.footer-bottom {
  text-align: center;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted);
}

/* -- Policy pages -- */
.policy-page {
  background: var(--bg);
}
.policy-main {
  padding: 128px 0 72px;
}
.policy-container {
  max-width: 860px;
}
.policy-header {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.policy-back {
  display: inline-flex;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.policy-back:hover {
  color: var(--text-secondary);
}
.policy-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 14px;
}
.policy-header p {
  color: var(--text-secondary);
  max-width: 700px;
}
.policy-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.policy-content {
  padding-top: 12px;
}
.policy-section {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.policy-section:last-child {
  border-bottom: none;
}
.policy-section h2 {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 14px;
}
.policy-section p,
.policy-section li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
}
.policy-section p + p {
  margin-top: 14px;
}
.policy-section ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}
.policy-section code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--bg-secondary);
  color: var(--text);
  font-size: 0.92em;
}
.policy-section a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.policy-chinese {
  background: var(--bg-secondary);
  margin: 36px -28px 0;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* -- Scroll reveal -- */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.show { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }

/* -- Responsive -- */
@media (max-width: 768px) {
  section { padding: 72px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; gap: 40px; }
  .privacy-visual { order: -1; }
  .preview-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding: 120px 0 60px; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .tech-row { flex-direction: column; align-items: stretch; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-left { flex-direction: column; }
  .footer-links { justify-content: center; }
  .policy-main { padding-top: 104px; }
  .policy-section { padding: 30px 0; }
  .policy-chinese { margin-left: 0; margin-right: 0; }
}
@media (max-width: 900px) and (min-width: 769px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
