/* ============================================================
   Chrome Safe Download Hub — Clean minimal
   White + Chrome blue (#1a73e8) | Soft shadows | 8px radius
   ============================================================ */

:root {
  --c-primary: #1a73e8;
  --c-primary-dark: #1558b0;
  --c-primary-light: #e8f0fe;
  --c-accent: #34a853;
  --c-warn: #fbbc05;
  --c-red: #ea4335;
  --c-text: #202124;
  --c-text-soft: #5f6368;
  --c-border: #e3e6ea;
  --c-bg: #ffffff;
  --c-bg-soft: #f6f8fb;
  --radius: 8px;
  --shadow-s: 0 1px 3px rgba(32, 33, 36, 0.08);
  --shadow-m: 0 8px 24px rgba(32, 33, 36, 0.08);
  --shadow-l: 0 16px 40px rgba(26, 115, 232, 0.14);
  --container: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--c-border);
  backdrop-filter: saturate(180%) blur(6px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text);
}

.brand svg { width: 28px; height: 28px; }

.brand-name b { color: var(--c-primary); }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text-soft);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-list a:hover {
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
}

.nav-list a.active {
  background: var(--c-primary);
  color: #fff;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
  line-height: 1.3;
}

.btn:disabled { opacity: 0.75; cursor: progress; }

.btn-lg { padding: 16px 36px; font-size: 16px; }

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--shadow-l);
}

.btn-primary:hover {
  background: var(--c-primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: #fff;
  color: var(--c-primary);
  border: 1.5px solid var(--c-primary);
}

.btn-outline:hover {
  background: var(--c-primary-light);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--c-bg-soft);
  color: var(--c-text);
  border: 1px solid var(--c-border);
}

.btn-ghost:hover { background: #eef1f5; }

.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  text-align: center;
  background: linear-gradient(180deg, #f2f7fe 0%, #ffffff 100%);
  border-bottom: 1px solid var(--c-border);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius);
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.4px;
  max-width: 780px;
  margin: 0 auto 18px;
}

.hero h1 span { color: var(--c-primary); }

.hero p.lead {
  font-size: 17px;
  color: var(--c-text-soft);
  max-width: 640px;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--c-text-soft);
}

.hero-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--c-border);
}

.hero-chips svg {
  width: 14px;
  height: 14px;
  color: var(--c-accent);
}

/* ---------- Section shell ---------- */
.section { padding: 72px 0; }
.section-soft { background: var(--c-bg-soft); }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 10px;
  display: block;
}

.section-head h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--c-text-soft);
  font-size: 16px;
}

/* ---------- Feature cards ---------- */
.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-s);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-m);
  transform: translateY(-2px);
}

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--c-primary-light);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.icon-badge svg { width: 24px; height: 24px; }

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--c-text-soft);
  font-size: 14.5px;
}

/* ---------- Platform grid ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.platform-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-s);
}

.platform-card .icon-badge {
  margin: 0 auto 14px;
  background: var(--c-bg-soft);
  color: var(--c-text);
}

.platform-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.platform-card p {
  font-size: 13px;
  color: var(--c-text-soft);
  margin-bottom: 14px;
  min-height: 52px;
}

.platform-card .btn {
  width: 100%;
  padding: 10px;
  font-size: 13px;
}

.platform-steps {
  text-align: left;
  font-size: 13px;
  color: var(--c-text-soft);
  margin: 0 0 14px;
  padding-left: 18px;
}

.platform-steps li {
  list-style: decimal;
  margin-bottom: 4px;
}

/* ---------- Deep feature rows ---------- */
.deep-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--c-border);
}

.deep-row:last-child { border-bottom: none; }

.deep-row .num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
}

.deep-row h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.deep-row p {
  color: var(--c-text-soft);
  font-size: 15px;
  max-width: 820px;
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}

.stat-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px 16px;
  box-shadow: var(--shadow-s);
}

.stat-item .num {
  font-size: 32px;
  font-weight: 800;
  color: var(--c-primary);
  margin-bottom: 6px;
}

.stat-item .label {
  font-size: 14px;
  color: var(--c-text-soft);
}

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.testi-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-s);
}

.testi-stars {
  display: flex;
  gap: 3px;
  color: var(--c-warn);
  margin-bottom: 10px;
}

.testi-stars svg { width: 15px; height: 15px; }

.testi-card p {
  font-size: 14.5px;
  color: var(--c-text-soft);
  margin-bottom: 14px;
}

.testi-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testi-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.testi-user b { display: block; font-size: 14px; }
.testi-user span { font-size: 12px; color: var(--c-text-soft); }

/* ---------- Compare table ---------- */
.compare-wrap { overflow-x: auto; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-s);
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-border);
  font-size: 14px;
  text-align: center;
}

.compare-table th {
  background: var(--c-bg-soft);
  font-weight: 700;
}

.compare-table td:first-child,
.compare-table th:first-child {
  text-align: left;
  font-weight: 600;
}

.compare-table .col-chrome {
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
  font-weight: 700;
}

.compare-table tr:last-child td { border-bottom: none; }

.tick { color: var(--c-accent); }
.dash { color: var(--c-text-soft); }

/* ---------- Use cases ---------- */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.usecase-card {
  padding: 24px 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-s);
}

.usecase-card .icon-badge {
  background: var(--c-bg-soft);
  color: var(--c-primary);
}

.usecase-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.usecase-card p {
  font-size: 14px;
  color: var(--c-text-soft);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--c-border);
  padding: 18px 0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .chev {
  width: 18px;
  height: 18px;
  color: var(--c-text-soft);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] summary .chev { transform: rotate(180deg); }

.faq-item p {
  color: var(--c-text-soft);
  font-size: 14.5px;
  margin-top: 10px;
  padding-right: 24px;
}

/* ---------- Download page ---------- */
.dl-hero {
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-border);
  padding: 56px 0;
}

.dl-hero h1 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 22px;
  text-align: center;
}

.dl-hero-box {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-m);
}

.dl-hero-box .win-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  background: var(--c-primary-light);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-hero-box .win-icon svg { width: 42px; height: 42px; }

.dl-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 13px;
  color: var(--c-text-soft);
}

.dl-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dl-meta svg { width: 14px; height: 14px; }

.steps-list { counter-reset: step; }

.step-item {
  position: relative;
  padding-left: 56px;
  padding-bottom: 30px;
  border-left: 2px dashed var(--c-border);
  margin-left: 18px;
}

.step-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.step-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -19px;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.step-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.step-item p {
  color: var(--c-text-soft);
  font-size: 14.5px;
}

.req-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-s);
}

.req-table th,
.req-table td {
  padding: 14px 16px;
  border: 1px solid var(--c-border);
  font-size: 14px;
  text-align: left;
}

.req-table th { background: var(--c-bg-soft); }

.log-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-border);
}

.log-item:last-child { border-bottom: none; }

.log-ver { flex-shrink: 0; width: 160px; }
.log-ver b { display: block; font-size: 15px; }
.log-ver span { font-size: 13px; color: var(--c-text-soft); }

.log-item ul {
  font-size: 14.5px;
  color: var(--c-text-soft);
}

.log-item li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
}

.log-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-primary);
}

.secure-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.secure-box .feature-card { text-align: center; }
.secure-box .icon-badge { margin: 0 auto 14px; }

.note-box {
  background: #fff;
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 20px;
  box-shadow: var(--shadow-s);
}

.note-box h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.note-box p {
  color: var(--c-text-soft);
  font-size: 14.5px;
}

/* ---------- Guide / article ---------- */
.guide-hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, #f2f7fe 0%, #ffffff 100%);
  border-bottom: 1px solid var(--c-border);
  text-align: center;
}

.guide-hero h1 {
  font-size: 34px;
  font-weight: 800;
  max-width: 760px;
  margin: 0 auto 14px;
}

.guide-hero .lead {
  font-size: 17px;
  color: var(--c-text-soft);
  max-width: 640px;
  margin: 0 auto;
}

.article-wrap {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 40px;
  align-items: start;
}

.article-body h2 {
  font-size: 24px;
  margin: 40px 0 14px;
  font-weight: 800;
}

.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-size: 18px;
  margin: 24px 0 10px;
  font-weight: 700;
}

.article-body p {
  color: var(--c-text-soft);
  font-size: 15.5px;
  margin-bottom: 14px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--c-text-soft);
  font-size: 15.5px;
}

.article-body li {
  margin-bottom: 8px;
  list-style: disc;
}

.article-body ol li { list-style: decimal; }

.kbd {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  font-family: Consolas, "Segoe UI", monospace;
  font-size: 13px;
  color: var(--c-text);
}

.cta-banner {
  background: linear-gradient(120deg, var(--c-primary), #4f8ff0);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  color: #fff;
  margin: 36px 0;
  box-shadow: var(--shadow-m);
}

.cta-banner h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: #fff;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 20px;
}

.cta-banner .btn-outline {
  background: #fff;
  border-color: #fff;
  color: var(--c-primary);
}

.cta-banner .btn-outline:hover {
  background: var(--c-primary-light);
}

.toc-box {
  position: sticky;
  top: 84px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
}

.toc-box h4 {
  font-size: 13px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--c-text-soft);
}

.toc-box a {
  display: block;
  font-size: 13.5px;
  padding: 6px 0;
  color: var(--c-text);
  border-bottom: 1px dashed var(--c-border);
  transition: color 0.15s ease;
}

.toc-box a:last-child { border-bottom: none; }
.toc-box a:hover { color: var(--c-primary); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-text);
  color: #d3d6db;
  padding: 44px 0 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
}

.footer-brand svg { width: 24px; height: 24px; }

.footer-security {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  max-width: 520px;
}

.footer-security svg {
  width: 20px;
  height: 20px;
  color: var(--c-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: #9aa0a6;
  line-height: 1.9;
}

/* ---------- Spin keyframe (required by download.js) ---------- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .usecase-grid { grid-template-columns: repeat(2, 1fr); }
  .article-wrap { grid-template-columns: 1fr; }
  .toc-box { position: static; }
  .secure-box { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-wrap { height: auto; padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
  .nav-list { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .nav-list a { padding: 7px 12px; font-size: 14px; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 28px; }
  .hero p.lead { font-size: 15px; }
  .guide-hero h1 { font-size: 26px; }
  .dl-hero h1 { font-size: 24px; }
  .grid-6,
  .platform-grid,
  .stats-grid,
  .testi-grid,
  .usecase-grid,
  .secure-box { grid-template-columns: 1fr; }
  .dl-hero-box {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .dl-hero-box .win-icon { margin: 0 auto; }
  .dl-meta { justify-content: center; }
  .deep-row { grid-template-columns: 1fr; }
  .log-item { flex-direction: column; gap: 8px; }
  .log-ver { width: auto; }
  .footer-top { flex-direction: column; }
  .section { padding: 48px 0; }
  .section-head h2 { font-size: 24px; }
}
