/* ==========================================================
   IDEABAAZ — Main Stylesheet (v21 - Final Services Fix)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

@font-face {
  font-family: 'Ordibehesht';
  src: url('../fonts/Ordibehesht.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- 1. Design Tokens ---------- */
:root {
  --bg:           #08080C;
  --bg-elevated:  #0F0F17;
  --bg-card:      #13131D;
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text:         #F5F5FA;
  --text-muted:   #9A9AAE;
  --text-dim:     #6B6B80;
  --accent:       #7C5CFF;
  --accent-2:     #22D3EE;
  --accent-3:     #FF4D8D;
  --gradient:      linear-gradient(135deg, #7C5CFF 0%, #22D3EE 100%);
  --gradient-warm: linear-gradient(135deg, #FF4D8D 0%, #FF9D5C 100%);
  --font-fa: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  --font-display: 'Ordibehesht', 'Vazirmatn', sans-serif;
  --font-en: 'Space Grotesk', ui-monospace, monospace;
  --logo-weight: 700;
  --logo-size: 42px;
  --container: 1200px;
  --container-pad: 24px;
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 24px;
  --r-xl: 32px;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:    0.2s var(--ease);
  --t:         0.35s var(--ease);
  --t-slow:    0.6s var(--ease-out);
  --header-h: 88px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font-fa);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #26263a; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #34345a; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--container-pad); }

.text-gradient, .hero__word--gradient {
  background: linear-gradient(135deg, #7C5CFF 0%, #22D3EE 50%, #7C5CFF 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  animation: gradShift 8s ease-in-out infinite;
}
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-pad-y: 14px;
  --btn-pad-x: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 999px;
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-out), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  user-select: none;
}
.btn svg { flex-shrink: 0; transition: transform var(--t-fast); }
.btn--sm { --btn-pad-y: 10px; --btn-pad-x: 18px; font-size: 14px; }

.btn--primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -8px rgba(124, 92, 255, 0.9); }
.btn--primary:hover svg { transform: translateX(-3px); }

.btn--ghost { background: rgba(255, 255, 255, 0.03); color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.28); transform: translateY(-2px); }

/* ---------- 5. Header ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, #7C5CFF, #22D3EE, #FF4D8D);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.8); z-index: 200; pointer-events: none;
  transition: width 0.08s linear;
}

.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px var(--container-pad); pointer-events: none;
  background: transparent; border-bottom: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: padding 0.4s var(--ease);
}

.header__capsule {
  position: relative;
  pointer-events: auto; max-width: var(--container); margin: 0 auto; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 6px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 100px;
  box-shadow: 0 8px 32px -12px rgba(0, 0, 0, 0.4), 0 1px 0 0 rgba(255, 255, 255, 0.05) inset;
  transition: height 0.4s var(--ease), padding 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
  z-index: 100;
}

.header__capsule::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: rgba(20, 20, 32, 0.35); 
  backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
  z-index: -1;
  pointer-events: none;
  transition: background 0.4s var(--ease);
}

.header__capsule.is-compact {
  height: 56px; padding: 4px 16px;
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.85), 0 1px 0 0 rgba(255, 255, 255, 0.06) inset;
}

.header__capsule.is-compact::before {
  background: rgba(10, 10, 18, 0.55);
  backdrop-filter: blur(30px) saturate(160%); -webkit-backdrop-filter: blur(30px) saturate(160%);
}

/* Logo */
.logo { position: relative; display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; transition: transform 0.3s var(--ease); }
.logo:hover { transform: scale(1.03); }
.logo__word { position: relative; top: -2px; display: inline-flex; align-items: baseline; gap: 18px; font-family: var(--font-display); font-weight: var(--logo-weight); font-size: var(--logo-size); line-height: 1; letter-spacing: -0.02em; }
.logo__part { position: relative; display: inline-block; line-height: 1; transition: filter 0.4s var(--ease); }

.logo__part--light {
  background: linear-gradient(180deg, #ffffff 0%, #f8f0dd 25%, #ffffff 50%, #ebe0c5 75%, #ffffff 100%);
  background-size: 100% 250%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: pearlFlow 8s ease-in-out infinite; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}
@keyframes pearlFlow { 0%, 100% { background-position: 0% 0%; } 50% { background-position: 0% 100%; } }

.logo__part--red {
  background: linear-gradient(135deg, #7C5CFF 0%, #22D3EE 40%, #FF4D8D 80%, #7C5CFF 100%);
  background-size: 250% 250%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: vibrantFlow 7s ease-in-out infinite; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 14px rgba(124, 92, 255, 0.35));
}
@keyframes vibrantFlow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.logo__part--red::before {
  content: ''; position: absolute; top: 12%; bottom: 10%; left: calc(100% + 9px); width: 2.5px;
  background: linear-gradient(180deg, transparent 0%, #7C5CFF 20%, #22D3EE 50%, #FF4D8D 80%, transparent 100%);
  border-radius: 2px; transform: skewX(-12deg); transform-origin: center; animation: dividerPulse 3s ease-in-out infinite; pointer-events: none;
}
@keyframes dividerPulse {
  0%, 100% { transform: skewX(-12deg) scaleY(1); opacity: 0.85; box-shadow: 0 0 6px rgba(34,211,238,0.65), 0 0 14px rgba(124,92,255,0.45); }
  50% { transform: skewX(-12deg) scaleY(1.18); opacity: 1; box-shadow: 0 0 10px rgba(34,211,238,1), 0 0 22px rgba(124,92,255,0.75); }
}

/* Nav Base */
.nav { display: flex; align-items: center; justify-content: center; flex: 1; }
.nav__list { position: relative; display: flex; align-items: center; gap: 2px; padding: 4px; list-style: none; }
.nav__indicator {
  position: absolute; top: 4px; left: 0; height: calc(100% - 8px); width: 0;
  background: rgba(124, 92, 255, 0.14); border: 1px solid rgba(124, 92, 255, 0.25); border-radius: 999px;
  box-shadow: 0 0 20px -5px rgba(124, 92, 255, 0.5); pointer-events: none; z-index: 0; opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), width 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.nav__list.is-initialized .nav__indicator { opacity: 1; }
.nav__link {
  position: relative; z-index: 1; display: inline-block; padding: 8px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color 0.2s var(--ease); white-space: nowrap; text-align: center;
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__mobile-extra { display: none; }

/* Right side */
.header__right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header__cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 4px 18px 4px 4px; border-radius: 999px;
  background: var(--gradient); color: #fff; font-size: 13px; font-weight: 700;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease); box-shadow: 0 4px 16px -4px rgba(124, 92, 255, 0.5); white-space: nowrap;
}
.header__cta svg { width: 32px; height: 32px; padding: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); transition: transform 0.35s var(--ease-out); }
.header__cta:hover { box-shadow: 0 8px 28px -4px rgba(124, 92, 255, 0.8); }
.header__cta:hover svg { transform: rotate(-45deg); }

/* Mobile toggle */
.menu-toggle {
  display: none; width: 44px; height: 44px; background: transparent; border: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; flex-shrink: 0; z-index: 101;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), width 0.3s var(--ease); }
.menu-toggle:hover span { background: var(--accent-2); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 6. HERO (Home) ---------- */
.hero { position: relative; padding: 140px 0 100px; overflow: hidden; isolation: isolate; }
.hero__mesh {
  position: absolute; inset: -10%; z-index: -3; pointer-events: none;
  background: radial-gradient(ellipse 55% 45% at 20% 30%, rgba(124,92,255,0.32), transparent 60%), radial-gradient(ellipse 50% 40% at 80% 65%, rgba(34,211,238,0.22), transparent 60%), radial-gradient(ellipse 45% 35% at 55% 90%, rgba(255,77,141,0.18), transparent 60%), radial-gradient(ellipse 40% 30% at 90% 20%, rgba(255,157,92,0.14), transparent 60%);
  filter: blur(30px); animation: meshDrift 28s ease-in-out infinite;
}
@keyframes meshDrift { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(-2%, 2%) scale(1.04); } 66% { transform: translate(2%, -1%) scale(0.98); } }

.hero__spotlight { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle 380px at var(--mx, 50%) var(--my, 40%), rgba(124, 92, 255, 0.14), transparent 70%); }
.hero__grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.08; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 64px; }
.hero__content { display: flex; flex-direction: column; gap: 28px; max-width: 640px; padding-top: 20px; }
.hero__title { font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 900; line-height: 1.18; letter-spacing: -0.02em; perspective: 800px; display: flex; flex-direction: column; gap: 4px; }
.hero__line { display: flex; flex-wrap: wrap; gap: 0 0.26em; }
.hero__word { display: inline-block; opacity: 0; transform: translateY(40px) rotateX(-45deg); transform-origin: 50% 100%; animation: heroWord 0.85s var(--ease-out) forwards; animation-delay: calc(0.2s + var(--i) * 0.1s); }
@keyframes heroWord { to { opacity: 1; transform: translateY(0) rotateX(0); } }

.hero__sub { font-size: clamp(1rem, 1.3vw, 1.12rem); color: var(--text-muted); line-height: 1.95; max-width: 52ch; opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.75s forwards; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.85s forwards; }
.hero__stats { display: flex; gap: 40px; padding-top: 24px; margin-top: 8px; border-top: 1px solid var(--border); opacity: 0; animation: fadeUp 0.8s var(--ease-out) 1s forwards; }
.hero__stat { display: flex; flex-direction: column; gap: 2px; }
.hero__stat strong { font-size: 1.55rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.2; }
.hero__stat span { font-size: 12.5px; color: var(--text-muted); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.hero__visual { position: relative; width: 100%; max-width: 560px; height: 460px; margin-inline: auto; opacity: 0; animation: fadeUp 1s var(--ease-out) 0.4s forwards; }
.biz-stack { position: relative; width: 100%; height: 100%; }
.biz-card { position: absolute; top: 50%; left: 50%; display: flex; flex-direction: column; border-radius: 18px; background: linear-gradient(180deg, #17172A 0%, #0F0F1A 100%); border: 1px solid rgba(255,255,255,0.08); overflow: hidden; transition: transform 0.5s ease-out, box-shadow 0.5s ease-out; }
.biz-card--main { width: 280px; height: 380px; margin: -190px 0 0 -140px; z-index: 3; box-shadow: 0 40px 80px -20px rgba(0,0,0,0.95), 0 0 60px -8px rgba(124,92,255,0.30); animation: cardFloatMain 6s ease-in-out infinite; }
.biz-card--cafe { width: 170px; height: 270px; margin: -135px 0 0 -280px; z-index: 2; opacity: 0.95; transform: rotate(-9deg); animation: cardFloatLeft 7s ease-in-out infinite; }
.biz-card--clinic { width: 170px; height: 270px; margin: -135px 0 0 110px; z-index: 2; opacity: 0.95; transform: rotate(9deg); animation: cardFloatRight 7s ease-in-out 0.5s infinite; }
@keyframes cardFloatMain { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes cardFloatLeft { 0%,100% { transform: rotate(-9deg) translateY(0); } 50% { transform: rotate(-9deg) translateY(-8px); } }
@keyframes cardFloatRight { 0%,100% { transform: rotate(9deg) translateY(0); } 50% { transform: rotate(9deg) translateY(-8px); } }

.biz-card__head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; border-bottom: 1px solid rgba(255,255,255,0.06); flex-shrink: 0; }
.biz-card__avatar { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--c1), var(--c2)); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.biz-card__avatar svg { width: 18px; height: 18px; }
.biz-card__meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.biz-card__meta strong { font-size: 12.5px; font-weight: 700; color: var(--text); line-height: 1.3; }
.biz-card__meta small { font-family: var(--font-en); font-size: 9.5px; color: var(--text-dim); direction: ltr; line-height: 1.2; }
.biz-card__body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 14px; }
.biz-card__art { flex: 1; min-height: 60px; border-radius: 12px; position: relative; overflow: hidden; background: #0a0a14; }
.biz-card__art svg { width: 100%; height: 100%; display: block; transition: transform 0.7s var(--ease-out); }
.biz-card:hover .biz-card__art svg { transform: scale(1.06); }
.biz-card__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,12,0.55) 0%, transparent 45%); pointer-events: none; z-index: 2; }
.biz-card__title { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.3; margin-top: 2px; }
.biz-card__sub { font-size: 11.5px; color: var(--text-muted); line-height: 1.3; }
.biz-card__btn { margin-top: 4px; padding: 8px 10px; border-radius: 8px; background: var(--gradient); color: #fff; font-family: inherit; font-size: 11px; font-weight: 700; border: 0; cursor: pointer; transition: transform var(--t-fast), box-shadow var(--t-fast); box-shadow: 0 6px 16px -6px rgba(124,92,255,0.6); }
.biz-card__btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -6px rgba(124,92,255,0.8); }
.biz-card--cafe .biz-card__head, .biz-card--clinic .biz-card__head { padding: 10px 10px 8px; gap: 8px; }
.biz-card--cafe .biz-card__avatar, .biz-card--clinic .biz-card__avatar { width: 26px; height: 26px; border-radius: 7px; }
.biz-card--cafe .biz-card__avatar svg, .biz-card--clinic .biz-card__avatar svg { width: 14px; height: 14px; }
.biz-card--cafe .biz-card__meta strong, .biz-card--clinic .biz-card__meta strong { font-size: 11px; }
.biz-card--cafe .biz-card__meta small, .biz-card--clinic .biz-card__meta small { font-size: 8.5px; }
.biz-card--cafe .biz-card__body, .biz-card--clinic .biz-card__body { padding: 10px; gap: 4px; }
.biz-card--cafe .biz-card__title, .biz-card--clinic .biz-card__title { font-size: 11px; }
.biz-card--cafe .biz-card__sub, .biz-card--clinic .biz-card__sub { font-size: 10px; }
.biz-card--cafe .biz-card__btn, .biz-card--clinic .biz-card__btn { padding: 6px 8px; font-size: 9.5px; margin-top: 2px; }
.biz-card:hover { box-shadow: 0 50px 90px -20px rgba(0,0,0,0.95), 0 0 80px -8px rgba(124,92,255,0.45); }

.rotating-badge { position: absolute; bottom: -22px; left: -22px; z-index: 5; width: 100px; height: 100px; display: grid; place-items: center; border-radius: 50%; background: rgba(20,20,32,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(124,92,255,0.35); box-shadow: 0 12px 32px -8px rgba(124,92,255,0.5); transition: transform var(--t), border-color var(--t); text-decoration: none; }
.rotating-badge:hover { transform: scale(1.08); border-color: rgba(124,92,255,0.7); }
.rotating-badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: badgeRotate 18s linear infinite; }
.rotating-badge__ring text { font-family: var(--font-fa); font-size: 8.5px; font-weight: 600; fill: var(--text-muted); letter-spacing: 0.04em; }
.rotating-badge__center { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--gradient); display: grid; place-items: center; color: #fff; transition: transform var(--t-fast); }
.rotating-badge__center svg { width: 16px; height: 16px; }
.rotating-badge:hover .rotating-badge__center { transform: rotate(-30deg); }
@keyframes badgeRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.scroll-indicator { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); width: 28px; height: 44px; border: 2px solid rgba(255,255,255,0.18); border-radius: 20px; display: grid; place-items: start center; padding-top: 8px; transition: border-color var(--t-fast); z-index: 2; }
.scroll-indicator:hover { border-color: var(--accent-2); }
.scroll-indicator span { width: 4px; height: 8px; border-radius: 2px; background: var(--accent-2); animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 70px; text-align: center; }
  .hero__content { max-width: 100%; align-items: center; margin-inline: auto; padding-top: 0; }
  .hero__title { align-items: center; }
  .hero__line { justify-content: center; }
  .hero__sub { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { max-width: 480px; height: 400px; }
  .biz-stack { transform: scale(0.85); transform-origin: center center; }
  .rotating-badge { left: 0; }
}
@media (max-width: 560px) {
  .hero { padding: 100px 0 70px; }
  .hero__stats { gap: 24px; flex-wrap: wrap; }
  .hero__stat strong { font-size: 1.25rem; }
  .hero__visual { max-width: 360px; height: 340px; }
  .biz-stack { transform: scale(0.62); transform-origin: center center; }
  .rotating-badge { width: 76px; height: 76px; bottom: -12px; left: -12px; }
  .rotating-badge__ring text { font-size: 7px; }
  .rotating-badge__center { width: 26px; height: 26px; }
  .rotating-badge__center svg { width: 13px; height: 13px; }
  .scroll-indicator { display: none; }
}

/* ---------- 7. Marquee ---------- */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--border); background: rgba(15,15,23,0.6); padding: 26px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); direction: ltr; }
.marquee__track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 52px; padding-inline-end: 52px; }
.marquee__item { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; color: var(--text-muted); white-space: nowrap; transition: color var(--t-fast); }
.marquee__item:hover { color: var(--text); }
.marquee__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gradient); box-shadow: 0 0 10px rgba(124,92,255,0.7); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 8. Values Bento Grid ---------- */
.values-bento { padding: 100px 0; position: relative; }
.values-bento__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.values-bento__tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(124, 92, 255, 0.06); border: 1px solid rgba(124, 92, 255, 0.2); color: var(--accent-2); font-size: 12.5px; font-weight: 600; margin-bottom: 20px; letter-spacing: 0.02em; }
.values-bento__tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); animation: pulseDot 2s ease-in-out infinite; }
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.7); } }
.values-bento__title { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 900; line-height: 1.3; letter-spacing: -0.02em; background: linear-gradient(135deg, #ffffff 0%, #c8c8d8 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.bento { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; max-width: 1080px; margin: 0 auto; }
.bento__side { display: grid; grid-template-rows: 1fr 1fr; gap: 24px; }
.bento__item { position: relative; background: linear-gradient(180deg, rgba(20,20,32,0.9) 0%, rgba(10,10,18,0.9) 100%); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 28px; overflow: hidden; transition: transform 0.5s var(--ease-out), border-color 0.4s var(--ease), box-shadow 0.5s var(--ease); box-shadow: 0 1px 0 0 rgba(255,255,255,0.05) inset, 0 20px 40px -20px rgba(0,0,0,0.6); isolation: isolate; }
.bento__item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent 0%, rgba(124, 92, 255, 0.5) 50%, transparent 100%); opacity: 0.4; transition: opacity 0.4s var(--ease); z-index: 3; }
.bento__item:hover { transform: translateY(-4px); border-color: rgba(124, 92, 255, 0.25); box-shadow: 0 1px 0 0 rgba(255,255,255,0.08) inset, 0 30px 60px -20px rgba(0,0,0,0.8), 0 0 60px -20px rgba(124, 92, 255, 0.3); }
.bento__item:hover::before { opacity: 1; }
.bento__glow { position: absolute; inset: 0; background: radial-gradient(600px circle at var(--x, 50%) var(--y, 50%), rgba(124, 92, 255, 0.18), transparent 40%); opacity: 0; transition: opacity 0.4s var(--ease); pointer-events: none; z-index: 1; }
.bento__item:hover .bento__glow { opacity: 1; }
.bento__corner { position: absolute; width: 18px; height: 18px; z-index: 4; pointer-events: none; opacity: 0.4; transition: opacity 0.4s var(--ease); }
.bento__corner::before, .bento__corner::after { content: ''; position: absolute; background: var(--accent-2); }
.bento__corner--tr { top: 16px; right: 16px; }
.bento__corner--tr::before { top: 0; right: 0; width: 14px; height: 1.5px; }
.bento__corner--tr::after { top: 0; right: 0; width: 1.5px; height: 14px; }
.bento__corner--bl { bottom: 16px; left: 16px; }
.bento__corner--bl::before { bottom: 0; left: 0; width: 14px; height: 1.5px; }
.bento__corner--bl::after { bottom: 0; left: 0; width: 1.5px; height: 14px; }
.bento__item:hover .bento__corner { opacity: 1; }
.bento__content { position: relative; z-index: 2; padding: 32px; height: 100%; display: flex; flex-direction: column; }
.bento__item--main .bento__content { padding: 44px 44px 36px; }
.bento__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; position: relative; }
.bento__kicker { font-size: 11.5px; font-weight: 700; color: var(--text-dim); letter-spacing: 0.15em; text-transform: uppercase; }
.bento__num { font-family: var(--font-en); font-size: 14px; font-weight: 700; color: var(--accent-2); padding: 3px 10px; border-radius: 999px; background: rgba(34, 211, 238, 0.06); border: 1px solid rgba(34, 211, 238, 0.2); letter-spacing: 0.05em; }
.bento__body { flex: 1; display: flex; flex-direction: column; }
.bento__item--small .bento__body { flex-direction: row; align-items: flex-start; gap: 18px; }
.bento__icon { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, rgba(124,92,255,0.08), rgba(34,211,238,0.04)); border: 1px solid rgba(124, 92, 255, 0.2); display: grid; place-items: center; color: var(--accent-2); margin-bottom: 22px; transition: all 0.4s var(--ease-out); flex-shrink: 0; position: relative; box-shadow: 0 8px 20px -10px rgba(124, 92, 255, 0.3); }
.bento__item--small .bento__icon { margin-bottom: 0; }
.bento__item:hover .bento__icon { background: var(--gradient); color: #fff; border-color: transparent; transform: rotate(-5deg) scale(1.05); box-shadow: 0 0 30px -5px rgba(124, 92, 255, 0.6), 0 12px 30px -8px rgba(34, 211, 238, 0.4); }
.bento__icon svg { width: 24px; height: 24px; }
.bento__text { flex: 1; min-width: 0; }
.bento__item h3 { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 10px; letter-spacing: -0.015em; line-height: 1.4; }
.bento__item p { font-size: 14px; color: var(--text-muted); line-height: 1.8; }
.bento__item--main h3 { font-size: 26px; margin-bottom: 14px; line-height: 1.3; }
.bento__item--main p { font-size: 15.5px; line-height: 1.9; max-width: 92%; }
.bento__foot { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 22px; border-top: 1px dashed rgba(255, 255, 255, 0.06); }
.bento__foot-line { width: 32px; height: 1.5px; background: var(--gradient); border-radius: 2px; }
.bento__foot-text { font-family: var(--font-en); font-size: 10.5px; font-weight: 700; color: var(--text-dim); letter-spacing: 0.2em; }
@media (max-width: 900px) {
  .values-bento { padding: 80px 0; }
  .values-bento__head { margin-bottom: 40px; }
  .bento { grid-template-columns: 1fr; gap: 20px; }
  .bento__side { gap: 20px; }
  .bento__item--main .bento__content { padding: 32px; }
  .bento__content { padding: 28px; }
  .bento__item--small .bento__body { flex-direction: column; gap: 16px; }
  .bento__item--main h3 { font-size: 22px; }
  .bento__item--main p { font-size: 14.5px; max-width: 100%; }
  .bento__foot { margin-top: 20px; padding-top: 16px; }
}
@media (max-width: 480px) {
  .bento__item--main .bento__content, .bento__content { padding: 24px; }
  .bento__head { margin-bottom: 24px; }
  .bento__item--main h3 { font-size: 20px; }
  .bento__item h3 { font-size: 17px; }
}

/* ---------- 9. Services (The Index) - Home Page ---------- */
.services-mega { padding: 100px 0; position: relative; }
.services-mega__head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.services-mega__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(124, 92, 255, 0.06); border: 1px solid rgba(124, 92, 255, 0.2); color: var(--accent-2); font-size: 12.5px; font-weight: 600; margin-bottom: 20px; letter-spacing: 0.02em; }
.services-mega__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); animation: pulseDot 2s ease-in-out infinite; }
.services-mega__title { font-size: clamp(1.8rem, 3.5vw, 2.75rem); font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 16px; background: linear-gradient(135deg, #ffffff 0%, #c8c8d8 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.services-mega__sub { font-size: 15.5px; color: var(--text-muted); line-height: 1.9; }
.services-mega__list { border-top: 1px solid var(--border); max-width: 1000px; margin: 0 auto; }
.service-row { border-bottom: 1px solid var(--border); transition: background 0.3s var(--ease); }
.service-row:hover { background: rgba(255, 255, 255, 0.015); }
.service-row__head { display: grid; grid-template-columns: 60px 1fr auto 48px; align-items: center; gap: 24px; width: 100%; padding: 32px 24px; text-align: right; cursor: pointer; background: none; border: 0; color: inherit; font: inherit; transition: padding 0.3s var(--ease); }
.service-row__num { font-family: var(--font-en); font-size: 16px; font-weight: 700; color: var(--text-dim); transition: color 0.3s var(--ease), transform 0.3s var(--ease-out); }
.service-row__title { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 800; letter-spacing: -0.02em; color: var(--text); transition: color 0.3s var(--ease), transform 0.4s var(--ease-out); }
.service-row__badge { font-size: 11.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); color: var(--text-muted); white-space: nowrap; transition: border-color 0.3s, color 0.3s; }
.service-row__toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--text-muted); transition: transform 0.4s var(--ease-out), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease); }
.service-row__toggle svg { width: 18px; height: 18px; }
.service-row:hover .service-row__num { color: var(--accent-2); transform: translateX(-4px); }
.service-row:hover .service-row__title { color: var(--accent-2); }
.service-row:hover .service-row__toggle { border-color: var(--accent-2); color: var(--accent-2); background: rgba(34, 211, 238, 0.05); }
.service-row.is-active .service-row__num { color: var(--accent-2); }
.service-row.is-active .service-row__title { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.service-row.is-active .service-row__badge { border-color: rgba(124, 92, 255, 0.4); color: var(--text); }
.service-row.is-active .service-row__toggle { background: var(--accent-2); border-color: var(--accent-2); color: #08080C; transform: rotate(45deg); box-shadow: 0 0 20px -5px rgba(34, 211, 238, 0.6); }
.service-row__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.service-row.is-active .service-row__panel { grid-template-rows: 1fr; }
.service-row__inner { overflow: hidden; }
.service-row__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; padding: 0 24px 40px 80px; opacity: 0; transform: translateY(10px); transition: opacity 0.4s 0.1s var(--ease), transform 0.4s 0.1s var(--ease-out); }
.service-row.is-active .service-row__grid { opacity: 1; transform: translateY(0); }
.service-row__content p { font-size: 15px; color: var(--text-muted); line-height: 1.9; margin-bottom: 24px; max-width: 48ch; }
.service-row__features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.service-row__features li { position: relative; padding-inline-start: 18px; font-size: 14px; color: var(--text); line-height: 1.6; }
.service-row__features li::before { content: ''; position: absolute; inset-inline-start: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--gradient); box-shadow: 0 0 8px rgba(34, 211, 238, 0.4); }
.service-row__link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--accent-2); transition: gap 0.3s var(--ease-out); }
.service-row__link svg { width: 16px; height: 16px; transition: transform 0.3s; }
.service-row__link:hover { gap: 10px; }
.service-row__link:hover svg { transform: translateX(-3px); }
.service-row__visual { position: relative; border-radius: 24px; display: grid; place-items: center; min-height: 240px; background: linear-gradient(135deg, rgba(20,20,32,0.8), rgba(10,10,18,0.8)); border: 1px solid rgba(255,255,255,0.05); overflow: hidden; isolation: isolate; }
.service-row__glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, var(--c1), transparent 70%); opacity: 0.15; filter: blur(40px); z-index: -1; transition: opacity 0.5s, transform 0.5s; }
.service-row__visual svg { width: 80px; height: 80px; color: #fff; stroke-width: 1.2; filter: drop-shadow(0 0 20px var(--c1)); transition: transform 0.6s var(--ease-out); }
.service-row:hover .service-row__visual svg { transform: scale(1.1) rotate(-6deg); }
.service-row:hover .service-row__glow { opacity: 0.25; transform: scale(1.2); }
@media (max-width: 900px) {
  .services-mega { padding: 80px 0; }
  .services-mega__head { margin-bottom: 40px; }
  .service-row__head { grid-template-columns: 40px 1fr auto 40px; gap: 16px; padding: 24px 16px; }
  .service-row__badge { display: none; }
  .service-row__grid { grid-template-columns: 1fr; gap: 32px; padding: 0 16px 32px 16px; }
  .service-row__visual { min-height: 180px; }
  .service-row__visual svg { width: 60px; height: 60px; }
}
@media (max-width: 560px) {
  .service-row__head { grid-template-columns: 30px 1fr 36px; gap: 12px; }
  .service-row__num { font-size: 13px; }
  .service-row__toggle { width: 32px; height: 32px; }
  .service-row__toggle svg { width: 14px; height: 14px; }
  .service-row__content p { font-size: 14px; }
}

/* ---------- 10. Portfolio (Cinematic Stack) ---------- */
.portfolio-stack { padding: 100px 0; position: relative; background: var(--bg); }
.portfolio-stack__head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.portfolio-stack__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(124, 92, 255, 0.06); border: 1px solid rgba(124, 92, 255, 0.2); color: var(--accent-2); font-size: 12.5px; font-weight: 600; margin-bottom: 20px; letter-spacing: 0.02em; }
.portfolio-stack__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); animation: pulseDot 2s ease-in-out infinite; }
.portfolio-stack__title { font-size: clamp(1.8rem, 3.5vw, 2.75rem); font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 16px; background: linear-gradient(135deg, #ffffff 0%, #c8c8d8 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.portfolio-stack__sub { font-size: 15.5px; color: var(--text-muted); line-height: 1.9; }
.portfolio-stack__list { display: flex; flex-direction: column; gap: 120px; max-width: 1080px; margin: 0 auto; padding-bottom: 100px; padding-inline: var(--container-pad); }
.p-card { position: sticky; top: calc(var(--header-h) + 40px); border-radius: 32px; background: var(--bg-elevated); border: 1px solid rgba(255, 255, 255, 0.06); box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.9); overflow: hidden; transform-origin: top center; will-change: transform, filter; transition: transform 0.1s linear, filter 0.1s linear; }
.p-card__inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.p-card--reverse .p-card__visual { grid-column: 2; }
.p-card--reverse .p-card__content { grid-column: 1; grid-row: 1; }
.p-card__visual { position: relative; background: #0a0a14; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.p-card__visual-glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, var(--c1), transparent 70%); opacity: 0.2; filter: blur(60px); z-index: 1; pointer-events: none; }
.p-card__visual svg { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 2; transition: transform 0.8s var(--ease-out); }
.p-card:hover .p-card__visual svg { transform: scale(1.04); }
.p-card__content { padding: 56px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 3; }
.p-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.p-card__num { font-family: var(--font-en); font-size: 48px; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.15); transition: -webkit-text-stroke 0.3s; }
.p-card:hover .p-card__num { -webkit-text-stroke: 1.5px var(--accent-2); }
.p-card__cat { font-size: 11.5px; font-weight: 700; color: var(--accent-2); padding: 4px 12px; border-radius: 999px; background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.2); letter-spacing: 0.02em; }
.p-card__title { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; color: var(--text); line-height: 1.3; margin-bottom: 16px; letter-spacing: -0.02em; }
.p-card__desc { font-size: 15px; color: var(--text-muted); line-height: 1.9; margin-bottom: 32px; }
.p-card__meta { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 24px; border-top: 1px dashed rgba(255, 255, 255, 0.08); margin-bottom: 32px; }
.p-card__meta li { display: flex; flex-direction: column; gap: 4px; }
.p-card__meta-label { font-size: 11px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.p-card__meta-val { font-size: 13.5px; font-weight: 600; color: var(--text); }
.p-card__link { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--accent-2); transition: gap 0.3s var(--ease-out); margin-top: auto; }
.p-card__link svg { width: 18px; height: 18px; transition: transform 0.3s; }
.p-card__link:hover { gap: 12px; }
.p-card__link:hover svg { transform: translateX(-4px); }
.portfolio-stack__cta { display: flex; justify-content: center; margin-top: 60px; }
@media (max-width: 900px) {
  .portfolio-stack { padding: 80px 0; }
  .portfolio-stack__head { margin-bottom: 40px; }
  .portfolio-stack__list { gap: 60px; padding-bottom: 0; }
  .p-card { position: relative; top: auto; border-radius: 24px; }
  .p-card__inner { grid-template-columns: 1fr; min-height: auto; }
  .p-card--reverse .p-card__visual, .p-card--reverse .p-card__content, .p-card__visual, .p-card__content { grid-column: 1; grid-row: auto; }
  .p-card__visual { aspect-ratio: 16/9; }
  .p-card__content { padding: 32px; }
  .p-card__num { font-size: 36px; }
  .p-card__title { font-size: 1.4rem; }
  .p-card__desc { font-size: 14px; margin-bottom: 24px; }
  .p-card__meta { gap: 20px; margin-bottom: 24px; }
  .portfolio-stack__cta { margin-top: 40px; }
}
@media (max-width: 560px) {
  .p-card__content { padding: 24px; }
  .p-card__meta { flex-direction: column; gap: 12px; }
  .p-card__meta li { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- 11. Stats (Kinetic Typography) ---------- */
.stats-kinetic { position: relative; padding: 80px 0; background: var(--bg); overflow: hidden; border-block: 1px solid var(--border); }
.stats-kinetic__fade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, transparent 10%, transparent 90%, var(--bg) 100%); z-index: 2; pointer-events: none; }
.stats-marquee { display: flex; width: max-content; overflow: hidden; }
.stats-marquee--left .stats-marquee__track { animation: scrollLeft 40s linear infinite; }
.stats-marquee--right { margin-top: 16px; }
.stats-marquee--right .stats-marquee__track { animation: scrollRight 45s linear infinite; }
.stats-marquee:hover .stats-marquee__track { animation-play-state: paused; }
.stats-marquee__track { display: flex; align-items: center; gap: 40px; padding-right: 40px; }
.stat-word { display: inline-flex; align-items: baseline; gap: 16px; font-family: var(--font-fa); font-size: clamp(3rem, 7vw, 6rem); font-weight: 900; line-height: 1; white-space: nowrap; letter-spacing: -0.04em; }
.stat-label { font-size: 1.2rem; font-weight: 600; letter-spacing: 0; color: var(--text-muted); opacity: 0.8; }
.stat-word--outline { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.2); }
.stat-word--outline .stat-label { color: rgba(255, 255, 255, 0.3); }
.stat-word--fill { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-word--fill .stat-label { -webkit-text-fill-color: var(--text-muted); }
.stat-star { font-size: 2rem; color: var(--accent-2); opacity: 0.5; filter: drop-shadow(0 0 10px var(--accent-2)); }
@keyframes scrollLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scrollRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ---------- 12. CTA (The Portal) ---------- */
.cta-portal { position: relative; padding: 140px 0 90px; overflow: hidden; background: #050508; text-align: center; }
.cta-portal__bg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(circle at center, black 30%, transparent 70%); -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 70%); z-index: 0; }
.cta-portal__orb { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(124, 92, 255, 0.4) 0%, rgba(34, 211, 238, 0.1) 40%, transparent 70%); filter: blur(80px); z-index: 1; animation: orbPulse 8s ease-in-out infinite; pointer-events: none; }
.cta-portal__ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 700px; height: 700px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.1); z-index: 1; animation: spinRing 60s linear infinite; pointer-events: none; }
.cta-portal__ring::before { content: ''; position: absolute; top: -4px; left: 50%; transform: translateX(-50%); width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 20px var(--accent-2); }
@keyframes orbPulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; } 50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; } }
@keyframes spinRing { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.cta-portal__inner { position: relative; z-index: 2; }
.cta-portal__title { font-size: clamp(2.2rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 24px; color: #fff; }
.cta-portal__sub { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--text-muted); line-height: 1.9; margin-bottom: 48px; }
.cta-portal__actions { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.magnetic-btn { position: relative; display: inline-flex; align-items: center; gap: 16px; padding: 8px 8px 8px 32px; border-radius: 999px; background: #fff; color: #08080C; font-weight: 800; font-size: 1.1rem; text-decoration: none; transition: transform 0.2s var(--ease-out), box-shadow 0.3s var(--ease); box-shadow: 0 10px 40px -10px rgba(255, 255, 255, 0.3); will-change: transform; }
.magnetic-btn:hover { box-shadow: 0 15px 50px -10px rgba(255, 255, 255, 0.5); }
.magnetic-btn__text { padding-top: 2px; }
.magnetic-btn__icon { width: 48px; height: 48px; border-radius: 50%; background: #08080C; color: #fff; display: grid; place-items: center; transition: transform 0.4s var(--ease-out); }
.magnetic-btn__icon svg { width: 20px; height: 20px; }
.magnetic-btn:hover .magnetic-btn__icon { transform: rotate(-45deg); }
.cta-portal__phone { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; color: var(--text-muted); transition: color 0.3s; padding: 8px 16px; }
.cta-portal__phone svg { width: 18px; height: 18px; transition: transform 0.3s; }
.cta-portal__phone:hover { color: #fff; }
.cta-portal__phone:hover svg { transform: rotate(-15deg) scale(1.1); }
@media (max-width: 768px) {
  .cta-portal { padding: 100px 0; }
  .cta-portal__orb { width: 400px; height: 400px; }
  .cta-portal__ring { width: 450px; height: 450px; }
  .magnetic-btn { padding: 6px 6px 6px 24px; font-size: 1rem; }
  .magnetic-btn__icon { width: 40px; height: 40px; }
}

/* ---------- 13. Footer ---------- */
.footer { position: relative; background: var(--bg-elevated); border-top: 1px solid var(--border); overflow: hidden; margin-top: 0; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-block: 64px 20px; }
.footer__brand .logo { margin-bottom: 20px; display: inline-block; }
.footer__desc { font-size: 14.5px; line-height: 1.9; color: var(--text-muted); max-width: 34ch; margin-bottom: 24px; }
.footer__socials { display: flex; gap: 10px; }
.footer__socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); color: var(--text-muted); transition: all 0.3s var(--ease); }
.footer__socials a svg { width: 16px; height: 16px; }
.footer__socials a:hover { background: var(--gradient); border-color: transparent; color: #fff; transform: translateY(-3px); box-shadow: 0 8px 20px -8px rgba(124, 92, 255, 0.6); }
.footer__col h4 { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 20px; letter-spacing: 0.02em; text-transform: uppercase; }
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { font-size: 14px; color: var(--text-muted); transition: color 0.2s var(--ease), transform 0.2s var(--ease); display: inline-block; }
.footer__col a:hover { color: var(--accent-2); transform: translateX(-3px); }

/* THE CHASM — Giant Wordmark */
.footer__chasm { position: relative; width: 100%; display: flex; justify-content: center; align-items: flex-end; padding-bottom: 16px; }
.footer__wordmark { 
  display: block; 
  font-family: var(--font-display); 
  font-weight: 900; 
  font-size: 22vw; 
  line-height: 0.9; 
  letter-spacing: -0.04em; 
  user-select: none; 
  white-space: nowrap; 
  
  cursor: pointer; /* 👈 تغییر کرد تا موبایل هاور رو تشخیص بده */
  -webkit-tap-highlight-color: transparent; /* 👈 حذف هایلایت آبی در موبایل */
  
  color: transparent; 
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.08); 
  transition: filter 0.5s var(--ease), -webkit-text-stroke 0.5s var(--ease); 
}

/* 👈 :active و :focus به هاور اضافه شدن */
.footer__wordmark:hover, 
.footer__wordmark:active,
.footer__wordmark:focus { 
  background: linear-gradient(135deg, #7C5CFF 0%, #22D3EE 50%, #FF4D8D 100%); 
  background-size: 200% 200%; 
  -webkit-background-clip: text; 
  background-clip: text; 
  -webkit-text-fill-color: transparent; 
  -webkit-text-stroke: 1.5px transparent; 
  filter: drop-shadow(0 0 40px rgba(124, 92, 255, 0.6)) drop-shadow(0 0 80px rgba(34, 211, 238, 0.4)); 
  animation: gradientShift 3s ease-in-out infinite alternate; 
}
@keyframes gradientShift { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }

.footer__bottom { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-dim); background: var(--bg-elevated); }
.footer__made { font-size: 12.5px; }

@media (max-width: 960px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; padding-block: 64px 40px; }
}
@media (max-width: 560px) {
  .footer__inner { grid-template-columns: 1fr; gap: 32px; padding-block: 56px 32px; }
  .footer__bottom { flex-direction: column; text-align: center; padding-block: 16px; }
  .footer__chasm { padding-top: 24px; }
  .footer__wordmark { font-size: 28vw; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08); transform: translateY(4%); }
}

/* ---------- 14. Responsive Mobile Menu ---------- */
@media (max-width: 960px) {
  .header__cta { display: none; }
}
@media (max-width: 820px) {
  .menu-toggle { display: flex; }
  .header__capsule { height: 56px; padding: 4px 16px; }
  .logo__word { font-size: calc(var(--logo-size) * 0.75); gap: 14px; }
  .logo__part--red::before { left: calc(100% + 7px); width: 2px; }

  /* Nav Base - Mobile */
  .nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 80px 0 30px;
    background: rgba(8, 8, 12, 0.95);
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s var(--ease);
    z-index: 99;
    overflow-x: hidden;
    overflow-y: auto;
  }
  
  .nav::before {
    content: '';
    position: absolute;
    top: 30%; left: 50%;
    transform: translate(-50%, -50%);
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.15), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: -1;
  }

  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }

  .nav__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 24px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    counter-reset: menu-counter;
  }
  
  .nav__indicator { display: none; }

  .nav__list li {
    counter-increment: menu-counter;
    display: block;
    position: relative;
  }

  .nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 0;
    font-size: 1.3rem;
    font-weight: 800;
    text-align: right;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease-out), color 0.3s var(--ease), padding 0.3s var(--ease);
  }
  
  .nav__link::before {
    content: "0" counter(menu-counter);
    font-family: var(--font-en);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dim);
    transition: color 0.3s var(--ease);
  }
  
  .nav__list li:nth-child(2) .nav__link { transition-delay: 0.05s; }
  .nav__list li:nth-child(3) .nav__link { transition-delay: 0.1s; }
  .nav__list li:nth-child(4) .nav__link { transition-delay: 0.15s; }
  .nav__list li:nth-child(5) .nav__link { transition-delay: 0.2s; }
  .nav__list li:nth-child(6) .nav__link { transition-delay: 0.25s; }
  .nav__list li:nth-child(7) .nav__link { transition-delay: 0.3s; }

  .nav.is-open .nav__link { opacity: 1; transform: translateY(0); }

  .nav__link:hover,
  .nav__link.is-active { color: var(--text); padding-right: 8px; }
  
  .nav__link:hover::before,
  .nav__link.is-active::before { color: var(--accent-2); }

  .nav__link.is-active { color: #fff; text-shadow: 0 0 20px rgba(124, 92, 255, 0.6); }
  
  .nav__link.is-active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--gradient);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.8);
  }

  .nav__mobile-extra {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    padding-top: 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s 0.4s var(--ease), transform 0.5s 0.4s var(--ease-out);
  }
  
  .nav.is-open .nav__mobile-extra { opacity: 1; transform: translateY(0); }

  .nav__mobile-cta {
    padding: 12px 36px;
    font-size: 15px;
    box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.6);
  }

  .nav__mobile-socials { display: flex; gap: 12px; }
  
  .nav__mobile-socials a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    display: grid; place-items: center;
    color: var(--text-muted);
    transition: all 0.3s var(--ease);
  }
  
  .nav__mobile-socials a svg { width: 16px; height: 16px; }
  
  .nav__mobile-socials a:hover {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
  }

  body.nav-open { overflow: hidden; }
}

@media (max-width: 560px) {
  .header { padding: 10px var(--container-pad); }
  .logo__word { font-size: calc(var(--logo-size) * 0.6); gap: 10px; }
  .logo__part--red::before { left: calc(100% + 5px); width: 1.5px; }
}

/* ==========================================================
   15. SERVICES PAGE SPECIFIC STYLES
   ========================================================== */

.page-main { padding-top: 0; } 
.page-hero { 
  position: relative; 
  padding: calc(var(--header-h) + 60px) 0 100px; 
  overflow: hidden; 
  text-align: center; 
  isolation: isolate; 
  background: transparent;
}
.page-hero__mesh {
  position: absolute; 
  inset: 0;
  z-index: -3; 
  pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 20%, rgba(124,92,255,0.20), transparent 60%),
              radial-gradient(ellipse 50% 40% at 80% 60%, rgba(34,211,238,0.10), transparent 60%);
  filter: blur(40px);
}
.page-hero__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.page-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(124, 92, 255, 0.06); border: 1px solid rgba(124, 92, 255, 0.2); color: var(--accent-2); font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; }
.page-hero__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); animation: pulseDot 2s ease-in-out infinite; }
.page-hero__title { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; line-height: 1.2; letter-spacing: -0.03em; }
.page-hero__sub { font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--text-muted); line-height: 1.9; max-width: 60ch; margin: 0 auto; }

/* Service Chapters (Editorial Layout) */
.chapters { padding: 60px 0 100px; position: relative; }
.chapter {
  position: relative;
  padding-top: 80px;
  margin-bottom: 80px;
  border-top: 1px solid var(--border);
}
.chapter:first-child { border-top: none; padding-top: 0; }

.chapter__header { margin-bottom: 48px; }
.chapter__meta { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.chapter__num { font-family: var(--font-en); font-size: clamp(3rem, 5vw, 5rem); font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.15); transition: -webkit-text-stroke 0.3s; }
.chapter:hover .chapter__num { -webkit-text-stroke: 1.5px var(--chapter-accent, var(--accent-2)); }
.chapter__divider { width: 60px; height: 1px; background: rgba(255, 255, 255, 0.15); }
.chapter__cat { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--chapter-accent, var(--accent-2)); text-transform: uppercase; }
.chapter__title { font-size: clamp(1.8rem, 3.5vw, 2.75rem); font-weight: 900; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 20px; color: #fff; }
.chapter__intro { font-size: clamp(1rem, 1.2vw, 1.1rem); color: var(--text-muted); line-height: 1.95; max-width: 75ch; }

.chapter__body {
  display: flex;
  gap: 60px;
  align-items: stretch; /* Ensures both columns are equal height */
}

.chapter__main {
  flex: 1.5;
  display: flex;
  flex-direction: column; /* Allows footer to be pushed to the bottom */
}

.chapter__subtitle { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px dashed rgba(255,255,255,0.1); }
.chapter__features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chapter__features li { position: relative; padding-inline-start: 24px; font-size: 14.5px; color: var(--text); line-height: 1.6; }
.chapter__features li::before { content: '✓'; position: absolute; inset-inline-start: 0; top: 1px; color: var(--chapter-accent, var(--accent-2)); font-weight: 900; font-size: 14px; }

.chapter__aside {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
}

.chapter__aside-block { margin-bottom: 32px; }
.chapter__aside-block:last-child { margin-bottom: 0; }
.chapter__aside-block h4 { font-size: 13px; font-weight: 700; color: var(--text-dim); letter-spacing: 0.05em; margin-bottom: 16px; text-transform: uppercase; }
.chapter__aside-list { display: flex; flex-direction: column; gap: 10px; }
.chapter__aside-list li { position: relative; padding-inline-start: 16px; font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.chapter__aside-list li::before { content: '•'; position: absolute; inset-inline-start: 0; color: var(--chapter-accent, var(--accent-2)); font-weight: 900; }

.chapter__specs { display: flex; flex-direction: column; gap: 12px; }
.chapter__specs div { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px dashed rgba(255,255,255,0.06); }
.chapter__specs div:last-child { border-bottom: none; padding-bottom: 0; }
.chapter__specs dt { font-size: 13px; color: var(--text-dim); }
.chapter__specs dd { font-size: 13.5px; font-weight: 700; color: var(--text); }

.chapter__footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  margin-top: auto; /* Pushes footer to the very bottom */
  padding-top: 40px;
  border-top: none;
}

.chapter__secondary-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--text-muted); transition: color 0.3s var(--ease), gap 0.3s var(--ease-out); }
.chapter__secondary-link svg { width: 16px; height: 16px; transition: transform 0.3s; }
.chapter__secondary-link:hover { color: var(--text); gap: 10px; }
.chapter__secondary-link:hover svg { transform: translateX(-3px); }

/* Accent Colors based on data-accent attribute */
.chapter[data-accent="pink"] { --chapter-accent: #EC4899; }
.chapter[data-accent="cyan"] { --chapter-accent: #22D3EE; }
.chapter[data-accent="purple"] { --chapter-accent: #7C5CFF; }
.chapter[data-accent="orange"] { --chapter-accent: #FF9D5C; }

/* ==========================================================
   Process Section (Quantum Path - Cyberpunk Cards)
   ========================================================== */
.process-path {
  position: relative;
  padding: 120px 0;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}

.process-path__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 70%);
  z-index: -1;
}

.process-path__head {
  text-align: center;
  margin-bottom: 100px;
}

.process-path__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.06);
  border: 1px solid rgba(124, 92, 255, 0.2);
  color: var(--accent-2);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

.process-path__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
  animation: pulseDot 2s ease-in-out infinite;
}

.process-path__title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #fff;
}

/* Timeline */
.process-path__timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.process-path__spine {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.process-path__beam {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(180deg, transparent, var(--accent-2), transparent);
  animation: beamMove 4s linear infinite;
  opacity: 0.8;
  box-shadow: 0 0 15px var(--accent-2);
}

@keyframes beamMove {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(1000%); }
}

/* Nodes */
.process-node {
  position: relative;
  width: 50%;
  margin-bottom: 60px;
}

.process-node:last-child {
  margin-bottom: 0;
}

.process-node--right {
  margin-left: 50%;
  padding-left: 60px;
}

.process-node--left {
  margin-right: 50%;
  padding-right: 60px;
}

/* Dot */
.process-node__dot {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent-2);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.6);
  z-index: 2;
  transform: translateY(-50%);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.process-node--right .process-node__dot { left: -8px; }
.process-node--left .process-node__dot { right: -8px; }

.process-node:hover .process-node__dot {
  transform: translateY(-50%) scale(1.3);
  box-shadow: 0 0 30px rgba(34, 211, 238, 1);
  background: var(--accent-2);
}

/* Connective Line */
.process-node__dot::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  transform: translateY(-50%);
  opacity: 0.4;
  transition: opacity 0.3s;
  pointer-events: none;
}

.process-node--right .process-node__dot::after {
  left: 100%;
  background: linear-gradient(90deg, var(--accent-2), transparent);
}

.process-node--left .process-node__dot::after {
  right: 100%;
  background: linear-gradient(270deg, var(--accent-2), transparent);
}

.process-node:hover .process-node__dot::after {
  opacity: 1;
}

/* Cyberpunk Card */
.process-node__card {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.02));
  padding: 1px;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
  transition: background 0.4s;
}

.process-node:hover .process-node__card {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

.process-node__card-inner {
  background: #0a0a14;
  padding: 32px;
  clip-path: polygon(0 0, calc(100% - 29px) 0, 100% 29px, 100% 100%, 0 100%);
  position: relative;
  height: 100%;
  overflow: hidden;
  text-align: right;
}

/* Scanline */
.process-node__scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.1), transparent);
  height: 40%;
  width: 100%;
  top: -100%;
  animation: scan 4s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes scan {
  0% { top: -50%; }
  100% { top: 150%; }
}

/* Card Inner Glow */
.process-node__card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(124, 92, 255, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 1;
}

.process-node:hover .process-node__card-inner::after {
  opacity: 1;
}

/* HUD Header */
.process-node__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 3;
}

.process-node__header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
}

.process-node__rec {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 8px var(--accent-3);
  animation: pulseRec 1.5s infinite;
}

@keyframes pulseRec {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.process-node__status {
  color: var(--accent-2);
  background: rgba(34, 211, 238, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

/* Giant Number */
.process-node__num {
  position: absolute;
  top: 0; left: 10px;
  font-family: var(--font-en);
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.03);
  pointer-events: none;
  z-index: 0;
  transition: -webkit-text-stroke 0.4s;
}

.process-node:hover .process-node__num {
  -webkit-text-stroke: 1px rgba(124, 92, 255, 0.2);
}

/* Icon */
.process-node__icon {
  position: relative;
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--accent-2);
  margin-bottom: 24px;
  transition: background 0.4s, color 0.4s, transform 0.4s, border-color 0.4s;
}

.process-node:hover .process-node__icon {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.5);
}

.process-node__icon svg {
  width: 24px;
  height: 24px;
}

/* Text */
.process-node h3 {
  position: relative;
  z-index: 3;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}

.process-node p {
  position: relative;
  z-index: 3;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
  .process-path { padding: 80px 0; }
  .process-path__head { margin-bottom: 60px; }
  
  .process-path__spine {
    left: 24px;
    transform: none;
  }
  
  .process-node {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 64px !important;
    padding-right: 0 !important;
  }
  
  .process-node__dot {
    left: 16px !important;
    right: auto !important;
  }
  
  .process-node__dot::after {
    left: 100% !important;
    right: auto !important;
    background: linear-gradient(90deg, var(--accent-2), transparent) !important;
  }
  
  .process-node__card-inner { padding: 24px; }
  .process-node__num { font-size: 6rem; }
}

/* Responsive */
@media (max-width: 768px) {
  .process-path { padding: 80px 0; }
  .process-path__head { margin-bottom: 60px; }
  
  /* خط به سمت راست میرود */
  .process-path__spine {
    left: 24px;
    transform: none;
  }
  
  .process-node {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 64px !important;
    padding-right: 0 !important;
    justify-content: flex-start !important;
  }
  
  .process-node__dot {
    left: 16px !important;
    right: auto !important;
  }
  
  .process-node__content {
    padding: 24px;
  }
  
  .process-node__num {
    font-size: 4rem;
    top: -5px;
  }
}

/* Services Page Responsive */
@media (max-width: 960px) {
  .chapter__body { flex-direction: column; gap: 40px; }
  .chapter__features { grid-template-columns: 1fr; }
  .chapter__aside { padding: 24px; }
  .chapter__footer { flex-direction: column; align-items: stretch; text-align: center; padding-top: 24px; }
  .chapter__secondary-link { justify-content: center; }
  
  .process__steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .process-step__line { display: none; }
}
@media (max-width: 560px) {
  .page-hero { padding: 130px 0 80px; } /* 👈 به 130px تغییر دادیم تا از هدر فاصله بگیره */
  .process__steps { grid-template-columns: 1fr; }
  .chapter__num { font-size: 3rem; }
}

/* ---------- 16. Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================
   16. PORTFOLIO PAGE SPECIFIC STYLES
   ========================================================== */
.portfolio-bento-section {
  padding: 60px 0 100px;
}

/* Filters */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.filter-btn.is-active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px -4px rgba(124, 92, 255, 0.5);
}

/* Bento Grid Layout (Perfect Balance) */
.portfolio-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 280px; /* ارتفاع ثابت برای ایجاد نظم */
  gap: 24px;
}

/* Card Sizes */
.port-card { grid-column: span 2; grid-row: span 1; }
.port-card--wide { grid-column: span 4; grid-row: span 1; }
.port-card--tall { grid-column: span 2; grid-row: span 2; }

/* Base Card */
.port-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}

.port-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.3);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.8), 0 0 40px -15px rgba(124,92,255,0.2);
}

.port-card__link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Image Area */
.port-card__image {
  position: relative;
  flex: 1; /* تمام فضای بالای نوار شیشه‌ای رو پر میکنه */
  display: grid;
  place-items: center;
  transition: transform 0.7s var(--ease-out);
  overflow: hidden;
}

.port-card__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--c1), transparent 70%);
  opacity: 0.15;
  filter: blur(40px);
}

.port-card__image svg {
  width: 30%;
  height: 30%;
  max-width: 80px;
  color: #fff;
  stroke-width: 1.2;
  opacity: 0.8;
  filter: drop-shadow(0 0 20px var(--c1));
  transition: transform 0.6s var(--ease-out);
}

.port-card:hover .port-card__image svg {
  transform: scale(1.1) rotate(-5deg);
}

/* Glassmorphism Info Bar (Always Visible) */
.port-card__info {
  position: relative;
  z-index: 2;
  padding: 20px 24px;
  background: rgba(10, 10, 18, 0.65); /* پس‌زمینه تیره نیمه‌شفاف */
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.3s;
}

.port-card:hover .port-card__info {
  background: rgba(20, 20, 32, 0.85); /* کمی تیره‌تر با هاور */
}

.port-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.port-card__cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.05em;
}

.port-card__title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin: 0;
}

/* View Button (Circular Arrow) */
.port-card__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: all 0.3s var(--ease-out);
  flex-shrink: 0;
}

.port-card__btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}

.port-card:hover .port-card__btn {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 20px rgba(124, 92, 255, 0.4);
}

.port-card:hover .port-card__btn svg {
  transform: translateX(-3px); /* انیمیشن فلش */
}

/* Filtering State */
.port-card.is-hidden {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .portfolio-bento { grid-auto-rows: 240px; }
  .port-card--wide { grid-column: span 6; } /* کارت‌های عریض در تبلت تمام‌عرض میشن */
  .port-card--tall { grid-column: span 3; grid-row: span 1; aspect-ratio: 4/3; }
  .port-card { grid-column: span 3; }
}

@media (max-width: 768px) {
  .portfolio-bento { 
    grid-auto-rows: auto;
    gap: 16px; 
  }
  .port-card, .port-card--wide, .port-card--tall { 
    grid-column: span 6; 
    aspect-ratio: 4/3; 
  }
  
  /* در موبایل نوار شیشه‌ای کمی کوتاه‌تر و جمع‌وجورتره */
  .port-card__info { padding: 16px; }
  .port-card__title { font-size: 15px; }
}

/* ==========================================================
   17. ABOUT PAGE SPECIFIC STYLES
   ========================================================== */

/* ---------- About Hero & Passport ---------- */
.about-hero {
  position: relative;
  padding: calc(var(--header-h) + 60px) 0 80px;
  overflow: hidden;
  isolation: isolate;
}

.about-hero__mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 60% 50% at 20% 30%, rgba(124,92,255,0.15), transparent 60%),
              radial-gradient(ellipse 50% 40% at 80% 70%, rgba(34,211,238,0.1), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

.about-hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.06);
  border: 1px solid rgba(124, 92, 255, 0.2);
  color: var(--accent-2);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 24px;
}

.about-hero__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
  animation: pulseDot 2s ease-in-out infinite;
}

.about-hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.about-hero__sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 50ch;
  margin-bottom: 32px;
}

.about-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-hero__tag {
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* Digital Passport */
.about-passport {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
  background: linear-gradient(135deg, rgba(30, 30, 46, 0.9), rgba(15, 15, 23, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.about-passport__glow {
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: var(--accent);
  filter: blur(60px);
  opacity: 0.3;
  z-index: 0;
}

.about-passport__barcode {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 40px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 2px, transparent 2px, transparent 4px, rgba(255,255,255,0.1) 4px, rgba(255,255,255,0.1) 6px, transparent 6px, transparent 10px);
  opacity: 0.3;
  mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
}

.about-passport__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.about-passport__label {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-2);
}

.about-passport__chip {
  width: 32px; height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #EAB308, #CA8A04);
  border: 1px solid rgba(0,0,0,0.3);
  position: relative;
}

.about-passport__chip::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 3px;
}

.about-passport__monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
}

.about-passport__letter {
  font-family: var(--font-display);
  font-size: 36px;
  color: #fff;
  line-height: 1;
}

.about-passport__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.about-passport__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-passport__field-label {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.about-passport__field-value {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.05em;
}

.about-passport__stats {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.about-passport__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.about-passport__stat strong {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.about-passport__stat span {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* ---------- About Story (Editorial) ---------- */
.about-story {
  padding: 100px 0;
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.about-story__inner {
  max-width: 800px;
  margin: 0 auto;
}

.about-story__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.05em;
}

.about-story__line {
  width: 40px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.about-story__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-story__lead {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
  color: var(--text);
  line-height: 2;
}

.about-story__dropcap {
  float: right;
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 0.8;
  color: var(--accent-2);
  margin-left: 12px;
  margin-top: 4px;
  text-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
}

.about-story__text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 2;
  text-align: justify;
}

.about-story__quote {
  margin: 24px 0;
  padding: 24px 32px;
  border-right: 4px solid var(--accent);
  background: linear-gradient(90deg, transparent, rgba(124, 92, 255, 0.05));
  border-radius: 8px 0 0 8px;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.8;
  font-style: italic;
}

/* ---------- About Skills (Workshop) ---------- */
.about-skills {
  padding: 100px 0;
}

.about-skills__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.about-skills__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.06);
  border: 1px solid rgba(124, 92, 255, 0.2);
  color: var(--accent-2);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

.about-skills__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
  animation: pulseDot 2s ease-in-out infinite;
}

.about-skills__title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: #fff;
}

.about-skills__sub {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.8;
}

.about-skills__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.skill-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  transition: transform 0.4s var(--ease-out), border-color 0.4s;
}

.skill-box:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.skill-box__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.skill-box__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  transition: transform 0.4s;
}

.skill-box:hover .skill-box__icon {
  transform: scale(1.1) rotate(-5deg);
}

.skill-box__icon svg { width: 24px; height: 24px; }

.skill-box[data-color="pink"] .skill-box__icon { background: #EC4899; box-shadow: 0 8px 20px -8px #EC4899; }
.skill-box[data-color="cyan"] .skill-box__icon { background: #22D3EE; box-shadow: 0 8px 20px -8px #22D3EE; }
.skill-box[data-color="purple"] .skill-box__icon { background: #7C5CFF; box-shadow: 0 8px 20px -8px #7C5CFF; }
.skill-box[data-color="orange"] .skill-box__icon { background: #FF9D5C; box-shadow: 0 8px 20px -8px #FF9D5C; }

.skill-box__title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.skill-box__cat {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.skill-box__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.3s;
}

.skill-box:hover .skill-tag {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

/* ---------- About Changelog (Timeline) ---------- */
.about-changelog {
  padding: 100px 0;
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.about-changelog__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.about-changelog__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.06);
  border: 1px solid rgba(124, 92, 255, 0.2);
  color: var(--accent-2);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

.about-changelog__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
  animation: pulseDot 2s ease-in-out infinite;
}

.about-changelog__title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: #fff;
}

.about-changelog__sub {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.8;
}

.changelog {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-right: 32px; /* فضا برای خط تایم‌لاین در RTL */
}

.changelog::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.changelog-item {
  position: relative;
  margin-bottom: 48px;
  padding-left: 24px;
}

.changelog-item:last-child {
  margin-bottom: 0;
}

.changelog-item::before {
  content: '';
  position: absolute;
  top: 6px; right: -40px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 3px solid var(--text-dim);
  z-index: 2;
  transition: all 0.3s;
}

.changelog-item:hover::before {
  border-color: var(--accent-2);
  box-shadow: 0 0 15px var(--accent-2);
}

.changelog-item--current::before {
  border-color: var(--accent-2);
  background: var(--accent-2);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.6);
}

.changelog-item__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.changelog-item__version {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.changelog-item__badge {
  font-family: var(--font-fa);
  font-size: 10px;
  font-weight: 700;
  color: #08080C;
  background: var(--accent-2);
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
}

.changelog-item__date {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.changelog-item__title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.changelog-item__desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.changelog-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.changelog-item__tags span {
  font-size: 11.5px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ---------- About Manifesto ---------- */
.about-manifesto {
  padding: 100px 0;
}

.about-manifesto__head {
  text-align: center;
  margin-bottom: 60px;
}

.about-manifesto__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.06);
  border: 1px solid rgba(124, 92, 255, 0.2);
  color: var(--accent-2);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

.about-manifesto__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
  animation: pulseDot 2s ease-in-out infinite;
}

.about-manifesto__title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}

.about-manifesto__list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.manifesto-item {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 24px;
  transition: background 0.3s, border-color 0.3s;
}

.manifesto-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(124, 92, 255, 0.2);
}

.manifesto-item__num {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
  line-height: 1;
  flex-shrink: 0;
}

.manifesto-item__quote {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 12px;
}

.manifesto-item__desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.9;
}

/* ---------- About Responsive ---------- */
@media (max-width: 960px) {
  .about-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  
  .about-hero__eyebrow,
  .about-hero__tags {
    justify-content: center;
  }
  
  .about-hero__sub {
    margin-inline: auto;
  }

  .about-passport {
    margin-top: 20px;
  }

  .about-skills__grid {
    grid-template-columns: 1fr;
  }

  .manifesto-item {
    flex-direction: column;
    gap: 16px;
    padding: 32px;
  }
}

@media (max-width: 560px) {
  .about-hero { padding: 130px 0 60px; }
  .about-story { padding: 70px 0; }
  .about-skills { padding: 70px 0; }
  .about-changelog { padding: 70px 0; }
  .about-manifesto { padding: 70px 0; }
  
  .about-story__dropcap { font-size: 3rem; }
  
  .about-story__quote {
    padding: 16px 20px;
    font-size: 1rem;
  }
  
  .changelog { padding-right: 24px; }
  .changelog-item::before { right: -32px; width: 12px; height: 12px; }
  
  .skill-box { padding: 24px; }
  .skill-box__header { flex-direction: column; text-align: center; align-items: center; gap: 12px; }
  .skill-box__tags { justify-content: center; }
  
  .manifesto-item { padding: 24px; }
}

/* ==========================================================
   18. ABOUT PAGE - Interactive Hero & Story Slider
   ========================================================== */

/* ---------- About Hero (Redesigned) ---------- */
.about-hero {
  position: relative;
  padding: calc(var(--header-h) + 60px) 0 80px;
  overflow: hidden;
  isolation: isolate;
}

.about-hero__mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: 
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(124,92,255,0.15), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(34,211,238,0.1), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

.about-hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-hero__content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.06);
  border: 1px solid rgba(124, 92, 255, 0.2);
  color: var(--accent-2);
  font-size: 12.5px;
  font-weight: 600;
  width: fit-content;
}

.about-hero__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
  animation: pulseDot 2s ease-in-out infinite;
}

/* Terminal */
.terminal {
  background: #0a0a12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.02);
}

.terminal__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal__dots { display: flex; gap: 6px; }
.terminal__dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #3A3A4E;
}
.terminal__dots span:nth-child(1) { background: #FF5F57; }
.terminal__dots span:nth-child(2) { background: #FEBC2E; }
.terminal__dots span:nth-child(3) { background: #28C840; }

.terminal__title {
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--text-dim);
  direction: ltr;
  flex: 1;
  text-align: left;
}

.terminal__body {
  padding: 20px;
  direction: ltr;
  text-align: left;
  font-family: var(--font-en);
  font-size: 13.5px;
  line-height: 1.9;
  min-height: 130px;
}

.terminal__line {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 12px;
}

.terminal__prompt { color: var(--accent-2); font-weight: 700; }
.terminal__cmd { color: var(--text); }

.terminal__output {
  color: #86EFAC;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.terminal__typed { white-space: pre-wrap; }

.terminal__cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--accent-2);
  margin-left: 2px;
  animation: cursorBlink 1s steps(2) infinite;
  vertical-align: middle;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Role Switcher */
.role-switcher {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.role-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.role-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: none;
  background: none;
}

.role-tab svg { width: 16px; height: 16px; }

.role-tab:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.role-tab.is-active {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 16px -4px rgba(124,92,255,0.5);
}

.role-panels {
  position: relative;
  min-height: 90px;
}

.role-panel {
  position: absolute;
  inset: 0;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease-out);
  pointer-events: none;
}

.role-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Profile Card */
.about-profile {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  transition: transform 0.2s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
}

.about-profile__ring {
  position: absolute;
  inset: -30px;
  border: 1px dashed rgba(124, 92, 255, 0.3);
  border-radius: 50%;
  animation: spinRing 30s linear infinite;
  pointer-events: none;
}

.about-profile__ring::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 20px var(--accent-2);
}

.about-profile__card {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 30, 46, 0.9), rgba(15, 15, 23, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.about-profile__card::before {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.15), transparent 60%);
  pointer-events: none;
}

.about-profile__role {
  font-family: var(--font-en);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}

.about-profile__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: #34D399;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 24px;
}

.about-profile__status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 8px #34D399;
  animation: statusPulse 2s ease-in-out infinite;
}

.about-profile__stats {
  display: flex;
  justify-content: space-around;
  padding: 20px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.about-profile__stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.about-profile__stat strong {
  font-size: 18px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-profile__stat span { font-size: 10.5px; color: var(--text-muted); }

.about-profile__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.about-profile__tags span {
  font-size: 10.5px;
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================
   ABOUT HERO — MOBILE RESPONSIVE FIX
   ========================================================== */

/* 🔧 رفع overflow گرید در تبلت و پایین‌تر */
@media (max-width: 960px) {
  /* جلوگیری از سرریز شدن گرید به خاطر محتوای داخلی */
  .about-hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    width: 100%;
    overflow: hidden;
  }
  
  .about-hero__content,
  .about-profile {
    min-width: 0;
    width: 100%;
  }
  
  .about-hero__eyebrow {
    margin-inline: auto;
  }
  
  /* ترمینال: جلوگیری از سرریز متن‌های انگلیسی طولانی */
  .terminal {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  .terminal__body {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
  }
  
  .terminal__typed {
    word-break: break-word;
  }
  
  .terminal__output {
    flex-wrap: wrap;
  }
  
  /* تب‌های نقش: در تبلت عمودی می‌شن */
  .role-tabs {
    flex-wrap: wrap;
  }
  
  .role-tab {
    flex: 1 1 30%;
    min-width: 0;
  }
  
  /* کارت پروفایل: تنظیم عرض و حل مشکل حلقه بیرون‌زده */
  .about-profile {
    max-width: 340px;
    margin-inline: auto;
    padding: 0 8px; /* فضا برای حلقه چرخان */
  }
  
  .about-profile__ring {
    inset: -20px; /* کاهش از -30px به -20px */
  }
  
  /* لوگو در موبایل کوچیک‌تر */
  .about-profile__logo .logo__word {
    font-size: 40px;
    gap: 16px;
  }
  
  .about-profile__logo .logo__part--red::before {
    left: calc(100% + 8px);
    width: 2.5px;
  }
}

/* 🔧 اصلاحات اختصاصی موبایل */
@media (max-width: 560px) {
  .about-hero {
    padding: calc(var(--header-h) + 40px) 0 60px;
    overflow-x: hidden;
  }
  
  .about-hero__inner {
    gap: 40px;
    padding-inline: 0;
  }
  
  /* تب‌ها در موبایل کاملاً عمودی */
  .role-tabs {
    flex-direction: column;
    gap: 4px;
  }
  
  .role-tab {
    flex: 1 1 auto;
    justify-content: flex-start;
    padding: 12px 14px;
    font-size: 13.5px;
  }
  
  /* ترمینال موبایل */
  .terminal__body {
    padding: 14px;
    font-size: 11.5px;
    min-height: 120px;
    line-height: 1.8;
  }
  
  .terminal__head {
    padding: 8px 12px;
  }
  
  .terminal__title {
    font-size: 10px;
  }
  
  .terminal__line {
    margin-bottom: 8px;
  }
  
  /* کارت پروفایل در موبایل */
  .about-profile {
    max-width: 100%;
    padding: 0 12px;
  }
  
  .about-profile__ring {
    inset: -14px;
  }
  
  .about-profile__card {
    padding: 28px 20px;
    border-radius: 22px;
  }
  
  .about-profile__logo .logo__word {
    font-size: 36px;
    gap: 14px;
  }
  
  .about-profile__logo .logo__part--red::before {
    left: calc(100% + 7px);
    width: 2px;
  }
  
  .about-profile__role {
    font-size: 9.5px;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
  }
  
  .about-profile__status {
    font-size: 10.5px;
    margin-bottom: 20px;
  }
  
  .about-profile__stats {
    padding: 16px 0;
    margin-bottom: 16px;
  }
  
  .about-profile__stat strong {
    font-size: 16px;
  }
  
  .about-profile__stat span {
    font-size: 10px;
  }
  
  .about-profile__tags span {
    font-size: 10px;
    padding: 3px 8px;
  }
}

/* 🔧 موبایل‌های کوچیک (زیر ۳۶۰px) */
@media (max-width: 380px) {
  .about-hero__eyebrow {
    font-size: 11px;
    padding: 5px 12px 5px 8px;
  }
  
  .terminal__body {
    font-size: 11px;
    padding: 12px;
  }
  
  .about-profile__logo .logo__word {
    font-size: 32px;
    gap: 12px;
  }
  
  .about-profile__logo .logo__part--red::before {
    left: calc(100% + 6px);
    width: 2px;
  }
  
  .about-profile__ring {
    inset: -10px;
  }
}

/* Profile Logo (جایگزین آواتار و نام) */
.about-profile__logo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0 28px;
  margin-bottom: 4px;
}

/* هاله‌ی نوری پشت لوگو */
.about-profile__logo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 90px;
  background: radial-gradient(ellipse, rgba(124, 92, 255, 0.35), rgba(34, 211, 238, 0.15) 40%, transparent 70%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}

/* تنظیم سایز لوگو در کارت پروفایل */
.about-profile__logo .logo__word {
  position: relative;
  top: 0;
  font-size: 48px;
  gap: 20px;
}

/* ضخیم‌تر کردن خط جداکننده در سایز بزرگ‌تر */
.about-profile__logo .logo__part--red::before {
  left: calc(100% + 10px);
  width: 3px;
  top: 8%;
  bottom: 8%;
}

/* تنظیم برای موبایل */
@media (max-width: 960px) {
  .about-profile__logo .logo__word { font-size: 42px; gap: 18px; }
  .about-profile__logo .logo__part--red::before { left: calc(100% + 9px); width: 2.5px; }
}

@media (max-width: 560px) {
  .about-profile__logo .logo__word { font-size: 38px; gap: 16px; }
  .about-profile__logo .logo__part--red::before { left: calc(100% + 8px); width: 2px; }
}

/* ---------- About Story (Magazine Chapters) ---------- */
.about-story {
  padding: 100px 0;
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.about-story__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.about-story__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.05em;
}

.about-story__line {
  width: 40px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

/* Progress Bar */
.story-progress {
  position: sticky;
  top: var(--header-h);
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  margin-bottom: 60px;
  overflow: hidden;
  z-index: 10;
}

.story-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--gradient);
  border-radius: 2px;
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.6);
  transition: width 0.3s var(--ease);
}

/* Chapters Container */
.story-chapters {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.story-chapters::before {
  content: '';
  position: absolute;
  top: 30px; bottom: 30px;
  right: 90px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(124, 92, 255, 0.3), rgba(34, 211, 238, 0.3), rgba(124, 92, 255, 0.3), transparent);
  z-index: 0;
}

/* Individual Chapter */
.story-chapter {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
  padding: 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, transform 0.4s;
  z-index: 1;
}

.story-chapter:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
}

.story-chapter.is-active {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.06), rgba(34, 211, 238, 0.03));
  border-color: rgba(124, 92, 255, 0.2);
}

/* Side (Number + Keyword) */
.story-chapter__side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.story-chapter__num {
  font-family: var(--font-en);
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.15);
  transition: -webkit-text-stroke 0.4s;
}

.story-chapter:hover .story-chapter__num,
.story-chapter.is-active .story-chapter__num {
  -webkit-text-stroke: 1.5px var(--accent-2);
}

.story-chapter__keyword {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-2);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  letter-spacing: 0.1em;
}

.story-chapter__line {
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  margin-top: 8px;
  transition: width 0.4s var(--ease-out), background 0.4s;
}

.story-chapter:hover .story-chapter__line,
.story-chapter.is-active .story-chapter__line {
  width: 80px;
  background: var(--gradient);
}

/* Content */
.story-chapter__content {
  padding-top: 20px;
}

.story-chapter__content p {
  font-size: 16px;
  line-height: 2;
  color: var(--text-muted);
  text-align: justify;
  transition: color 0.4s;
}

.story-chapter:hover .story-chapter__content p,
.story-chapter.is-active .story-chapter__content p {
  color: var(--text);
}

/* Responsive */
@media (max-width: 768px) {
  .story-chapters::before { display: none; }
  
  .story-chapter {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
  }
  
  .story-chapter__side {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  
  .story-chapter__num {
    font-size: 3.5rem;
  }
  
  .story-chapter__line {
    display: none;
  }
  
  .story-chapter__content {
    padding-top: 0;
  }
  
  .story-chapter__content p {
    font-size: 14.5px;
    text-align: right;
  }
}

@media (max-width: 560px) {
  .about-story { padding: 60px 0; }
  .story-progress { margin-bottom: 32px; }
  .story-chapters { gap: 16px; }
}

/* ==========================================================
   19. CONTACT PAGE SPECIFIC STYLES
   ========================================================== */

/* ---------- Contact Section ---------- */
.contact-section {
  padding: 60px 0 100px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}

/* ---------- Contact Card (Right Side) ---------- */
.contact-card {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 30, 46, 0.9), rgba(15, 15, 23, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 40px 32px;
  overflow: hidden;
  isolation: isolate;
}

.contact-card__glow {
  position: absolute;
  top: -50px; right: -50px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(124,92,255,0.3), transparent 60%);
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
}

.contact-card__title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.contact-card__desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.contact-list li {
  display: flex;
  gap: 16px;
  align-items: center;
}

.contact-list__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--accent-2);
  flex-shrink: 0;
}

.contact-list__icon svg { width: 20px; height: 20px; }

.contact-list__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-list__label {
  font-size: 12px;
  color: var(--text-dim);
}

.contact-list__value {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.3s;
}

a.contact-list__value:hover {
  color: var(--accent-2);
}

.contact-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: #34D399;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.contact-status__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 10px #34D399;
  animation: pulseDot 2s ease-in-out infinite;
}

.contact-socials {
  display: flex;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.contact-socials a {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: all 0.3s var(--ease);
}

.contact-socials a svg { width: 18px; height: 18px; }

.contact-socials a:hover {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -8px rgba(124,92,255,0.6);
}

/* ---------- Contact Form (Left Side) ---------- */
.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 8px;
}

.contact-form-inner {
  background: rgba(10, 10, 18, 0.6);
  border-radius: 22px;
  padding: 40px 32px;
  position: relative;
}

.contact-form__title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.contact-form__sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.8;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  transition: all 0.3s var(--ease);
  outline: none;
}

.form-input::placeholder {
  color: var(--text-dim);
  font-size: 13.5px;
}

.form-input:focus {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(124, 92, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.1), 0 0 20px -5px rgba(124, 92, 255, 0.3);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}

/* Select Styling */
.form-select-wrapper {
  position: relative;
}

.form-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  padding-left: 44px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  outline: none;
}

.form-select:focus {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(124, 92, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.1);
}

.form-select option {
  background: #13131D;
  color: var(--text);
  padding: 12px;
}

.form-select-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--text-dim);
  pointer-events: none;
}

/* Submit Button */
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 14px;
  background: var(--gradient);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease);
  box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.6);
  margin-top: 8px;
}

.form-submit svg { width: 18px; height: 18px; transition: transform 0.3s; }

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px -10px rgba(124, 92, 255, 0.8);
}

.form-submit:hover svg {
  transform: rotate(-15deg) scale(1.1);
}

/* Success Message */
.contact-success {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 18, 0.98);
  border-radius: 22px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
  z-index: 10;
}

.contact-success.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.contact-success__icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.1);
  border: 2px solid #34D399;
  display: grid;
  place-items: center;
  color: #34D399;
  margin-bottom: 24px;
  animation: successPulse 2s ease-in-out infinite;
}

.contact-success__icon svg { width: 40px; height: 40px; }

@keyframes successPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
  50% { box-shadow: 0 0 0 15px rgba(52, 211, 153, 0); }
}

.contact-success h3 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.contact-success p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 32ch;
}

/* ---------- FAQ Section ---------- */
.faq {
  padding: 100px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.faq__head {
  text-align: center;
  margin-bottom: 60px;
}

.faq__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.06);
  border: 1px solid rgba(124, 92, 255, 0.2);
  color: var(--accent-2);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

.faq__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
  animation: pulseDot 2s ease-in-out infinite;
}

.faq__title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}

.faq-item.is-open {
  background: rgba(124, 92, 255, 0.04);
  border-color: rgba(124, 92, 255, 0.2);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 22px 24px;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
  transition: color 0.3s;
}

.faq-item.is-open .faq-item__question {
  color: var(--accent-2);
}

.faq-item__icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out), background 0.3s, color 0.3s;
}

.faq-item__icon svg { width: 16px; height: 16px; }

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
  background: var(--accent-2);
  color: #08080C;
  border-color: var(--accent-2);
}

.faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out);
}

.faq-item.is-open .faq-item__answer {
  grid-template-rows: 1fr;
}

.faq-item__answer-inner {
  overflow: hidden;
  padding: 0 24px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.9;
  transition: padding 0.4s var(--ease-out);
}

.faq-item.is-open .faq-item__answer-inner {
  padding: 0 24px 24px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .contact-card {
    padding: 32px 24px;
  }
  
  .contact-form-inner {
    padding: 32px 24px;
  }
}

@media (max-width: 560px) {
  .contact-section { padding: 40px 0 80px; }
  .faq { padding: 70px 0; }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .contact-form-inner {
    padding: 28px 20px;
  }
  
  .contact-success {
    padding: 32px 20px;
  }
  
  .contact-success__icon {
    width: 64px; height: 64px;
  }
  
  .contact-success__icon svg { width: 32px; height: 32px; }
  
  .faq-item__question {
    padding: 18px 20px;
    font-size: 14.5px;
  }
  
  .faq-item__answer-inner {
    padding: 0 20px;
    font-size: 14px;
  }
  
  .faq-item.is-open .faq-item__answer-inner {
    padding: 0 20px 20px;
  }
}

/* ==========================================================
   19. CONTACT PAGE — Sentence Form Hero
   ========================================================== */

/* The Sentence Form */
.sentence-form {
  position: relative;
  background: linear-gradient(135deg, rgba(20,20,32,0.85), rgba(10,10,18,0.95));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 32px;
  padding: 56px 48px;
  text-align: right;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 30px 60px -20px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.02) inset,
    0 0 60px -20px rgba(124,92,255,0.2);
  overflow: hidden;
}

.sentence-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,92,255,0.6), rgba(34,211,238,0.6), transparent);
  pointer-events: none;
}

.sentence-form__text {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 500; line-height: 2.2;
  color: var(--text-muted);
  margin-bottom: 12px;
  word-spacing: 0.1em;
}

/* Inline inputs */
.inline-field { display: inline-block; position: relative; vertical-align: baseline; }

.inline-input {
  display: inline-block;
  background: transparent;
  border: none;
  border-bottom: 2px dashed rgba(124, 92, 255, 0.4);
  padding: 0 8px 2px;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  color: var(--text);
  outline: none;
  min-width: 80px;
  max-width: 300px;
  text-align: center;
  transition: all 0.3s var(--ease);
  border-radius: 4px 4px 0 0;
  line-height: 1.5;
}

.inline-input::placeholder {
  color: rgba(124, 92, 255, 0.5);
  font-weight: 500;
  font-size: 0.85em;
}

.inline-input:focus {
  border-bottom-color: var(--accent-2);
  border-bottom-style: solid;
  background: rgba(34, 211, 238, 0.05);
}

.inline-input:not(:placeholder-shown) {
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
  border-bottom-style: solid;
}

.inline-input--email { direction: ltr; }

/* Select */
.inline-field--select {
  display: inline-flex; align-items: center; gap: 4px;
  border-bottom: 2px dashed rgba(124, 92, 255, 0.4);
  border-radius: 4px 4px 0 0;
  padding: 0 4px;
  transition: all 0.3s var(--ease);
  vertical-align: baseline;
}

.inline-field--select:focus-within {
  border-bottom-color: var(--accent-2);
  border-bottom-style: solid;
  background: rgba(34, 211, 238, 0.05);
}

.inline-input--select {
  appearance: none; -webkit-appearance: none;
  background: transparent; border: none;
  padding: 0 4px;
  font-family: inherit; font-size: inherit; font-weight: 700;
  color: var(--accent-2);
  cursor: pointer; outline: none;
  text-align: right; min-width: 0;
}

.inline-input--select option { background: #13131D; color: var(--text); padding: 12px; }

.inline-select-arrow { width: 18px; height: 18px; color: var(--accent-2); flex-shrink: 0; pointer-events: none; }

/* Submit */
.sentence-form__submit {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 32px;
  padding: 16px 36px; border-radius: 999px;
  background: var(--gradient); color: #fff;
  font-family: inherit; font-size: 16px; font-weight: 700;
  border: none; cursor: pointer;
  transition: all 0.3s var(--ease);
  box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.6);
}

.sentence-form__submit svg { width: 20px; height: 20px; transition: transform 0.4s var(--ease-out); }
.sentence-form__submit:hover { transform: translateY(-2px); box-shadow: 0 15px 40px -10px rgba(124, 92, 255, 0.8); }
.sentence-form__submit:hover svg { transform: rotate(-15deg) scale(1.1) translateX(-2px); }

.sentence-form__submit.is-ready { animation: submitPulse 2s ease-in-out infinite; }

@keyframes submitPulse {
  0%, 100% { box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.6); }
  50% { box-shadow: 0 10px 40px -8px rgba(124, 92, 255, 0.9), 0 0 0 5px rgba(124, 92, 255, 0.08); }
}

/* Success Overlay */
.sentence-success {
  position: absolute; inset: 0;
  padding: 60px 48px;
  background: linear-gradient(135deg, rgba(20,20,32,0.98), rgba(10,10,18,0.99));
  border-radius: 32px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  opacity: 0; pointer-events: none; transform: scale(0.95);
  transition: all 0.5s var(--ease-out);
  z-index: 10;
}

.sentence-success.is-visible { opacity: 1; pointer-events: auto; transform: scale(1); }

.sentence-success__icon {
  width: 90px; height: 90px; border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  border: 3px solid #34D399;
  display: grid; place-items: center;
  font-size: 40px; font-weight: 900; color: #34D399;
  margin-bottom: 32px;
  animation: successFloat 3s ease-in-out infinite;
}

@keyframes successFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.sentence-success h3 { font-size: 28px; font-weight: 900; color: #fff; margin-bottom: 12px; }
.sentence-success p { font-size: 15px; color: var(--text-muted); line-height: 1.9; margin-bottom: 32px; max-width: 40ch; }

.sentence-success__reset {
  padding: 12px 28px; border-radius: 999px;
  background: transparent; border: 1px solid var(--border-strong);
  color: var(--text); font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.3s;
}

.sentence-success__reset:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--accent-2);
  color: var(--accent-2);
}

/* Contact Strip */
.contact-strip {
  padding: 40px 0;
  border-block: 1px solid var(--border);
  background: rgba(15,15,23,0.4);
}

.contact-strip__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 900px; margin: 0 auto;
}

.contact-strip__item {
  display: flex; align-items: center; gap: 12px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
  text-decoration: none; color: var(--text);
  font-size: 14.5px; font-weight: 600;
}

.contact-strip__item svg { width: 20px; height: 20px; color: var(--accent-2); flex-shrink: 0; }

a.contact-strip__item:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(124,92,255,0.3);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .sentence-form { padding: 40px 24px; border-radius: 24px; }
  .sentence-form__text { font-size: 1.1rem; line-height: 2; }
  .sentence-success { padding: 40px 24px; }
  .sentence-success h3 { font-size: 22px; }
  .contact-strip__grid { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 480px) {
  .contact-hero { padding: calc(var(--header-h) + 50px) 0 60px; }
  .sentence-form { padding: 32px 18px; }
  .sentence-form__text { font-size: 1rem; line-height: 2.2; }
  .inline-input { min-width: 60px; max-width: 180px; font-size: 0.95em; padding: 0 4px 2px; }
  .sentence-form__submit { padding: 14px 28px; font-size: 15px; width: 100%; justify-content: center; }
  .sentence-success { padding: 32px 20px; }
}

/* ==========================================================
   19. CONTACT HUB (Priority Contact Methods)
   ========================================================== */

.contact-hub {
  padding: calc(var(--header-h) + 80px) 0 60px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.contact-hub__mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: 
    radial-gradient(ellipse 60% 50% at 30% 20%, rgba(124,92,255,0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 80%, rgba(34,211,238,0.12), transparent 60%);
  filter: blur(40px);
}

.contact-hub__head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.contact-hub__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.06);
  border: 1px solid rgba(124, 92, 255, 0.2);
  color: var(--accent-2);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

.contact-hub__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
  animation: pulseDot 2s ease-in-out infinite;
}

.contact-hub__title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #c8c8d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-hub__sub {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Grid */
.contact-hub__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

/* Card Base */
.hub-card {
  position: relative;
  background: linear-gradient(135deg, rgba(30,30,46,0.7), rgba(15,15,23,0.9));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 240px;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.hub-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-accent, #7C5CFF), transparent);
  opacity: 0.5;
}

.hub-card:hover {
  border-color: var(--card-accent, #7C5CFF);
  transform: translateY(-4px);
  box-shadow: 
    0 20px 40px -20px rgba(0,0,0,0.8),
    0 0 60px -20px var(--card-accent-glow, rgba(124,92,255,0.4));
}

/* Card Accents */
.hub-card--email { --card-accent: #7C5CFF; --card-accent-glow: rgba(124,92,255,0.5); }
.hub-card--phone { --card-accent: #22D3EE; --card-accent-glow: rgba(34,211,238,0.5); }
.hub-card--location { --card-accent: #FF9D5C; --card-accent-glow: rgba(255,157,92,0.5); }
.hub-card--social { --card-accent: #FF4D8D; --card-accent-glow: rgba(255,77,141,0.5); }

.hub-card__badge {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--card-accent);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  align-self: flex-start;
  position: relative;
  z-index: 2;
}

.hub-card__visual {
  flex: 1;
  display: grid;
  place-items: center;
  position: relative;
  min-height: 90px;
}

.hub-card__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 2;
}

.hub-card__label {
  font-size: 12px;
  color: var(--text-dim);
}

.hub-card__value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* Arrow indicator (only for email & phone) */
.hub-card__arrow {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: all 0.3s var(--ease-out);
  opacity: 0;
  transform: translateX(10px);
  z-index: 3;
}

.hub-card:hover .hub-card__arrow {
  opacity: 1;
  transform: translateX(0);
  background: var(--card-accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px -8px var(--card-accent);
}

.hub-card__arrow svg { width: 16px; height: 16px; }

/* ---------- Email Card Envelope ---------- */
.hub-card__envelope {
  width: 110px;
  height: 75px;
  transition: transform 0.4s var(--ease-out);
}

.hub-card:hover .hub-card__envelope {
  transform: translateY(-4px);
}

.hub-card__flap {
  transition: all 0.4s var(--ease-out);
  transform-origin: 50% 26px;
}

.hub-card:hover .hub-card__flap {
  transform: scaleY(-1);
  opacity: 0;
}

.hub-card__letter {
  transition: all 0.4s 0.1s var(--ease-out);
  transform-origin: bottom;
  transform: translateY(8px) scaleY(0.8);
}

.hub-card:hover .hub-card__letter {
  transform: translateY(-8px) scaleY(1);
}

/* ---------- Phone Card Pulse ---------- */
.hub-card--phone .hub-card__visual {
  position: relative;
}

.hub-card__phone-icon {
  width: 48px;
  height: 48px;
  color: var(--card-accent);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 15px var(--card-accent));
}

.hub-card__pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.5px solid var(--card-accent);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: pulseRing 3s ease-out infinite;
  pointer-events: none;
}

.hub-card__pulse-ring--2 { animation-delay: 1s; }
.hub-card__pulse-ring--3 { animation-delay: 2s; }

@keyframes pulseRing {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

/* ---------- Telegram Card ---------- */
.hub-card--telegram {
  --card-accent: #229ED9;
  --card-accent-glow: rgba(34, 158, 217, 0.5);
}

.hub-card__telegram-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(34, 158, 217, 0.3), transparent 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

.hub-card__telegram-icon {
  width: 48px;
  height: 48px;
  color: var(--card-accent);
  filter: drop-shadow(0 0 15px var(--card-accent));
  position: relative;
  z-index: 2;
  transition: transform 0.4s var(--ease-out);
}

.hub-card:hover .hub-card__telegram-icon {
  transform: translate(-5px, -8px) rotate(-10deg) scale(1.1);
}

/* ---------- Fixed Email Card Envelope ---------- */
.hub-card__envelope {
  width: 110px;
  height: 75px;
  overflow: visible;
}

.hub-card__letter {
  transition: transform 0.4s var(--ease-out);
  transform-origin: bottom center;
  transform: translateY(0) scaleY(0.9); /* Starts hidden behind the envelope front */
}

.hub-card:hover .hub-card__letter {
  transform: translateY(-15px) scaleY(1); /* Pops out when hovered */
}

.hub-card__flap {
  transition: all 0.4s var(--ease-out);
  transform-origin: 50% 25px; /* Rotates from the top crease */
}

.hub-card:hover .hub-card__flap {
  transform: scaleY(-1); /* Flap opens upward */
  opacity: 0.3;
}

/* ---------- Social Card ---------- */
.hub-card__socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.hub-card__social-link {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: all 0.3s var(--ease-out);
}

.hub-card__social-link svg { width: 20px; height: 20px; }

.hub-card__social-link:hover {
  background: var(--card-accent);
  color: #fff;
  border-color: transparent;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 20px -8px var(--card-accent);
}

/* ---------- Contact Form Section (Below Hub) ---------- */
.contact-form-section {
  padding: 60px 0 100px;
  position: relative;
}

.contact-form-section__head {
  text-align: center;
  margin-bottom: 48px;
}

.contact-form-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.06);
  border: 1px solid rgba(124, 92, 255, 0.2);
  color: var(--accent-2);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

.contact-form-section__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
  animation: pulseDot 2s ease-in-out infinite;
}

.contact-form-section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #c8c8d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .contact-hub {
    padding: calc(var(--header-h) + 50px) 0 40px;
  }
  
  .contact-hub__head {
    margin-bottom: 40px;
  }
  
  .contact-hub__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .hub-card {
    min-height: 200px;
    padding: 24px;
  }
  
  .contact-form-section {
    padding: 40px 0 80px;
  }
  
  .contact-form-section__head {
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .hub-card {
    min-height: 180px;
    padding: 20px;
  }
  
  .hub-card__envelope {
    width: 90px;
    height: 60px;
  }
  
  .hub-card__phone-icon {
    width: 40px;
    height: 40px;
  }
  
  .hub-card__social-link {
    width: 42px;
    height: 42px;
  }
}

/* ==========================================================
   21. 404 ERROR PAGE
   ========================================================== */

.page-404 {
  background: var(--bg);
}

.error-page {
  position: relative;
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 60px) 0 100px;
  overflow: hidden;
  isolation: isolate;
}

/* Background grid */
.error-page__grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at center, black 20%, transparent 70%);
}

/* Background mesh */
.error-page__mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 30% 30%, rgba(124,92,255,0.15), transparent 60%),
    radial-gradient(ellipse 40% 35% at 70% 70%, rgba(34,211,238,0.1), transparent 60%);
  filter: blur(50px);
}

.error-page__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* Glitchy 404 */
.error-code {
  position: relative;
  display: inline-block;
  font-family: var(--font-en);
  font-size: clamp(7rem, 20vw, 15rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  cursor: pointer;
  user-select: none;
  margin-bottom: 16px;
  perspective: 600px;
}

.error-code__layer {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.2s var(--ease);
}

.error-code__layer--red {
  color: #FF4D8D;
  transform: translate(3px, 3px);
  opacity: 0.7;
  mix-blend-mode: screen;
}

.error-code__layer--cyan {
  color: #22D3EE;
  transform: translate(-3px, -3px);
  opacity: 0.7;
  mix-blend-mode: screen;
}

.error-code__layer--main {
  position: relative;
  color: #fff;
  text-shadow: 0 0 40px rgba(124, 92, 255, 0.4);
}

/* Glitch animation (triggered via JS) */
.error-code.is-glitching .error-code__layer--red {
  animation: glitchRed 0.3s steps(2) 3;
}
.error-code.is-glitching .error-code__layer--cyan {
  animation: glitchCyan 0.3s steps(2) 3;
}
.error-code.is-glitching .error-code__layer--main {
  animation: glitchMain 0.3s steps(2) 3;
}

@keyframes glitchRed {
  0% { transform: translate(3px, 3px); }
  33% { transform: translate(-8px, 5px); }
  66% { transform: translate(6px, -4px); }
  100% { transform: translate(3px, 3px); }
}
@keyframes glitchCyan {
  0% { transform: translate(-3px, -3px); }
  33% { transform: translate(8px, -5px); }
  66% { transform: translate(-6px, 4px); }
  100% { transform: translate(-3px, -3px); }
}
@keyframes glitchMain {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 1px) skewX(-2deg); }
  50% { transform: translate(2px, -1px) skewX(2deg); }
  75% { transform: translate(-1px, 2px); }
}

/* Eyebrow */
.error-page__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.06);
  border: 1px solid rgba(124, 92, 255, 0.2);
  color: var(--accent-2);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.error-page__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
  animation: pulseDot 2s ease-in-out infinite;
}

/* Title */
.error-page__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 20ch;
}

/* Subtitle (dynamic) */
.error-page__sub {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 55ch;
  min-height: 3.8em;
  transition: opacity 0.3s var(--ease);
}

.error-page__sub.is-changing {
  opacity: 0;
  transform: translateY(10px);
}

/* Hint */
.error-page__hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(124, 92, 255, 0.3);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

.error-page__hint svg {
  width: 18px;
  height: 18px;
  color: var(--accent-2);
  flex-shrink: 0;
}

.error-page__hint strong {
  color: var(--accent-2);
  font-weight: 800;
}

/* Actions */
.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

/* Quick links */
.error-page__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 600px;
}

.error-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.3s var(--ease);
}

.error-link svg {
  width: 16px;
  height: 16px;
  color: var(--accent-2);
  transition: transform 0.3s var(--ease-out);
}

.error-link:hover {
  color: var(--text);
  border-color: rgba(124, 92, 255, 0.3);
  background: rgba(124, 92, 255, 0.05);
  transform: translateY(-2px);
}

.error-link:hover svg {
  transform: scale(1.15);
}

/* Responsive */
@media (max-width: 768px) {
  .error-page {
    padding: calc(var(--header-h) + 40px) 0 60px;
    min-height: auto;
  }

  .error-code {
    font-size: clamp(6rem, 28vw, 10rem);
  }

  .error-page__title {
    font-size: 1.6rem;
  }

  .error-page__sub {
    font-size: 14.5px;
    padding-inline: 8px;
  }

  .error-page__hint {
    font-size: 12px;
    padding: 8px 14px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .error-page__actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .error-page__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .error-page__links {
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
  }

  .error-link {
    font-size: 12.5px;
    padding: 8px 14px;
  }
}

/* ===== Sentence Form Extras (Step 3) ===== */
.sentence-form__textarea {
    width: 100%;
    margin-top: 12px;
    padding: 16px 18px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed rgba(124, 92, 255, 0.4);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    resize: vertical;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}

.sentence-form__textarea::placeholder {
    color: rgba(124, 92, 255, 0.5);
}

.sentence-form__textarea:focus {
    border-color: var(--accent-2);
    border-style: solid;
    background: rgba(34, 211, 238, 0.03);
}

.sentence-form__error {
    padding: 12px 16px;
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.4);
    color: #FF8F8F;
    border-radius: 10px;
    font-size: 13.5px;
    margin-top: 20px;
    text-align: center;
}
.sentence-form__error[hidden] { display: none; }