/* ============================================================
   Chrome Safe Download Hub — Clean Minimal
   White + Chrome blue (#1a73e8)
   ============================================================ */

:root {
  --c-primary: #1a73e8;
  --c-primary-dark: #1558b0;
  --c-primary-light: #e8f0fe;
  --c-accent: #34a853;
  --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.12);
  --container: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, "Segoe UI", 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: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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.97);
  border-bottom: 1px solid var(--c-border);
  backdrop-filter: saturate(160%) blur(8px);
}

.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: 17px;
  font-weight: 650;
  color: var(--c-text);
  text-decoration: none;
}

.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex-shrink: 0; }
.brand b { color: var(--c-primary); font-weight: 700; }

.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);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-list a:hover {
  background: var(--c-primary-light);
  color: var(--c-primary);
  text-decoration: none;
}

.nav-list a.active {
  background: var(--c-primary-light);
  color: var(--c-primary);
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.7; cursor: wait; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--shadow-s);
}

.btn-primary:hover {
  background: var(--c-primary-dark);
  box-shadow: var(--shadow-m);
}

.btn-outline {
  background: #fff;
  color: var(--c-primary);
  border-color: #c5d8f7;
}

.btn-outline:hover {
  background: var(--c-primary-light);
  border-color: var(--c-primary);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 64px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(26, 115, 232, 0.10), transparent 70%),
    var(--c-bg);
}

.hero h1 {
  max-width: 780px;
  margin: 0 auto 18px;
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--c-text);
}

.hero h1 span { color: var(--c-primary); }

.hero .lead {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 17px;
  color: var(--c-text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: center;
  font-size: 14px;
  color: var(--c-text-soft);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta svg {
  width: 16px;
  height: 16px;
  color: var(--c-accent);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: var(--radius);
  background: var(--c-primary-light);
  color: var(--c-primary);
  font-size: 13px;
  font-weight: 600;
}

.hero-badge svg { width: 14px; height: 14px; }

/* Download page primary zone */
.download-hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(26, 115, 232, 0.09), transparent 65%),
    var(--c-bg);
  text-align: center;
}

.download-hero h1 {
  max-width: 720px;
  margin: 0 auto 14px;
  font-size: clamp(26px, 3.8vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.download-hero .lead {
  max-width: 600px;
  margin: 0 auto 28px;
  font-size: 16px;
  color: var(--c-text-soft);
}

.download-primary {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-m);
  text-align: center;
}

.download-primary .os-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  color: var(--c-primary);
}

.download-primary h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.download-primary p {
  font-size: 14px;
  color: var(--c-text-soft);
  margin-bottom: 20px;
}

.download-primary .file-meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--c-text-soft);
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}

.section-soft { background: var(--c-bg-soft); }

.section-head {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-primary);
}

.section-head h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.section-head p {
  font-size: 16px;
  color: var(--c-text-soft);
}

/* ---------- Feature grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-m);
  border-color: #c5d8f7;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 650;
  margin: 14px 0 8px;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--c-text-soft);
}

.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--c-primary-light);
  color: var(--c-primary);
}

.icon-badge svg { width: 22px; height: 22px; }

/* ---------- Platform cards ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.platform-card {
  padding: 24px 18px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.platform-card .icon-badge { margin-bottom: 4px; }

.platform-card h3 {
  font-size: 16px;
  font-weight: 650;
}

.platform-card p {
  font-size: 13.5px;
  color: var(--c-text-soft);
  flex: 1;
  margin-bottom: 6px;
}

.platform-card .btn { width: 100%; font-size: 13.5px; padding: 10px 12px; }

/* ---------- Deep features ---------- */
.deep-list {
  display: grid;
  gap: 20px;
}

.deep-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
}

.deep-item h3 {
  font-size: 18px;
  font-weight: 650;
  margin-bottom: 8px;
}

.deep-item p {
  font-size: 15px;
  color: var(--c-text-soft);
}

.deep-item .icon-badge {
  width: 56px;
  height: 56px;
}

.deep-item .icon-badge svg { width: 26px; height: 26px; }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  padding: 28px 20px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
}

.stat-card .num {
  font-size: 32px;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat-card .label {
  margin-top: 6px;
  font-size: 14px;
  color: var(--c-text-soft);
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.review-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
}

.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 12px;
  color: #f9ab00;
}

.review-stars svg { width: 16px; height: 16px; }

.review-card p {
  font-size: 14.5px;
  color: var(--c-text-soft);
  margin-bottom: 16px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-primary-light);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.review-author strong {
  display: block;
  font-size: 14px;
}

.review-author span {
  font-size: 12.5px;
  color: var(--c-text-soft);
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
}

th {
  background: var(--c-bg-soft);
  font-weight: 650;
  color: var(--c-text);
  white-space: nowrap;
}

tr:last-child td { border-bottom: none; }

td { color: var(--c-text-soft); }

td.yes { color: var(--c-accent); font-weight: 600; }
td.no { color: #9aa0a6; }

.check-icon, .cross-icon {
  display: inline-flex;
  vertical-align: middle;
}

.check-icon svg { width: 18px; height: 18px; color: var(--c-accent); }
.cross-icon svg { width: 18px; height: 18px; color: #9aa0a6; }

/* ---------- Use cases ---------- */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.usecase-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
}

.usecase-card h3 {
  font-size: 17px;
  margin: 12px 0 8px;
}

.usecase-card p {
  font-size: 14.5px;
  color: var(--c-text-soft);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  margin-bottom: 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-s);
  overflow: hidden;
}

.faq-item details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-item details summary::-webkit-details-marker { display: none; }

.faq-item details summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--c-text-soft);
  border-bottom: 2px solid var(--c-text-soft);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq-item details .faq-body {
  padding: 0 20px 18px;
  font-size: 14.5px;
  color: var(--c-text-soft);
}

/* CSS-only accordion (checkbox) for download page */
.accordion { max-width: 800px; margin: 0 auto; }

.accordion-item {
  margin-bottom: 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-s);
  overflow: hidden;
}

.accordion-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.accordion-item label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.accordion-item label::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--c-text-soft);
  border-bottom: 2px solid var(--c-text-soft);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.accordion-item input:checked + label::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item input:checked ~ .accordion-panel {
  max-height: 320px;
}

.accordion-panel-inner {
  padding: 0 20px 18px;
  font-size: 14.5px;
  color: var(--c-text-soft);
}

/* ---------- Steps / Install guide ---------- */
.steps {
  max-width: 720px;
  margin: 0 auto;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 0 0 28px 56px;
  border-left: 2px solid var(--c-border);
  margin-left: 18px;
}

.step:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.step::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;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px #fff;
}

.step h3 {
  font-size: 17px;
  margin-bottom: 6px;
  padding-top: 6px;
}

.step p {
  font-size: 14.5px;
  color: var(--c-text-soft);
}

/* ---------- Changelog ---------- */
.changelog {
  max-width: 800px;
  margin: 0 auto;
}

.changelog-item {
  padding: 22px 24px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
}

.changelog-item .version-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 10px;
}

.changelog-item .version {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-primary);
}

.changelog-item .date {
  font-size: 13px;
  color: var(--c-text-soft);
}

.changelog-item .tag {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--c-primary-light);
  color: var(--c-primary);
}

.changelog-item ul {
  padding-left: 18px;
  list-style: disc;
}

.changelog-item li {
  font-size: 14.5px;
  color: var(--c-text-soft);
  margin-bottom: 4px;
}

/* ---------- Notice box ---------- */
.notice-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 28px;
  background: var(--c-primary-light);
  border: 1px solid #c5d8f7;
  border-radius: var(--radius);
}

.notice-box h2 {
  font-size: 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice-box h2 svg {
  width: 22px;
  height: 22px;
  color: var(--c-primary);
}

.notice-box p {
  font-size: 14.5px;
  color: var(--c-text-soft);
  margin-bottom: 8px;
}

.notice-box p:last-child { margin-bottom: 0; }

/* ---------- Guide (long-form) ---------- */
.guide-hero {
  padding: 56px 0 40px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(26, 115, 232, 0.08), transparent 65%),
    var(--c-bg);
}

.guide-hero h1 {
  max-width: 760px;
  margin: 0 auto 14px;
  font-size: clamp(26px, 3.8vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.guide-hero .lead {
  max-width: 620px;
  margin: 0 auto;
  font-size: 16px;
  color: var(--c-text-soft);
}

.guide-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  padding: 48px 0 64px;
}

.guide-toc {
  position: sticky;
  top: 88px;
  padding: 20px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

.guide-toc h2 {
  font-size: 13px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-primary);
  margin-bottom: 12px;
}

.guide-toc a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--c-text-soft);
  text-decoration: none;
}

.guide-toc a:hover { color: var(--c-primary); }

.guide-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 14px;
  padding-top: 8px;
  letter-spacing: -0.015em;
}

.guide-content h2:first-child { margin-top: 0; }

.guide-content h3 {
  font-size: 18px;
  font-weight: 650;
  margin: 24px 0 10px;
}

.guide-content p {
  font-size: 15.5px;
  color: var(--c-text-soft);
  margin-bottom: 14px;
}

.guide-content ul, .guide-content ol {
  margin: 0 0 16px 20px;
  list-style: disc;
}

.guide-content ol { list-style: decimal; }

.guide-content li {
  font-size: 15px;
  color: var(--c-text-soft);
  margin-bottom: 6px;
}

.guide-content .tip {
  padding: 16px 18px;
  margin: 18px 0;
  background: var(--c-primary-light);
  border-left: 3px solid var(--c-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14.5px;
  color: var(--c-text);
}

.guide-cta {
  margin-top: 40px;
  padding: 28px;
  text-align: center;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

.guide-cta h2 {
  font-size: 20px;
  margin: 0 0 8px;
}

.guide-cta p {
  margin-bottom: 18px;
}

kbd {
  display: inline-block;
  padding: 2px 7px;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 12.5px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  box-shadow: 0 1px 0 var(--c-border);
  color: var(--c-text);
}

/* ---------- Soft note / notes section ---------- */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.note-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
}

.note-card h3 {
  font-size: 17px;
  margin: 12px 0 8px;
}

.note-card p {
  font-size: 14.5px;
  color: var(--c-text-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0 32px;
  background: var(--c-bg-soft);
  border-top: 1px solid var(--c-border);
}

.footer-security {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 20px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--c-text-soft);
}

.footer-security svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--c-accent);
  margin-top: 2px;
}

.footer-copy {
  text-align: center;
  font-size: 13px;
  color: var(--c-text-soft);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- Spin animation (used by download.js) ---------- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .platform-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; }
}

@media (max-width: 768px) {
  .nav-list a { padding: 7px 10px; font-size: 14px; }
  .brand span { font-size: 15px; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 48px 0; }
  .platform-grid,
  .grid-3,
  .grid-2,
  .reviews-grid,
  .usecase-grid,
  .notes-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .deep-item {
    grid-template-columns: 1fr;
  }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .nav-wrap { height: auto; padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
  .nav-list { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
}
