/* Chrome Safe Download Hub — Clean Minimal */
:root {
  --blue: #1a73e8;
  --blue-dark: #1557b0;
  --blue-soft: #e8f0fe;
  --text: #202124;
  --muted: #5f6368;
  --border: #e8eaed;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --shadow: 0 1px 3px rgba(60, 64, 67, 0.12), 0 4px 12px rgba(60, 64, 67, 0.08);
  --radius: 8px;
  --max: 1100px;
  --font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  height: 64px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.brand:hover {
  text-decoration: none;
}

.brand svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.brand-name b {
  color: var(--blue);
  font-weight: 600;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-list a:hover {
  background: var(--blue-soft);
  color: var(--blue);
  text-decoration: none;
}

.nav-list a.active {
  color: var(--blue);
  background: var(--blue-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 2px rgba(26, 115, 232, 0.3);
}

.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--blue);
  border-color: #dadce0;
}

.btn-outline:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue);
}

.btn-lg {
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(26, 115, 232, 0.12), transparent 60%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  max-width: 18ch;
  margin: 0 auto 1rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--blue);
}

.hero .lead {
  max-width: 42rem;
  margin: 0 auto 1.75rem;
  font-size: 1.1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.25rem;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-meta svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-head p {
  margin-bottom: 0;
}

/* Feature grids */
.grid-2,
.grid-3,
.grid-4,
.grid-6 {
  display: grid;
  gap: 1.25rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
.grid-6 { grid-template-columns: repeat(3, 1fr); }

.feature-card,
.stat-card,
.platform-card,
.review-card,
.usecase-card,
.deep-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.icon-badge {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 1rem;
}

.icon-badge svg {
  width: 22px;
  height: 22px;
}

.feature-card h3,
.deep-card h3,
.usecase-card h3,
.platform-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p,
.deep-card p,
.usecase-card p,
.platform-card p,
.review-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Stats */
.stat-card {
  text-align: center;
  padding: 2rem 1.25rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.35rem;
}

.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--text);
}

td {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: none;
}

.check {
  color: var(--blue);
  font-weight: 700;
}

/* Reviews */
.review-card .stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.75rem;
  color: #f4b400;
}

.review-card .stars svg {
  width: 16px;
  height: 16px;
}

.review-meta {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

/* FAQ accordion (CSS-only) */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.faq-item label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.faq-item label::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-top: -4px;
}

.faq-item input:checked + label::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.25rem;
}

.faq-item input:checked ~ .faq-body {
  max-height: 480px;
  padding: 0 1.25rem 1.15rem;
}

.faq-body p {
  margin: 0;
  font-size: 0.95rem;
}

/* Download page */
.download-zone {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.download-zone .version {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.download-zone h2 {
  font-size: 1.5rem;
}

.download-zone .size-note {
  margin: 0.5rem 0 1.25rem;
  font-size: 0.95rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 720px;
  margin-inline: auto;
}

.steps li {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.steps p {
  margin: 0;
  font-size: 0.95rem;
}

.changelog {
  max-width: 760px;
  margin: 0 auto;
}

.changelog-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.changelog-item time {
  display: inline-block;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.changelog-item ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.notice-box {
  background: var(--blue-soft);
  border: 1px solid #c6dafc;
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 760px;
  margin: 0 auto;
}

.notice-box h3 {
  color: var(--blue);
}

.platform-card {
  text-align: center;
}

.platform-card .icon-badge {
  margin-inline: auto;
}

.platform-card .btn {
  margin-top: 1.25rem;
}

/* Guide page */
.guide-intro {
  max-width: 720px;
  margin: 0 auto;
}

.guide-block {
  max-width: 760px;
  margin: 0 auto 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.guide-block h2 {
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.guide-block h2 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.cta-banner {
  text-align: center;
  background: linear-gradient(135deg, var(--blue-soft), #fff);
  border: 1px solid #c6dafc;
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow);
}

.cta-banner h2 {
  font-size: 1.5rem;
}

.cta-banner p {
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose p {
  margin-bottom: 1.1rem;
}

.kbd {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-alt);
  font-family: Consolas, Monaco, monospace;
  font-size: 0.85em;
  color: var(--text);
}

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.site-footer p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  text-align: center;
}

.site-footer .copy {
  margin-bottom: 0;
  color: #80868b;
  font-size: 0.85rem;
}

/* Spin for download loading state */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 900px) {
  .grid-6,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .nav-wrap {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.85rem 0;
  }

  .nav-list {
    flex-wrap: wrap;
    width: 100%;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-6 {
    grid-template-columns: 1fr;
  }

  .download-zone {
    padding: 1.5rem;
  }

  .steps li {
    padding-left: 3.5rem;
  }
}
