:root {
  --parchment-light: #f5e6c8;
  --parchment-mid: #e8d5a3;
  --parchment-dark: #d4b483;
  --crimson-banner: #8b1a1a;
  --crimson-light: #a0291a;
  --crimson-shadow: #5a0e0e;
  --wood-dark: #2a1508;
  --wood-mid: #3d2010;
  --gold-accent: #c8960c;
  --gold-light: #d4a017;
  --ink-dark: #2c1810;
  --ink-mid: #5c3820;
  --cream-border: #8b6914;

  --font-heading: 'Cinzel', Georgia, serif;
  --font-body: Georgia, 'Palatino Linotype', serif;

  --grad-parchment: radial-gradient(ellipse 90% 80% at 50% 38%,
      #f5e6c8 0%,
      #e8d5a3 52%,
      #c6a46e 100%);
  --grad-crimson: linear-gradient(180deg, #a0291a, #8b1a1a);
  --shadow-card:
    inset 0 0 20px rgba(44, 24, 16, 0.1), 2px 4px 8px rgba(42, 21, 8, 0.4);
  --shadow-btn-primary: 0 3px 0 #5a0e0e, 0 5px 10px rgba(42, 21, 8, 0.4);

  --radius-sm: 4px;
  --radius-md: 5px;
  --radius-lg: 6px;
  --radius-pill: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  /* gap: 4rem; */
  /* padding: 3rem 1.5rem 4rem; */
  gap: 1rem;
  padding: 1rem;
  background: var(--grad-parchment);
  font-family: var(--font-body);
  color: var(--ink-dark);
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 180px 40px rgba(42, 21, 8, 0.4);
  z-index: 2;
}

section {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Hero ---------- */

.hero {
  /* gap: 2rem; */
  flex: 1;
  justify-content: space-between;
  /* padding-bottom: 4rem; */
}

.hero-content {
  flex: 1;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.banner-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 2rem;
}

.banner {
  position: relative;
  width: fit-content;
  max-width: 100%;
  filter: drop-shadow(0 4px 6px rgba(42, 21, 8, 0.5));
}

.banner::before,
.banner::after {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 26px;
  background: var(--crimson-shadow);
}

.banner::before {
  left: -18px;
  clip-path: polygon(0 50%, 100% 0, 60% 50%, 100% 100%);
}

.banner::after {
  right: -18px;
  clip-path: polygon(100% 50%, 0 0, 40% 50%, 0 100%);
}

.banner-body {
  position: relative;
  background: var(--grad-crimson);
  border: 2px solid var(--gold-accent);
  border-radius: var(--radius-sm);
  padding: 11px 60px;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--parchment-light);
  text-transform: uppercase;
  font-size: 28px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow:
    inset 0 2px 4px rgba(255, 220, 160, 0.2),
    inset 0 -3px 6px rgba(0, 0, 0, 0.35);
  z-index: 10;
  text-align: center;
}

.tagline {
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-mid);
  max-width: 520px;
  margin-top: 4rem;
}

.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-top: 4rem;
}

.tile {
  display: flex;
  align-items: center;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border-radius: 40px;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.tile:active {
  transform: translateY(2px);
}

.tile-icon {
  font-size: 33px;
  line-height: 1;
}

.tile-play {
  color: var(--parchment-light);
  background: var(--grad-crimson);
  border: 2px solid var(--gold-accent);
  box-shadow: var(--shadow-btn-primary);
}

.tile-wiki {
  color: var(--ink-dark);
  background: linear-gradient(180deg, #f7eacb, #ebd9ac);
  border: 2px solid var(--cream-border);
  box-shadow: var(--shadow-card);
}

/* ---------- Section headings (small ribbon) ---------- */

.section-heading-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.section-heading {
  position: relative;
  width: fit-content;
  max-width: 100%;
  filter: drop-shadow(0 3px 5px rgba(42, 21, 8, 0.45));
}

.section-heading::before,
.section-heading::after {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  width: 18px;
  background: var(--crimson-shadow);
}

.section-heading::before {
  left: -12px;
  clip-path: polygon(0 50%, 100% 0, 60% 50%, 100% 100%);
}

.section-heading::after {
  right: -12px;
  clip-path: polygon(100% 50%, 0 0, 40% 50%, 0 100%);
}

.section-heading-body {
  position: relative;
  background: var(--grad-crimson);
  border: 2px solid var(--gold-accent);
  border-radius: var(--radius-sm);
  padding: 8px 36px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--parchment-light);
  text-transform: uppercase;
  font-size: 18px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow:
    inset 0 2px 4px rgba(255, 220, 160, 0.2),
    inset 0 -3px 6px rgba(0, 0, 0, 0.35);
  z-index: 99;
  text-align: center;
}

/* ---------- Intro ---------- */

.intro p {
  text-align: center;
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--ink-mid);
  max-width: 640px;
  margin: 0 auto 14px;
}

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

/* ---------- Feature cards ---------- */

.features-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--parchment-light);
  border: 2px solid var(--wood-mid);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 20px rgba(44, 24, 16, 0.1),
    3px 7px 14px rgba(42, 21, 8, 0.5);
}

.feature-icon {
  font-size: 28px;
  line-height: 1;
}

.feature-title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 15.5px;
  color: var(--ink-dark);
}

.feature-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-mid);
  margin: 0;
}

/* ---------- Community ---------- */

.community-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
}

/* Same size/shape as .tile (Грати / База знань) — full pill,
   inline icon+text. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 18px;
  text-decoration: none;
  border: 2px solid var(--gold-accent);
  transition: transform 0.12s ease;
}

.badge:active {
  transform: translateY(2px);
}

.badge-icon {
  font-size: 18px;
  line-height: 1;
}

.badge-patreon {
  color: var(--parchment-light);
  background: var(--grad-crimson);
  box-shadow: var(--shadow-btn-primary);
}

.badge-youtube {
  color: var(--ink-dark);
  background: linear-gradient(180deg, #f7eacb, #ebd9ac);
  border-color: var(--cream-border);
  box-shadow: var(--shadow-card);
}

/* ---------- Footer ---------- */

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 13px;
  color: var(--ink-mid);
  opacity: 0.75;
  line-height: 1.8;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

footer a {
  color: var(--ink-mid);
  text-decoration: underline;
  text-decoration-color: var(--gold-accent);
}

/* ---------- Responsive ---------- */

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

@media (max-width: 480px) {
  body {
    gap: 3rem;
  }

  .banner-body {
    font-size: 20px;
    padding: 9px 34px;
    letter-spacing: 0.1em;
  }

  .banner::before,
  .banner::after {
    width: 18px;
  }

  .banner::before {
    left: -13px;
  }

  .banner::after {
    right: -13px;
  }

  .section-heading-body {
    font-size: 14px;
    padding: 7px 22px;
  }


  .tagline {
    font-size: 15.5px;
  }

  .intro p {
    font-size: 16px;
  }
}

@media (max-width: 360px) {
  .banner-body {
    font-size: 17px;
    padding: 8px 22px;
    letter-spacing: 0.06em;
  }

  .tile,
  .badge {
    font-size: 17px;
    padding: 20px 22px;
  }

  .tile-icon,
  .badge-icon {
    font-size: 17px;
  }
}