:root {
  --bg: #fffdf4;
  --surface: #ffffff;
  --surface-warm: #fff8cf;
  --ink: #12131a;
  --muted: #5f5b50;
  --line: #e8dfb8;
  --primary: #b77900;
  --primary-bright: #ffdc17;
  --primary-soft: #fff2a8;
  --secondary: #245df3;
  --secondary-soft: #eaf0ff;
  --accent: #744b43;
  --accent-soft: #f1e2dc;
  --shadow: 0 20px 52px rgba(42, 32, 12, .10);
  --shadow-sm: 0 10px 30px rgba(42, 32, 12, .08);
  --radius: 24px;
  --radius-sm: 16px;
  --header-h: 88px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Poppins", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  line-height: 1.67;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 36px), var(--max)); margin-inline: auto; }
.section { padding: 78px 0; }
.section-tight { padding: 56px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: #7e5600;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 4px; background: var(--secondary); }
h1, h2, h3 { line-height: 1.18; margin: 0 0 16px; letter-spacing: -.018em; }
h1 { font-size: clamp(2.2rem, 4.3vw, 3.65rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.55rem); }
h3 { font-size: clamp(1.04rem, 1.6vw, 1.22rem); }
p { margin: 0 0 17px; color: var(--muted); }
.lead { max-width: 760px; font-size: clamp(1rem, 1.45vw, 1.16rem); }
ul, ol { color: var(--muted); }
li + li { margin-top: 8px; }

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid #26220f;
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-primary, .btn-accent { background: var(--primary-bright); border-color: #26220f; color: #111; }
.btn-primary:hover, .btn-accent:hover { background: #ffe65a; }
.link-arrow { color: #1645bb; font-weight: 800; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.tag {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: #5d5848;
  font-size: .8rem;
  font-weight: 750;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,253,244,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px rgba(34,25,8,.06); }
.header-inner { min-height: var(--header-h); display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; color: var(--ink); font-weight: 900; text-decoration: none; }
.brand img { width: 66px; height: 66px; object-fit: contain; border-radius: 12px; box-shadow: 0 6px 16px rgba(31,24,8,.08); }
.brand span { max-width: 124px; line-height: 1.12; font-size: .94rem; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.site-nav a { color: #403d34; font-size: .88rem; font-weight: 720; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a.active { color: #1c4fcf; }
.site-nav .nav-download { padding: 11px 16px; border: 1px solid #19170f; border-radius: 12px; background: var(--primary-bright); color: #111; font-weight: 850; }
.site-nav .nav-download:hover { color: #111; background: #ffe65a; }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; position: relative; background: var(--ink); content: ""; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  padding: 78px 0 88px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255,253,244,.985) 0%, rgba(255,253,244,.97) 42%, rgba(255,250,221,.83) 64%, rgba(255,246,183,.58) 100%),
    url("../images/hero-bg.webp") center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -42% 42%;
  height: 420px;
  background: radial-gradient(circle, rgba(36,93,243,.16), transparent 64%);
  pointer-events: none;
}
.hero-shell { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .72fr); gap: 42px; align-items: center; }
.hero-copy { max-width: 720px; padding: 28px 0; }
.hero h1 { max-width: 700px; font-size: clamp(2.15rem, 4vw, 3.35rem); }
.hero .accent-word { color: #805800; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-visual-wrap { position: relative; min-height: 420px; }
.hero-visual {
  position: absolute;
  inset: 22px 10px 22px 42px;
  overflow: hidden;
  border: 1px solid rgba(60,48,9,.18);
  border-radius: 28px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.hero-visual img { width: 100%; height: 100%; object-fit: contain; }
.float-card { position: absolute; z-index: 2; max-width: 210px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-sm); color: #393528; font-size: .8rem; font-weight: 800; }
.float-one { top: 0; right: 0; }
.float-two { bottom: 0; left: 0; }
.visual-dots { display: none; }

.about-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 46px; align-items: center; }
.image-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); }
.image-card img { width: 100%; aspect-ratio: 3/2; object-fit: contain; }
.about-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-copy .wide { grid-column: 1 / -1; }
.mini-card { height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.mini-card strong { display: block; margin-bottom: 5px; color: var(--ink); }

.features-head { display: block; margin-bottom: 26px; }
.features-head > div { max-width: 820px; }
.features-head h2 + p { margin-top: 0; max-width: 760px; }
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; }
.feature-card { display: flex; height: 100%; min-width: 0; flex-direction: column; padding: 23px; border: 1px solid var(--line); border-radius: 19px; background: #fff; }
.feature-card:nth-child(2), .feature-card:nth-child(5) { background: var(--secondary-soft); border-color: #cdd9ff; }
.feature-card:nth-child(3), .feature-card:nth-child(6) { background: var(--surface-warm); }
.icon-box { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 20px; border: 1px solid #e0c23d; border-radius: 12px; background: var(--primary-soft); color: #674500; font-weight: 900; }
.feature-card p { margin-bottom: 0; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.step { min-height: 220px; padding: 26px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step-num { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; color: #8a5d00; font-weight: 900; }
.step-num::after { content: ""; width: 38px; height: 2px; background: var(--primary-bright); }

.band { border-block: 1px solid #e7d995; background: #fff7cf; }
.compat-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.compat-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.compat-item { padding: 18px; border: 1px solid #e3d78f; border-radius: 15px; background: rgba(255,255,255,.82); }
.compat-item strong { display: block; color: var(--ink); }
.compat-note { padding: 25px; border: 1px solid #d9cc86; border-radius: 19px; background: #fff; }

.use-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.use-card { padding: 23px; border: 1px solid var(--line); border-top: 4px solid var(--primary-bright); border-radius: 18px; background: #fff; }
.use-card:nth-child(2) { border-top-color: var(--secondary); }
.use-card:nth-child(3) { border-top-color: var(--accent); }

.install-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 38px; align-items: start; }
.checklist { display: grid; gap: 12px; }
.check { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.check b { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 auto; border-radius: 50%; background: var(--primary-bright); color: #111; }

.download-panel { display: grid; grid-template-columns: 1fr .83fr; gap: 30px; align-items: center; padding: 32px; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.download-panel img { width: 100%; aspect-ratio: 3/2; object-fit: contain; border: 1px solid var(--line); border-radius: 20px; background: #fffaf0; }
.download-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.download-note { margin-top: 16px; padding: 13px 15px; border-left: 4px solid var(--secondary); background: var(--secondary-soft); border-radius: 0 12px 12px 0; color: #40485e; font-size: .9rem; }
.safety-box { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 24px; border: 1px solid #e7d175; border-radius: 19px; background: #fff9dc; }
.safety-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary-bright); font-weight: 900; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pc-card, .release-card, .trouble-card { padding: 25px; border: 1px solid var(--line); border-radius: 19px; background: #fff; }
.release-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; }
.release-table { width: 100%; border-collapse: collapse; }
.release-table th, .release-table td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.release-table th { color: #6b6657; font-size: .82rem; }
.troubles-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.guide-card { overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: #fff; }
.guide-card img { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #fffaf0; }
.guide-card .body { padding: 19px; }

.faq-section { padding-bottom: 92px; }
.faq-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.faq-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-tab { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; }
.faq-tab.active { border-color: #1c1a10; background: var(--primary-bright); color: #111; }
.faq-group { display: none; grid-template-columns: 1fr 1fr; gap: 12px; }
.faq-group.active { display: grid; }
.faq-item { align-self: start; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.faq-question { display: flex; width: 100%; justify-content: space-between; gap: 14px; padding: 17px 18px; border: 0; background: transparent; color: var(--ink); text-align: left; font-weight: 780; }
.faq-question span:last-child { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; border: 1px solid #d9c454; border-radius: 50%; background: #fff9d8; }
.faq-answer { padding: 0 18px 18px; }
.faq-answer[hidden] { display: none; }
.faq-answer p { margin: 0; }

.page-hero { padding: 60px 0 54px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #fffdf4 0%, #fff5bc 100%); }
.page-hero .inner { max-width: 900px; }
.page-hero h1 { max-width: 870px; font-size: clamp(2rem, 3.8vw, 3.15rem); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: #736d5d; font-size: .84rem; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--secondary); }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.blog-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.blog-card > img { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #fffaf0; }
.blog-card .body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.blog-card h2 { font-size: 1.18rem; }
.blog-card h2 a { text-decoration: none; }
.blog-card .link-arrow { margin-top: auto; }
.meta-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.content-shell { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; align-items: start; }
.article-card, .sidebar-card, .legal-wrap, .contact-card { border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.article-card { padding: 28px; }
.article-card h2 { margin-top: 32px; font-size: clamp(1.45rem, 2.3vw, 2rem); }
.article-card h3 { margin-top: 24px; }
.post-image { margin: -8px -8px 26px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fffaf0; }
.post-image img { width: 100%; aspect-ratio: 16/9; object-fit: contain; }
.sidebar-card { position: sticky; top: 108px; padding: 20px; }
.sidebar-card a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); color: #3f3b30; text-decoration: none; }
.sidebar-card a:last-child { border-bottom: 0; }
.sidebar-card a:hover { color: var(--secondary); }
.legal-wrap { max-width: 900px; padding: 30px; }
.legal-wrap h2 { margin-top: 30px; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; max-width: 900px; }
.contact-card { padding: 26px; }

.site-footer { padding: 54px 0 22px; border-top: 1px solid #e2d36f; background: #fff4b7; color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.25fr .65fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 14px; font-weight: 900; text-decoration: none; }
.footer-brand img { width: 96px; height: 96px; object-fit: contain; border-radius: 16px; box-shadow: 0 8px 20px rgba(49,35,4,.11); }
.footer-brand span { max-width: 150px; line-height: 1.15; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: #3d392d; text-decoration: none; }
.footer-links a:hover { color: #174bc5; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid #dece77; text-align: center; }
.footer-bottom p { margin: 5px auto; color: #5b5545; }
.footer-bottom a { text-decoration: none; font-weight: 800; }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }
.scroll-top { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 44px; height: 44px; border: 1px solid #1d1a0e; border-radius: 12px; background: var(--primary-bright); color: #111; font-weight: 900; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s; }
.scroll-top.show { opacity: 1; pointer-events: auto; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1040px) {
  .site-nav { gap: 12px; }
  .site-nav a { font-size: .84rem; }
  .hero-shell { grid-template-columns: 1fr .68fr; }
  .features-grid, .blog-grid, .guide-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .troubles-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 78px; }
  .brand img { width: 58px; height: 58px; }
  .brand span { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: calc(100% + 1px); left: 18px; right: 18px; display: none; margin: 0; padding: 15px; flex-direction: column; align-items: stretch; gap: 4px; border: 1px solid var(--line); border-radius: 17px; background: #fffdf4; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 11px; font-size: .93rem; }
  .site-nav .nav-download { text-align: center; }
  .hero { min-height: auto; padding: 56px 0 64px; }
  .hero-shell, .about-grid, .compat-grid, .install-grid, .download-panel, .release-grid, .content-shell { grid-template-columns: 1fr; }
  .hero-copy { max-width: 690px; }
  .hero-visual-wrap { min-height: 340px; max-width: 520px; width: 100%; }
  .hero-visual { inset: 18px 22px 18px 22px; }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .step { border-bottom: 1px solid var(--line); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-last-child(-n+2) { border-bottom: 0; }
  .faq-group.active { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .sidebar-card { position: static; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 26px), var(--max)); }
  .section { padding: 62px 0; }
  .section-tight { padding: 46px 0; }
  h1 { font-size: clamp(2rem, 9vw, 2.75rem); }
  h2 { font-size: clamp(1.5rem, 7vw, 2.05rem); }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero { background-position: 68% center; }
  .hero-shell { gap: 26px; }
  .hero-visual-wrap { min-height: 300px; }
  .float-card { font-size: .73rem; max-width: 170px; }
  .features-head, .about-copy, .features-grid, .compat-list, .use-grid, .proscons, .troubles-grid, .guide-grid, .blog-grid, .contact-cards, .footer-grid { grid-template-columns: 1fr; }
  .about-copy .wide, .footer-grid > div:first-child { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .step:last-child { border-bottom: 0 !important; }
  .step-num { margin-bottom: 18px; }
  .download-panel, .article-card, .legal-wrap { padding: 22px; }
  .faq-head { align-items: flex-start; flex-direction: column; }
  .footer-brand img { width: 86px; height: 86px; }
}
