/* ============================================================
   cnliziqi.com / cnliziqi.org — Shared Styles
   Pure HTML/CSS domain sale landing pages
   Fonts loaded per-page via template {{font.links}}
   ============================================================ */

/* ===== CSS Variables ===== */
:root {
  /* Fonts — defaults, overridden per script below */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Fluid Typography */
  --text-display: clamp(2.5rem, 5vw + 1rem, 5.5rem);
  --text-headline: clamp(1.75rem, 3vw + 0.5rem, 3rem);
  --text-title: clamp(1.35rem, 2vw + 0.25rem, 2rem);
  --text-body-lg: clamp(1.0625rem, 0.5vw + 0.9rem, 1.1875rem);
  --text-body: 1rem;
  --text-sm: 0.875rem;

  /* Ink (dark neutrals) */
  --ink-900: #1a1a2e;
  --ink-800: #2d2d44;
  --ink-700: #3f3f5a;
  --ink-600: #52526b;
  --ink-500: #6b6b82;
  --ink-400: #8a8a9e;
  --ink-300: #a8a8b8;
  --ink-200: #c8c8d8;
  --ink-100: #e4e4ec;
  --ink-50: #f2f2f6;

  /* Vermilion (cinnabar red) */
  --vermilion-700: #a02020;
  --vermilion-600: #c23616;
  --vermilion-500: #d63031;
  --vermilion-400: #e04848;
  --vermilion-300: #e87878;

  /* Gold */
  --gold-600: #b8860b;
  --gold-500: #d4a017;
  --gold-400: #e6b422;
  --gold-300: #f0cc5e;

  /* Celadon (jade green) */
  --celadon-600: #5a9362;
  --celadon-500: #7fb285;
  --celadon-400: #99c49e;
  --celadon-300: #b8d8bb;

  /* Paper backgrounds */
  --paper-white: #faf8f5;
  --paper-cream: #f5f0e8;
  --paper-warm: #ede5d8;

  /* Indigo */
  --indigo-600: #2c4a7c;
  --indigo-500: #3b5998;
  --indigo-400: #5577b5;

  /* Spacing */
  --section-py: clamp(4rem, 8vw, 7rem);
  --container-px: clamp(1.25rem, 4vw, 3rem);
  --container-max: 1200px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Script-based font overrides ===== */
.script-hans {
  --font-serif: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.script-hant {
  --font-serif: 'Noto Serif TC', 'Songti TC', 'PMingLiU', serif;
  --font-sans: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
}

.script-latin {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

.script-kana {
  --font-serif: 'Noto Serif JP', 'Yu Mincho', serif;
  --font-sans: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
}

.script-hangul {
  --font-serif: 'Noto Serif KR', 'Batang', serif;
  --font-sans: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

.script-cyrillic {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

.script-thai {
  --font-serif: 'Noto Serif Thai', 'Sarabun', serif;
  --font-sans: 'Noto Sans Thai', 'Tahoma', sans-serif;
}

.script-deva {
  --font-serif: 'Noto Serif Devanagari', serif;
  --font-sans: 'Noto Sans Devanagari', sans-serif;
}

.script-beng {
  --font-serif: 'Noto Serif Bengali', serif;
  --font-sans: 'Noto Sans Bengali', sans-serif;
}

.script-arabic {
  --font-serif: 'Noto Naskh Arabic', serif;
  --font-sans: 'Noto Sans Arabic', sans-serif;
}

.script-hebrew {
  --font-serif: 'Noto Serif Hebrew', serif;
  --font-sans: 'Noto Sans Hebrew', sans-serif;
}

.script-myanmar {
  --font-serif: 'Noto Serif Myanmar', serif;
  --font-sans: 'Noto Sans Myanmar', sans-serif;
}

.script-khmer {
  --font-serif: 'Noto Serif Khmer', serif;
  --font-sans: 'Noto Sans Khmer', sans-serif;
}

/* ===== Global Reset ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  background-color: var(--paper-white);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ===== Typography ===== */
h1, h2, h3, h4 {
  text-wrap: balance;
  line-height: 1.3;
  font-family: var(--font-serif);
}

p { text-wrap: pretty; }

/* CJK-specific line-height */
.script-hans p,
.script-hant p,
.script-kana p {
  line-height: 1.875;
  letter-spacing: 0.02em;
}

/* ===== Container ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 200;
  background: linear-gradient(90deg, var(--vermilion-500), var(--gold-400));
  transition: width 0.1s linear;
  pointer-events: none;
}

[dir="rtl"] .scroll-progress {
  left: auto;
  right: 0;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--container-px);
  height: 4rem;
  display: flex;
  align-items: center;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[dir="rtl"] .header-inner {
  flex-direction: row-reverse;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink-900);
}

.header-brand .seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--vermilion-500);
  color: #fff;
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1.5px solid var(--vermilion-600);
  transform: rotate(-3deg);
  line-height: 1;
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

[dir="rtl"] .header-nav {
  flex-direction: row-reverse;
}

.nav-link {
  position: relative;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-600);
  transition: color 0.25s ease;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--vermilion-500);
  transition: width 0.3s var(--ease-out-expo),
              left 0.3s var(--ease-out-expo);
}

.nav-link:hover {
  color: var(--ink-900);
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* ===== Language Switcher Dropdown ===== */
.lang-switch-wrap {
  position: relative;
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--vermilion-500);
  border: 1.5px solid var(--vermilion-500);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  font-family: inherit;
  white-space: nowrap;
}

.lang-switch-btn:hover {
  background: var(--vermilion-500);
  color: #fff;
}

.lang-switch-btn svg {
  transition: transform 0.2s ease;
}

.lang-switch-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 200;
  padding: 0.375rem 0;
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

.lang-dropdown.open {
  display: block;
}

.lang-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
  color: var(--ink-700);
  transition: background 0.15s ease, color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.lang-dropdown a:hover {
  background: var(--ink-50);
  color: var(--ink-900);
}

.lang-dropdown a.current {
  color: var(--vermilion-500);
  font-weight: 600;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem var(--container-px) 4rem;
  overflow: hidden;
}

.hero-ink {
  background: linear-gradient(
    135deg,
    var(--ink-900) 0%,
    var(--ink-800) 25%,
    var(--ink-900) 50%,
    var(--ink-800) 75%,
    var(--ink-900) 100%
  );
  background-size: 200% 200%;
  animation: inkShift 12s ease-in-out infinite;
  color: #fff;
}

.hero-paper {
  background-color: var(--paper-cream);
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.01) 2px, rgba(0,0,0,0.01) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.008) 2px, rgba(0,0,0,0.008) 4px);
  color: var(--ink-900);
}

@keyframes inkShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Decorative circles */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-ink::before {
  width: 500px;
  height: 500px;
  top: -15%;
  right: -10%;
  background: radial-gradient(circle, rgba(214, 48, 49, 0.06) 0%, transparent 70%);
  animation: circlePulse 4s ease-in-out infinite;
}

.hero-ink::after {
  width: 400px;
  height: 400px;
  bottom: -10%;
  left: -8%;
  background: radial-gradient(circle, rgba(230, 180, 34, 0.05) 0%, transparent 70%);
  animation: circlePulse 5s ease-in-out infinite 1s;
}

.hero-paper::before {
  width: 500px;
  height: 500px;
  top: -15%;
  right: -10%;
  background: radial-gradient(circle, rgba(127, 178, 133, 0.08) 0%, transparent 70%);
  animation: circlePulse 4s ease-in-out infinite;
}

.hero-paper::after {
  width: 400px;
  height: 400px;
  bottom: -10%;
  left: -8%;
  background: radial-gradient(circle, rgba(230, 180, 34, 0.06) 0%, transparent 70%);
  animation: circlePulse 5s ease-in-out infinite 1s;
}

@keyframes circlePulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero .badge {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  animation: badgeFloat 3s ease-in-out infinite;
}

.hero-ink .badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--gold-300);
}

.hero-paper .badge {
  background: rgba(90, 147, 98, 0.1);
  border: 1px solid rgba(90, 147, 98, 0.2);
  color: var(--celadon-600);
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero h1 {
  font-size: var(--text-display);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero-ink h1 {
  background: linear-gradient(135deg, #fff 0%, var(--gold-300) 50%, #fff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .subtitle {
  font-size: var(--text-body-lg);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-ink .subtitle {
  color: var(--ink-300);
}

.hero-paper .subtitle {
  color: var(--ink-600);
}

/* Seal stamp in hero */
.hero .seal-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--vermilion-500);
  color: #fff;
  padding: 0.5rem 0.75rem;
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  font-weight: 700;
  font-size: 0.875rem;
  border: 2px solid var(--vermilion-600);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2), 2px 2px 8px rgba(0,0,0,0.15);
  transform: rotate(-3deg);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: sealEntrance 0.8s var(--ease-bounce) 0.4s forwards;
}

@keyframes sealEntrance {
  0% { opacity: 0; transform: scale(0.3) rotate(15deg); }
  60% { opacity: 1; transform: scale(1.08) rotate(-5deg); }
  80% { transform: scale(0.96) rotate(-2deg); }
  100% { opacity: 1; transform: scale(1) rotate(-3deg); }
}

/* ===== CTA Button ===== */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink-900);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  border: none;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out-expo),
              box-shadow 0.3s var(--ease-out-expo);
  text-decoration: none;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(212, 160, 23, 0.35);
}

.cta-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-25deg);
  animation: ctaSweep 3.5s ease-in-out infinite;
}

[dir="rtl"] .cta-button::after {
  left: auto;
  right: -75%;
  transform: skewX(25deg);
}

@keyframes ctaSweep {
  0%, 100% { left: -75%; }
  50% { left: 125%; }
}

[dir="rtl"] .cta-button::after {
  animation-name: ctaSweepRtl;
}

@keyframes ctaSweepRtl {
  0%, 100% { right: -75%; }
  50% { right: 125%; }
}

/* ===== Disclaimer Banner ===== */
.disclaimer-banner {
  background: var(--paper-cream);
  border-bottom: 1px solid var(--ink-100);
  padding: 0.625rem 0;
  text-align: center;
}

.disclaimer-banner p {
  font-size: var(--text-sm);
  color: var(--ink-500);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ===== Sections ===== */
.section {
  padding: var(--section-py) 0;
}

.section-alt {
  background-color: var(--paper-cream);
}

.section-title {
  font-size: var(--text-headline);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--ink-900);
}

.section-subtitle {
  text-align: center;
  color: var(--ink-500);
  font-size: var(--text-body-lg);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Gold divider under section titles */
.gold-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  margin: 1rem auto 0;
}

/* ===== Card Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--ink-100);
  transition: transform 0.35s var(--ease-out-expo),
              box-shadow 0.35s var(--ease-out-expo);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: transform 0.35s var(--ease-out-expo);
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(3deg);
}

.card-icon-vermilion { background: rgba(214, 48, 49, 0.08); }
.card-icon-gold { background: rgba(212, 160, 23, 0.08); }
.card-icon-celadon { background: rgba(127, 178, 133, 0.08); }
.card-icon-indigo { background: rgba(59, 89, 152, 0.08); }

.card.card-vermilion:hover { box-shadow: 0 12px 40px -8px rgba(214, 48, 49, 0.12); }
.card.card-gold:hover { box-shadow: 0 12px 40px -8px rgba(212, 160, 23, 0.12); }
.card.card-celadon:hover { box-shadow: 0 12px 40px -8px rgba(127, 178, 133, 0.12); }
.card.card-indigo:hover { box-shadow: 0 12px 40px -8px rgba(59, 89, 152, 0.12); }

.card h3 {
  font-size: var(--text-title);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink-900);
}

.card p {
  color: var(--ink-600);
  font-size: var(--text-body);
  line-height: 1.7;
}

/* ===== Culture / Story Card ===== */
.story-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 3rem;
  border: 1px solid var(--ink-100);
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

/* Corner decorations */
.story-card .corner {
  position: absolute;
  width: 2rem;
  height: 2rem;
  border-color: var(--gold-400);
  border-style: solid;
  opacity: 0.5;
}

.story-card .corner-tl {
  top: 1rem;
  left: 1rem;
  border-width: 2px 0 0 2px;
  transform-origin: top left;
}

.story-card .corner-tr {
  top: 1rem;
  right: 1rem;
  border-width: 2px 2px 0 0;
  transform-origin: top right;
}

.story-card .corner-bl {
  bottom: 1rem;
  left: 1rem;
  border-width: 0 0 2px 2px;
  transform-origin: bottom left;
}

.story-card .corner-br {
  bottom: 1rem;
  right: 1rem;
  border-width: 0 2px 2px 0;
  transform-origin: bottom right;
}

.story-card h2 {
  font-size: var(--text-headline);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--ink-900);
}

.story-card p {
  color: var(--ink-600);
  font-size: var(--text-body-lg);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

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

/* ===== Domain Details (Two-column) ===== */
.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.details-table {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--ink-100);
}

.details-table h3 {
  font-size: var(--text-title);
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--ink-900);
}

.details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--ink-50);
}

[dir="rtl"] .details-row {
  flex-direction: row-reverse;
}

.details-row:last-child {
  border-bottom: none;
}

.details-label {
  color: var(--ink-500);
  font-size: var(--text-sm);
}

.details-value {
  font-weight: 600;
  color: var(--ink-900);
}

.uses-list {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--ink-100);
}

.uses-list h3 {
  font-size: var(--text-title);
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--ink-900);
}

.uses-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: var(--ink-700);
  font-size: var(--text-body);
}

.uses-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--celadon-500);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--ink-900) 0%,
    var(--ink-800) 50%,
    var(--ink-900) 100%
  );
  background-size: 200% 200%;
  animation: inkShift 12s ease-in-out infinite;
  color: #fff;
  padding: var(--section-py) 0;
  text-align: center;
}

.cta-section h2 {
  font-size: var(--text-headline);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.cta-section .subtitle {
  color: var(--ink-300);
  font-size: var(--text-body-lg);
  margin-bottom: 2.5rem;
}

.cta-email {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: background 0.25s ease;
}

.cta-email:hover {
  background: rgba(255,255,255,0.12);
}

.cta-email-label {
  font-size: var(--text-sm);
  color: var(--ink-400);
}

.cta-email-address {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gold-300);
  font-family: 'Inter', system-ui, sans-serif;
}

.cta-copy-hint {
  font-size: var(--text-sm);
  color: var(--ink-400);
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.cta-copy-hint.copied {
  color: var(--celadon-400);
}

.cta-trust {
  font-size: var(--text-sm);
  color: var(--ink-400);
  margin-bottom: 2.5rem;
}

.cta-also {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.cta-also span {
  display: block;
  font-size: var(--text-sm);
  color: var(--ink-400);
  margin-bottom: 0.75rem;
}

.cta-also a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-300);
  font-family: var(--font-serif);
  transition: color 0.25s ease;
}

.cta-also a:hover {
  color: var(--gold-400);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink-900);
  color: var(--ink-400);
  padding: 2.5rem 0;
  text-align: center;
}

.site-footer p {
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

.site-footer .disclaimer {
  margin-bottom: 1rem;
  color: var(--ink-500);
}

.site-footer .copyright {
  color: var(--ink-400);
}

/* ===== Scroll Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-expo),
              transform 0.7s var(--ease-out-expo);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s var(--ease-out-expo),
              transform 0.7s var(--ease-out-expo);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered delays */
.stagger-1 { transition-delay: 80ms; }
.stagger-2 { transition-delay: 160ms; }
.stagger-3 { transition-delay: 240ms; }
.stagger-4 { transition-delay: 320ms; }

/* ===== Hero Fade In Up ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(1.5rem);
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ===== ICH Stats (.org) ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--vermilion-500);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hero-paper .stat-number {
  color: var(--celadon-600);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--ink-500);
}

/* ===== RTL Support ===== */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .hero,
[dir="rtl"] .cta-section,
[dir="rtl"] .section-title,
[dir="rtl"] .section-subtitle,
[dir="rtl"] .stat-item {
  text-align: center;
}

[dir="rtl"] .uses-list li {
  flex-direction: row-reverse;
}

[dir="rtl"] .cta-email {
  flex-direction: row-reverse;
}

/* ===== Responsive ===== */

/* 768px+ : 2-column cards, 2-column details */
@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .story-card {
    padding: 3.5rem;
  }
}

/* 1024px+ : 4-column cards */
@media (min-width: 1024px) {
  .card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile: <=767px */
@media (max-width: 767px) {
  .site-header {
    height: 3.5rem;
  }

  .header-brand {
    font-size: 1rem;
  }

  .nav-anchors {
    display: none;
  }

  .hero {
    min-height: 85vh;
    padding: 5rem var(--container-px) 3rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .story-card {
    padding: 2rem 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 1rem;
  }

  .cta-email {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }

  [dir="rtl"] .cta-email {
    flex-direction: column;
  }
}

/* ===== Accessibility: Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal, .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .fade-in-up {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero-ink, .cta-section {
    animation: none;
  }

  .hero .badge {
    animation: none;
  }

  .hero::before, .hero::after {
    animation: none;
  }

  .hero .seal-stamp {
    opacity: 1;
    transform: rotate(-3deg);
    animation: none;
  }

  .cta-button::after {
    animation: none;
  }
}
