/* ============================================
   ShareToolbox — Design System & Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- CSS Custom Properties (Light Theme) --- */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f7f7f5;
  --bg-tertiary: #f0f0ee;
  --text-primary: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-tertiary: #9b9b9b;
  --border-color: #e8e8e5;
  --border-light: #f0f0ee;
  --accent: #2f6feb;
  --accent-hover: #1a5cd4;
  --accent-subtle: rgba(47, 111, 235, 0.08);
  --code-bg: #f7f7f5;
  --code-text: #1a1a1a;
  --card-bg: #ffffff;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --nav-bg: rgba(255, 255, 255, 0.8);
  --nav-border: rgba(0, 0, 0, 0.06);
  --hero-gradient: linear-gradient(135deg, #f7f7f5 0%, #ffffff 100%);
  --spotlight-bg: rgba(47, 111, 235, 0.04);
  --spotlight-border: rgba(47, 111, 235, 0.12);
  --keychain-icon-bg: #f0f0ee;
}

/* --- Dark Theme --- */
[data-theme="dark"] {
  --bg-primary: #191919;
  --bg-secondary: #202020;
  --bg-tertiary: #2a2a2a;
  --text-primary: rgba(255, 255, 255, 0.87);
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-tertiary: rgba(255, 255, 255, 0.35);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.05);
  --accent: #4d8ef7;
  --accent-hover: #6ba1ff;
  --accent-subtle: rgba(77, 142, 247, 0.1);
  --code-bg: #1e1e1e;
  --code-text: rgba(255, 255, 255, 0.87);
  --card-bg: #202020;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.15);
  --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
  --nav-bg: rgba(25, 25, 25, 0.85);
  --nav-border: rgba(255, 255, 255, 0.06);
  --hero-gradient: linear-gradient(135deg, #191919 0%, #202020 100%);
  --spotlight-bg: rgba(77, 142, 247, 0.06);
  --spotlight-border: rgba(77, 142, 247, 0.15);
  --keychain-icon-bg: #2a2a2a;
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-primary: #191919;
    --bg-secondary: #202020;
    --bg-tertiary: #2a2a2a;
    --text-primary: rgba(255, 255, 255, 0.87);
    --text-secondary: rgba(255, 255, 255, 0.55);
    --text-tertiary: rgba(255, 255, 255, 0.35);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.05);
    --accent: #4d8ef7;
    --accent-hover: #6ba1ff;
    --accent-subtle: rgba(77, 142, 247, 0.1);
    --code-bg: #1e1e1e;
    --code-text: rgba(255, 255, 255, 0.87);
    --card-bg: #202020;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.15);
    --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    --nav-bg: rgba(25, 25, 25, 0.85);
    --nav-border: rgba(255, 255, 255, 0.06);
    --hero-gradient: linear-gradient(135deg, #191919 0%, #202020 100%);
    --spotlight-bg: rgba(77, 142, 247, 0.06);
    --spotlight-border: rgba(77, 142, 247, 0.15);
    --keychain-icon-bg: #2a2a2a;
  }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 48px; letter-spacing: -0.035em; }
h2 { font-size: 36px; letter-spacing: -0.03em; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--accent-hover); }

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.content-narrow {
  max-width: 680px;
  margin: 0 auto;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nav-border);
  transition: background-color 0.3s ease;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo svg {
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--text-tertiary);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-primary);
}

.hamburger svg {
  width: 24px;
  height: 24px;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 980px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 111, 235, 0.3);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--border-color);
  border-radius: 980px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--text-tertiary);
  color: var(--text-primary);
}

/* --- Hero Section --- */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  background: var(--hero-gradient);
}

.hero h1 {
  margin-bottom: 20px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 19px;
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.hero-screenshot {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.hero-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

[data-theme="dark"] .hero-screenshot {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* --- Section Shared --- */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header p {
  font-size: 18px;
  max-width: 540px;
  margin: 16px auto 0;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

/* --- Feature Cards --- */
.features {
  background: var(--bg-secondary);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 15px;
  line-height: 1.6;
}

/* --- How It Works (Stepper) --- */
.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
  position: relative;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 12px);
  right: calc(12.5% + 12px);
  height: 2px;
  background: var(--border-color);
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}

.step h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.step p {
  font-size: 14px;
}

.how-it-works-code {
  max-width: 600px;
  margin: 0 auto;
}

/* --- Code Blocks --- */
.code-block {
  background: var(--code-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}

.code-block-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.copy-btn {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.copy-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-tertiary);
}

.copy-btn.copied {
  color: #22c55e;
  border-color: #22c55e;
}

.code-block pre {
  padding: 20px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}

.code-block code {
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, monospace;
  color: var(--code-text);
}

/* --- AI Spotlight --- */
.ai-spotlight {
  background: var(--spotlight-bg);
  border-top: 1px solid var(--spotlight-border);
  border-bottom: 1px solid var(--spotlight-border);
}

.ai-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ai-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.25s ease;
}

.ai-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}

.ai-card-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.ai-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.ai-card p {
  font-size: 15px;
  line-height: 1.6;
}

/* --- Security Section --- */
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.security-text h2 {
  margin-bottom: 16px;
}

.security-text p {
  margin-bottom: 16px;
  font-size: 16px;
}

.security-features {
  list-style: none;
  margin-top: 24px;
}

.security-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 15px;
}

.security-features li svg {
  width: 20px;
  height: 20px;
  color: #22c55e;
  flex-shrink: 0;
  margin-top: 2px;
}

.security-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.keychain-graphic {
  width: 280px;
  height: 280px;
  border-radius: 24px;
  background: var(--keychain-icon-bg);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.keychain-graphic svg {
  width: 64px;
  height: 64px;
  color: var(--accent);
}

.keychain-graphic span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* --- CTA Section --- */
.cta {
  text-align: center;
  padding: 100px 0;
  background: var(--bg-secondary);
}

.cta h2 {
  margin-bottom: 16px;
}

.cta p {
  font-size: 18px;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer p {
  font-size: 14px;
  color: var(--text-tertiary);
}

.footer a {
  color: var(--text-secondary);
}

.footer a:hover {
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 8px;
  list-style: none;
}

.footer-links a {
  font-size: 14px;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grids */
.feature-card.reveal:nth-child(1) { transition-delay: 0s; }
.feature-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.feature-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.feature-card.reveal:nth-child(4) { transition-delay: 0.24s; }
.feature-card.reveal:nth-child(5) { transition-delay: 0.32s; }
.feature-card.reveal:nth-child(6) { transition-delay: 0.4s; }
.feature-card.reveal:nth-child(7) { transition-delay: 0.48s; }
.feature-card.reveal:nth-child(8) { transition-delay: 0.56s; }

.step.reveal:nth-child(1) { transition-delay: 0s; }
.step.reveal:nth-child(2) { transition-delay: 0.1s; }
.step.reveal:nth-child(3) { transition-delay: 0.2s; }

.ai-card.reveal:nth-child(1) { transition-delay: 0s; }
.ai-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.ai-card.reveal:nth-child(3) { transition-delay: 0.2s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn-primary:hover,
  .feature-card:hover,
  .ai-card:hover {
    transform: none;
  }

  html { scroll-behavior: auto; }
}

/* ============================================
   Docs Page
   ============================================ */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 56px);
  margin-top: 56px;
}

.docs-sidebar {
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
  padding: 32px 24px;
  border-right: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.docs-sidebar::-webkit-scrollbar {
  width: 4px;
}

.docs-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

.sidebar-section {
  margin-bottom: 24px;
}

.sidebar-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  padding: 0 8px;
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li a {
  display: block;
  padding: 6px 8px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.sidebar-links li a:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.sidebar-links li a.active {
  color: var(--accent);
  background: var(--accent-subtle);
}

.docs-content {
  padding: 48px 64px;
  max-width: 780px;
}

.docs-content h1 {
  font-size: 40px;
  margin-bottom: 12px;
}

.docs-content > p:first-of-type {
  font-size: 18px;
  margin-bottom: 48px;
}

.docs-content h2 {
  font-size: 28px;
  margin-top: 64px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.docs-content h3 {
  font-size: 20px;
  margin-top: 36px;
  margin-bottom: 12px;
  position: relative;
}

.anchor-link {
  position: absolute;
  left: -24px;
  color: var(--text-tertiary);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  font-weight: 400;
}

h2:hover .anchor-link,
h3:hover .anchor-link {
  opacity: 1;
}

.anchor-link:hover {
  color: var(--accent);
}

.docs-content p {
  margin-bottom: 16px;
  font-size: 16px;
}

.docs-content ul,
.docs-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.docs-content li {
  margin-bottom: 6px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.docs-content code {
  font-family: 'SF Mono', 'Fira Code', Menlo, monospace;
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
  border: 1px solid var(--border-color);
}

.docs-content pre code {
  background: none;
  padding: 0;
  border: none;
  border-radius: 0;
  color: var(--code-text);
}

.docs-content .code-block {
  margin-bottom: 24px;
}

/* Docs tables */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 15px;
}

.docs-table th,
.docs-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
}

.docs-table th {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-secondary);
}

.docs-table td {
  color: var(--text-secondary);
}

.docs-table td code {
  font-size: 13px;
}

/* Mobile sidebar drawer */
.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(47, 111, 235, 0.3);
  align-items: center;
  justify-content: center;
}

.sidebar-toggle svg {
  width: 20px;
  height: 20px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 95;
}

/* --- Prism.js Theme Overrides --- */
.token.property { color: #2f6feb; }
.token.string { color: #22863a; }
.token.number { color: #d73a49; }
.token.boolean { color: #d73a49; }
.token.null { color: #d73a49; }
.token.punctuation { color: var(--text-tertiary); }

[data-theme="dark"] .token.property { color: #79b8ff; }
[data-theme="dark"] .token.string { color: #85e89d; }
[data-theme="dark"] .token.number { color: #f97583; }
[data-theme="dark"] .token.boolean { color: #f97583; }
[data-theme="dark"] .token.null { color: #f97583; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .token.property { color: #79b8ff; }
  :root:not([data-theme="light"]) .token.string { color: #85e89d; }
  :root:not([data-theme="light"]) .token.number { color: #f97583; }
  :root:not([data-theme="light"]) .token.boolean { color: #f97583; }
  :root:not([data-theme="light"]) .token.null { color: #f97583; }
}

/* ============================================
   Responsive
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }

  .feature-grid { gap: 16px; }

  .stepper {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .stepper::before { display: none; }

  .ai-cards { gap: 16px; }

  .security-grid { gap: 40px; }

  .docs-layout { grid-template-columns: 220px 1fr; }

  .docs-content { padding: 40px 40px; }
}

/* Mobile */
@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  body { font-size: 16px; }

  .container { padding: 0 20px; }

  .section { padding: 64px 0; }

  /* Nav mobile */
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nav-border);
    padding: 16px 24px;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
  }

  .nav-open .nav-links {
    display: flex;
  }

  .hamburger { display: block; }

  /* Hero mobile */
  .hero {
    padding: 100px 0 60px;
  }

  .hero p { font-size: 17px; }

  .hero-actions {
    flex-direction: column;
    margin-bottom: 40px;
  }

  .hero-screenshot {
    margin: 0 -20px;
    border-radius: 0;
  }

  /* Feature grid mobile */
  .feature-grid {
    grid-template-columns: 1fr;
  }

  /* Stepper mobile */
  .stepper {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* AI cards mobile */
  .ai-cards {
    grid-template-columns: 1fr;
  }

  /* Security mobile */
  .security-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .security-visual { order: -1; }

  .keychain-graphic {
    width: 200px;
    height: 200px;
  }

  .keychain-graphic svg {
    width: 48px;
    height: 48px;
  }

  /* Docs mobile */
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    z-index: 99;
    transition: left 0.3s ease;
    padding-top: 72px;
  }

  .docs-sidebar.open {
    left: 0;
  }

  .sidebar-overlay.visible {
    display: block;
  }

  .sidebar-toggle {
    display: flex;
  }

  .docs-content {
    padding: 32px 20px;
  }

  .docs-content h1 { font-size: 32px; }
  .docs-content h2 { font-size: 24px; }
}

@media (max-width: 480px) {
  h1 { font-size: 28px; }

  .hero { padding: 90px 0 48px; }

  .btn-primary {
    padding: 12px 24px;
    font-size: 15px;
  }

  .feature-card { padding: 20px; }

  .step-number {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
}
