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

:root {
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --bg: #080f1e;
  --bg2: #0a1628;
  --bg3: #0f1f3d;
  --bg-card: #0e1c38;
  --bg-card-hover: #12243f;
  --border: #1a3257;
  --border-soft: #152a4a;
  --text: #dce6f5;
  --text2: #8fa3c8;
  --text3: #4d6388;
  --accent: #2d6fd4;
  --accent-h: #1b5ab8;
  --accent-glow: rgba(45, 111, 212, 0.3);
  --accent-subtle: rgba(45, 111, 212, 0.12);
  --success: #34d399;
  --success-bg: rgba(52, 211, 153, 0.1);
  --success-border: rgba(52, 211, 153, 0.25);
  --warning: #fbbf24;
  --error: #f87171;
  --error-bg: rgba(248, 113, 113, 0.1);
  --gradient-start: #2d6fd4;
  --gradient-end: #7c3aed;
  --nav-bg: rgba(8, 15, 30, 0.88);
}

[data-theme="light"] {
  --bg: #f4f7fd;
  --bg2: #ffffff;
  --bg3: #e8effa;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f6ff;
  --border: #c8d8ef;
  --border-soft: #dce9f8;
  --text: #0c1a35;
  --text2: #3a5275;
  --text3: #7a93b8;
  --accent: #1a56a8;
  --accent-h: #14478c;
  --accent-glow: rgba(26, 86, 168, 0.2);
  --accent-subtle: rgba(26, 86, 168, 0.08);
  --success: #059669;
  --success-bg: rgba(5, 150, 105, 0.08);
  --success-border: rgba(5, 150, 105, 0.2);
  --warning: #d97706;
  --error: #dc2626;
  --error-bg: rgba(220, 38, 38, 0.08);
  --gradient-start: #1a56a8;
  --gradient-end: #6d28d9;
  --nav-bg: rgba(244, 247, 253, 0.92);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled { border-color: var(--border); box-shadow: 0 4px 24px rgba(0,0,0,0.18); }
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  height: 64px; max-width: 1160px; margin: 0 auto; padding: 0 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo { height: 28px; width: auto; }
.nav-brand-text { display: flex; flex-direction: column; gap: 1px; }
.nav-name { font-size: 1.1rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; line-height: 1.2; }
.nav-tagline { font-size: 0.65rem; color: var(--text3); letter-spacing: 0.02em; line-height: 1; }
.nav-links { display: flex; gap: 28px; flex: 1; }
.nav-links a { font-size: 0.9rem; color: var(--text2); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.theme-toggle-btn {
  background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: 6px; cursor: pointer; color: var(--text2);
  display: flex; align-items: center; transition: border-color 0.2s, color 0.2s;
}
.theme-toggle-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle-btn svg { width: 16px; height: 16px; }

.nav-lang-btn {
  display: none;
  align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px;
  padding: 5px 10px; font-size: 0.78rem; font-weight: 700;
  color: var(--text2); letter-spacing: 0.05em;
  transition: border-color 0.2s, color 0.2s; text-decoration: none;
}
.nav-lang-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.btn-nav {
  background: var(--accent); color: #fff; padding: 8px 18px; border-radius: 8px;
  font-size: 0.875rem; font-weight: 600; transition: background 0.2s, box-shadow 0.2s;
}
.btn-nav:hover { background: var(--accent-h); text-decoration: none; box-shadow: 0 0 20px var(--accent-glow); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; padding: 14px 28px;
  border-radius: 10px; font-weight: 600; font-size: 1rem;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s; text-decoration: none;
}
.btn-primary:hover { background: var(--accent-h); text-decoration: none; box-shadow: 0 4px 28px var(--accent-glow); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text2); border: 1px solid var(--border);
  padding: 14px 28px; border-radius: 10px; font-weight: 500; font-size: 1rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s; text-decoration: none;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-subtle); text-decoration: none; }
.btn-large { font-size: 1.05rem; padding: 15px 32px; }
.btn-icon { width: 20px; height: 20px; }

/* ── HERO ── */
.hero { position: relative; padding: 130px 0 72px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 65%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border-soft) 1px, transparent 1px), linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 60px 60px; opacity: 0.22;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 80%);
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }

/* Cycling rotator */
.hero-rotator {
  position: relative;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.rotator-item {
  position: absolute;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  white-space: nowrap;
}
.rotator-item.active {
  opacity: 1;
  transform: translateY(0);
}
.rotator-item.exit {
  opacity: 0;
  transform: translateY(-10px);
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 900;
  line-height: 1.1; letter-spacing: -0.035em; max-width: 820px; color: var(--text);
}
.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
  font-size: 1.12rem; color: var(--text2); max-width: 600px;
  line-height: 1.72;
}
.hero-subtitle strong { color: var(--text); font-weight: 600; }
.hero-subtitle-contrast {
  display: inline-block; margin-top: 10px;
  font-size: 1rem; font-weight: 700; color: var(--success);
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; align-items: flex-start; }
.hero-cta-btn-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.btn-version { font-family: var(--mono); font-size: 0.7rem; color: var(--text3); letter-spacing: 0.04em; }

/* ── APP PREVIEW ── */
.app-preview {
  margin-top: 44px; width: 100%; max-width: 980px;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 32px 80px rgba(0,0,0,0.45), 0 0 0 1px var(--border-soft);
  background: var(--bg2);
}
.preview-chrome {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: var(--bg3); border-bottom: 1px solid var(--border);
}
.chrome-dots { display: flex; gap: 6px; }
.chrome-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.chrome-dots span:nth-child(1) { background: #ef4444; }
.chrome-dots span:nth-child(2) { background: #f59e0b; }
.chrome-dots span:nth-child(3) { background: #22c55e; }
.chrome-title { font-size: 0.75rem; color: var(--text3); font-family: var(--mono); flex: 1; }
.chrome-offline-badge {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.68rem; font-weight: 600; color: var(--success);
  background: var(--success-bg); border: 1px solid var(--success-border);
  padding: 3px 9px; border-radius: 100px;
}
.chrome-offline-badge svg { width: 11px; height: 11px; }

.app-screenshot-img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* ── HERO SLIDESHOW ── */
.slideshow-wrap {
  position: relative;
}
.slideshow {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0f;
  line-height: 0;
}
.slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: zoom-in;
}
.slideshow .slide.active {
  opacity: 1;
  position: relative;
  height: auto;
}
.slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 0;
}
.sdot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.sdot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ── SECTIONS ── */
.section { padding: 100px 0; }
.section-alt { background: var(--bg2); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 14px; }
.section-header p { color: var(--text2); font-size: 1.05rem; line-height: 1.7; }
.section-eyebrow { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 10px; }

/* ── COMPARISON TABLE ── */
.compare-table {
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  margin-bottom: 24px;
}
.compare-head {
  display: grid; grid-template-columns: 160px 1fr 1fr;
  background: var(--bg3); border-bottom: 2px solid var(--border);
  padding: 20px 24px; gap: 0; align-items: center;
}
.compare-tool { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 12px; }
.compare-tool.tarcite { position: relative; }
.tool-logo { height: 32px; width: auto; }
.tool-name { font-weight: 700; font-size: 0.95rem; }
.tool-sub { font-size: 0.72rem; color: var(--text3); }
.compare-tool.other .tool-name { color: var(--text2); }
.compare-tool.tarcite .tool-name { color: var(--accent); }

.compare-row {
  display: grid; grid-template-columns: 160px 1fr 1fr;
  border-bottom: 1px solid var(--border-soft); align-items: stretch;
}
.compare-row:last-child { border-bottom: none; }
.compare-label {
  padding: 16px 24px; font-size: 0.875rem; font-weight: 500;
  color: var(--text2); display: flex; align-items: center;
  border-right: 1px solid var(--border-soft);
}
.compare-cell {
  padding: 16px 20px; font-size: 0.82rem; display: flex; align-items: center;
  gap: 8px; color: var(--text2); border-right: 1px solid var(--border-soft);
}
.compare-cell:last-child { border-right: none; }
.compare-cell.tarcite { background: var(--accent-subtle); }

.cx {
  font-size: 0.9rem; font-weight: 800; flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
}
.cx.good { background: var(--success-bg); color: var(--success); border: 1.5px solid var(--success-border); }
.cx.bad { background: var(--error-bg); color: var(--error); border: 1.5px solid rgba(248,113,113,0.3); }
.cx.mid { background: rgba(251,191,36,0.1); color: var(--warning); border: 1.5px solid rgba(251,191,36,0.3); }

.compare-note {
  text-align: center; font-size: 0.875rem; color: var(--text3);
  max-width: 580px; margin: 0 auto; line-height: 1.65;
}

/* ── OFFLINE AI SECTION ── */
.offline-ai-layout {
  display: grid; grid-template-columns: 1fr 460px; gap: 72px; align-items: start;
}
.oai-claim { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border-soft); }
.oai-claim:last-child { border-bottom: none; }
.oai-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-subtle); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.oai-icon svg { width: 20px; height: 20px; stroke: var(--accent); }
.oai-claim h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 5px; }
.oai-claim p { font-size: 0.875rem; color: var(--text2); line-height: 1.65; }

.pipeline-visual {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 8px;
}
.pv-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text3); margin-bottom: 8px; }
.pv-step {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border-radius: 10px; border: 1px solid var(--border-soft);
}
.pv-step.local-step { background: rgba(52, 211, 153, 0.04); border-color: rgba(52, 211, 153, 0.15); }
.pv-step.optional-step { background: var(--accent-subtle); border-color: var(--border); }
.pv-icon { font-size: 1.1rem; flex-shrink: 0; width: 28px; text-align: center; }
.pv-content { flex: 1; }
.pv-name { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.pv-desc { font-size: 0.72rem; color: var(--text2); line-height: 1.45; margin-top: 2px; }
.pv-tag {
  flex-shrink: 0; font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 3px 8px; border-radius: 100px;
  background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border);
}
.pv-tag.optional { background: var(--accent-subtle); color: var(--accent); border-color: var(--accent); }
.pv-note {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 8px;
  padding: 10px 12px; border-radius: 8px; background: var(--bg3);
  font-size: 0.75rem; color: var(--text2); line-height: 1.5;
  border: 1px solid var(--border-soft);
}
.pv-note svg { width: 14px; height: 14px; stroke: var(--accent); flex-shrink: 0; margin-top: 1px; }

/* ── OWNERSHIP BANNER ── */
.ownership-banner {
  background: var(--bg3); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.ownership-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.ownership-stat { text-align: center; padding: 16px 48px; }
.os-number {
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.os-label { font-size: 0.85rem; color: var(--text2); margin-top: 6px; max-width: 140px; margin-left: auto; margin-right: auto; line-height: 1.4; }
.os-number.free-forever {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.ownership-divider { width: 1px; height: 64px; background: var(--border); }

/* ── FEATURES ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 26px; transition: border-color 0.2s, background 0.2s, transform 0.2s; position: relative;
}
.feature-card:hover { border-color: var(--accent); background: var(--bg-card-hover); transform: translateY(-2px); }
.feature-card-highlight { border-color: rgba(52, 211, 153, 0.25); background: rgba(52, 211, 153, 0.03); }
.feature-card-highlight:hover { border-color: var(--success); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--accent-subtle);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-card-highlight .feature-icon { background: var(--success-bg); border-color: var(--success-border); }
.feature-card-highlight .feature-icon svg { stroke: var(--success); }
.feature-icon svg { width: 20px; height: 20px; stroke: var(--accent); }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.feature-card p { font-size: 0.875rem; color: var(--text2); line-height: 1.65; }
.features-chips-strip {
  margin-top: 20px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.fstrip-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.fstrip-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  margin-right: 4px;
  white-space: nowrap;
}
.fstrip-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}
.fchip {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  white-space: nowrap;
}

.feature-learn-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s;
  gap: 4px;
}
.feature-learn-btn:hover { text-decoration: none; gap: 8px; }

.feature-tag {
  margin-top: 14px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--success); display: inline-block;
}

/* ── AI PROFILES ── */
.profiles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.profile-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px; transition: border-color 0.2s, transform 0.2s;
}
.profile-card:hover { transform: translateY(-2px); }
.profile-card.featured { border-color: var(--accent); box-shadow: 0 0 30px var(--accent-glow); }
.profile-badge {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: 100px; display: inline-block; margin-bottom: 14px;
}
.profile-badge.local { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.profile-badge.default { background: var(--accent-subtle); color: var(--accent); border: 1px solid var(--accent); }
.profile-badge.premium { background: rgba(167,139,250,0.1); color: #a78bfa; border: 1px solid rgba(167,139,250,0.3); }
.profile-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.profile-model { font-size: 0.75rem; font-family: var(--mono); color: var(--text3); margin-bottom: 14px; }
.profile-card p { font-size: 0.9rem; color: var(--text2); line-height: 1.65; }

/* ── COMPLIANCE SECTION ── */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.compliance-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
}
.compliance-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.compliance-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.compliance-icon svg { width: 20px; height: 20px; stroke: var(--accent); }
.compliance-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); }
.compliance-card p { font-size: 0.875rem; color: var(--text2); line-height: 1.7; }
.compliance-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.6;
  font-style: italic;
}
.compliance-note svg { width: 16px; height: 16px; stroke: var(--accent); flex-shrink: 0; margin-top: 2px; }

@media (max-width: 700px) {
  .compliance-grid { grid-template-columns: 1fr; }
}

/* ── ANALYSIS SECTION ── */
.analysis-charts-grid {
  overflow: hidden;
  margin-bottom: 24px;
}
.analysis-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: analysis-scroll 45s linear infinite;
}
.analysis-charts-grid:hover .analysis-track {
  animation-play-state: paused;
}
@keyframes analysis-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.analysis-chip-card {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, transform 0.2s;
}
.analysis-chip-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.ac-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ac-icon svg { width: 16px; height: 16px; stroke: var(--accent); }
.ac-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.ac-desc {
  font-size: 0.78rem;
  color: var(--text2);
  line-height: 1.55;
}
.analysis-footer-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text3);
  padding: 16px 24px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--bg-card);
  max-width: 600px;
  margin: 0 auto;
}


/* ── TARSIUS SECTION ── */
.tarsius-section { background: var(--bg2); overflow: hidden; }
.tarsius-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
  align-items: center;
}
.tarsius-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.tarsius-img {
  width: 260px;
  height: auto;
  border-radius: 16px;
  object-fit: contain;
}
.tarsius-version {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text3);
  letter-spacing: 0.06em;
  text-align: center;
}

.tarsius-text h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.tarsius-text p {
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 14px;
}
.tarsius-text strong { color: var(--text); }


@media (max-width: 900px) {
  .tarsius-inner { grid-template-columns: 1fr; gap: 48px; }
  .tarsius-visual { flex-direction: row; justify-content: flex-start; }
}

/* ── DOWNLOAD ── */
.download-version-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text3);
  letter-spacing: 0.05em;
  margin-top: 8px;
}
.download-grid { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin: 0 auto 40px; }
.download-row {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  display: flex; flex-direction: row; align-items: flex-start; gap: 14px; padding: 14px 16px;
  transition: border-color 0.2s;
}
.download-row:hover { border-color: var(--accent); }
.platform-icon {
  width: 38px; height: 38px; border-radius: 9px; background: var(--bg3);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.platform-icon svg { width: 20px; height: 20px; fill: var(--text2); }
.download-row-body { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.download-row-copy { display: flex; flex-direction: column; gap: 2px; }
.download-row-title { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.platform-req { font-size: 0.76rem; color: var(--text3); line-height: 1.4; }
.download-actions { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.download-btn-group { display: flex; flex-direction: column; gap: 4px; }
.btn-download {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; padding: 11px 20px; border-radius: 10px;
  font-weight: 600; font-size: 0.9rem; transition: background 0.2s, box-shadow 0.2s;
  text-decoration: none; justify-content: center; min-height: 42px; white-space: nowrap;
}
.btn-download:hover { background: var(--accent-h); box-shadow: 0 4px 20px var(--accent-glow); text-decoration: none; }
.btn-download svg { width: 16px; height: 16px; }
.btn-download-secondary { background: transparent; color: var(--text2); border: 1px solid var(--border); }
.btn-download-secondary:hover { background: var(--bg3); box-shadow: none; color: var(--text); }
.btn-download-disabled,
.btn-download-disabled:hover {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text3);
  cursor: not-allowed;
  box-shadow: none;
}
.download-note { font-size: 0.75rem; color: var(--text3); font-family: var(--mono); }
.download-checksum { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px; align-items: baseline; font-family: var(--mono); font-size: 0.68rem; color: var(--text3); max-width: min(520px, calc(100vw - 96px)); }
.download-checksum span { color: var(--text4); }
.download-checksum code { color: var(--text2); word-break: break-all; overflow-wrap: anywhere; line-height: 1.45; }
.btn-size { font-size: 0.72rem; opacity: 0.75; margin-left: 6px; font-family: var(--mono); font-weight: 400; }
.dl-count { font-size: 0.75rem; color: var(--text3); font-family: var(--mono); min-height: 1em; }
.download-extra { max-width: 700px; margin: 0 auto; }
.req-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 24px 28px; }
.req-card h4 { font-size: 0.8rem; font-weight: 700; margin-bottom: 12px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.05em; }
.req-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.req-card li { font-size: 0.875rem; color: var(--text2); padding-left: 16px; position: relative; line-height: 1.5; }
.req-card li::before { content: '·'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.req-card a { color: var(--accent); }
.req-card code { font-family: var(--mono); font-size: 0.85em; background: var(--bg3); padding: 1px 5px; border-radius: 4px; }

/* ── QUICK START STEPS ── */
.quickstart-section { background: var(--bg2); }
.qs-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 0;
  row-gap: 0;
  max-width: 920px;
  margin: 0 auto;
}
.qs-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 18px;
}
/* connector lines between circles — half drawn by each adjacent step */
.qs-step:not(:first-child)::before {
  content: '';
  position: absolute;
  top: 47px;
  left: 0;
  width: calc(50% - 36px);
  height: 2px;
  background: var(--border);
}
.qs-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 47px;
  right: 0;
  width: calc(50% - 36px);
  height: 2px;
  background: var(--border);
}
.qs-circle-wrap {
  position: relative;
  padding-top: 11px;
  margin-bottom: 20px;
  z-index: 1;
}
.qs-num {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.qs-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.qs-step:hover .qs-circle {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-3px);
}
.qs-circle svg { width: 26px; height: 26px; stroke: var(--accent); }
.qs-circle-final { border-color: rgba(52, 211, 153, 0.3); }
.qs-circle-final svg { stroke: var(--success); }
.qs-step:hover .qs-circle-final {
  border-color: var(--success);
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.2);
}
.qs-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.qs-desc {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.65;
  max-width: 190px;
}
@media (max-width: 760px) {
  .qs-steps { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .qs-step::before, .qs-step::after { display: none; }
  .qs-desc { max-width: 170px; }
}
@media (max-width: 480px) {
  .qs-steps { grid-template-columns: 1fr; gap: 32px; }
  .qs-desc { max-width: none; }
}

/* ── NEWSLETTER ── */
.newsletter-section { padding: 80px 0; }
.newsletter-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.newsletter-title { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 14px; }
.newsletter-sub { color: var(--text2); font-size: 1rem; line-height: 1.6; margin-bottom: 32px; }
.newsletter-form { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.newsletter-pill { display: flex; gap: 10px; width: 100%; max-width: 460px; }
.newsletter-pill input[type="email"] {
  flex: 1; min-width: 0;
  display: inline-flex; align-items: center;
  background: transparent; color: var(--text2);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 18px; font: inherit; font-size: 1rem; font-weight: 500;
  outline: none; transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.newsletter-pill input[type="email"]::placeholder { color: var(--text3); }
.newsletter-pill input[type="email"]:focus {
  border-color: var(--accent); color: var(--text); background: var(--accent-subtle);
}
.newsletter-pill-btn {
  flex-shrink: 0; background: var(--accent); color: #fff; border: none;
  padding: 14px 24px; border-radius: 10px;
  font: inherit; font-size: 1rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}
.newsletter-pill-btn:hover { background: var(--accent-h); box-shadow: 0 4px 28px var(--accent-glow); transform: translateY(-1px); }
.newsletter-pill-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.newsletter-msg { font-size: 0.875rem; min-height: 1.3em; }
.newsletter-msg.ok { color: #34d399; }
.newsletter-msg.err { color: #f87171; }
@media (max-width: 500px) {
  .newsletter-pill { flex-direction: column; }
  .newsletter-pill-btn { width: 100%; justify-content: center; }
}

/* ── FOOTER ── */
.footer { border-top: 1px solid #1a3257; padding: 48px 0; background: #080f1e; }
.footer-inner { display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { height: 32px; width: auto; }
.footer-name { font-weight: 700; font-size: 1rem; color: #dce6f5; }
.footer-tagline { font-size: 0.78rem; color: #4d6388; }
.footer-links { display: flex; gap: 28px; align-items: center; }
.footer-links a { font-size: 0.875rem; color: #8fa3c8; transition: color 0.2s; }
.footer-links a:hover { color: #2d6fd4; text-decoration: none; }
.footer-copy { display: flex; gap: 16px; align-items: center; font-size: 0.78rem; color: #4d6388; }
.version-tag { font-family: var(--mono); background: #0f1f3d; padding: 2px 8px; border-radius: 4px; border: 1px solid #1a3257; color: #4d6388; }

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  .compare-head, .compare-row { grid-template-columns: 130px 1fr 1fr; }
  .offline-ai-layout { grid-template-columns: 1fr; gap: 48px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .profiles-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-lang-btn { display: flex; }
  .compare-head, .compare-row { grid-template-columns: 110px 1fr 1fr; }
  .compare-label, .compare-cell { padding: 12px; font-size: 0.78rem; }
  .ownership-inner { gap: 0; }
  .ownership-stat { padding: 12px 24px; }
  .ownership-divider { display: none; }
}
@media (max-width: 640px) {
  .nav-actions { margin-left: auto; }
  .hero { padding: 110px 0 56px; }
  .btn-ghost { display: none; }
  .btn-nav { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .download-grid { max-width: 100%; }
  .compare-head { display: flex; padding: 10px 12px; }
  .compare-feature-col { display: none; }
  .compare-tool { flex: 1; padding: 0 4px; }
  .compare-row { display: grid; grid-template-columns: 1fr 1fr; }
  .compare-label { grid-column: 1 / -1; display: flex; align-items: center; padding: 8px 12px 4px; border-right: none; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; color: var(--text3); background: var(--bg3); }
  .compare-cell { padding: 8px 10px; border-right: none; font-size: 0.78rem; }
  .btn-download { min-width: 0; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

/* ── SCREENSHOT GALLERY ── */
.gallery-section { background: var(--bg2); }

.gallery-tabs {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 36px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
  margin-inline: auto;
  margin-bottom: 36px;
}
.gtab {
  padding: 9px 28px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text2);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.gtab.active {
  background: var(--accent);
  color: #fff;
}
.gtab:not(.active):hover { background: var(--bg); color: var(--text); }

.gallery-panel { display: none; }
.gallery-panel.active { display: block; }

.gallery-grid {
  overflow: hidden;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.gallery-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: gallery-scroll linear infinite;
  animation-duration: 40s; /* overridden per-track by JS */
}

@keyframes gallery-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--scroll-dist, 50%))); }
}

.gthumb {
  position: relative;
  flex: 0 0 320px;
  border-radius: 10px;
  overflow: hidden;
  background: #060c18;
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.gthumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  border-color: var(--accent);
}
.gthumb img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: opacity 0.2s;
}
.gthumb:hover img { opacity: 0.88; }

.gthumb-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 12px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s;
}
.gthumb:hover .gthumb-caption { opacity: 1; }

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.93);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }

.lb-stage {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lb-stage img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
  display: block;
}
.lb-caption {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  text-align: center;
}

.lb-close {
  position: fixed;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  line-height: 1;
  transition: opacity 0.15s;
  z-index: 10000;
}
.lb-close:hover { opacity: 1; }

.lb-nav {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.4rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
  z-index: 10000;
}
.lb-nav:hover { background: rgba(255,255,255,0.2); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

@media (max-width: 560px) {
  .lb-nav { display: none; }
}
