/* ============================================
   POSTE KETAB - Premium Landing Page Styles
   Theme: Book + Postal + International Fair
   ============================================ */

/* Local Vazirmatn font (no CDN) */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Vazirmatn-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Vazirmatn-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Vazirmatn-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Vazirmatn-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/Vazirmatn-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/Vazirmatn-900.woff2') format('woff2');
}

:root {
  /* Brand Colors */
  --ink: #0f1e3d;            /* Deep ink blue - publisher */
  --ink-2: #1a3a5c;
  --ink-3: #2c5282;
  --post-yellow: #FFB800;    /* Iran Post yellow */
  --post-yellow-2: #F5C518;
  --post-yellow-soft: #FFF5DC;
  --fair-red: #E63946;       /* Book fair accent red */
  --fair-red-2: #D62828;
  --gold: #C9A961;
  --parchment: #FAF5E6;
  --parchment-2: #F5EFD8;
  --cream: #FFFBF0;
  --paper: #FEFCF5;

  /* Neutrals */
  --black: #050a18;
  --gray-900: #1a1f2e;
  --gray-700: #4a5568;
  --gray-500: #718096;
  --gray-300: #cbd5e0;
  --gray-100: #f7fafc;
  --white: #ffffff;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(15, 30, 61, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 30, 61, 0.12);
  --shadow-lg: 0 20px 50px rgba(15, 30, 61, 0.18);
  --shadow-xl: 0 30px 80px rgba(15, 30, 61, 0.25);
  --shadow-gold: 0 10px 40px rgba(255, 184, 0, 0.35);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --t-fast: 0.2s cubic-bezier(.4, 0, .2, 1);
  --t-mid: 0.4s cubic-bezier(.4, 0, .2, 1);
  --t-slow: 0.8s cubic-bezier(.16, 1, .3, 1);

  --font-fa: 'Vazirmatn', 'Tahoma', sans-serif;

  --container: 1280px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-fa);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}

@media (max-width: 1024px) {
  body { cursor: auto; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

::selection {
  background: var(--post-yellow);
  color: var(--ink);
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 8px; height: 8px;
  background: var(--post-yellow);
  border-radius: 50%;
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-ring {
  width: 36px; height: 36px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  transition: transform 0.15s ease-out, width 0.3s, height 0.3s, border-color 0.3s;
  mix-blend-mode: difference;
}

.cursor-ring.hover {
  width: 60px; height: 60px;
  border-color: var(--post-yellow);
  background: rgba(255, 184, 0, 0.1);
}

@media (max-width: 1024px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================
   LOADER
   ============================================ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity 0.6s, visibility 0.6s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-book {
  position: relative;
  width: 120px;
  height: 90px;
  perspective: 600px;
}

.loader-page {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, var(--post-yellow) 0%, var(--post-yellow-2) 100%);
  border: 2px solid var(--ink);
  transform-origin: left center;
  animation: flipPage 2.5s infinite;
  border-radius: 0 8px 8px 0;
}

.loader-page:nth-child(1) { animation-delay: 0s; background: var(--ink); }
.loader-page:nth-child(2) { animation-delay: 0.2s; background: var(--ink-2); }
.loader-page:nth-child(3) { animation-delay: 0.4s; background: var(--fair-red); }
.loader-page:nth-child(4) { animation-delay: 0.6s; background: var(--post-yellow); }
.loader-page:nth-child(5) { animation-delay: 0.8s; background: var(--post-yellow-2); }
.loader-page:nth-child(6) { animation-delay: 1.0s; background: var(--parchment); }

@keyframes flipPage {
  0%, 20% { transform: rotateY(0deg); }
  60%, 100% { transform: rotateY(-180deg); }
}

.loader-text {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.5px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ============================================
   PARTICLES
   ============================================ */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  opacity: 0.4;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(110vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% {
    transform: translateY(-10vh) translateX(40px) rotate(360deg);
    opacity: 0;
  }
}

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

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all var(--t-mid);
  background: rgba(255, 251, 240, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(255, 251, 240, 0.92);
  box-shadow: 0 4px 20px rgba(15, 30, 61, 0.06);
  border-bottom: 1px solid rgba(15, 30, 61, 0.06);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo img {
  height: 44px;
  width: auto;
  transition: transform var(--t-mid);
}

.nav-logo:hover img { transform: scale(1.05); }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color var(--t-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--post-yellow);
  transition: width var(--t-mid);
}

.nav-links a:hover {
  color: var(--fair-red);
}

.nav-links a:hover::after { width: 100%; }

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 2px solid rgba(15, 30, 61, 0.18);
  transition: all var(--t-mid);
}

.nav-login:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--t-mid);
  border: 2px solid var(--ink);
  position: relative;
  overflow: hidden;
}

.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--post-yellow);
  transform: translateX(-100%);
  transition: transform var(--t-mid);
  z-index: 0;
}

.nav-cta:hover::before { transform: translateX(0); }
.nav-cta:hover { color: var(--ink); }
.nav-cta > * { position: relative; z-index: 1; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-burger span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: all var(--t-fast);
}

.nav-burger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(255, 251, 240, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform var(--t-mid);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 22px; font-weight: 600; }
  .nav-burger { display: flex; z-index: 101; position: relative; }
  .nav-cta, .nav-login, .nav-actions { display: none; }
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--t-slow), transform 0.8s var(--t-slow);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255, 184, 0, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(230, 57, 70, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, var(--parchment) 100%);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 184, 0, 0.3) 0%, transparent 25%),
    radial-gradient(circle at 30% 70%, rgba(15, 30, 61, 0.15) 0%, transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(230, 57, 70, 0.08) 0%, transparent 35%);
  filter: blur(60px);
  opacity: 0.7;
  animation: meshShift 20s ease-in-out infinite;
}

@keyframes meshShift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(5deg); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--ink);
  opacity: 0.5;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 184, 0, 0.15);
  border: 1px solid rgba(255, 184, 0, 0.4);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--fair-red);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: var(--ink);
}

.title-line {
  display: block;
}

.title-gradient {
  background: linear-gradient(135deg, var(--post-yellow) 0%, var(--fair-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  animation: gradientShift 8s ease infinite;
  background-size: 200% 200%;
}

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

.title-sub {
  font-size: 0.55em;
  font-weight: 500;
  color: var(--gray-700);
  margin-top: 8px;
}

.hero-desc {
  font-size: 18px;
  color: var(--gray-700);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.85;
}

.hero-desc strong {
  color: var(--ink);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  transition: all var(--t-mid);
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 10px 30px rgba(15, 30, 61, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(15, 30, 61, 0.4);
}

.btn-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(20deg);
  transition: left 0.6s;
}

.btn-primary:hover .btn-shine {
  left: 150%;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn-secondary {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.btn-secondary:hover {
  background: var(--post-yellow);
  color: var(--ink);
  border-color: var(--post-yellow);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--gray-300);
  padding: 12px 24px;
  font-size: 14px;
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.btn-lg {
  padding: 18px 38px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hstat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hstat-label {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 6px;
}

.hstat-divider {
  width: 1px;
  height: 36px;
  background: var(--gray-300);
}

/* Hero Visual - Book 3D */
.hero-visual {
  position: relative;
  height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-stage {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1500px;
  transform-style: preserve-3d;
}

.book-3d {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 360px;
  transform: translate(-50%, -50%) rotateY(-25deg) rotateX(10deg);
  transform-style: preserve-3d;
  transition: transform 0.4s ease-out;
  animation: bookFloat 6s ease-in-out infinite;
}

@keyframes bookFloat {
  0%, 100% { transform: translate(-50%, -50%) rotateY(-25deg) rotateX(10deg) translateZ(0); }
  50% { transform: translate(-50%, -50%) rotateY(-25deg) rotateX(10deg) translateZ(20px) translateY(-10px); }
}

.book-cover, .book-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 4px 12px 12px 4px;
  backface-visibility: hidden;
}

.book-cover {
  background:
    linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 50%, var(--ink) 100%);
  box-shadow:
    inset 4px 0 8px rgba(0,0,0,0.4),
    -10px 20px 50px rgba(15, 30, 61, 0.4);
  transform: translateZ(15px);
  overflow: hidden;
}

.book-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg,
      transparent 0,
      transparent 40px,
      rgba(255, 184, 0, 0.05) 40px,
      rgba(255, 184, 0, 0.05) 41px);
  opacity: 0.6;
}

.book-cover-design {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  color: var(--post-yellow);
}

.bc-spine-text {
  position: absolute;
  top: 20px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--post-yellow);
  letter-spacing: 4px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.bc-frame {
  border: 2px solid var(--post-yellow);
  padding: 30px 24px;
  width: 80%;
  text-align: center;
  position: relative;
}

.bc-frame::before, .bc-frame::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--post-yellow);
}

.bc-frame::before { top: -8px; left: -8px; border-right: none; border-bottom: none; }
.bc-frame::after { bottom: -8px; right: -8px; border-left: none; border-top: none; }

.bc-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 4px;
}

.bc-title-en {
  font-size: 14px;
  letter-spacing: 6px;
  margin-bottom: 24px;
  font-family: serif;
}

.bc-tag {
  font-size: 9px;
  letter-spacing: 3px;
  border-top: 1px solid var(--post-yellow);
  padding-top: 12px;
  margin-top: 8px;
}

.book-page {
  position: absolute;
  top: 5px;
  right: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  background: var(--parchment);
  transform: translateZ(8px);
}

.book-page.p2 { transform: translateZ(2px); background: var(--parchment-2); }
.book-page.p3 { transform: translateZ(-4px); background: var(--parchment); }

.book-back {
  background: linear-gradient(135deg, var(--ink-2) 0%, var(--ink) 100%);
  transform: translateZ(-12px);
}

/* Float elements */
.float-envelope {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 100px;
  animation: floatRotate 5s ease-in-out infinite;
  filter: drop-shadow(0 15px 30px rgba(15, 30, 61, 0.25));
}

@keyframes floatRotate {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-25px) rotate(-2deg); }
}

.float-page {
  position: absolute;
  bottom: 12%;
  left: 5%;
  width: 90px;
  height: 110px;
  background: var(--paper);
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  animation: floatRotate2 7s ease-in-out infinite;
  box-shadow: 0 20px 40px rgba(15, 30, 61, 0.15);
}

@keyframes floatRotate2 {
  0%, 100% { transform: translateY(0) rotate(12deg); }
  50% { transform: translateY(-15px) rotate(8deg); }
}

.fp-line {
  height: 4px;
  background: var(--gray-300);
  border-radius: 2px;
}

.fp-line.short { width: 60%; }

/* Discount badge */
.discount-badge {
  position: absolute;
  top: 18%;
  left: 8%;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--post-yellow) 0%, var(--fair-red) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 50px rgba(230, 57, 70, 0.4);
  animation: badgeSpin 8s linear infinite, badgeBounce 3s ease-in-out infinite;
  transform: rotate(-15deg);
}

@keyframes badgeSpin {
  from { transform: rotate(-15deg); }
  to { transform: rotate(345deg); }
}

@keyframes badgeBounce {
  0%, 100% { scale: 1; }
  50% { scale: 1.05; }
}

.db-ring {
  position: absolute;
  inset: 8px;
  border: 2px dashed var(--cream);
  border-radius: 50%;
  animation: badgeSpin 12s linear reverse infinite;
}

.db-content {
  text-align: center;
  color: var(--cream);
  animation: badgeSpin 8s linear reverse infinite;
}

.db-percent {
  display: block;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.db-label {
  font-size: 14px;
  font-weight: 600;
}

/* Floating books background */
.floating-books {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fbook {
  position: absolute;
  width: 60px;
  height: 80px;
  border-radius: 2px 6px 6px 2px;
  opacity: 0.15;
  animation: bookDrift 15s ease-in-out infinite;
}

.fbook-1 { top: 15%; right: 40%; background: var(--ink); animation-delay: 0s; }
.fbook-2 { bottom: 20%; right: 15%; background: var(--fair-red); animation-delay: -3s; transform: rotate(15deg); }
.fbook-3 { top: 40%; left: 8%; background: var(--post-yellow); animation-delay: -6s; transform: rotate(-20deg); }
.fbook-4 { bottom: 35%; left: 35%; background: var(--ink-2); animation-delay: -9s; transform: rotate(10deg); }
.fbook-5 { top: 70%; right: 45%; background: var(--gold); animation-delay: -12s; transform: rotate(-8deg); }

@keyframes bookDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-40px) rotate(8deg); }
}

/* Stamp decoration */
.stamp-decoration {
  position: absolute;
  top: 18%;
  left: 4%;
  z-index: 1;
  pointer-events: none;
}

.stamp {
  width: 130px;
  height: 150px;
  background: var(--post-yellow);
  position: relative;
  transform: rotate(-12deg);
  animation: stampFloat 5s ease-in-out infinite;
  filter: drop-shadow(0 15px 30px rgba(255, 184, 0, 0.4));
}

@keyframes stampFloat {
  0%, 100% { transform: rotate(-12deg) translateY(0); }
  50% { transform: rotate(-8deg) translateY(-10px); }
}

.stamp::before, .stamp::after {
  content: '';
  position: absolute;
  background:
    radial-gradient(circle, var(--cream) 4px, transparent 4px);
}

.stamp::before {
  top: -8px; left: 0; right: 0; height: 16px;
  background-size: 14px 16px;
  background-position: -4px 0;
}

.stamp::after {
  bottom: -8px; left: 0; right: 0; height: 16px;
  background-size: 14px 16px;
  background-position: -4px -4px;
}

.stamp-inner {
  position: absolute;
  inset: 8px;
  border: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
  color: var(--ink);
  font-weight: 700;
}

.stamp-text {
  font-size: 9px;
  letter-spacing: 2px;
}

.stamp-value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  opacity: 0.7;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  position: relative;
}

.wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: var(--ink);
  border-radius: 2px;
  animation: wheelMove 1.5s ease-in-out infinite;
}

@keyframes wheelMove {
  0% { top: 6px; opacity: 1; }
  100% { top: 22px; opacity: 0; }
}

/* Hero marquee */
.hero-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 14px 0;
  overflow: hidden;
  z-index: 3;
  border-top: 3px solid var(--post-yellow);
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  animation: marquee 35s linear infinite;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
}

.marquee-track .dot {
  color: var(--post-yellow);
}

@keyframes marquee {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; }
  .hero-visual { height: 400px; order: -1; }
  .stamp-decoration { display: none; }
  .scroll-indicator { display: none; }
}

@media (max-width: 768px) {
  .hero { padding: 100px 0 60px; }
  .hero-stats { gap: 16px; }
  .hstat-num { font-size: 28px; }
  .hstat-divider { display: none; }
  .book-3d { width: 200px; height: 280px; }
  .discount-badge { width: 100px; height: 100px; }
  .db-percent { font-size: 28px; }
  .float-envelope { width: 70px; }
  .float-page { width: 70px; height: 86px; }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-head {
  text-align: center;
  margin-bottom: 64px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--fair-red);
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.section-eyebrow.light { color: var(--post-yellow); }

.eyebrow-line {
  width: 40px;
  height: 1px;
  background: currentColor;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}

.section-title.light { color: var(--cream); }
.section-title.align-right { text-align: right; }

.ink-underline {
  position: relative;
  display: inline-block;
  color: var(--ink);
  z-index: 0;
}

.ink-underline::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: -4%;
  right: -4%;
  height: 0.3em;
  background: var(--post-yellow);
  z-index: -1;
  transform: skewX(-10deg);
  opacity: 0.8;
}

.ink-underline-light::after { background: var(--post-yellow); }
.ink-underline-light {
  position: relative;
  display: inline-block;
  color: var(--cream);
  z-index: 0;
}

.section-sub {
  font-size: 17px;
  color: var(--gray-700);
  line-height: 1.85;
}

.section-sub.light { color: rgba(255, 251, 240, 0.8); }
.section-sub.align-right { text-align: right; }

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 120px 0;
  position: relative;
  background: var(--cream);
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about-card {
  position: relative;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(15, 30, 61, 0.08);
  transition: all var(--t-mid);
  overflow: hidden;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 184, 0, 0.3);
}

.about-card.card-feature {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--cream);
  border-color: transparent;
}

.about-card.card-feature h3 { color: var(--post-yellow); }
.about-card.card-feature p { color: rgba(255, 251, 240, 0.8); }

.about-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--cream);
  transition: transform var(--t-mid);
}

.about-card:hover .about-icon { transform: rotate(-8deg) scale(1.05); }

.icon-gradient-1 { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%); }
.icon-gradient-2 { background: linear-gradient(135deg, var(--post-yellow) 0%, var(--fair-red) 100%); }
.icon-gradient-3 { background: linear-gradient(135deg, var(--fair-red) 0%, var(--fair-red-2) 100%); }
.icon-gradient-4 { background: linear-gradient(135deg, var(--gold) 0%, var(--post-yellow) 100%); }

.about-icon svg { width: 28px; height: 28px; }

.about-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}

.about-card p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.75;
}

.about-corner {
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 100px;
  height: 100px;
  background: var(--post-yellow);
  opacity: 0;
  border-radius: 50%;
  transition: opacity var(--t-mid);
  filter: blur(30px);
}

.about-card:hover .about-corner { opacity: 0.3; }

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .about-grid { grid-template-columns: 1fr; }
  .about { padding: 80px 0; }
}

/* ============================================
   DISCOUNT BANNER
   ============================================ */
.discount-banner {
  position: relative;
  padding: 100px 0;
  background:
    linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 50%, var(--ink) 100%);
  color: var(--cream);
  overflow: hidden;
}

.db-stripes {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  opacity: 0.06;
  transform: rotate(-25deg) scale(2);
}

.db-stripe {
  height: 30px;
  background: var(--post-yellow);
  border-radius: 4px;
}

.db-container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.db-tag {
  display: inline-block;
  background: var(--post-yellow);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.db-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
}

.db-emph {
  background: linear-gradient(135deg, var(--post-yellow) 0%, var(--fair-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.db-desc {
  color: rgba(255, 251, 240, 0.75);
  font-size: 16px;
  line-height: 1.85;
}

.db-tiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tier {
  position: relative;
  padding: 28px 22px;
  background: rgba(255, 251, 240, 0.05);
  border: 1px solid rgba(255, 251, 240, 0.1);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  transition: all var(--t-mid);
}

.tier:hover {
  transform: translateY(-6px);
  background: rgba(255, 251, 240, 0.08);
  border-color: var(--post-yellow);
}

.tier-gold {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.2) 0%, rgba(230, 57, 70, 0.15) 100%);
  border-color: var(--post-yellow);
}

.tier-diamond {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.25) 0%, rgba(255, 184, 0, 0.15) 100%);
  border-color: var(--fair-red);
}

.tier-badge {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--post-yellow);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.tier-percent {
  font-size: 48px;
  font-weight: 800;
  color: var(--post-yellow);
  line-height: 1;
  margin-bottom: 8px;
}

.tier-percent sup {
  font-size: 0.5em;
  margin-right: 4px;
}

.tier-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.tier-range {
  font-size: 13px;
  color: rgba(255, 251, 240, 0.6);
  margin-bottom: 14px;
}

.tier-bar {
  height: 6px;
  background: rgba(255, 251, 240, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.tier-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--post-yellow), var(--fair-red));
  border-radius: 999px;
  transition: width 1.5s ease;
}

@media (max-width: 1024px) {
  .db-container { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .db-tiers { grid-template-columns: 1fr; }
  .discount-banner { padding: 70px 0; }
}

/* ============================================
   FEATURES
   ============================================ */
.features {
  padding: 120px 0;
  background: var(--paper);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  position: relative;
  padding: 40px 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 30, 61, 0.06);
  transition: all var(--t-mid);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--post-yellow), var(--fair-red));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card:hover::before { transform: scaleX(1); transform-origin: left; }

.fc-num {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 64px;
  font-weight: 800;
  color: rgba(15, 30, 61, 0.05);
  line-height: 1;
}

.feature-card.feature-highlight {
  background: linear-gradient(135deg, var(--post-yellow) 0%, var(--post-yellow-2) 100%);
  border-color: transparent;
}

.feature-card.feature-highlight .fc-num { color: rgba(15, 30, 61, 0.15); }

.fc-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--post-yellow);
  transition: all var(--t-mid);
}

.feature-card.feature-highlight .fc-icon {
  background: var(--ink);
  color: var(--post-yellow);
}

.feature-card:hover .fc-icon {
  transform: rotate(-8deg) scale(1.05);
}

.fc-icon svg {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}

.feature-card p {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.85;
}

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .features { padding: 80px 0; }
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how {
  padding: 120px 0;
  position: relative;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}

.how-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 184, 0, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(230, 57, 70, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.how::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg,
      transparent 0,
      transparent 60px,
      rgba(255, 184, 0, 0.03) 60px,
      rgba(255, 184, 0, 0.03) 61px);
  pointer-events: none;
}

.how-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.timeline-line {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 251, 240, 0.15);
}

.timeline-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--post-yellow), var(--fair-red));
  width: 0;
  transition: width 1.5s ease;
}

.how-step {
  position: relative;
  text-align: center;
}

.step-marker {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--post-yellow);
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: all var(--t-mid);
}

.how-step.revealed .step-marker {
  background: var(--post-yellow);
  box-shadow: 0 0 0 8px rgba(255, 184, 0, 0.15);
}

.step-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--post-yellow);
  transition: color var(--t-mid);
}

.how-step.revealed .step-num { color: var(--ink); }

.step-pulse {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--post-yellow);
  animation: pulseRing 2.5s ease-in-out infinite;
  opacity: 0;
}

.how-step.revealed .step-pulse {
  animation-delay: 0.3s;
  opacity: 1;
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

.step-card {
  background: rgba(255, 251, 240, 0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 251, 240, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all var(--t-mid);
}

.step-card:hover {
  border-color: var(--post-yellow);
  transform: translateY(-6px);
  background: rgba(255, 251, 240, 0.06);
}

.step-illu {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--post-yellow);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px;
  color: rgba(255, 251, 240, 0.75);
  line-height: 1.75;
}

@media (max-width: 1024px) {
  .how-timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline-line { display: none; }
}

@media (max-width: 600px) {
  .how-timeline { grid-template-columns: 1fr; }
  .how { padding: 80px 0; }
}

/* ============================================
   COVERAGE / MAP
   ============================================ */
.coverage {
  padding: 120px 0;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.coverage::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.08) 0%, transparent 70%);
}

.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
}

.coverage-content .section-eyebrow {
  justify-content: flex-start;
}

.coverage-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.coverage-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 30, 61, 0.06);
  transition: all var(--t-mid);
}

.coverage-list li:hover {
  transform: translateX(-6px);
  box-shadow: var(--shadow-md);
}

.cov-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
  position: relative;
}

.cov-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.3;
  animation: dotPulse 2s ease-in-out infinite;
}

.cov-dot-1 { background: var(--post-yellow); color: var(--post-yellow); }
.cov-dot-2 { background: var(--fair-red); color: var(--fair-red); }
.cov-dot-3 { background: var(--ink); color: var(--ink); }

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.4); opacity: 0; }
}

.coverage-list strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.coverage-list span {
  font-size: 13px;
  color: var(--gray-500);
}

.coverage-map {
  position: relative;
  padding: 28px;
  background: linear-gradient(160deg, #0a1628 0%, #0f1e3d 60%, #142a52 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 184, 0, 0.08);
  border: 1px solid rgba(255, 184, 0, 0.12);
  overflow: hidden;
}

.coverage-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 184, 0, 0.12) 0%, transparent 35%),
    radial-gradient(circle at 80% 85%, rgba(230, 57, 70, 0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.coverage-map > * {
  position: relative;
  z-index: 1;
}

.iran-map {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
}

.map-provinces .province {
  transition: fill 0.3s ease, stroke 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.map-provinces .province:hover {
  fill: #FFB800 !important;
  stroke: #fff !important;
  stroke-width: 1.2;
  filter: brightness(1.1) drop-shadow(0 0 10px rgba(255, 184, 0, 0.6));
}

.map-border-glow path {
  pointer-events: none;
  filter: blur(0.8px);
  animation: borderShimmer 4s ease-in-out infinite;
}

@keyframes borderShimmer {
  0%, 100% { stroke-opacity: 0.15; }
  50% { stroke-opacity: 0.4; }
}

.city-glow {
  animation: cityPulse 3s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

@keyframes cityPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.5); opacity: 0.25; }
}

.capital-pulse {
  animation: capitalPulse 2.5s ease-in-out infinite !important;
}

@keyframes capitalPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.7); opacity: 0.2; }
}

.map-cities .city:nth-child(2) .city-glow { animation-delay: 0.2s; }
.map-cities .city:nth-child(3) .city-glow { animation-delay: 0.4s; }
.map-cities .city:nth-child(4) .city-glow { animation-delay: 0.6s; }
.map-cities .city:nth-child(5) .city-glow { animation-delay: 0.8s; }
.map-cities .city:nth-child(6) .city-glow { animation-delay: 1.0s; }
.map-cities .city:nth-child(7) .city-glow { animation-delay: 1.2s; }
.map-cities .city:nth-child(8) .city-glow { animation-delay: 1.4s; }
.map-cities .city:nth-child(9) .city-glow { animation-delay: 1.6s; }
.map-cities .city:nth-child(10) .city-glow { animation-delay: 1.8s; }
.map-cities .city:nth-child(11) .city-glow { animation-delay: 2.0s; }
.map-cities .city:nth-child(12) .city-glow { animation-delay: 2.2s; }
.map-cities .city:nth-child(13) .city-glow { animation-delay: 2.4s; }
.map-cities .city:nth-child(14) .city-glow { animation-delay: 2.6s; }
.map-cities .city:nth-child(15) .city-glow { animation-delay: 2.8s; }
.map-cities .city:nth-child(16) .city-glow { animation-delay: 0.5s; }
.map-cities .city:nth-child(17) .city-glow { animation-delay: 0.9s; }
.map-cities .city:nth-child(18) .city-glow { animation-delay: 1.3s; }
.map-cities .city:nth-child(19) .city-glow { animation-delay: 1.7s; }
.map-cities .city:nth-child(20) .city-glow { animation-delay: 2.1s; }

.map-cities .city {
  cursor: pointer;
  transition: filter var(--t-fast);
}

.map-cities .city:hover {
  filter: drop-shadow(0 0 8px rgba(255, 184, 0, 0.8));
}

.map-cities .city text {
  pointer-events: none;
  transition: font-size var(--t-fast);
}

/* — Minab — special marker with decorative flower — */
.city-minab { cursor: pointer; }

.minab-aura {
  transform-box: fill-box;
  transform-origin: center;
  animation: minabAura 3.6s ease-in-out infinite;
}

@keyframes minabAura {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.4); opacity: 0.35; }
}

/* The .map-flower <g> already has SVG transform="translate(488 467)".
   We rotate the inner petal layers around their own bbox center using
   individual transform properties (rotate/scale) so the two animations
   compose without overwriting each other. */
.map-flower .flower-petals,
.map-flower .flower-inner {
  transform-box: fill-box;
  transform-origin: center;
}

.map-flower .flower-petals {
  animation: flowerSpin 28s linear infinite, flowerBreathe 4.2s ease-in-out infinite;
}

.map-flower .flower-inner {
  animation: flowerSpinReverse 22s linear infinite, flowerBreathe 4.2s ease-in-out infinite reverse;
}

@keyframes flowerSpin {
  to { rotate: 360deg; }
}

@keyframes flowerSpinReverse {
  to { rotate: -360deg; }
}

@keyframes flowerBreathe {
  0%, 100% { scale: 1; }
  50% { scale: 1.1; }
}

.city-minab:hover .map-flower .flower-petals,
.city-minab:hover .map-flower .flower-inner {
  filter: drop-shadow(0 0 6px rgba(255, 184, 0, 0.75)) drop-shadow(0 0 12px rgba(230, 57, 70, 0.45));
}

.city-minab:hover .minab-aura {
  animation-duration: 1.8s;
}

.map-routes path {
  stroke-dasharray: 6 5;
  animation: routeDash 25s linear infinite;
}

@keyframes routeDash {
  to { stroke-dashoffset: -300; }
}

.map-compass circle {
  transition: stroke var(--t-mid);
}

.coverage-map:hover .map-compass circle {
  stroke: #FFB800;
  stroke-width: 2;
}

.province-tooltip {
  position: absolute;
  pointer-events: none;
  padding: 6px 12px;
  background: rgba(15, 30, 61, 0.95);
  color: var(--post-yellow);
  border: 1px solid var(--post-yellow);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.province-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.map-live-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(15, 30, 61, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cream);
  backdrop-filter: blur(10px);
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* — Tapin logo on the map — minimal, just the mark — */
.map-tech-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: rgba(10, 22, 40, 0.7);
  border: 1px solid rgba(255, 184, 0, 0.18);
  border-radius: 999px;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 3;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  opacity: 0.8;
  transition: opacity .35s ease, transform .35s ease, border-color .35s ease, box-shadow .35s ease, background .35s ease;
}

.map-tech-badge img {
  height: 18px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
  transition: transform .35s ease, filter .35s ease;
}

.map-tech-badge:hover {
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(255, 184, 0, 0.55);
  background: rgba(15, 30, 61, 0.92);
  box-shadow: 0 8px 22px -6px rgba(255, 184, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.map-tech-badge:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 8px rgba(255, 184, 0, 0.45));
}

.map-tech-badge:focus-visible {
  outline: 2px solid var(--post-yellow);
  outline-offset: 3px;
  opacity: 1;
}

@media (max-width: 600px) {
  .map-tech-badge {
    top: 10px;
    left: 10px;
    padding: 5px 8px;
  }
  .map-tech-badge img { height: 15px; }
}

.map-live-badge .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
  flex-shrink: 0;
}

.map-live-badge .live-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #10b981;
  animation: livePulse 1.8s ease-out infinite;
}

@keyframes livePulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.6); opacity: 0; }
}

.map-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
  padding: 18px 8px 4px;
  border-top: 1px solid rgba(255, 184, 0, 0.15);
}

.ms-item {
  text-align: center;
  padding: 8px 4px;
  border-radius: 12px;
  background: rgba(255, 184, 0, 0.05);
  border: 1px solid rgba(255, 184, 0, 0.1);
  transition: all var(--t-fast);
}

.ms-item:hover {
  background: rgba(255, 184, 0, 0.1);
  border-color: rgba(255, 184, 0, 0.3);
  transform: translateY(-2px);
}

.ms-val {
  font-size: 24px;
  font-weight: 900;
  color: var(--post-yellow);
  line-height: 1;
  font-family: 'Vazirmatn', sans-serif;
}

.ms-lbl {
  font-size: 11px;
  color: rgba(255, 251, 240, 0.65);
  margin-top: 6px;
  font-weight: 600;
}

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

@media (max-width: 600px) {
  .coverage { padding: 80px 0; }
  .map-stats { grid-template-columns: repeat(2, 1fr); }
  .ms-val { font-size: 20px; }
  .map-live-badge { font-size: 11px; padding: 6px 10px; }
  .coverage-map { padding: 18px; }
}

/* ============================================
   FAIR
   ============================================ */
.fair {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--parchment) 0%, var(--post-yellow-soft) 100%);
  position: relative;
  overflow: hidden;
}

.fair-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.confetti {
  position: absolute;
  inset: 0;
}

.confetti span {
  position: absolute;
  width: 12px;
  height: 12px;
  opacity: 0.5;
  animation: confettiFall 6s linear infinite;
}

.confetti span:nth-child(1) { left: 10%; background: var(--fair-red); animation-delay: 0s; }
.confetti span:nth-child(2) { left: 20%; background: var(--post-yellow); animation-delay: 0.5s; border-radius: 50%; }
.confetti span:nth-child(3) { left: 30%; background: var(--ink); animation-delay: 1s; transform: rotate(45deg); }
.confetti span:nth-child(4) { left: 45%; background: var(--gold); animation-delay: 1.5s; }
.confetti span:nth-child(5) { left: 55%; background: var(--fair-red); animation-delay: 2s; border-radius: 50%; }
.confetti span:nth-child(6) { left: 65%; background: var(--post-yellow); animation-delay: 2.5s; }
.confetti span:nth-child(7) { left: 75%; background: var(--ink); animation-delay: 3s; border-radius: 50%; }
.confetti span:nth-child(8) { left: 85%; background: var(--gold); animation-delay: 3.5s; transform: rotate(45deg); }
.confetti span:nth-child(9) { left: 90%; background: var(--fair-red); animation-delay: 4s; }
.confetti span:nth-child(10) { left: 5%; background: var(--post-yellow); animation-delay: 4.5s; border-radius: 50%; }

@keyframes confettiFall {
  0% { transform: translateY(-50px) rotate(0deg); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.fair-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.fair-visual {
  display: flex;
  justify-content: center;
}

.fair-stand {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.stand-roof {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, var(--fair-red) 0%, var(--fair-red-2) 100%);
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0% 100%);
  position: relative;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.stand-roof::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background:
    repeating-linear-gradient(90deg,
      var(--cream) 0,
      var(--cream) 20px,
      var(--fair-red) 20px,
      var(--fair-red) 40px);
}

.stand-banner {
  width: 100%;
  padding: 16px;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 700;
  font-size: 14px;
}

.banner-em {
  font-size: 22px;
  background: linear-gradient(135deg, var(--post-yellow), var(--fair-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stand-shelves {
  background: linear-gradient(180deg, #d4a574 0%, #b8855a 100%);
  padding: 16px;
  position: relative;
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.2);
}

.shelf {
  display: flex;
  gap: 4px;
  background: linear-gradient(180deg, transparent 90%, rgba(0, 0, 0, 0.3) 100%);
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 4px solid #8b5e3c;
}

.shelf:last-child {
  margin-bottom: 0;
  border-bottom: 8px solid #8b5e3c;
}

.book {
  flex: 1;
  height: 70px;
  border-radius: 2px 2px 0 0;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
  position: relative;
  cursor: pointer;
  transition: transform var(--t-mid);
}

.book:hover {
  transform: translateY(-8px);
}

.book::after {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 4px;
  right: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(0, 0, 0, 0.2);
}

.book-c1 { background: linear-gradient(180deg, var(--fair-red) 0%, var(--fair-red-2) 100%); }
.book-c2 { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.book-c3 { background: linear-gradient(180deg, var(--post-yellow) 0%, var(--post-yellow-2) 100%); }
.book-c4 { background: linear-gradient(180deg, #2d6a4f 0%, #1b4332 100%); }
.book-c5 { background: linear-gradient(180deg, var(--gold) 0%, #a08540 100%); }
.book-c6 { background: linear-gradient(180deg, #6a4c93 0%, #4a3675 100%); }

.stand-base {
  height: 30px;
  background: linear-gradient(180deg, #8b5e3c 0%, #5d3e26 100%);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 20px 40px rgba(15, 30, 61, 0.2);
}

.fair-content .section-eyebrow {
  justify-content: flex-start;
}

.fair-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 36px 0 36px;
}

.ff-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 30, 61, 0.06);
  transition: all var(--t-mid);
}

.ff-item:hover {
  background: var(--white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.ff-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--fair-red) 0%, var(--post-yellow) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  flex-shrink: 0;
}

.ff-icon svg { width: 22px; height: 22px; }

.ff-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.ff-item p {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .fair-grid { grid-template-columns: 1fr; }
  .fair-visual { max-width: 360px; margin: 0 auto; }
}

@media (max-width: 600px) {
  .fair-features { grid-template-columns: 1fr; }
  .fair { padding: 80px 0; }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  padding: 120px 0 60px;
  background: var(--cream);
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 80px;
}

.testimonial {
  position: relative;
  padding: 36px 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 30, 61, 0.06);
  transition: all var(--t-mid);
}

.testimonial:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--post-yellow);
}

.quote-mark {
  width: 40px;
  height: 40px;
  color: var(--post-yellow);
  opacity: 0.4;
  margin-bottom: 16px;
}

.testimonial p {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.85;
  margin-bottom: 24px;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-300);
}

.t-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--cream);
  font-size: 16px;
}

.t-av1 { background: linear-gradient(135deg, var(--fair-red) 0%, var(--fair-red-2) 100%); }
.t-av2 { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%); }
.t-av3 { background: linear-gradient(135deg, var(--post-yellow) 0%, var(--gold) 100%); }

.t-author strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.t-author span {
  font-size: 12px;
  color: var(--gray-500);
}

/* Publishers marquee */
.publishers-marquee {
  margin-top: 80px;
  overflow: hidden;
  padding: 30px 0;
  border-top: 1px solid rgba(15, 30, 61, 0.08);
  border-bottom: 1px solid rgba(15, 30, 61, 0.08);
  position: relative;
}

.publishers-marquee::before,
.publishers-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.publishers-marquee::before { right: 0; background: linear-gradient(270deg, var(--cream), transparent); }
.publishers-marquee::after { left: 0; background: linear-gradient(90deg, var(--cream), transparent); }

.pm-track {
  display: inline-flex;
  align-items: center;
  gap: 60px;
  animation: marqueeSlow 25s linear infinite;
  white-space: nowrap;
}

@keyframes marqueeSlow {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.pm-item {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-500);
  transition: color var(--t-fast);
  white-space: nowrap;
}

.pm-item:hover { color: var(--ink); }

@media (max-width: 1024px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials { padding: 80px 0 40px; }
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  padding: 100px 0 120px;
  background: var(--paper);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: flex-start;
}

.faq-head .section-eyebrow {
  justify-content: flex-start;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 30, 61, 0.06);
  overflow: hidden;
  transition: all var(--t-mid);
}

.faq-item:hover {
  border-color: rgba(255, 184, 0, 0.3);
}

.faq-item[open] {
  border-color: var(--post-yellow);
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  cursor: pointer;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  transition: color var(--t-fast);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--parchment);
  position: relative;
  flex-shrink: 0;
  transition: background var(--t-fast), transform var(--t-mid);
}

.faq-toggle::before, .faq-toggle::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 12px;
  height: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform var(--t-mid);
}

.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-item[open] .faq-toggle {
  background: var(--post-yellow);
  transform: rotate(45deg);
}

.faq-item[open] .faq-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-body {
  padding: 0 24px 24px;
}

.faq-body p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.85;
  border-right: 3px solid var(--post-yellow);
  padding-right: 16px;
}

@media (max-width: 1024px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq { padding: 80px 0; }
}

/* ============================================
   CTA / REGISTER
   ============================================ */
.cta {
  padding: 100px 0;
  background: var(--cream);
  position: relative;
}

.cta-card {
  position: relative;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  border-radius: var(--radius-xl);
  padding: 80px;
  color: var(--cream);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.15) 0%, transparent 50%);
  transform: rotate(-25deg);
  pointer-events: none;
}

.cta-stamps {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cta-stamp {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid rgba(255, 184, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-stamp::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(255, 184, 0, 0.2);
  border-radius: 50%;
}

.s1 { top: 8%; left: 5%; transform: rotate(-15deg); animation: stampSpin 30s linear infinite; }
.s2 { top: 60%; right: 10%; transform: rotate(20deg); width: 140px; height: 140px; animation: stampSpin 40s linear reverse infinite; }
.s3 { bottom: 10%; left: 30%; width: 80px; height: 80px; animation: stampSpin 25s linear infinite; }

@keyframes stampSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-content {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.cta-eyebrow {
  display: inline-block;
  background: rgba(255, 184, 0, 0.2);
  color: var(--post-yellow);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta-emph {
  background: linear-gradient(135deg, var(--post-yellow) 0%, var(--fair-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-desc {
  color: rgba(255, 251, 240, 0.75);
  font-size: 16px;
}

.cta-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-action {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 22px;
  border-radius: 18px;
  background: rgba(255, 251, 240, 0.06);
  border: 1px solid rgba(255, 251, 240, 0.14);
  color: var(--cream);
  text-align: right;
  transition: transform var(--t-mid), background var(--t-mid), border-color var(--t-mid), box-shadow var(--t-mid);
  position: relative;
  overflow: hidden;
}

.cta-action::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.0) 0%, rgba(255, 184, 0, 0.18) 100%);
  opacity: 0;
  transition: opacity var(--t-mid);
}

.cta-action:hover {
  transform: translateY(-4px);
  border-color: var(--post-yellow);
  box-shadow: 0 18px 40px rgba(255, 184, 0, 0.18);
}

.cta-action:hover::before { opacity: 1; }
.cta-action > * { position: relative; z-index: 1; }

.cta-action-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 184, 0, 0.12);
  color: var(--post-yellow);
  border: 1px solid rgba(255, 184, 0, 0.25);
}

.cta-action-primary .cta-action-icon {
  background: var(--post-yellow);
  color: var(--ink);
  border-color: var(--post-yellow);
}

.cta-action-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.cta-action-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--cream);
}

.cta-action-sub {
  font-size: 13px;
  color: rgba(255, 251, 240, 0.65);
}

.cta-action-url {
  font-size: 12px;
  color: var(--post-yellow);
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-top: 2px;
  font-family: 'Vazirmatn', monospace;
}

.cta-action-arrow {
  flex-shrink: 0;
  color: rgba(255, 251, 240, 0.5);
  transition: transform var(--t-mid), color var(--t-mid);
}

.cta-action:hover .cta-action-arrow {
  color: var(--post-yellow);
  transform: translateX(-6px);
}

@media (max-width: 900px) {
  .cta-actions { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .cta-card { padding: 50px 28px; }
  .cta { padding: 60px 0; }
  .cta-action { padding: 18px; }
  .cta-action-title { font-size: 15px; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0 30px;
  position: relative;
  border-top: 4px solid var(--post-yellow);
}

.footer::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg,
    var(--post-yellow) 0,
    var(--post-yellow) 30px,
    var(--fair-red) 30px,
    var(--fair-red) 60px,
    var(--ink) 60px,
    var(--ink) 90px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 251, 240, 0.7);
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 251, 240, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  transition: all var(--t-fast);
}

.footer-socials a:hover {
  background: var(--post-yellow);
  color: var(--ink);
  transform: translateY(-4px);
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--post-yellow);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--fair-red);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  font-size: 14px;
  color: rgba(255, 251, 240, 0.65);
  transition: all var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul a::before {
  content: '←';
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--t-fast);
  color: var(--post-yellow);
}

.footer-col ul a:hover {
  color: var(--post-yellow);
}

.footer-col ul a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 251, 240, 0.65);
}

.footer-contact li svg {
  color: var(--post-yellow);
  margin-top: 4px;
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 251, 240, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 13px;
  color: rgba(255, 251, 240, 0.5);
}

.footer-bottom__legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-bottom__legal p {
  margin: 0;
}

.stewardship {
  font-size: 12px;
  color: rgba(255, 251, 240, 0.45);
}

.stewardship strong {
  font-weight: 600;
  color: rgba(255, 251, 240, 0.75);
}

/* — “Crafted by Tapin” signature — subtle, refined, hover-reveal — */
.crafted-by {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 251, 240, 0.08);
  background: rgba(255, 251, 240, 0.02);
  color: rgba(255, 251, 240, 0.55);
  font-size: 12px;
  text-decoration: none;
  transition: color .35s ease, border-color .35s ease, background .35s ease, transform .35s ease, box-shadow .35s ease;
}

.crafted-by__label {
  letter-spacing: .2px;
  white-space: nowrap;
}

.crafted-by__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding-inline-start: 10px;
  border-inline-start: 1px solid rgba(255, 251, 240, 0.12);
  transition: border-color .35s ease;
}

.crafted-by__mark img {
  height: 18px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1) opacity(0.55);
  transition: filter .35s ease, transform .35s ease;
}

.crafted-by:hover {
  color: rgba(255, 251, 240, 0.9);
  border-color: rgba(255, 184, 0, 0.45);
  background: rgba(255, 184, 0, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -8px rgba(255, 184, 0, 0.45);
}

.crafted-by:hover .crafted-by__mark {
  border-inline-start-color: rgba(255, 184, 0, 0.35);
}

.crafted-by:hover .crafted-by__mark img {
  filter: none;
  transform: scale(1.04);
}

.crafted-by:focus-visible {
  outline: 2px solid var(--post-yellow);
  outline-offset: 3px;
}

.footer-badges {
  display: flex;
  gap: 10px;
}

.badge-mini {
  padding: 6px 12px;
  border: 1px solid rgba(255, 251, 240, 0.15);
  border-radius: 6px;
  font-size: 11px;
  color: rgba(255, 251, 240, 0.7);
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer { padding: 60px 0 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom__legal { align-items: center; }
  .crafted-by { order: 3; }
}

/* ============================================
   GLASS UTILITY
   ============================================ */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
