:root {
  --red: #cc0000;
  --red-dark: #990000;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --paper: #faf8f5;
  --card: #ffffff;
  --line: #e8e4df;
  --shadow: 0 12px 40px rgba(26, 26, 26, 0.08);
  --radius: 14px;
  --max: 1120px;
}

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.logo span { color: var(--red); }

nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

nav a.active { color: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }

.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--line);
}

main { max-width: var(--max); margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0 3rem;
}

.hero-badge {
  display: inline-block;
  background: #ffe5e5;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 1.5rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-card {
  background: linear-gradient(145deg, #fff 0%, #fff5f5 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-card h3 { margin-bottom: 0.75rem; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.stat {
  background: #fff;
  border-radius: 10px;
  padding: 0.85rem;
  border: 1px solid var(--line);
}

.stat strong { display: block; font-size: 1.35rem; color: var(--red); }

.section-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 1.75rem;
  max-width: 42rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 2rem 0 3rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffe5e5;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.feature-card h3 { margin-bottom: 0.35rem; font-size: 1.05rem; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

.tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tab-pill {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.download-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.download-card img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  margin-bottom: 1rem;
}

.download-card h3 { margin-bottom: 0.35rem; }
.download-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1rem; }

.content-page h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.content-page .updated { color: var(--muted); margin-bottom: 2rem; }
.content-page h2 { margin: 1.75rem 0 0.75rem; font-size: 1.25rem; }
.content-page p, .content-page li { color: #333; margin-bottom: 0.75rem; }
.content-page ul { padding-left: 1.25rem; margin-bottom: 1rem; }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
}

.faq summary { cursor: pointer; font-weight: 700; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 2rem 1.5rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  nav ul { gap: 0.75rem; }
}
