/* === Design Tokens === */
:root {
  --google-blue: #4285F4;
  --google-red: #EA4335;
  --google-yellow: #FBBC04;
  --google-green: #34A853;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f4;
  --gray-200: #e8eaed;
  --gray-300: #dadce0;
  --gray-500: #9aa0a6;
  --gray-700: #5f6368;
  --gray-900: #202124;
  --text: #202124;
  --text-secondary: #5f6368;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.1);
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 2px 6px rgba(0,0,0,0.06), 0 10px 30px rgba(0,0,0,0.1);
  --max-width: 880px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: 'Roboto', 'Google Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

/* === Nav === */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 100;
  height: 64px;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700; font-size: 18px;
  color: var(--google-blue);
  text-decoration: none;
}
.nav-logo:hover { color: var(--google-red); }
.nav-links {
  display: flex; list-style: none; gap: 4px;
}
.nav-links a {
  display: block;
  padding: 6px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  border-radius: 20px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--gray-100); color: var(--text); }
.nav-links a.active { background: var(--google-blue); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 1px; }

/* === Hero === */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, #e8f0fe 0%, #f8f9fa 50%, #e6f4ea 100%);
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  font-size: 13px; font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 24px;
}
.hero h1 {
  font-family: 'Google Sans', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: 18px; color: var(--gray-700);
  max-width: 620px; margin: 0 auto 32px;
  line-height: 1.6;
}
.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
}
.hero-stat {
  font-size: 14px; color: var(--gray-700);
}
.hero-stat strong {
  display: block;
  font-family: 'Google Sans', sans-serif;
  font-size: 28px; font-weight: 700;
  color: var(--google-blue);
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: 'Google Sans', sans-serif;
  font-size: 15px; font-weight: 500;
  border-radius: 24px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary {
  background: var(--google-blue);
  color: #fff;
}
.btn-primary:hover { background: #3367d6; }
.btn-outline {
  background: #fff;
  color: var(--google-blue);
  border: 1px solid var(--gray-300);
}
.btn-outline:hover { background: var(--gray-50); border-color: var(--google-blue); }

/* === Sections === */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 {
  font-family: 'Google Sans', sans-serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
}
.section h2::after {
  content: '';
  display: block;
  width: 48px; height: 4px;
  border-radius: 2px;
  margin-top: 12px;
}
.section:nth-of-type(1) h2::after { background: var(--google-blue); }
.section:nth-of-type(2) h2::after { background: var(--google-red); }
.section:nth-of-type(3) h2::after { background: var(--google-yellow); }
.section:nth-of-type(4) h2::after { background: var(--google-green); }
.section:nth-of-type(5) h2::after { background: var(--google-blue); }
.section:nth-of-type(6) h2::after { background: var(--google-red); }

.section h3 {
  font-family: 'Google Sans', sans-serif;
  font-size: 22px; font-weight: 700;
  margin: 40px 0 16px;
}
.section h4 {
  font-family: 'Google Sans', sans-serif;
  font-size: 17px; font-weight: 500;
  margin: 24px 0 8px;
  color: var(--gray-700);
}
.section-lead {
  font-size: 18px; color: var(--gray-700);
  margin-bottom: 20px;
  line-height: 1.7;
}
.section p { margin-bottom: 16px; color: var(--text); }

/* === Badges === */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px; font-weight: 500;
  vertical-align: middle;
}
.badge-green { background: #e6f4ea; color: #137333; }
.badge-yellow { background: #fef7e0; color: #b06000; }

/* === Note === */
.note {
  background: #e8f0fe;
  border-left: 4px solid var(--google-blue);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  color: var(--gray-700);
  margin: 16px 0;
}

/* === Tables === */
.table-wrap { overflow-x: auto; margin: 24px 0; }
table {
  width: 100%; border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
thead { background: var(--gray-900); color: #fff; }
th, td {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
}
th { font-family: 'Google Sans', sans-serif; font-weight: 500; }
td { border-bottom: 1px solid var(--gray-200); }
tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--gray-50); }
td code { font-size: 13px; background: var(--gray-100); padding: 2px 6px; border-radius: 4px; }

/* === Code blocks (Prism) === */
pre {
  margin: 16px 0;
  border-radius: var(--radius);
  overflow-x: auto;
}
pre code { font-family: 'Roboto Mono', 'Fira Code', monospace; font-size: 14px; }
code { font-family: 'Roboto Mono', monospace; font-size: 14px; }

/* === Reasons Grid === */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.reason-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.reason-card:hover { box-shadow: var(--shadow); }
.reason-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--text);
}
.reason-note {
  font-size: 14px; color: var(--gray-700);
  background: var(--gray-50);
  padding: 12px; border-radius: var(--radius-sm);
  margin-top: 12px;
}

/* === Compare Grid === */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}
.compare-grid > div {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
}
.compare-grid ul { padding-left: 20px; }
.compare-grid li { margin-bottom: 8px; font-size: 15px; }

/* === Limitations Grid === */
.limitations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.limit-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
}
.limit-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--google-red);
}
.limit-card p { font-size: 14px; margin: 0; }

/* === Use Cases Grid === */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.usecase-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.usecase-card h3 { margin: 0 0 8px; font-size: 17px; }

/* === Anti Use Cases === */
.anti-title { margin-top: 48px; color: var(--google-red); }
.anti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.anti-item {
  background: #fff;
  border: 1px solid #fce8e6;
  border-radius: var(--radius);
  padding: 16px;
}
.anti-item strong { display: block; margin-bottom: 4px; font-size: 14px; color: var(--google-red); }
.anti-item p { font-size: 13px; color: var(--gray-700); margin: 0; }

/* === FAQ === */
.faq-list { margin-top: 32px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-item[open] { border-color: var(--google-blue); }
.faq-item summary {
  padding: 20px 24px;
  font-size: 16px; font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px; font-weight: 400;
  color: var(--gray-500);
  transition: transform 0.2s;
  flex-shrink: 0; margin-left: 12px;
}
.faq-item[open] summary::after {
  content: '\2212';
  color: var(--google-blue);
}
.faq-answer {
  padding: 0 24px 20px;
  font-size: 15px; color: var(--gray-700);
}
.faq-answer p { margin-bottom: 12px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* === Footer === */
.footer {
  background: var(--gray-900);
  color: var(--gray-500);
  padding: 40px 0;
  text-align: center;
  font-size: 13px;
}
.footer p { margin-bottom: 8px; color: var(--gray-500); }

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === Accessibility === */
.nav-links a:focus-visible,
.btn:focus-visible,
.faq-item summary:focus-visible {
  outline: 2px solid var(--google-blue);
  outline-offset: 2px;
}

/* === Responsive === */
@media (max-width: 480px) {
  .reasons-grid,
  .usecases-grid,
  .limitations-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px; border-bottom: 1px solid var(--gray-200); gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { border-radius: 8px; padding: 10px 16px; }
  .nav-toggle { display: flex; }
  .hero { padding: 96px 0 56px; }
  .hero-stats { gap: 20px; }
  .compare-grid { grid-template-columns: 1fr; }
  .reasons-grid, .usecases-grid, .limitations-grid { grid-template-columns: 1fr; }
}
