/* ==========================================================================
   「纸间拾趣」— 手作漫研志 · Zine Cut Aesthetics
   Awwwards-inspired playful design system for doujinshi site
   ========================================================================== */

/* ---------- 0. Reset & Design Tokens ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --c-paper: #FAF4EC;
  --c-paper-light: #FFFEFA;
  --c-paper-dark: #F1E9DE;
  --c-ink: #2B1F3D;
  --c-ink-soft: #5C5466;
  --c-coral: #FF4D6D;
  --c-teal: #00B4B4;
  --c-yellow: #FFC845;
  --c-green: #46B57E;
  --c-lavender: #C9B6E4;
  --c-blue: #7EC8E3;
  --shadow-sm: 0 2px 10px rgba(43, 31, 61, 0.06);
  --shadow-md: 0 8px 24px rgba(43, 31, 61, 0.10);
  --shadow-lg: 0 16px 44px rgba(43, 31, 61, 0.14);
  --border-ink: 2px solid var(--c-ink);
  --radius-xl: 20px;
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
  font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
  background-color: var(--c-paper);
  color: var(--c-ink);
  line-height: 1.65;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 77, 109, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(0, 180, 180, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(255, 200, 69, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

p { margin-bottom: 1em; }
a { color: inherit; }

img { display: block; max-width: 100%; }

::selection {
  background: var(--c-coral);
  color: #fff;
}

/* ---------- 1. Layout ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section:nth-child(even) {
  background: var(--c-paper-dark);
}

/* ---------- 2. Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 244, 236, 0.92);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: var(--border-ink);
  box-shadow: 0 2px 0 rgba(43, 31, 61, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--c-ink);
  letter-spacing: -0.03em;
  transition: opacity 0.2s;
}

.logo:hover { opacity: 0.8; }

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 50% 50% 46% 54% / 58% 42% 58% 42%;
  background: linear-gradient(135deg, var(--c-coral) 0%, #FF8FA3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  border: 2px solid var(--c-ink);
  box-shadow: 3px 3px 0 rgba(43, 31, 61, 0.18);
  transform: rotate(-8deg);
  transition: transform 0.3s var(--transition-bounce);
}

.logo:hover .logo-icon {
  transform: rotate(8deg) scale(1.08);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--c-ink);
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s;
}

.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--c-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: -1;
}

.main-nav a:not(.nav-cta):hover {
  color: var(--c-coral);
}

.main-nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

.nav-cta {
  background: var(--c-coral);
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 50px;
  border: 2px solid var(--c-ink);
  box-shadow: 3px 3px 0 rgba(43, 31, 61, 0.18);
  font-weight: 700;
  transition: all 0.2s var(--transition-bounce);
}

.nav-cta:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(43, 31, 61, 0.18);
  color: #fff !important;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: var(--c-paper-light);
  border: 2px solid var(--c-ink);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  position: relative;
  z-index: 10;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2.5px;
  background: var(--c-ink);
  border-radius: 4px;
  transition: all 0.3s;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 3. Hero ---------- */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: '本';
  position: absolute;
  right: -20px;
  top: 8%;
  font-size: 400px;
  font-weight: 900;
  color: rgba(43, 31, 61, 0.03);
  line-height: 1;
  pointer-events: none;
  transform: rotate(15deg);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  background:
    radial-gradient(circle at 30% 30%, var(--c-lavender) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, var(--c-teal) 0%, transparent 50%);
  filter: blur(60px);
  opacity: 0.35;
  z-index: 0;
  border-radius: 50%;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  background: var(--c-yellow);
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  box-shadow: 2px 2px 0 rgba(43, 31, 61, 0.15);
  transform: rotate(-3deg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.12;
  margin-bottom: 22px;
  font-weight: 900;
  letter-spacing: -0.035em;
  position: relative;
  text-shadow: 3px 3px 0 rgba(255, 200, 69, 0.4);
}

.hero h1 .highlight {
  position: relative;
  display: inline-block;
  z-index: 0;
  white-space: nowrap;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 6px;
  height: 40%;
  background: var(--c-yellow);
  z-index: -1;
  transform: rotate(-1.5deg);
  border-radius: 4px;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.75;
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  z-index: 1;
  border: var(--border-ink);
  box-shadow: 8px 8px 0 rgba(43, 31, 61, 0.12);
  transform: rotate(1.5deg);
  background: linear-gradient(135deg, var(--c-lavender) 0%, var(--c-teal) 50%, var(--c-yellow) 100%);
  min-width: 420px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite alternate;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid var(--c-ink);
  text-decoration: none;
  transition: all 0.25s var(--transition-bounce);
  position: relative;
}

.btn-primary {
  background: var(--c-coral);
  color: #fff;
  box-shadow: 4px 4px 0 rgba(43, 31, 61, 0.18);
}

.btn-primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(43, 31, 61, 0.18);
  background: #FF617D;
}

.btn-primary:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 rgba(43, 31, 61, 0.18);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--c-ink);
  color: var(--c-ink);
  box-shadow: 4px 4px 0 rgba(43, 31, 61, 0.1);
}

.btn-outline:hover {
  background: var(--c-paper-light);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(43, 31, 61, 0.1);
}

/* ---------- 5. Section Labels / Titles ---------- */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 6px 16px;
  background: var(--c-teal);
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  border-radius: 4px;
  transform: rotate(-2deg);
  box-shadow: 2px 2px 0 rgba(43, 31, 61, 0.12);
  position: relative;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
  font-weight: 900;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 8px;
  background: rgba(255, 200, 69, 0.45);
  z-index: -1;
  border-radius: 4px;
  transform: skewX(-12deg);
}

.section-desc {
  max-width: 600px;
  opacity: 0.7;
  margin-bottom: 44px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- 6. Cards Grid ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  position: relative;
}

.category-card {
  border-radius: 16px;
  padding: 32px 28px;
  background: var(--c-paper-light);
  border: var(--border-ink);
  box-shadow: 5px 5px 0 rgba(43, 31, 61, 0.1);
  transition: all 0.25s var(--transition-bounce);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--c-coral), var(--c-teal), var(--c-yellow));
  opacity: 0.8;
}

.category-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 80px;
  height: 80px;
  background: var(--c-lavender);
  opacity: 0.15;
  border-radius: 50%;
  transition: transform 0.4s ease;
}

.category-card:nth-child(2n)::before {
  background: linear-gradient(90deg, var(--c-teal), var(--c-yellow), var(--c-coral));
}

.category-card:nth-child(3n)::before {
  background: linear-gradient(90deg, var(--c-yellow), var(--c-coral), var(--c-teal));
}

.category-card:hover {
  transform: translate(-3px, -3px) rotate(-1deg);
  box-shadow: 8px 8px 0 rgba(43, 31, 61, 0.14);
}

.category-card:hover::after {
  transform: scale(1.6);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
  background: var(--c-paper-dark);
  border: 2px solid var(--c-ink);
  box-shadow: 2px 2px 0 rgba(43, 31, 61, 0.12);
  transition: all 0.3s var(--transition-bounce);
}

.category-card:hover .card-icon {
  transform: rotate(-8deg) scale(1.05);
  background: var(--c-yellow);
}

.category-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 800;
}

.category-card p {
  font-size: 0.9rem;
  opacity: 0.65;
  margin-bottom: 18px;
  flex-grow: 1;
}

.card-link {
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--c-coral);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.card-link::after {
  content: '→';
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.card-link:hover {
  gap: 10px;
}

.card-link:hover::after {
  transform: translateX(3px);
}

/* ---------- 7. Feature Block ---------- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.feature-block:nth-child(even) {
  direction: rtl;
}

.feature-block > * {
  direction: ltr;
}

.feature-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: var(--border-ink);
  box-shadow: 7px 7px 0 rgba(43, 31, 61, 0.12);
  position: relative;
  transform: rotate(-2deg);
  min-height: 320px;
  background: linear-gradient(140deg, var(--c-yellow) 0%, var(--c-coral) 100%);
}

.feature-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    transparent 0px, transparent 12px,
    rgba(43, 31, 61, 0.03) 12px, rgba(43, 31, 61, 0.03) 24px
  );
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-text {
  position: relative;
}

.feature-text .section-label {
  margin-bottom: 14px;
}

.feature-text h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  font-weight: 900;
  line-height: 1.3;
}

.feature-text p {
  opacity: 0.7;
  line-height: 1.8;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  margin-top: 20px;
}

.feature-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 0.95rem;
}

.feature-list li::before {
  content: '✓';
  font-weight: 900;
  color: #fff;
  background: var(--c-green);
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border: 1.5px solid var(--c-ink);
  flex-shrink: 0;
}

/* ---------- 8. Stats Bar ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 30px 20px;
  border-radius: var(--radius-xl);
  background: var(--c-paper-light);
  border: var(--border-ink);
  box-shadow: 5px 5px 0 rgba(43, 31, 61, 0.1);
  position: relative;
  transition: all 0.3s var(--transition-bounce);
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--c-coral);
}

.stat-item:nth-child(2)::before { background: var(--c-teal); }
.stat-item:nth-child(3)::before { background: var(--c-yellow); }
.stat-item:nth-child(4)::before { background: var(--c-lavender); }

.stat-item:hover {
  transform: translate(-2px, -2px) rotate(1deg);
  box-shadow: 7px 7px 0 rgba(43, 31, 61, 0.14);
}

.stat-number {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--c-coral);
  display: block;
}

.stat-item:nth-child(2) .stat-number { color: var(--c-teal); }
.stat-item:nth-child(3) .stat-number { color: #E6A400; }
.stat-item:nth-child(4) .stat-number { color: var(--c-lavender); }

.stat-label {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-top: 8px;
  font-weight: 500;
}

/* ---------- 9. Content Wall ---------- */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.content-wall-item {
  border-radius: 16px;
  overflow: hidden;
  background: var(--c-paper-light);
  border: var(--border-ink);
  box-shadow: 5px 5px 0 rgba(43, 31, 61, 0.1);
  transition: all 0.3s var(--transition-bounce);
  position: relative;
}

.content-wall-item::after {
  content: '';
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--c-ink) 0px, var(--c-ink) 2px,
    transparent 2px, transparent 6px
  );
  opacity: 0.08;
  border-radius: 50%;
  pointer-events: none;
}

.content-wall-item:hover {
  transform: translate(-3px, -3px) rotate(-1.5deg);
  box-shadow: 8px 8px 0 rgba(43, 31, 61, 0.14);
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: var(--border-ink);
  transition: transform 0.4s ease;
  background: linear-gradient(135deg, var(--c-lavender), var(--c-yellow));
}

.content-wall-item:hover img {
  transform: scale(1.03);
}

.content-wall-body {
  padding: 22px;
}

.content-wall-body h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.4;
}

.content-wall-body p {
  font-size: 0.88rem;
  opacity: 0.6;
  line-height: 1.6;
  margin-bottom: 14px;
}

.content-wall-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  padding-top: 14px;
  border-top: 2px dashed var(--c-ink);
  opacity: 0.7;
}

.content-wall-meta .tag {
  background: var(--c-paper-dark);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1.5px solid var(--c-ink);
  font-size: 0.75rem;
}

/* ---------- 10. FAQ ---------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 2px solid var(--c-ink);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  cursor: pointer;
  background: var(--c-paper-light);
  box-shadow: 3px 3px 0 rgba(43, 31, 61, 0.08);
  transition: all 0.3s var(--transition-bounce);
  position: relative;
}

.faq-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--c-teal);
  opacity: 0;
  transition: opacity 0.3s;
}

.faq-item:hover {
  box-shadow: 5px 5px 0 rgba(43, 31, 61, 0.12);
  transform: translateX(3px);
}

.faq-item:hover::before {
  opacity: 1;
}

.faq-item.open::before {
  opacity: 1;
}

.faq-item .faq-question {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  line-height: 1.5;
}

.faq-item .faq-question::after {
  content: '+';
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
  color: var(--c-coral);
  transition: transform 0.4s var(--transition-bounce);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--c-ink);
  border-radius: 10px;
  background: var(--c-paper);
  font-weight: 700;
}

.faq-item.open .faq-question::after {
  transform: rotate(135deg);
  background: var(--c-coral);
  color: #fff;
}

.faq-item .faq-answer {
  padding: 0 24px 20px;
  display: none;
  opacity: 0.7;
  line-height: 1.8;
  font-size: 0.95rem;
  border-top: 1px dashed var(--c-ink);
  padding-top: 12px;
  margin-top: -8px;
  animation: fadeIn 0.4s ease;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ---------- 11. CTA Banner ---------- */
.cta-banner {
  padding: 64px 32px;
  text-align: center;
  border-radius: var(--radius-xl);
  border: 3px solid var(--c-ink);
  background: linear-gradient(135deg, var(--c-coral) 0%, #FF8FA3 60%, var(--c-yellow) 100%);
  color: var(--c-ink);
  box-shadow: 8px 8px 0 rgba(43, 31, 61, 0.15);
  position: relative;
  overflow: hidden;
  transform: rotate(-0.5deg);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    transparent 0px, transparent 8px,
    rgba(255, 255, 255, 0.06) 8px, rgba(255, 255, 255, 0.06) 16px
  );
  pointer-events: none;
}

.cta-banner::after {
  content: '✦';
  position: absolute;
  top: -20px;
  right: 30px;
  font-size: 120px;
  color: rgba(255, 255, 255, 0.15);
  transform: rotate(15deg);
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--c-ink);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 14px;
  font-weight: 900;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: rgba(43, 31, 61, 0.8);
  margin-bottom: 28px;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-primary {
  background: var(--c-ink);
  color: var(--c-yellow) !important;
  border-color: var(--c-ink);
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary:hover {
  background: #3D2F52;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(255, 255, 255, 0.3);
}

/* ---------- 12. Footer ---------- */
.site-footer {
  padding: 64px 0 28px;
  background: var(--c-paper-dark);
  border-top: var(--border-ink);
  position: relative;
  margin-top: 40px;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--c-coral) 0px, var(--c-coral) 20px,
    var(--c-teal) 20px, var(--c-teal) 40px,
    var(--c-yellow) 40px, var(--c-yellow) 60px,
    var(--c-lavender) 60px, var(--c-lavender) 80px
  );
  opacity: 0.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  max-width: 340px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.65;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--c-yellow);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  text-decoration: none;
  font-size: 0.92rem;
  opacity: 0.7;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
  padding-left: 0;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--c-coral);
  padding-left: 8px;
}

.footer-col a::before {
  content: '▸';
  margin-right: 4px;
  color: var(--c-teal);
  opacity: 0.6;
}

.footer-bottom {
  border-top: 2px dashed rgba(43, 31, 61, 0.25);
  margin-top: 48px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom a {
  text-decoration: none;
  font-weight: 600;
  color: var(--c-ink);
  border-bottom: 2px solid var(--c-yellow);
  transition: opacity 0.2s;
}

.footer-bottom a:hover {
  opacity: 0.7;
}

/* ---------- 13. Utilities ---------- */
.text-accent {
  color: var(--c-coral);
  font-weight: 800;
}

.text-center {
  text-align: center;
}

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  opacity: 0.7;
  text-align: center;
  line-height: 1.7;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- 14. Decorative extra elements ---------- */
/* Sticker badge used in section headers */
.sticker-badge {
  display: inline-block;
  padding: 6px 18px;
  background: var(--c-lavender);
  border: 2px solid var(--c-ink);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(6deg);
  box-shadow: 2px 2px 0 rgba(43, 31, 61, 0.15);
}

/* Torn paper edge on section dividers */
.section-torn {
  position: relative;
}

.section-torn::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: linear-gradient(
    45deg, transparent 70%, var(--c-paper-dark) 70%
  );
  background-size: 16px 16px;
}

/* ---------- 15. Keyframe Animations ---------- */
@keyframes float {
  0% { transform: translateY(0) rotate(1.5deg); }
  100% { transform: translateY(-18px) rotate(1.5deg); }
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
}

.animate-float { animation: float 6s ease-in-out infinite alternate; }
.animate-wiggle { animation: wiggle 2s ease-in-out infinite; }

/* ---------- 16. Responsive ---------- */
@media (max-width: 992px) {
  .hero-image {
    min-width: 300px;
    min-height: 220px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-block:nth-child(even) {
    direction: ltr;
  }

  .features-block .feature-block { direction: ltr; }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 12px;
    right: 12px;
    width: auto;
    background: var(--c-paper-light);
    padding: 24px;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    border: var(--border-ink);
    border-top: none;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    gap: 16px;
    align-items: flex-start;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    font-size: 1.05rem;
    padding: 8px 4px;
    width: 100%;
    border-bottom: 1px dashed rgba(43, 31, 61, 0.1);
  }

  .main-nav .nav-cta {
    width: auto;
    margin-top: 8px;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: 70vh;
    padding: 120px 0 60px;
  }

  .hero::after {
    width: 180px;
    height: 180px;
    right: -40px;
  }

  .hero::before {
    font-size: 220px;
    right: -40px;
    top: auto;
    bottom: -60px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 7vw, 3rem);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    justify-content: center;
  }

  .hero-image {
    min-width: 100%;
    min-height: 180px;
    margin-top: 40px;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .cta-banner {
    padding: 44px 20px;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .cards-grid, .content-wall, .stats-bar {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .header-inner {
    padding: 0 16px;
    height: 64px;
  }

  .main-nav {
    top: 64px;
    left: 8px;
    right: 8px;
  }

  .logo {
    font-size: 1.05rem;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .section { padding: 48px 0; }

  .section .container {
    padding: 0 16px;
  }

  .hero {
    padding: 100px 0 48px;
  }

  .hero p {
    font-size: 1rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .cta-banner::after {
    font-size: 70px;
  }

  .feature-list li {
    font-size: 0.88rem;
  }
}

/* ---------- 17. Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .hero-image {
    animation: none;
    transform: rotate(1.5deg);
  }
}

/* ---------- 18. Selection Styling ---------- */
::selection {
  background: var(--c-yellow);
  color: var(--c-ink);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--c-paper);
  border-left: 1px solid rgba(43, 31, 61, 0.08);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--c-coral), var(--c-teal));
  border-radius: 8px;
  border: 2px solid var(--c-paper);
}