/* ─────────────────────────────────────────────────────────────────
   Sulix Note — 官网样式 (Linear-inspired)
   全暗色主题 · Inter 字体 · 蓝紫渐变 · 功能极简主义
   ───────────────────────────────────────────────────────────────── */

/* ── Variables ── */
:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #121214;
  --bg-card: #18181b;
  --bg-elevated: #1e1e22;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --accent-from: #5e6ad2;
  --accent-to: #8b5cf6;
  --accent: var(--accent-from);
  --accent-gradient: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  --border: #27272a;
  --border-hover: #3f3f46;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --max-width: 1100px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", "Cascadia Code", Consolas, monospace;
  --nav-height: 56px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 24px); }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(94, 106, 210, 0.3); color: #fff; }
a { color: var(--text-primary); text-decoration: none; }
a:hover { opacity: 0.7; }
img { max-width: 100%; height: auto; }
svg { vertical-align: middle; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  height: var(--nav-height);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.nav-logo svg { width: 20px; height: 20px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text-primary); opacity: 1; }

/* ── Hero ── */
.hero {
  padding: calc(var(--nav-height) + 80px) 0 64px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94,106,210,0.06) 0%, transparent 70%);
  pointer-events: none;
  transform: translateX(-50%);
}
.hero .container { display: flex; flex-direction: column; align-items: center; position: relative; }
.hero-content {
  max-width: 680px;
  text-align: center;
  margin-bottom: 64px;
}
.hero-badge {
  display: inline-flex;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  color: #a1a1aa;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}
.hero-title {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #fafafa 40%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
.hero-hint { font-size: 13px; color: var(--text-muted); margin-top: 20px; }

/* ── Hero Mockup ── */
.hero-mockup { width: 100%; max-width: 640px; margin: 0 auto; }
.mockup-window {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-secondary);
}
.mockup-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}
.mockup-dots span:first-child { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #eab308; }
.mockup-dots span:nth-child(3) { background: #22c55e; }
.mockup-title {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--mono);
}
.mockup-body {
  padding: 20px 24px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
}
.mockup-line { margin-bottom: 2px; }
.mockup-gap { height: 10px; }
.md-h1 { color: var(--text-primary); font-weight: 700; font-size: 15px; }
.md-text { color: var(--text-secondary); }
.md-link { color: var(--accent-from); }
.md-tag {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(94, 106, 210, 0.12);
  color: var(--accent-from);
  font-size: 12px;
}
.md-ai {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-to);
  font-size: 12px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; }
.btn-primary {
  background: var(--accent-gradient);
  color: #fff !important;
  border: none;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary) !important;
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--border-hover); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border);
  width: 100%;
  justify-content: center;
}
.btn-outline:hover { border-color: var(--text-muted); color: var(--text-primary) !important; }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary) !important;
  padding: 10px 18px;
}
.btn-ghost:hover { color: var(--text-primary) !important; opacity: 1; }

/* ── Sections ── */
section { padding: 100px 0; }
.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-from);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.section-title em { font-style: normal; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 56px;
  line-height: 1.6;
}

/* ── Features Grid ── */
.features { background: var(--bg-primary); }
.features .section-title,
.features .section-subtitle,
.philosophy .section-title,
.philosophy .section-subtitle { max-width: 600px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-card {
  padding: 32px 28px;
  background: var(--bg-card);
  transition: background 0.15s;
}
.feature-card:hover { background: var(--bg-elevated); }
.feature-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Divider ── */
.divider { padding: 0; }
.divider .container { padding: 0 32px; }
.divider span {
  display: block;
  height: 1px;
  background: var(--border);
}

/* ── Philosophy ── */
.philosophy { background: var(--bg-primary); }
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 48px;
  margin-top: 48px;
}
.philosophy-item {}
.philosophy-num {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 12px;
}
.philosophy-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.philosophy-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Pricing ── */
.pricing {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}
.pricing .section-title,
.pricing .section-subtitle { text-align: left; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  align-items: start;
}
.pricing-card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
}
.pricing-card--featured {
  border-color: var(--accent-from);
  background: linear-gradient(180deg, rgba(94,106,210,0.06) 0%, var(--bg-card) 60%);
}
.pricing-badge {
  position: absolute;
  top: -10px;
  left: 24px;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.pricing-tier { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.pricing-price {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.pricing-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 24px; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li {
  font-size: 13px;
  padding: 5px 0;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
}
.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-from);
  opacity: 0.5;
}
.pricing-features li:first-child { color: var(--text-primary); }
.pricing-features li:first-child::before { opacity: 1; }
.pricing-card .btn { width: 100%; justify-content: center; }
.pricing-note {
  text-align: left;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 24px;
  max-width: 600px;
}

/* ── CTA ── */
.cta {
  text-align: center;
  padding: 120px 0;
  border-top: 1px solid var(--border);
}
.cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
}
.cta p { font-size: 16px; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.6; }
.cta .btn-primary {
  padding: 12px 32px;
  font-size: 15px;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  background: var(--bg-primary);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.footer-brand {}
.footer-logo { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.6;
}
.footer-links { display: flex; gap: 48px; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: var(--text-muted);
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text-primary); opacity: 1; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
.footer-tech { color: var(--text-muted); }

/* ── Legal pages ── */
.legal { padding: calc(var(--nav-height) + 60px) 0 60px; max-width: 680px; }
.legal h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.legal h2 { font-size: 20px; font-weight: 600; margin-top: 40px; margin-bottom: 12px; }
.legal h3 { font-size: 16px; font-weight: 600; margin-top: 28px; margin-bottom: 8px; }
.legal p, .legal li { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.legal ul, .legal ol { padding-left: 20px; margin-bottom: 16px; }
.legal li { margin-bottom: 4px; }
.legal .back-link { display: inline-block; margin-bottom: 20px; font-size: 13px; color: var(--accent-from); }
.legal .back-link:hover { opacity: 0.7; }
.legal strong { color: var(--text-primary); }
.legal blockquote {
  border-left: 2px solid var(--border);
  padding: 12px 16px;
  margin: 16px 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .hero { padding: calc(var(--nav-height) + 40px) 0 40px; min-height: auto; }
  .hero-title { font-size: 34px; }
  .hero-subtitle { font-size: 15px; }
  .hero-content { margin-bottom: 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; gap: 32px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 26px; }
  .section-subtitle { margin-bottom: 32px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .nav-links a { font-size: 12px; }
  .nav-links { gap: 16px; }
}
