/* ============================================================
   آکادمی آینده‌سازان هوشمند فرهنگی
   Academy of Intelligent Cultural Future Makers
   Master Stylesheet — v5.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&family=Vazirmatn:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

/* ============================================================
   متغیرها — تم روشن (پیش‌فرض)
   ============================================================ */
:root {
  /* رنگ‌های اصلی */
  --gold: #D4A843;
  --gold-dark: #B8902F;
  --gold-light: #F0D890;
  --navy: #1A2A4A;
  --navy-light: #2A3F66;
  --pearl: #FBF7F0;
  --pearl-dark: #F0E9DC;
  --cream: #FFFBF5;
  --earth: #8B6F47;
  --olive: #7A9255;
  --olive-light: #A8BE8A;
  --turquoise: #4DB6AC;
  --turquoise-light: #80CBC4;
  --violet: #2D1B3D;
  --rose: #E8A8B0;
  --sky: #A8D5E8;

  /* رنگ‌های سیستم */
  --bg: #FBF7F0;
  --bg-gradient: linear-gradient(180deg, #FBF7F0 0%, #F5EDDF 100%);
  --surface: #FFFFFF;
  --surface-2: #F8F1E4;
  --surface-3: #F2E9D8;
  --surface-accent: #FFF4E0;

  --text: #1A2A4A;
  --text-soft: #5C6B85;
  --text-light: #8A94A8;

  --border: rgba(26, 42, 74, .10);
  --border-accent: rgba(212, 168, 67, .30);

  --shadow-sm: 0 2px 10px rgba(26, 42, 74, .06);
  --shadow: 0 12px 32px rgba(26, 42, 74, .10);
  --shadow-lg: 0 24px 60px rgba(26, 42, 74, .14);
  --shadow-gold: 0 12px 32px rgba(212, 168, 67, .28);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --font-fa: "Vazirmatn", "IranSans", Tahoma, sans-serif;
  --font-en: "Inter", sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-mono: "JetBrains Mono", monospace;

  --container: 1200px;
  --transition: 240ms cubic-bezier(.4, 0, .2, 1);

  --header-height: 68px;
}

/* ============================================================
   تم تاریک
   ============================================================ */
[data-theme="dark"] {
  --bg: #131A28;
  --bg-gradient: linear-gradient(180deg, #131A28 0%, #1A2334 100%);
  --surface: #1C2638;
  --surface-2: #24304A;
  --surface-3: #2D3A55;
  --surface-accent: #2A3852;

  --text: #F5F0E8;
  --text-soft: #B8C2D5;
  --text-light: #8894AA;

  --border: rgba(245, 240, 232, .10);
  --border-accent: rgba(212, 168, 67, .40);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .25);
  --shadow: 0 12px 32px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
  --shadow-gold: 0 12px 32px rgba(212, 168, 67, .35);
}

/* ============================================================
   ریست
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-fa);
  line-height: 1.85;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

body.lang-en { direction: ltr; font-family: var(--font-en); }
body.lang-en .fa-only { display: none !important; }
body:not(.lang-en) .en-only { display: none !important; }

img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; }

::selection { background: var(--gold); color: var(--navy); }

/* اسکرول‌بار زیبا */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
  border: 2px solid var(--surface-2);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ============================================================
   Container
   ============================================================ */
.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* ============================================================
   Skip Link
   ============================================================ */
.skip-link {
  position: fixed;
  top: -100px;
  inset-inline-start: 16px;
  z-index: 9999;
  background: var(--navy);
  color: var(--pearl);
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  transition: top var(--transition);
}
.skip-link:focus { top: 16px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   نوار شعارهای متحرک — Ticker
   ============================================================ */
.ticker {
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-light));
  color: var(--navy);
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  border-block: 1px solid rgba(26, 42, 74, .15);
  font-weight: 700;
  font-size: 14px;
}

.ticker--top { order: -1; }

.ticker--middle {
  background: linear-gradient(90deg, var(--turquoise-light), var(--turquoise), var(--turquoise-light));
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
}

.ticker--bottom {
  background: linear-gradient(90deg, var(--olive-light), var(--olive), var(--olive-light));
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
}

.ticker__track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: tickerMove 40s linear infinite;
  will-change: transform;
}

.ticker:hover .ticker__track { animation-play-state: paused; }

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ticker__item::before {
  content: "✦";
  opacity: .6;
  font-size: 12px;
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* نسخه آرام‌تر برای موبایل */
@media (max-width: 640px) {
  .ticker { font-size: 12px; padding: 8px 0; }
  .ticker__track { gap: 40px; animation-duration: 30s; }
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.navbar {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* برند */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 35%, #fff8d8 0 12%, var(--gold) 13% 32%, transparent 33%),
    conic-gradient(from 0deg, var(--gold), var(--gold-light), var(--olive), var(--gold));
  box-shadow: 0 0 22px rgba(212, 168, 67, .38);
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
}

.brand-text small {
  display: block;
  font-size: 9px;
  font-weight: 500;
  color: var(--text-soft);
  direction: ltr;
  text-align: right;
  letter-spacing: .02em;
}

/* ناوبری */
.nav-links {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-dark);
  background: rgba(212, 168, 67, .12);
}

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
  color: var(--gold-light);
}

/* اکشن‌های ناوبری */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 16px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-gold);
}

.menu-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: var(--shadow-sm);
}

/* منوی موبایل */
.mobile-menu {
  display: none;
  padding: 10px 0 20px;
  border-top: 1px solid var(--border);
}

.mobile-menu.open {
  display: block;
  animation: fadeSlideDown .3s ease;
}

.mobile-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--text-soft);
  border-radius: 12px;
  font-weight: 600;
  transition: var(--transition);
}

.mobile-menu a:hover {
  background: var(--surface-2);
  color: var(--gold-dark);
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5 {
  margin: 0 0 14px;
  line-height: 1.28;
  color: var(--text);
  font-weight: 800;
}

h1 { font-size: clamp(2rem, 6.5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.05rem; }
h5 { font-size: .95rem; }

p { margin: 0 0 14px; }

.muted { color: var(--text-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
}

[data-theme="dark"] .eyebrow { color: var(--gold-light); }

.en-title {
  font-family: var(--font-display);
  letter-spacing: .02em;
  font-weight: 600;
}

.lead {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.9;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  min-height: 48px;
  padding: 12px 26px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  box-shadow: 0 16px 40px rgba(212, 168, 67, .42);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--gold);
  background: var(--surface-accent);
}

.btn-turquoise {
  background: linear-gradient(135deg, var(--turquoise), #26A69A);
  color: #fff;
  box-shadow: 0 12px 30px rgba(77, 182, 172, .30);
}

.btn-olive {
  background: linear-gradient(135deg, var(--olive), #5B7340);
  color: #fff;
  box-shadow: 0 12px 30px rgba(122, 146, 85, .30);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--gold);
}

.btn-sm {
  min-height: 38px;
  padding: 8px 18px;
  font-size: 13px;
}

.btn-lg {
  min-height: 56px;
  padding: 16px 34px;
  font-size: 15px;
}

.btn-block { width: 100%; }

/* ============================================================
   Section
   ============================================================ */
.section {
  padding: 80px 0;
  position: relative;
}

.section-sm { padding: 50px 0; }
.section-lg { padding: 110px 0; }

.section-alt {
  background: var(--surface-2);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 780px;
  margin-bottom: 40px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--text-soft); margin: 0; }

/* ============================================================
   Card — باکس‌های روشن و جذاب
   ============================================================ */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-5 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow);
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(212, 168, 67, .18), rgba(212, 168, 67, .06));
  border: 1.5px solid rgba(212, 168, 67, .25);
  font-size: 28px;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.card-icon--turquoise {
  background: linear-gradient(135deg, rgba(77, 182, 172, .18), rgba(77, 182, 172, .06));
  border-color: rgba(77, 182, 172, .30);
}

.card-icon--olive {
  background: linear-gradient(135deg, rgba(122, 146, 85, .18), rgba(122, 146, 85, .06));
  border-color: rgba(122, 146, 85, .30);
}

.card-icon--rose {
  background: linear-gradient(135deg, rgba(232, 168, 176, .20), rgba(232, 168, 176, .06));
  border-color: rgba(232, 168, 176, .35);
}

.card-icon--violet {
  background: linear-gradient(135deg, rgba(45, 27, 61, .14), rgba(45, 27, 61, .04));
  border-color: rgba(45, 27, 61, .25);
}

.card h3 {
  margin-bottom: 8px;
  color: var(--text);
}

.card p {
  color: var(--text-soft);
  font-size: .93rem;
  margin: 0 0 16px;
  flex-grow: 1;
}

.card-link {
  font-weight: 700;
  color: var(--gold-dark);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition), color var(--transition);
  margin-top: auto;
}

.card-link:hover {
  gap: 12px;
  color: var(--gold);
}

[data-theme="dark"] .card-link { color: var(--gold-light); }

.card-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
  margin-inline-end: 6px;
  margin-bottom: 6px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 70px;
  background:
    radial-gradient(circle at 88% 12%, rgba(212, 168, 67, .15), transparent 35%),
    radial-gradient(circle at 8% 85%, rgba(77, 182, 172, .12), transparent 38%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .4), transparent 70%);
}

[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(212, 168, 67, .12), transparent 35%),
    radial-gradient(circle at 8% 85%, rgba(77, 182, 172, .10), transparent 38%);
}

.hero-grid {
  display: grid;
  gap: 50px;
  align-items: center;
}

.hero-copy { max-width: 760px; }

.hero h1 { margin-bottom: 20px; }

.hero h1 .accent {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  color: var(--gold-dark);
  font-weight: 700;
  max-width: 680px;
  margin-bottom: 14px;
  line-height: 1.5;
}

[data-theme="dark"] .hero-subtitle { color: var(--gold-light); }

.hero-description {
  color: var(--text-soft);
  max-width: 700px;
  margin: 18px 0 30px;
  font-size: 1.02rem;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Visual Orbit */
.hero-visual {
  position: relative;
  width: min(84vw, 400px);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
}

.hero-visual__ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(212, 168, 67, .35);
  border-radius: 50%;
  animation: rotateSlow 60s linear infinite;
}

.hero-visual__ring::before,
.hero-visual__ring::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px dashed rgba(212, 168, 67, .28);
  border-radius: 50%;
}

.hero-visual__ring::after {
  inset: 22%;
  border-style: solid;
  border-color: rgba(122, 146, 85, .32);
}

.hero-visual__ring2 {
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(77, 182, 172, .28);
  border-radius: 50%;
  animation: rotateSlow 45s linear infinite reverse;
}

.hero-visual__core {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 45% 35%, #fff8d8, var(--gold) 42%, var(--earth));
  color: var(--navy);
  font-size: 50px;
  box-shadow:
    0 0 60px rgba(212, 168, 67, .48),
    inset 0 -8px 24px rgba(0, 0, 0, .12);
  z-index: 3;
  position: relative;
  animation: pulseSlow 4s ease-in-out infinite;
}

@keyframes pulseSlow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.orbit-node {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-sm);
  font-size: 20px;
  z-index: 2;
  transition: transform var(--transition);
}

.orbit-node:hover {
  transform: scale(1.15);
  border-color: var(--turquoise);
}

.orbit-node--1 { top: -6px; left: 50%; transform: translateX(-50%); }
.orbit-node--2 { top: 22%; right: -6px; }
.orbit-node--3 { bottom: 22%; right: -6px; }
.orbit-node--4 { bottom: -6px; left: 50%; transform: translateX(-50%); }
.orbit-node--5 { bottom: 22%; left: -6px; }
.orbit-node--6 { top: 22%; left: -6px; }

@keyframes rotateSlow {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

/* ============================================================
   Stats Bar
   ============================================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--border);
  margin-top: 50px;
  box-shadow: var(--shadow-sm);
}

.stat-item {
  background: var(--surface);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition);
}

.stat-item:hover {
  background: var(--surface-accent);
  transform: scale(1.02);
}

.stat-number {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 8px;
  font-family: var(--font-display);
}

[data-theme="dark"] .stat-number { color: var(--gold-light); }

.stat-label {
  font-size: .82rem;
  color: var(--text-soft);
  font-weight: 600;
}

/* ============================================================
   AI Live Widget — نشانگر فعالیت هوش مصنوعی
   ============================================================ */
.ai-live {
  background: linear-gradient(135deg, var(--surface), var(--surface-accent));
  border: 1.5px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.ai-live::before {
  content: "";
  position: absolute;
  top: -50%;
  inset-inline-start: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 182, 172, .18), transparent 70%);
  pointer-events: none;
}

.ai-live__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
}

.ai-live__pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--turquoise);
  box-shadow: 0 0 0 0 rgba(77, 182, 172, .7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(77, 182, 172, .7); }
  70% { box-shadow: 0 0 0 12px rgba(77, 182, 172, 0); }
  100% { box-shadow: 0 0 0 0 rgba(77, 182, 172, 0); }
}

.ai-live__title {
  font-weight: 800;
  color: var(--text);
  font-size: 1rem;
}

.ai-live__status {
  color: var(--turquoise);
  font-size: .82rem;
  font-weight: 700;
}

.ai-live__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ai-live__list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .88rem;
  color: var(--text-soft);
}

.ai-live__list li:last-child { border-bottom: none; }

.ai-live__list .ai-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  color: #fff;
}

.ai-badge--groq     { background: linear-gradient(135deg, #FF6B6B, #C44536); }
.ai-badge--gemini   { background: linear-gradient(135deg, #4285F4, #34A853); }
.ai-badge--hf       { background: linear-gradient(135deg, #FFD21E, #FF9D00); color: #1A2A4A; }
.ai-badge--kokoro   { background: linear-gradient(135deg, #D4A843, #B8902F); color: #1A2A4A; }
.ai-badge--zenodo   { background: linear-gradient(135deg, #4A90B8, #1A2A4A); }
.ai-badge--openrouter { background: linear-gradient(135deg, #6B7F4A, #2D1B3D); }

/* ============================================================
   Cultural ID Card Promo
   ============================================================ */
.id-card-promo {
  background: linear-gradient(135deg, #FFF8E7, #F5E6C8);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-gold);
}

[data-theme="dark"] .id-card-promo {
  background: linear-gradient(135deg, #2A3852, #1C2638);
}

.id-card-promo::before {
  content: "";
  position: absolute;
  top: -40px;
  inset-inline-end: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 67, .30), transparent 70%);
  pointer-events: none;
}

.id-card-promo h3 {
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

[data-theme="dark"] .id-card-promo h3 { color: var(--gold-light); }

.id-card-promo p {
  color: var(--text-soft);
  font-size: .93rem;
  margin-bottom: 20px;
}

/* ============================================================
   Form Wizard
   ============================================================ */
.form-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin-inline: auto;
}

.form-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 30px;
}

.form-progress__step {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-3);
  transition: background var(--transition);
}

.form-progress__step.active,
.form-progress__step.done {
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
}

.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn .35s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-step h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.form-step .step-label {
  display: inline-block;
  font-size: .75rem;
  color: var(--gold-dark);
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

[data-theme="dark"] .form-step .step-label { color: var(--gold-light); }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
}

.form-control {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  outline: none;
  font-family: inherit;
  font-size: .92rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--gold);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(212, 168, 67, .15);
}

textarea.form-control { min-height: 120px; resize: vertical; }

.form-hint {
  font-size: .78rem;
  color: var(--text-light);
  margin-top: 6px;
  display: block;
}

.choice-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.choice label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  transition: var(--transition);
}

.choice label:hover {
  border-color: var(--gold);
  background: var(--surface);
}

.choice input:checked + label {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(212, 168, 67, .12), rgba(212, 168, 67, .04));
  box-shadow: 0 0 0 4px rgba(212, 168, 67, .12);
}

/* باکس کد کارت هویت */
.cultural-id-box {
  background: linear-gradient(135deg, #FFF8E7, #F5E6C8);
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
}

[data-theme="dark"] .cultural-id-box {
  background: linear-gradient(135deg, #2A3852, #1C2638);
}

.cultural-id-box h4 {
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

[data-theme="dark"] .cultural-id-box h4 { color: var(--gold-light); }

.cultural-id-box p {
  color: var(--text-soft);
  font-size: .85rem;
  margin-bottom: 14px;
}

.cultural-id-box input {
  max-width: 340px;
  margin-inline: auto;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: .04em;
  font-weight: 600;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.form-message {
  display: none;
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(122, 146, 85, .15), rgba(122, 146, 85, .06));
  border: 1px solid rgba(122, 146, 85, .30);
  color: var(--olive);
  font-weight: 700;
  font-size: .92rem;
}

.form-message.show {
  display: block;
  animation: fadeIn .3s ease;
}

.form-message--error {
  background: linear-gradient(135deg, rgba(196, 69, 54, .12), rgba(196, 69, 54, .04));
  border-color: rgba(196, 69, 54, .30);
  color: var(--red);
}

/* ============================================================
   Cultural ID Card — کارت هویت
   ============================================================ */
.id-card {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1.55;
  margin: 30px auto;
  perspective: 1200px;
  cursor: pointer;
}

.id-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .8s cubic-bezier(.4, 0, .2, 1);
  transform-style: preserve-3d;
}

.id-card.flipped .id-card__inner {
  transform: rotateY(180deg);
}

.id-card__front,
.id-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  text-align: center;
}

.id-card__front {
  background:
    radial-gradient(circle at 20% 15%, rgba(212, 168, 67, .25), transparent 45%),
    linear-gradient(160deg, #2A3852 0%, #1A2A4A 60%, #0F1A2E 100%);
  color: #F5F0E8;
  border: 2px solid var(--gold);
}

.id-card__back {
  background:
    radial-gradient(circle at 80% 85%, rgba(212, 168, 67, .25), transparent 45%),
    linear-gradient(160deg, #1A2A4A 0%, #0F1A2E 100%);
  color: #F5F0E8;
  border: 2px solid var(--gold);
  transform: rotateY(180deg);
}

.id-card__logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 35%, #fff8d8, var(--gold) 45%, var(--gold-dark));
  display: grid;
  place-items: center;
  font-size: 28px;
  margin: 0 auto 10px;
  box-shadow: 0 0 30px rgba(212, 168, 67, .55);
}

.id-card__title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 4px;
  line-height: 1.4;
}

.id-card__subtitle {
  font-size: .62rem;
  color: rgba(245, 240, 232, .65);
  direction: ltr;
  font-family: var(--font-display);
  letter-spacing: .04em;
  margin-bottom: 16px;
}

.id-card__name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.id-card__country {
  font-size: .8rem;
  color: rgba(245, 240, 232, .72);
  margin-bottom: 16px;
}

.id-card__code {
  background: rgba(0, 0, 0, .28);
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: .95rem;
  letter-spacing: .06em;
  color: var(--gold-light);
  margin-bottom: 8px;
  font-weight: 700;
  word-spacing: 4px;
  direction: ltr;
}

.id-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-bottom: 16px;
}

.id-card__tag {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 168, 67, .55);
  font-size: .62rem;
  color: var(--gold-light);
  font-weight: 600;
}

.id-card__qr {
  width: 90px;
  height: 90px;
  margin: 0 auto 12px;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  display: grid;
  place-items: center;
}

.id-card__footer {
  font-size: .58rem;
  color: rgba(245, 240, 232, .55);
  margin-top: auto;
  direction: ltr;
  font-family: var(--font-display);
}

.id-card__actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.id-card__actions button {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(212, 168, 67, .55);
  color: var(--gold-light);
  font-size: .75rem;
  font-weight: 700;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.id-card__actions button:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: linear-gradient(180deg, #1A2A4A 0%, #0F1A2E 100%);
  color: var(--pearl);
  padding: 60px 0 28px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
}

.footer-grid h4 {
  color: var(--gold);
  margin-bottom: 16px;
  font-size: .95rem;
  letter-spacing: .02em;
}

.footer-grid p {
  font-size: .87rem;
  color: rgba(245, 240, 232, .68);
  margin: 0 0 10px;
  line-height: 1.8;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: rgba(245, 240, 232, .68);
  font-size: .87rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateX(-4px);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-brand .brand-mark {
  width: 50px;
  height: 50px;
  font-size: 24px;
}

.footer-brand-text {
  color: var(--pearl);
  font-weight: 800;
  font-size: 15px;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 240, 232, .12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: rgba(245, 240, 232, .55);
  font-size: 12px;
}

.footer-bottom .en {
  font-family: var(--font-display);
  letter-spacing: .02em;
}

/* ============================================================
   Page Header (صفحات پیوست)
   ============================================================ */
.page-header {
  padding: 60px 0 40px;
  background:
    radial-gradient(circle at 80% 20%, rgba(212, 168, 67, .12), transparent 30%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.page-header__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.page-header__back:hover {
  color: var(--gold-dark);
  border-color: var(--gold);
  transform: translateX(-4px);
}

.page-header h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 10px;
}

.page-header p {
  color: var(--text-soft);
  max-width: 720px;
  font-size: 1.02rem;
  margin: 0;
}

/* ============================================================
   Back to Top
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  box-shadow: var(--shadow-gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 900;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
}

/* ============================================================
   Utilities
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.text-center { text-align: center; }
.text-gold { color: var(--gold-dark); }
.text-turquoise { color: var(--turquoise); }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.py-40 { padding-block: 40px; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 40px 0;
}

/* ============================================================
   Responsive — Tablet
   ============================================================ */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Responsive — Desktop
   ============================================================ */
@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .nav-links { display: flex; }
  .mobile-menu { display: none !important; }

  .hero { padding: 110px 0 100px; }
  .hero-grid { grid-template-columns: 1.3fr .7fr; gap: 70px; }

  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }

  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .hero-visual { width: 420px; }

  .form-card { padding: 42px 36px; }
}

@media (min-width: 1100px) {
  .container { width: min(100% - 60px, var(--container)); }
  .section { padding: 100px 0; }
}

/* ============================================================
   Reduce Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .hero-visual__ring,
  .hero-visual__ring2,
  .hero-visual__core { animation: none; }
  .ticker__track { animation: none; }
}

/* ============================================================
   Print
   ============================================================ */
@media print {
  .site-header, .site-footer, .back-to-top, .ticker, .hero-actions, .form-actions {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .card { box-shadow: none; border: 1px solid #ccc; }
}

/* ============================================================
   Mobile Fine-tuning
   ============================================================ */
@media (max-width: 480px) {
  .card { padding: 22px; }
  .btn { padding: 11px 22px; font-size: 13px; }
  .section { padding: 55px 0; }
  .form-card { padding: 22px 18px; }
  .id-card { max-width: 320px; }
  .id-card__code { font-size: .82rem; }
  .brand-text small { display: none; }
}