/* ============================================================
   مدار | باشگاه خصوصی مدیران و رهبران کسب‌وکار
   Design system  —  Navy (سرمه‌ای) + Gold (طلایی) + Cream
   Self-hosted Vazirmatn variable font. No external assets.
   ============================================================ */

/* ---------- Self-hosted font ---------- */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2-variations"),
       url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --navy:        #0a1a3d;
  --navy-2:      #122a5c;
  --navy-soft:   #1c3a72;
  --gold:        #c9a24e;
  --gold-bright: #e2bd6b;
  --gold-dark:   #a67c2e;

  /* Light theme surfaces */
  --bg:          #faf8f3;
  --bg-2:        #f4eede;
  --surface:     #ffffff;
  --surface-2:   #fbf7ee;
  --cream:       #f7f1e3;

  --text:        #11203f;
  --text-soft:   #41506b;
  --muted:       #6a7488;
  --line:        rgba(10, 26, 61, .10);
  --line-gold:   rgba(201, 162, 78, .38);
  --shadow:      0 18px 50px -28px rgba(10, 26, 61, .35);
  --shadow-soft: 0 10px 30px -22px rgba(10, 26, 61, .30);

  --gold-grad:   linear-gradient(135deg, #e2bd6b 0%, #c9a24e 45%, #a67c2e 100%);
  --navy-grad:   linear-gradient(150deg, #122a5c 0%, #0a1a3d 70%);

  --radius:      18px;
  --radius-sm:   12px;
  --radius-lg:   26px;
  --maxw:        1200px;
  --ease:        cubic-bezier(.22, .61, .36, 1);

  --ok:    #3f9a6d;
  --wait:  #c9a24e;
  --hold:  #8a93a6;
}

html.dark {
  --bg:          #060e1f;
  --bg-2:        #0a1730;
  --surface:     #0d1a35;
  --surface-2:   #102043;
  --cream:       #0f1d3a;

  --text:        #f1ede0;
  --text-soft:   #c3cbdc;
  --muted:       #8a96ad;
  --line:        rgba(201, 162, 78, .16);
  --line-gold:   rgba(201, 162, 78, .42);
  --shadow:      0 22px 60px -28px rgba(0, 0, 0, .8);
  --shadow-soft: 0 14px 40px -26px rgba(0, 0, 0, .7);

  --navy-grad:   linear-gradient(150deg, #0e1f44 0%, #060e1f 75%);
  --gold:        #d4b062;
  --gold-bright: #ecca81;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Vazirmatn", system-ui, "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  font-weight: 400;
  font-feature-settings: "ss01";
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}

[dir="ltr"] body { line-height: 1.7; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--gold); color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(56px, 8vw, 110px); position: relative; }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  color: var(--gold-dark);
  background: var(--line-gold);
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              var(--gold-grad) border-box;
  border: 1px solid transparent;
  padding: 6px 16px; border-radius: 100px;
}
html.dark .eyebrow { color: var(--gold-bright); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.h-title {
  font-weight: 800; line-height: 1.35;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  color: var(--text); letter-spacing: -.01em;
  margin-top: 16px;
}
.h-title .accent {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead {
  color: var(--text-soft); font-size: 1.04rem; max-width: 640px;
  margin-top: 14px;
}
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 100px; font-weight: 700; font-size: .96rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .3s;
  white-space: nowrap; border: 1px solid transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn-gold {
  background: var(--gold-grad); color: #1c1404;
  box-shadow: 0 12px 30px -12px rgba(201, 162, 78, .7);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -14px rgba(201, 162, 78, .85); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--line-gold);
}
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-3px); border-color: var(--gold); }
.btn-navy { background: var(--navy-grad); color: #fff; }
.btn-navy:hover { transform: translateY(-3px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.topbar.scrolled { box-shadow: var(--shadow-soft); }
.nav { display: flex; align-items: center; gap: 18px; height: 70px; }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; }
.brand .logo { width: 40px; height: 40px; flex: none; }
.brand .bt { font-size: 1.18rem; color: var(--text); line-height: 1.1; }
.brand .bs { font-size: .68rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav-links a {
  padding: 9px 14px; border-radius: 100px; font-size: .92rem; font-weight: 600;
  color: var(--text-soft); transition: color .25s, background .25s; position: relative;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }

.nav-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--text); background: var(--surface);
  transition: transform .25s, border-color .25s, background .3s;
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--gold); }
.icon-btn svg { width: 20px; height: 20px; }
.lang-btn { width: auto; padding-inline: 16px; gap: 7px; font-weight: 700; font-size: .85rem; border-radius: 100px; }

.sun { display: none; } .moon { display: block; }
html.dark .sun { display: block; } html.dark .moon { display: none; }

.nav-cta { padding: 11px 20px; font-size: .9rem; }

.burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding-top: clamp(40px, 6vw, 70px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.7rem); font-weight: 800; line-height: 1.28;
  letter-spacing: -.015em; color: var(--text);
}
.hero h1 .accent { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { color: var(--text-soft); font-size: 1.12rem; margin-top: 22px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-trust { display: flex; gap: 26px; margin-top: 38px; flex-wrap: wrap; }
.hero-trust .it { display: flex; flex-direction: column; }
.hero-trust .n { font-size: 1.7rem; font-weight: 800; color: var(--text); font-feature-settings: "ss01"; }
.hero-trust .n .accent { color: var(--gold-dark); }
html.dark .hero-trust .n .accent { color: var(--gold); }
.hero-trust .l { font-size: .82rem; color: var(--muted); }

.hero-badges { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 100px;
  font-size: .82rem; font-weight: 600; color: var(--text-soft);
  background: var(--surface); border: 1px solid var(--line);
}
.chip svg { width: 15px; height: 15px; color: var(--gold-dark); }
html.dark .chip svg { color: var(--gold); }

/* Hero visual — orbital network of managers */
.hero-visual { position: relative; aspect-ratio: 1/1; display: grid; place-items: center; }
.orbit-svg { width: 100%; height: 100%; overflow: visible; }
.orbit-ring { fill: none; stroke: var(--line-gold); stroke-width: 1; opacity: .55; }
.orbit-ring.dash { stroke-dasharray: 3 7; }
.spin { transform-origin: 250px 250px; animation: spin 36s linear infinite; }
.spin.rev { animation-duration: 52s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.node {
  width: 58px; height: 58px; border-radius: 50%;
  position: absolute; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--gold);
  box-shadow: var(--shadow-soft); overflow: hidden;
  animation: floaty 7s ease-in-out infinite;
}
.node svg { width: 100%; height: 100%; }
.node.n2 { animation-delay: -1.5s; } .node.n3 { animation-delay: -3s; }
.node.n4 { animation-delay: -4.5s; } .node.n5 { animation-delay: -2.2s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero-core {
  position: absolute; width: 41%; aspect-ratio: 1; border-radius: 50%;
  background: var(--navy-grad); display: grid; place-items: center; text-align: center;
  box-shadow: 0 30px 70px -30px rgba(10,26,61,.7), inset 0 0 0 1px rgba(201,162,78,.4);
}
.hero-core .crest { width: 46%; }
.hero-core .ct { color: #fff; font-weight: 800; font-size: 1.05rem; margin-top: 4px; }
.hero-core .cs { color: var(--gold-bright); font-size: .72rem; }

/* Floating glass stat cards over the visual */
.float-card {
  position: absolute; background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(10px); border: 1px solid var(--line-gold);
  border-radius: 14px; padding: 11px 14px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; animation: floaty 6s ease-in-out infinite;
}
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--cream); display: grid; place-items: center; color: var(--gold-dark); flex: none; }
html.dark .float-card .ic { color: var(--gold); }
.float-card .ic svg { width: 19px; height: 19px; }
.float-card .v { font-weight: 800; font-size: .98rem; line-height: 1.2; }
.float-card .k { font-size: .72rem; color: var(--muted); }
.fc1 { top: 6%; inset-inline-start: -4%; }
.fc2 { bottom: 10%; inset-inline-end: -5%; animation-delay: -2s; }
.fc3 { bottom: 34%; inset-inline-start: -7%; animation-delay: -3.5s; }

.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: -1; }
.glow.g1 { width: 360px; height: 360px; background: radial-gradient(circle, rgba(201,162,78,.5), transparent 70%); top: -60px; inset-inline-end: -40px; }
.glow.g2 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(28,58,114,.5), transparent 70%); bottom: -40px; inset-inline-start: -60px; }

/* ============================================================
   BUILD PROGRESS  (site sections being completed)
   ============================================================ */
.build {
  background: var(--navy-grad); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow); position: relative; overflow: hidden;
  border: 1px solid rgba(201,162,78,.25);
}
.build::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% -10%, rgba(201,162,78,.22), transparent 45%); pointer-events: none; }
.build-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; position: relative; }
.build-head h3 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 800; }
.build-head p { color: #c9d2e6; font-size: .96rem; margin-top: 6px; max-width: 480px; }
.build-overall { text-align: center; flex: none; }
.build-overall .big { font-size: 2.6rem; font-weight: 800; color: var(--gold-bright); line-height: 1; }
.build-overall .lb { font-size: .78rem; color: #aebbd6; }

.build-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; position: relative; }
.bcard {
  background: rgba(255,255,255,.05); border: 1px solid rgba(201,162,78,.2);
  border-radius: 14px; padding: 16px 18px;
}
.bcard .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.bcard .name { font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.bcard .name svg { width: 17px; height: 17px; color: var(--gold-bright); }
.bcard .pct { font-weight: 800; color: var(--gold-bright); font-size: .95rem; font-feature-settings: "ss01"; }
.bar { height: 8px; border-radius: 100px; background: rgba(255,255,255,.12); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 100px; background: var(--gold-grad); width: 0; transition: width 1.4s var(--ease); }
.bcard .st { font-size: .76rem; color: #aebbd6; margin-top: 9px; display: flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok); } .dot.prog { background: var(--gold); animation: pulse 1.6s infinite; } .dot.soon { background: var(--hold); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(201,162,78,.6); } 50% { box-shadow: 0 0 0 6px rgba(201,162,78,0); } }

/* ============================================================
   PILLARS
   ============================================================ */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-soft); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-gold); box-shadow: var(--shadow); }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--cream); color: var(--gold-dark); margin-bottom: 16px;
  border: 1px solid var(--line-gold);
}
html.dark .card .ico { color: var(--gold); }
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.14rem; font-weight: 700; color: var(--text); }
.card p { color: var(--text-soft); font-size: .94rem; margin-top: 8px; }
.card .idx { position: absolute; top: 18px; inset-inline-end: 22px; font-weight: 800; font-size: 1.1rem; color: var(--line-gold); }

/* ============================================================
   MEMBERSHIP TIERS
   ============================================================ */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.tier {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; position: relative; transition: transform .3s var(--ease), box-shadow .3s;
  display: flex; flex-direction: column;
}
.tier:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tier.featured { border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gold-grad) border-box; box-shadow: var(--shadow); }
.tier .tag { position: absolute; top: -12px; inset-inline-start: 50%; transform: translateX(50%); background: var(--gold-grad); color: #1c1404; font-size: .74rem; font-weight: 800; padding: 4px 14px; border-radius: 100px; }
[dir="ltr"] .tier .tag { transform: translateX(-50%); }
.tier .medal { width: 50px; height: 50px; margin-bottom: 14px; }
.tier .tname { font-size: 1.22rem; font-weight: 800; color: var(--text); }
.tier .tdesc { font-size: .86rem; color: var(--muted); margin-top: 4px; min-height: 40px; }
.tier ul { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tier li { display: flex; gap: 9px; font-size: .9rem; color: var(--text-soft); align-items: flex-start; }
.tier li svg { width: 17px; height: 17px; color: var(--gold-dark); flex: none; margin-top: 4px; }
html.dark .tier li svg { color: var(--gold); }
.tier .tcta { margin-top: 20px; }
.tier .tcta .btn { width: 100%; }

/* ============================================================
   DASHBOARD PREVIEW
   ============================================================ */
.dash-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; margin-top: 44px; }
.dash-intro h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.dash-intro p { color: var(--text-soft); margin-top: 14px; }
.dash-feats { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.dash-feats .it { display: flex; gap: 12px; }
.dash-feats .it .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--cream); display: grid; place-items: center; color: var(--gold-dark); flex: none; border: 1px solid var(--line-gold); }
html.dark .dash-feats .it .ic { color: var(--gold); }
.dash-feats .it .ic svg { width: 19px; height: 19px; }
.dash-feats .it h4 { font-size: .98rem; font-weight: 700; }
.dash-feats .it p { font-size: .86rem; color: var(--muted); margin-top: 2px; }

/* The mock device */
.device {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); padding: 16px; position: relative;
}
.device::before { content: ""; position: absolute; inset: 0; border-radius: 22px; pointer-events: none; box-shadow: inset 0 0 0 1px var(--line-gold); opacity: .4; }
.dev-top { display: flex; align-items: center; gap: 8px; padding: 4px 6px 14px; }
.dev-dots { display: flex; gap: 6px; }
.dev-dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.dev-dots i:nth-child(1){ background:#e1655b;} .dev-dots i:nth-child(2){ background:#e0b04a;} .dev-dots i:nth-child(3){ background:#5cb877;}
.dev-url { margin-inline-start: auto; font-size: .72rem; color: var(--muted); background: var(--bg-2); padding: 4px 12px; border-radius: 100px; }

/* member card inside dashboard */
.mcard {
  background: var(--navy-grad); border-radius: 16px; padding: 18px; color: #fff; position: relative; overflow: hidden;
  border: 1px solid rgba(201,162,78,.4);
}
.mcard::after { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,78,.35), transparent 70%); top: -50px; inset-inline-end: -30px; }
.mcard .row1 { display: flex; align-items: center; gap: 12px; position: relative; }
.mcard .av { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--gold); overflow: hidden; flex: none; background: #0d1a35; }
.mcard .nm { font-weight: 800; font-size: 1rem; }
.mcard .rl { font-size: .76rem; color: #c2cde6; }
.mcard .lvl { margin-inline-start: auto; text-align: center; background: rgba(201,162,78,.16); border: 1px solid rgba(201,162,78,.5); border-radius: 10px; padding: 6px 12px; }
.mcard .lvl .v { color: var(--gold-bright); font-weight: 800; font-size: .9rem; }
.mcard .lvl .k { font-size: .62rem; color: #c2cde6; }
.mcard .meta { display: flex; gap: 18px; margin-top: 16px; position: relative; }
.mcard .meta .it .k { font-size: .66rem; color: #aebbd6; }
.mcard .meta .it .v { font-size: .9rem; font-weight: 700; font-feature-settings: "ss01"; }

.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.tile { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.tile .th { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.tile .th svg { width: 15px; height: 15px; color: var(--gold-dark); }
html.dark .tile .th svg { color: var(--gold); }

/* credit ring */
.ring-wrap { display: flex; align-items: center; gap: 14px; }
.ring { width: 76px; height: 76px; flex: none; }
.ring .track { fill: none; stroke: var(--line); stroke-width: 9; }
.ring .val { fill: none; stroke: url(#ringgrad); stroke-width: 9; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1.6s var(--ease); }
.ring-c { text-anchor: middle; dominant-baseline: central; font-weight: 800; font-size: 17px; fill: var(--text); font-family: "Vazirmatn"; }
.ring-info .rv { font-weight: 800; font-size: 1rem; }
.ring-info .rk { font-size: .76rem; color: var(--muted); }
.ring-info .badges { display: flex; gap: 5px; margin-top: 8px; }
.ring-info .badges span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); border: 1px solid var(--line-gold); color: var(--gold-dark); }
html.dark .ring-info .badges span { color: var(--gold); }
.ring-info .badges svg { width: 13px; height: 13px; }

/* request status list */
.req { display: flex; flex-direction: column; gap: 11px; }
.req .it .top { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; }
.req .it .nm { font-weight: 600; color: var(--text); }
.req .it .stt { font-size: .72rem; padding: 2px 9px; border-radius: 100px; font-weight: 600; }
.stt.s-ok { background: rgba(63,154,109,.14); color: #2f7d56; }
.stt.s-prog { background: rgba(201,162,78,.16); color: var(--gold-dark); }
.stt.s-wait { background: rgba(138,147,166,.16); color: #6a7488; }
html.dark .stt.s-ok { color:#6fcf9a;} html.dark .stt.s-prog { color: var(--gold-bright);} html.dark .stt.s-wait{ color:#aab4c7;}
.req .it .bar { margin-top: 6px; height: 5px; }
.req .it .bar > span { background: var(--gold-grad); }
.req .it .bar.ok > span { background: linear-gradient(90deg,#3f9a6d,#5cb877); }

/* mini line chart tile */
.linechart { width: 100%; height: 92px; }
.linechart .area { fill: url(#areagrad); opacity: .85; }
.linechart .line { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 600; stroke-dashoffset: 600; }
.linechart.drawn .line { animation: draw 2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.linechart .pt { fill: var(--gold); }

/* ============================================================
   KPI / METRICS + CHARTS
   ============================================================ */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-soft); }
.kpi .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--cream); color: var(--gold-dark); border: 1px solid var(--line-gold); margin-bottom: 14px; }
html.dark .kpi .ic { color: var(--gold); }
.kpi .ic svg { width: 22px; height: 22px; }
.kpi .num { font-size: 2rem; font-weight: 800; color: var(--text); font-feature-settings: "ss01"; line-height: 1; }
.kpi .num .suffix { color: var(--gold-dark); font-size: 1.3rem; }
html.dark .kpi .num .suffix { color: var(--gold); }
.kpi .lab { color: var(--muted); font-size: .88rem; margin-top: 6px; }

.charts { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-top: 18px; }
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-soft); }
.chart-card h4 { font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.chart-card h4 .badge-mini { margin-inline-start: auto; font-size: .74rem; color: var(--gold-dark); background: var(--cream); padding: 3px 10px; border-radius: 100px; font-weight: 600; }
html.dark .chart-card h4 .badge-mini { color: var(--gold); }
.chart-card .sub { font-size: .84rem; color: var(--muted); margin-top: 2px; }

/* revenue bar chart */
.bars { display: flex; align-items: flex-end; gap: 14px; height: 200px; margin-top: 22px; padding-top: 10px; }
.bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bars .col .b { width: 100%; max-width: 46px; border-radius: 8px 8px 0 0; background: var(--gold-grad); height: 0; transition: height 1.3s var(--ease); position: relative; }
.bars .col .b.navy { background: var(--navy-grad); }
.bars .col .b::after { content: attr(data-v); position: absolute; top: -20px; inset-inline-start: 50%; transform: translateX(50%); font-size: .72rem; font-weight: 700; color: var(--text-soft); }
[dir="ltr"] .bars .col .b::after { transform: translateX(-50%); }
.bars .col .cl { font-size: .76rem; color: var(--muted); text-align: center; }

/* radar */
.radar { width: 100%; max-width: 280px; margin: 14px auto 0; display: block; }
.radar .grid { fill: none; stroke: var(--line); stroke-width: 1; }
.radar .axis { stroke: var(--line); stroke-width: 1; }
.radar .area { fill: rgba(201,162,78,.22); stroke: var(--gold); stroke-width: 2; opacity: 0; transition: opacity 1.2s; }
.radar.shown .area { opacity: 1; }
.radar .lbl { font-size: 10px; fill: var(--muted); font-family: "Vazirmatn"; }
.radar .dot { fill: var(--gold-dark); }

/* ============================================================
   SERVICES / EVENTS
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-soft); transition: transform .3s var(--ease), border-color .3s; }
.svc:hover { transform: translateY(-5px); border-color: var(--line-gold); }
.svc .hd { display: flex; align-items: center; gap: 12px; }
.svc .hd .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--cream); color: var(--gold-dark); border: 1px solid var(--line-gold); flex: none; }
html.dark .svc .hd .ic { color: var(--gold); }
.svc .hd .ic svg { width: 23px; height: 23px; }
.svc .hd h3 { font-size: 1.06rem; font-weight: 700; }
.svc p { color: var(--text-soft); font-size: .9rem; margin-top: 12px; }
.svc .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.svc .foot .price { font-weight: 800; color: var(--text); font-feature-settings: "ss01"; }
.svc .foot .price small { font-size: .72rem; color: var(--muted); font-weight: 500; }
.svc .foot a { font-size: .85rem; font-weight: 700; color: var(--gold-dark); display: flex; align-items: center; gap: 5px; }
html.dark .svc .foot a { color: var(--gold); }
.svc .foot a svg { width: 15px; height: 15px; }

/* ============================================================
   PARTNERS
   ============================================================ */
.part-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.partner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--shadow-soft); transition: transform .3s, border-color .3s; }
.partner:hover { transform: translateY(-4px); border-color: var(--line-gold); }
.partner .pl { width: 50px; height: 50px; border-radius: 13px; background: var(--cream); display: grid; place-items: center; color: var(--gold-dark); border: 1px solid var(--line-gold); flex: none; }
html.dark .partner .pl { color: var(--gold); }
.partner .pl svg { width: 25px; height: 25px; }
.partner h4 { font-size: .98rem; font-weight: 700; }
.partner p { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.partner .trust { display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; font-size: .74rem; color: var(--gold-dark); font-weight: 600; }
html.dark .partner .trust { color: var(--gold); }
.partner .trust svg { width: 13px; height: 13px; }

/* ============================================================
   MEMBERSHIP REQUEST FORM (demo, no backend)
   ============================================================ */
.apply-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; margin-top: 44px; align-items: stretch; }
.apply-side { background: var(--navy-grad); color: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); position: relative; overflow: hidden; border: 1px solid rgba(201,162,78,.3); }
.apply-side::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,78,.3), transparent 70%); bottom: -70px; inset-inline-start: -50px; }
.apply-side h3 { font-size: 1.5rem; font-weight: 800; position: relative; }
.apply-side p { color: #c9d2e6; margin-top: 12px; font-size: .94rem; position: relative; }
.steps { margin-top: 26px; display: flex; flex-direction: column; gap: 4px; position: relative; }
.step { display: flex; gap: 14px; padding: 4px 0; }
.step .si { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(201,162,78,.5); display: grid; place-items: center; flex: none; font-weight: 800; font-size: .9rem; color: var(--gold-bright); background: rgba(201,162,78,.1); position: relative; z-index: 1; }
.step.done .si { background: var(--gold-grad); color: #1c1404; border-color: transparent; }
.step .sc h5 { font-weight: 700; font-size: .96rem; }
.step .sc p { margin-top: 1px; font-size: .82rem; }
.step-line { position: absolute; inset-inline-start: 18px; top: 30px; bottom: 24px; width: 1px; background: rgba(201,162,78,.3); }
[dir="ltr"] .step-line { inset-inline-start: 18px; }

.apply-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow-soft); }
.form-prog { height: 6px; border-radius: 100px; background: var(--bg-2); overflow: hidden; margin-bottom: 6px; }
.form-prog > span { display: block; height: 100%; background: var(--gold-grad); width: 25%; transition: width .4s var(--ease); border-radius: 100px; }
.form-prog-lbl { font-size: .78rem; color: var(--muted); margin-bottom: 20px; display: flex; justify-content: space-between; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 15px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font-family: inherit; font-size: .92rem; transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,78,.18); }
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.form-note svg { width: 14px; height: 14px; color: var(--gold-dark); flex: none; }
html.dark .form-note svg { color: var(--gold); }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.form-success .ok-ic { width: 70px; height: 70px; border-radius: 50%; background: var(--gold-grad); display: grid; place-items: center; margin: 0 auto 16px; }
.form-success .ok-ic svg { width: 36px; height: 36px; color: #1c1404; }
.form-success h4 { font-size: 1.3rem; font-weight: 800; }
.form-success p { color: var(--text-soft); margin-top: 8px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-grad); color: #e8ecf6; padding-block: 56px 26px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer .brand .bt, .footer .brand .bs { color: #fff; }
.footer .fdesc { color: #aebbd6; font-size: .9rem; margin-top: 14px; max-width: 300px; }
.footer .fsoc { display: flex; gap: 10px; margin-top: 18px; }
.footer .fsoc a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(201,162,78,.35); display: grid; place-items: center; transition: background .25s, transform .25s; }
.footer .fsoc a:hover { background: rgba(201,162,78,.18); transform: translateY(-3px); }
.footer .fsoc svg { width: 18px; height: 18px; color: var(--gold-bright); }
.footer h5 { font-size: .98rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer ul li { margin-bottom: 9px; }
.footer ul a { color: #aebbd6; font-size: .88rem; transition: color .2s; }
.footer ul a:hover { color: var(--gold-bright); }
.footer-bottom { border-top: 1px solid rgba(201,162,78,.2); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: #93a0b8; }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* section heading block */
.shead { max-width: 720px; }
.center .shead { margin-inline: auto; }

/* mobile nav drawer */
.drawer { position: fixed; inset: 0; z-index: 200; display: none; }
.drawer.open { display: block; }
.drawer .ov { position: absolute; inset: 0; background: rgba(6,14,31,.5); backdrop-filter: blur(3px); }
.drawer .panel {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(82vw, 330px);
  background: var(--surface); padding: 26px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px;
  animation: slideIn .35s var(--ease);
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
[dir="ltr"] .drawer .panel { animation-name: slideInL; }
@keyframes slideInL { from { transform: translateX(-100%); } to { transform: none; } }
.drawer .panel a { padding: 13px 14px; border-radius: 12px; font-weight: 600; color: var(--text-soft); }
.drawer .panel a:hover { background: var(--surface-2); color: var(--text); }
.drawer .panel .dhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { max-width: 440px; margin-inline: auto; order: -1; }
  .dash-wrap, .apply-wrap { grid-template-columns: 1fr; gap: 26px; }
  .charts { grid-template-columns: 1fr; }
  .grid-4, .tiers, .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .build-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid, .part-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .burger { display: grid; }
  .grid-4, .tiers, .kpi-grid, .svc-grid, .part-grid, .build-grid, .dash-row, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-trust { gap: 20px 26px; }
  .build-head { flex-direction: column; align-items: flex-start; }
  .h-title, .hero h1 { letter-spacing: 0; }

  /* calmer, contained hero on mobile */
  .section { padding-block: clamp(44px, 9vw, 70px); }
  .hero { padding-top: 26px; }
  .hero-grid { gap: 18px; }
  .hero-visual { max-width: 270px; }
  .hero h1 { font-size: clamp(1.7rem, 7.5vw, 2.2rem); line-height: 1.35; }
  .hero p.sub { font-size: 1rem; margin-top: 16px; }
  .hero-cta { margin-top: 24px; }
  .hero-cta .btn { flex: 1; justify-content: center; min-width: 0; }
  .hero-trust .n { font-size: 1.4rem; }

  /* hero visual: smaller nodes, drop the busiest ones, kill heavy motion */
  .node { width: 44px; height: 44px; border-width: 1.6px; }
  .node.n4, .node.n5 { display: none; }
  .float-card { display: none; }
  .glow.g1 { width: 200px; height: 200px; top: -30px; }
  .glow.g2 { width: 180px; height: 180px; }
  .hero-core .ct { font-size: .92rem; }
  .hero-core .cs { font-size: .64rem; }

  /* reduce continuous animations that look busy / janky on phones */
  .spin { animation: none; }
  .node { animation: none; }
  .orbit-ring.dash { opacity: .35; }

  .build { border-radius: 20px; }
  .build-overall { text-align: start; }
  .build-overall .big { font-size: 2.1rem; }
  .dash-wrap { gap: 22px; }
  .charts { gap: 14px; }
  .bars { height: 170px; gap: 8px; }
  .apply-side { order: 2; }
  .apply-form { order: 1; }

  /* room for the bottom app bar */
  body { padding-bottom: 74px; }
  #toTop { bottom: calc(74px + env(safe-area-inset-bottom, 0px) + 14px); }
}
@media (max-width: 380px) {
  .wrap { padding-inline: 16px; }
  .hero-visual { max-width: 230px; }
  .hero-trust .n { font-size: 1.25rem; }
  .ab-item span { font-size: .6rem; }
}

/* ============================================================
   MOBILE APP BOTTOM NAV  (footer menu / app mode)
   ============================================================ */
.appbar { display: none; }
@media (max-width: 640px) {
  .appbar {
    display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 95;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    backdrop-filter: blur(18px) saturate(1.4);
    border-top: 1px solid var(--line-gold);
    box-shadow: 0 -10px 30px -20px rgba(10,26,61,.5);
    justify-content: space-around; align-items: center;
  }
  .ab-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: var(--muted); font-weight: 600; padding-top: 8px; position: relative;
    transition: color .25s;
  }
  .ab-item svg { width: 23px; height: 23px; }
  .ab-item span { font-size: .66rem; }
  .ab-item.active { color: var(--gold-dark); }
  html.dark .ab-item.active { color: var(--gold); }
  .ab-item.active::before {
    content: ""; position: absolute; top: 0; inset-inline-start: 50%; transform: translateX(50%);
    width: 26px; height: 3px; border-radius: 0 0 4px 4px; background: var(--gold-grad);
  }
  [dir="ltr"] .ab-item.active::before { transform: translateX(-50%); }

  /* center raised CTA */
  .ab-cta { color: var(--gold-dark); }
  .ab-cta .ab-fab {
    width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
    background: var(--gold-grad); color: #1c1404; margin-top: -26px; margin-bottom: 1px;
    box-shadow: 0 10px 22px -8px rgba(201,162,78,.8); border: 4px solid var(--bg);
  }
  .ab-cta .ab-fab svg { width: 24px; height: 24px; }
  .ab-cta.active::before { display: none; }
}

/* ============================================================
   INSTALL BANNER + iOS HINT  (PWA)
   ============================================================ */
.install-banner {
  position: fixed; inset-inline: 12px; bottom: 12px; z-index: 120;
  display: flex; align-items: center; gap: 12px; max-width: 460px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line-gold); border-radius: 16px;
  padding: 12px 14px; box-shadow: var(--shadow);
  animation: pop .4s var(--ease);
}
.install-banner[hidden] { display: none; }
.install-banner .ib-ic svg { width: 40px; height: 40px; }
.install-banner .ib-txt { display: flex; flex-direction: column; line-height: 1.5; flex: 1; min-width: 0; }
.install-banner .ib-txt strong { font-size: .92rem; color: var(--text); }
.install-banner .ib-txt span { font-size: .76rem; color: var(--muted); }
.install-banner .ib-go { padding: 9px 18px; font-size: .86rem; flex: none; }
.install-banner .ib-x { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; }
.install-banner .ib-x:hover { background: var(--surface-2); }
.install-banner .ib-x svg { width: 17px; height: 17px; }
@media (max-width: 640px) { .install-banner { bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 12px); } }

.ios-hint { position: fixed; inset: 0; z-index: 130; display: grid; place-items: end center; padding: 16px; }
.ios-hint[hidden] { display: none; }
.ios-hint .ios-card {
  position: relative; background: var(--surface); border: 1px solid var(--line-gold);
  border-radius: 16px; padding: 18px 20px; max-width: 420px; box-shadow: var(--shadow);
  margin-bottom: 80px; animation: pop .4s var(--ease);
}
.ios-hint strong { display: block; font-size: 1rem; color: var(--text); }
.ios-hint p { font-size: .86rem; color: var(--text-soft); margin-top: 6px; }
.ios-hint .ib-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.ios-hint .ib-x svg { width: 17px; height: 17px; }

/* When launched as an installed app (standalone), give the sticky header safe-area room */
@media (display-mode: standalone) {
  .topbar { padding-top: env(safe-area-inset-top, 0px); }
  body { padding-top: env(safe-area-inset-top, 0px); }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
