/* ============================================================
   Zen Search — Official Website Styles
   ============================================================ */

:root {
  --bg: #0a0a0b;
  --bg-card: #131316;
  --bg-card-hover: #1a1a1e;
  --border: #2a2a30;
  --text-primary: #f0f0f2;
  --text-secondary: #8a8a9e;
  --accent: #7c6af7;
  --accent-hover: #9482ff;
  --accent-subtle: color-mix(in srgb, var(--accent), transparent 88%);
  --chrome-color: #4285f4;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 960px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

/* ── Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: color-mix(in srgb, var(--bg), transparent 15%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  max-width: 100%;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.nav-logo img { width: 24px; height: 24px; border-radius: 6px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text-primary); }

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 96px 24px 80px;
}
.hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 24px;
  box-shadow: 0 8px 32px rgba(124, 106, 247, 0.25);
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero-tagline {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 12px;
}
.hero-sub {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto 40px;
  opacity: 0.7;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: opacity 0.15s, transform 0.15s;
  cursor: pointer;
  border: none;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-chrome { background: var(--chrome-color); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--bg-card-hover); }

/* ── Section base ── */
section { padding: 80px 24px; }
section h2 {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

/* ── Features ── */
.features { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.feature-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: background 0.15s, border-color 0.15s;
}
.feature-card:hover { background: var(--bg-card-hover); border-color: var(--accent); }
.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* ── Screenshot ── */
.demo { max-width: var(--max-width); margin: 0 auto; }
.demo h2 { margin-bottom: 32px; }
.screenshot-placeholder {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
  gap: 8px;
}
.screenshot-placeholder .icon { font-size: 2rem; opacity: 0.4; }
.screenshot-img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

/* ── How to use ── */
.how-to-use { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.shortcuts {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.shortcut-key {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--accent-subtle);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 75%);
  white-space: nowrap;
}
.shortcut p { font-size: 0.875rem; color: var(--text-secondary); }

/* ── Support ── */
.support-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.support-inner p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 0.9375rem;
}
.support-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
}
.footer-links a { color: var(--text-secondary); font-size: 0.875rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--text-primary); }
.footer-copy { font-size: 0.8125rem; color: var(--text-secondary); opacity: 0.6; }

/* ── Privacy page ── */
.prose {
  max-width: 680px;
  margin: 80px auto;
  padding: 0 24px;
}
.prose h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.prose .updated { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 48px; }
.prose h2 { font-size: 1.125rem; font-weight: 600; margin: 32px 0 12px; }
.prose p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 16px; }
.prose ul { padding-left: 20px; color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.75; }
.prose ul li { margin-bottom: 6px; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 640px) {
  nav { padding: 14px 16px; }
  .nav-links { gap: 16px; }
  .hero { padding: 64px 16px 56px; }
  section { padding: 56px 16px; }
  .shortcuts { grid-template-columns: repeat(2, 1fr); }
}
