:root {
  color-scheme: light;
  --ink: #17130f;
  --muted: #675f52;
  --line: #d9cfba;
  --paper: #f7f4ea;
  --panel: #fffdf7;
  --wallpaper: #31562f;
  --wood: #2b211b;
  --checker: #141414;
  --green: #7cff3a;
  --cyan: #48e6ff;
  --pink: #ff4fb8;
  --yellow: #e0ad3f;
  --shadow: 0 18px 55px rgba(43, 33, 27, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(45deg, rgba(49, 86, 47, 0.035) 25%, transparent 25% 75%, rgba(49, 86, 47, 0.035) 75%),
    linear-gradient(45deg, rgba(43, 33, 27, 0.025) 25%, transparent 25% 75%, rgba(43, 33, 27, 0.025) 75%),
    var(--paper);
  background-position: 0 0, 14px 14px, 0 0;
  background-size: 28px 28px, 28px 28px, auto;
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 247, 0.9);
  border-bottom: 1px solid rgba(217, 207, 186, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--green) 0 28%, var(--cyan) 28% 54%, var(--pink) 54% 78%, var(--yellow) 78% 100%);
  box-shadow: 0 6px 18px rgba(255, 79, 184, 0.2), 0 5px 16px rgba(72, 230, 255, 0.18);
}

.site-footer a,
.language-switcher a {
  text-decoration: none;
}

.site-footer a:hover,
.language-switcher a:hover {
  color: var(--wallpaper);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 6px 8px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 8px 22px rgba(43, 33, 27, 0.08);
}

.language-switcher span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.language-switcher a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 9px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(24px, 4vw, 46px) clamp(18px, 4vw, 56px) clamp(18px, 3vw, 32px);
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(49, 86, 47, 0.11), rgba(255, 253, 247, 0.76) 42%, rgba(224, 173, 63, 0.11)),
    var(--paper);
  border-bottom: 1px solid rgba(217, 207, 186, 0.7);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--checker) 0 18px, #fffdf7 18px 36px);
  content: "";
  opacity: 0.16;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--wallpaper);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::after,
.section-kicker::after {
  display: inline-block;
  width: 54px;
  height: 8px;
  margin-left: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--pink), var(--yellow));
  content: "";
  vertical-align: middle;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.7vw, 4.15rem);
  max-width: 880px;
}

.lead {
  max-width: 730px;
  margin: 24px 0 0;
  color: #3c352c;
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.primary-action-zone {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 30px;
}

.primary-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: 0 0 auto;
  min-height: 56px;
  padding: 14px 18px 14px 22px;
  border: 1px solid rgba(23, 19, 15, 0.92);
  border-radius: 8px;
  background: var(--ink);
  color: #fffdf7;
  font-size: 1.04rem;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(43, 33, 27, 0.22);
}

.primary-cta::after {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 253, 247, 0.22);
  border-radius: 7px;
  background: rgba(255, 253, 247, 0.08);
  color: var(--green);
  font-size: 1.05rem;
  line-height: 1;
  content: "\2192";
}

.primary-cta:hover {
  transform: translateY(-1px);
  background: #211a14;
  box-shadow: 0 16px 30px rgba(43, 33, 27, 0.28);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-actions a,
.link-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(43, 33, 27, 0.07);
}

.hero-actions a::before {
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--cyan);
  content: "";
}

.hero-actions a:nth-child(2)::before {
  background: var(--pink);
}

.hero-actions a:nth-child(3)::before {
  background: var(--yellow);
}

.hero-actions a:nth-child(4)::before {
  background: var(--green);
}

.hero-art {
  position: relative;
  z-index: 1;
  margin: 0;
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(43, 33, 27, 0.28);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section {
  position: relative;
  overflow: hidden;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto clamp(34px, 6vw, 74px);
  padding: clamp(26px, 4vw, 44px);
  background: linear-gradient(180deg, var(--panel), #fbf7ed);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(43, 33, 27, 0.07);
}

.section::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--wallpaper), var(--green), var(--cyan), var(--pink), var(--yellow));
  content: "";
}

.section.compact {
  margin-top: 0;
}

.section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
}

.section h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.section p {
  margin: 0 0 16px;
  color: #3c352c;
}

.section p:last-child {
  margin-bottom: 0;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.fact-card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.86);
}

.fact-card::before {
  display: block;
  width: 42px;
  height: 5px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--pink));
  content: "";
}

.fact-card span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  text-transform: uppercase;
}

.fact-card strong {
  display: block;
  margin-top: 7px;
  color: var(--wallpaper);
  font-size: 1.08rem;
}

.fact-card p,
.source-note {
  font-size: 0.95rem;
}

.source-note a {
  color: var(--wallpaper);
  font-weight: 700;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 18px;
}

.screenshot-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: 0 10px 28px rgba(43, 33, 27, 0.08);
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}

.screenshot-card figcaption {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.screenshot-card strong {
  color: var(--wallpaper);
  line-height: 1.25;
}

.screenshot-card span {
  color: #3c352c;
  font-size: 0.94rem;
}

.evidence-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.88);
}

.evidence-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--wallpaper);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.evidence-card h3 {
  margin-bottom: 10px;
}

.evidence-card a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--wallpaper);
  font-weight: 800;
  text-decoration: none;
}

.evidence-card a:hover {
  text-decoration: underline;
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--panel);
}

th,
td {
  padding: 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--wood);
  color: #fff8e8;
  font-size: 0.88rem;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.88);
}

.steps strong {
  color: var(--ink);
}

.steps span {
  color: #3c352c;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.split > div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.88);
}

.check-list {
  margin: 0;
  padding-left: 20px;
  color: #3c352c;
}

.check-list li + li {
  margin-top: 9px;
}

.link-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

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

.faq details p {
  margin-top: 10px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px) 40px;
  color: #efe7d6;
  background:
    repeating-linear-gradient(90deg, rgba(255, 253, 247, 0.05) 0 18px, rgba(20, 20, 20, 0.08) 18px 36px),
    var(--wood);
  border-top: 6px solid var(--wallpaper);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 900px) {
  .site-header {
    align-items: center;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .fact-grid,
  .evidence-grid,
  .screenshot-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .steps li {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  h1 {
    font-size: 2.05rem;
  }

  .lead {
    margin-top: 18px;
    font-size: 1rem;
  }

  .hero {
    gap: 18px;
    padding-top: 24px;
  }

  .primary-action-zone {
    margin-top: 22px;
  }

  .primary-cta {
    min-height: 52px;
    padding: 12px 15px 12px 19px;
  }

  .hero-actions a {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.92rem;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 14px;
  }

  .hero-art img {
    height: 44px;
    object-fit: cover;
  }

  .section {
    width: min(100% - 24px, 1120px);
    padding: 22px;
  }
}
