:root {
  --blue: #1357d6;
  --blue-dark: #0b2e63;
  --blue-soft: #eef4ff;
  --gold: #d4af37;
  --gold-dark: #8a6419;
  --green: #1b7a58;
  --ink: #172033;
  --muted: #616b7d;
  --line: #dce3ec;
  --bg: #faf8f2;
  --shadow: 0 18px 50px rgba(11, 46, 99, .08);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  background:
    radial-gradient(circle at 8% 16%, rgba(212, 175, 55, .08), transparent 23rem),
    linear-gradient(180deg, #fff 0, var(--bg) 44rem);
  color: #465063;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.brand-masthead {
  min-height: 104px;
  background:
    radial-gradient(circle at 50% -45%, rgba(212, 175, 55, .26), transparent 58%),
    linear-gradient(180deg, #fffdf8, #f8fbff);
  border-top: 4px solid var(--blue-dark);
  border-bottom: 1px solid #e3e8ef;
}

.brand-masthead::after {
  content: '';
  position: absolute;
  right: 50%;
  bottom: 0;
  width: 86px;
  height: 3px;
  transform: translateX(50%);
  background: var(--gold);
}

.brand-masthead::before {
  background-image:
    linear-gradient(rgba(11, 46, 99, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 46, 99, .035) 1px, transparent 1px);
  animation: none;
}

.topbar {
  height: 66px;
  justify-content: center;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(11, 46, 99, .1);
  box-shadow: 0 8px 28px rgba(11, 46, 99, .045);
}

.topbar nav {
  flex: 0 1 auto;
  gap: 18px;
}
.topbar nav a {
  position: relative;
  padding: 10px 7px;
  border-radius: 0;
  color: #374154;
  font-size: 13px;
}

.topbar nav a::after {
  content: '';
  position: absolute;
  right: 25%;
  left: 25%;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.topbar nav a:hover,
.topbar nav .active,
.topbar nav a.current {
  color: var(--blue-dark);
  background: transparent;
  box-shadow: none;
}

.topbar nav a:hover::after,
.topbar nav .active::after,
.topbar nav a.current::after { transform: scaleX(1); }
.topbar.scrolled { height: 60px; box-shadow: 0 10px 30px rgba(11, 46, 99, .08); }

.primary,
.ghost {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 10px;
}

.primary,
.header-actions .primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #0d3f9b);
  border: 1px solid transparent;
  box-shadow: inset 0 -2px 0 rgba(212, 175, 55, .75), 0 10px 24px rgba(19, 87, 214, .18);
}

.primary:hover { transform: translateY(-2px); }
.ghost { color: var(--blue-dark); background: #fff; border-color: #cfd8e5; }
.card { border-radius: 14px; border-color: rgba(11, 46, 99, .12); box-shadow: var(--shadow); }

.scroll-progress {
  background: linear-gradient(90deg, var(--gold), var(--blue));
  box-shadow: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(315px, .68fr) minmax(0, 1.55fr);
  grid-template-areas: "intro slider" "feed feed";
  gap: 20px;
  padding-top: 38px;
}

.hero::before {
  top: 72px;
  height: 570px;
  background-image:
    linear-gradient(rgba(19, 87, 214, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 87, 214, .035) 1px, transparent 1px);
  animation: none;
}

.hero-intro {
  grid-area: intro;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px 34px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(247, 250, 255, .96)),
    #fff;
  border-top: 4px solid var(--gold);
}

.hero-intro::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  left: -95px;
  bottom: -95px;
  border: 34px solid rgba(19, 87, 214, .045);
  border-radius: 50%;
  pointer-events: none;
}

.eyebrow {
  width: max-content;
  color: var(--gold-dark);
  border-color: rgba(138, 100, 25, .25);
  background: #fffaf0;
  font-weight: 700;
}

.eyebrow i { background: var(--gold); }
.hero h1 {
  margin: 22px 0 12px;
  color: var(--blue-dark);
  font-size: clamp(33px, 3.15vw, 48px);
  line-height: 1.43;
  letter-spacing: -.8px;
}

.hero-intro > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 2; }
.hero-points { display: grid; gap: 9px; margin: 23px 0; }
.hero-points span { color: #33405a; font-size: 13px; font-weight: 600; }
.hero-points span::before { content: '◆'; margin-left: 8px; color: var(--gold); font-size: 9px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 9px; }
.hero-buttons a { min-height: 44px; padding: 10px 16px; font-size: 12px; }
.hero-help { width: max-content; max-width: 100%; margin-top: 18px; color: var(--blue); font-size: 12px; font-weight: 700; }

.hero .network { grid-area: slider; }
.hero .network::after { display: none; animation: none; }
.hero .network.hero-slider-card { min-height: 520px; border-radius: 14px; box-shadow: 0 24px 60px rgba(4, 22, 56, .2); }
.hero-fallback { position: absolute; inset: 0; display: block; background-position: center; background-size: cover; color: #fff; }
.hero-fallback::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 15, 37, .12), rgba(3, 15, 37, .72) 64%, rgba(3, 15, 37, .96));
}

.hero-slide::after {
  background:
    linear-gradient(90deg, rgba(2, 13, 34, .06), rgba(2, 13, 34, .62) 58%, rgba(2, 13, 34, .97)),
    linear-gradient(0deg, rgba(2, 13, 34, .92), transparent 62%),
    radial-gradient(circle at 16% 12%, rgba(212, 175, 55, .2), transparent 40%);
}

.slide-copy > span,
.slide-badge {
  color: #fff8dc;
  border-color: rgba(212, 175, 55, .55);
  background: rgba(7, 28, 63, .68);
}

.slide-link { color: #f2d77e; }
.slide-progress { background: linear-gradient(90deg, #f0d470, var(--gold)); box-shadow: 0 0 12px rgba(212, 175, 55, .45); }
.slide-dots button.active { background: var(--gold); }
.slide-arrows button:hover,
.slide-arrows button:focus-visible { background: rgba(138, 100, 25, .92); }

.feed { grid-area: feed; overflow: hidden; }
.feed .card-head { height: 44px; }
.feed .live { color: var(--gold-dark) !important; animation: none; }
.feed ul { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 16px; }
.feed li { min-width: 0; padding: 13px 15px; border-bottom: 0; border-left: 1px solid #e8edf3; }
.feed li:last-child { border-left: 0; }
.feed i { color: var(--gold-dark); }
.feed b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.trust-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 20px;
  padding: 18px 24px;
  color: #fff;
  background: linear-gradient(110deg, var(--blue-dark), #103d7f);
  border-bottom: 3px solid var(--gold);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(11, 46, 99, .14);
}

.trust-ribbon div { padding: 0 20px; border-left: 1px solid rgba(255, 255, 255, .14); }
.trust-ribbon div:last-child { border-left: 0; }
.trust-ribbon b,
.trust-ribbon span { display: block; }
.trust-ribbon b { color: #f4d878; font-size: 17px; }
.trust-ribbon span { color: #d9e4f5; font-size: 11px; }

.ops { gap: 16px; margin-top: 24px; }
.ops .card { box-shadow: 0 12px 35px rgba(11, 46, 99, .055); }
.blocks div { animation: none; }
.pipeline i.done { color: var(--blue-dark); border-color: #a9bad1; background: #f5f8fc; }
.pipeline i.active { color: var(--gold-dark); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 55, .11); }

.pipeline { counter-reset: contract-step; gap: 8px; padding: 17px; }
.pipeline i {
  counter-increment: contract-step;
  min-height: 35px;
  display: flex;
  align-items: center;
  padding: 5px 45px 5px 12px;
  text-align: right;
  border-radius: 9px;
  transition: color .3s ease, border-color .3s ease, background .3s ease, transform .3s ease, box-shadow .3s ease;
  cursor: pointer;
}
.pipeline i::before {
  content: counter(contract-step);
  position: absolute;
  right: 10px;
  top: 50%;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  color: #728099;
  background: #f2f5f9;
  border: 1px solid #d5deea;
  border-radius: 50%;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}
.pipeline i.done::before { color: #fff; background: var(--blue-dark); border-color: var(--blue-dark); }
.pipeline i.active {
  transform: translateX(-4px);
  background: linear-gradient(90deg, #fffaf0, #fff);
  animation: pipelineActive 1.45s ease-in-out infinite;
}
.pipeline i.active::before { color: var(--blue-dark); background: var(--gold); border-color: #bc941e; }
@keyframes pipelineActive {
  0%, 100% { box-shadow: 0 0 0 3px rgba(212, 175, 55, .08); }
  50% { box-shadow: 0 0 0 7px rgba(212, 175, 55, .16); }
}

.mapviz {
  height: 258px;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 64% 43%, rgba(212, 175, 55, .19), transparent 18%),
    linear-gradient(135deg, #edf4ff, #fffdf7);
}
.mapviz::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 46, 99, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 46, 99, .025) 1px, transparent 1px);
  background-size: 24px 24px;
}
.world-map {
  position: absolute;
  z-index: 0;
  inset: 7% 2% auto;
  width: 96%;
  height: 86%;
  object-fit: contain;
  opacity: .2;
  filter: grayscale(1) sepia(.35) saturate(2.2) hue-rotate(178deg) contrast(1.15);
}
.mapviz svg { z-index: 1; }
.mapviz .map-routes path {
  fill: none;
  stroke: #4778c4;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-dasharray: 10 12;
  vector-effect: non-scaling-stroke;
  animation: mapRouteFlow 8s linear infinite;
}
.mapviz .map-routes path:nth-child(2n) { animation-delay: -2.5s; }
.mapviz .map-routes path:nth-child(3n) { animation-delay: -5s; }
.mapviz .map-hubs circle {
  fill: var(--blue);
  stroke: #fff;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 2px 5px rgba(19, 87, 214, .55));
  animation: mapHubPulse 2.8s ease-in-out infinite;
}
.mapviz .map-hubs .iran-point { fill: var(--gold); stroke: var(--blue-dark); stroke-width: 4; }
.mapviz .map-hubs circle:nth-child(2n) { animation-delay: -1.2s; }
.mapviz.is-paused .map-routes path,
.mapviz.is-paused .map-hubs circle { animation-play-state: paused; }
.mapviz .continent,
.mapviz .iran-hub {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  color: #34445f;
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(19, 87, 214, .14);
  border-radius: 7px;
  padding: 2px 6px;
  font-size: 8px;
  font-style: normal;
  line-height: 1.5;
  box-shadow: 0 3px 10px rgba(11, 46, 99, .06);
}

.mapstats .map-phrase {
  min-height: 46px;
  display: grid;
  place-items: center;
  color: var(--blue-dark);
  font-size: 14px;
  line-height: 1.6;
}
.mapviz .iran-hub { left: 65.3%; top: 42%; color: var(--blue-dark); border-color: var(--gold); font-weight: 900; }
.mapviz .c-na { left: 19%; top: 27%; }
.mapviz .c-sa { left: 31%; top: 69%; }
.mapviz .c-eu { left: 53%; top: 22%; }
.mapviz .c-af { left: 54.5%; top: 58%; }
.mapviz .c-as { left: 79%; top: 27%; }
.mapviz .c-oc { left: 86.5%; top: 69%; }
.mapviz .c-an { left: 57%; top: 90%; }

@keyframes mapRouteFlow { to { stroke-dashoffset: -220; } }
@keyframes mapHubPulse {
  0%, 100% { transform: scale(.82); opacity: .72; }
  50% { transform: scale(1.35); opacity: 1; }
}

.section { padding-top: 92px; padding-bottom: 92px; }
.section-title { margin-bottom: 38px; }
.section-title > span,
.label { color: var(--gold-dark); }
.section-title > span::before,
.label::before { content: ''; display: inline-block; width: 24px; height: 2px; margin-left: 8px; vertical-align: middle; background: var(--gold); }
.section-title h2,
.ai-grid h2 { color: var(--blue-dark); }

.stat-grid { gap: 15px; }
.stat-grid article { border-top: 3px solid rgba(212, 175, 55, .75); }
.stat-grid b { color: var(--blue-dark); }

.ai-section,
.timeline,
.news { border-block-color: rgba(11, 46, 99, .09); }
.ai-section {
  background: linear-gradient(120deg, #081e42, var(--blue-dark));
}
.ai-grid > div:first-child h2,
.ai-grid > div:first-child p,
.ai-grid > div:first-child li { color: #fff; }
.ai-grid > div:first-child p,
.ai-grid > div:first-child li { color: #d9e5f6; }
.ai-grid li::before { color: var(--gold); }
.chat { box-shadow: 0 24px 70px rgba(0, 0, 0, .18); }
.chat:hover { transform: translateY(-2px); }
.avatar { background: linear-gradient(135deg, var(--blue), var(--gold-dark)); }
.chat-head small { color: var(--green); }
.chat-head { align-items: center; padding-bottom: 14px; border-bottom: 1px solid #edf1f6; }
.chat-head > div { flex: 1; }
.chat-head > a { color: var(--blue-dark); font-size: 11px; border-bottom: 1px solid rgba(212, 175, 55, .8); }
.messages {
  height: 250px;
  margin: 14px -4px 0;
  padding: 4px 4px 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b9c8dc transparent;
}
.messages .chat-message {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 12px;
  color: inherit;
  background: transparent;
}
.messages .chat-message > span { margin: 0 9px 3px; color: #7a879a; font-size: 9px; }
.messages .chat-message p {
  width: fit-content;
  max-width: 86%;
  margin: 0;
  padding: 11px 14px;
  color: #26364d;
  background: #f0f4fa;
  border: 1px solid #e8edf4;
  border-radius: 15px 15px 4px 15px;
  font-size: 12px;
  line-height: 1.9;
  text-align: right;
  overflow-wrap: anywhere;
}
.messages .chat-message small { margin: 4px 9px 0; color: #738198; font-size: 9px; }
.messages .chat-message.user-message {
  align-items: flex-end;
  margin: 0 0 12px;
  color: inherit;
  background: transparent;
}
.messages .user-message > span { color: #5071a2; }
.messages .user-message p {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border-color: transparent;
  border-radius: 15px 15px 15px 4px;
}
.messages .typing-message p { color: #718096; animation: assistantThinking 1.2s ease-in-out infinite; }
.assistant-handoff {
  display: inline-flex;
  margin: -2px 8px 12px;
  padding: 7px 12px;
  color: var(--blue-dark);
  background: #fffaf0;
  border: 1px solid rgba(212, 175, 55, .55);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 750;
}
.quick { min-height: 34px; flex-wrap: wrap; }
.quick button { color: var(--blue-dark); cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.quick button:hover,
.quick button:focus-visible { border-color: var(--gold); background: #fffaf0; }
.assistant-form { align-items: stretch; }
.assistant-form input:focus { outline: 2px solid rgba(20, 98, 255, .18); border-color: var(--blue); }
.assistant-form button {
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-bottom: 3px solid var(--gold);
  cursor: pointer;
}
.assistant-form button b { font-size: 16px; }
.assistant-form button:disabled { opacity: .55; cursor: wait; }
.assistant-note { display: block; margin-top: 9px; color: #7d8999; font-size: 9px; }

@keyframes assistantThinking { 50% { opacity: .48; } }

.service-personas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: -8px 0 58px;
}

.service-personas button {
  min-height: 116px;
  padding: 20px;
  text-align: right;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid #d6deea;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.service-personas button::before { content: '◆'; display: block; margin-bottom: 10px; color: var(--gold); font-size: 10px; }
.service-personas button b,
.service-personas button span { display: block; }
.service-personas button b { font-size: 14px; }
.service-personas button span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.service-personas button:hover,
.service-personas button.is-active { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 14px 32px rgba(11, 46, 99, .1); }
.service-title { margin-bottom: 26px; }
.service-grid { gap: 16px; }
.service-grid article { min-height: 185px; border-top: 3px solid transparent; border-radius: 12px; }
.service-grid article:hover,
.service-grid article.is-selected { transform: translateY(-3px); border-color: rgba(19, 87, 214, .28); border-top-color: var(--gold); background: linear-gradient(160deg, #fff, #f6f9ff); }
.service-grid i { color: var(--gold-dark); font-size: 12px; letter-spacing: 1px; }
.service-grid .service-category{display:block;margin-top:-18px;margin-right:36px;color:var(--blue);font-size:11px;font-weight:800}.service-grid .service-load-error{grid-column:1/-1;text-align:center;color:var(--muted)}
.service-grid article::after { content: 'مشاهده جزئیات ←'; color: var(--blue-dark); }
.service-detail { border-color: rgba(212, 175, 55, .58); background: linear-gradient(135deg, #fffdf8, #f3f7ff); }
.service-detail li::marker { color: var(--gold-dark); }
.service-detail-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.service-detail-actions .ghost,
.service-detail-actions .primary { padding: 9px 14px; font-size: 11px; }

.timeline { background: linear-gradient(180deg, #f4f7fc, #eef3fb); }
.time-track::before { background: #cbd6e7; }
.time-track::after { background: linear-gradient(90deg, var(--gold), var(--blue)); }
.time-track b { color: var(--blue-dark); border-color: var(--gold); }
.time-track article.is-active b { background: var(--blue-dark); box-shadow: 0 0 0 8px rgba(212, 175, 55, .13); }

.eco { border-top: 3px solid var(--gold); }
.eco-rings .r1,
.eco-rings .r2,
.eco-rings > b,
.eco-rings i { animation: none; }
.eco-rings > b { background: var(--blue-dark); box-shadow: 0 0 0 12px rgba(212, 175, 55, .1); }
.eco-rings .ring { border-color: rgba(19, 87, 214, .28); }
.eco-copy article { border-right-color: var(--gold); }
.eco-copy span { color: var(--gold-dark); }

/* Dynamic ecosystem map */
.eco-rings{isolation:isolate;min-height:470px;overflow:hidden;border-radius:24px;background:radial-gradient(circle at 50% 50%,rgba(212,175,55,.11) 0 14%,rgba(19,87,214,.055) 14.5% 31%,transparent 31.5%),linear-gradient(145deg,#fbfdff,#fffdf8)}
.eco-rings::before{content:'';position:absolute;inset:8%;z-index:-2;border-radius:50%;background:radial-gradient(circle,rgba(19,87,214,.12),transparent 67%);filter:blur(20px);animation:ecoGlow 6s ease-in-out infinite}
.eco-rings .ring{aspect-ratio:1;height:auto;border-radius:50%;background:transparent;box-shadow:inset 0 0 0 1px rgba(19,87,214,.08);transform-origin:center;will-change:transform}
.eco-rings .r1{width:252px;border:1px solid rgba(19,87,214,.34);animation:ecoOrbit 17s linear infinite}
.eco-rings .r2{width:376px;border:1px dashed rgba(19,87,214,.38);animation:ecoOrbit 29s linear infinite reverse}
.eco-rings .r3{width:466px;border:1px solid rgba(212,175,55,.32);animation:ecoOrbit 38s linear infinite}
.eco-rings .ring::before,.eco-rings .ring::after{content:'';position:absolute;border-radius:50%;top:50%;left:-5px;transform:translateY(-50%);box-shadow:0 0 0 6px rgba(212,175,55,.12),0 0 18px rgba(212,175,55,.55)}
.eco-rings .ring::before{width:10px;height:10px;background:var(--gold)}
.eco-rings .ring::after{width:6px;height:6px;left:auto;right:-3px;background:var(--blue);box-shadow:0 0 0 5px rgba(19,87,214,.1),0 0 16px rgba(19,87,214,.45)}
.eco-rings>b{position:relative;width:124px;height:124px;display:flex;flex-direction:column;justify-content:center;gap:2px;background:linear-gradient(145deg,#0a3473,#1357a8);border:1px solid rgba(255,255,255,.4);box-shadow:0 0 0 12px rgba(212,175,55,.1),0 18px 46px rgba(8,48,105,.25);animation:ecoCore 3.6s ease-in-out infinite}
.eco-rings>b::before{content:'';position:absolute;width:150px;height:150px;top:50%;left:50%;margin:-75px 0 0 -75px;border:1px solid rgba(212,175,55,.24);border-radius:50%;animation:ecoSignal 2.8s ease-out infinite}
.eco-rings>b small{display:block;color:#efd77f;font-size:9px;font-weight:600;letter-spacing:0}
.eco-rings i{min-width:82px;padding:9px 16px;text-align:center;border:1px solid rgba(19,87,214,.17);border-radius:999px;background:rgba(255,255,255,.9);color:#233f68;font-size:12px;font-weight:700;box-shadow:0 9px 24px rgba(14,52,101,.09);backdrop-filter:blur(8px);animation:ecoNodeFloat 4.4s ease-in-out infinite}
.eco-rings i::before{content:'';display:inline-block;width:6px;height:6px;margin-left:7px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 4px rgba(212,175,55,.11)}
.eco-rings .e1{top:4%;left:calc(50% - 42px);animation-delay:-.4s}.eco-rings .e2{bottom:4%;left:calc(50% - 42px);animation-delay:-2.4s}.eco-rings .e3{right:4%;top:27%;animation-delay:-1.2s}.eco-rings .e4{left:4%;top:27%;animation-delay:-3.2s}.eco-rings .e5{right:9%;bottom:23%;animation-delay:-2s}.eco-rings .e6{left:9%;bottom:23%;animation-delay:-4s}
.eco-rings:hover .ring{animation-play-state:paused}.eco-rings i:hover{border-color:var(--gold);color:var(--blue-dark);transform:translateY(-4px) scale(1.04);box-shadow:0 14px 30px rgba(14,52,101,.15)}
@keyframes ecoOrbit{to{transform:rotate(360deg)}}@keyframes ecoNodeFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}@keyframes ecoCore{0%,100%{transform:scale(1);box-shadow:0 0 0 12px rgba(212,175,55,.1),0 18px 46px rgba(8,48,105,.25)}50%{transform:scale(1.035);box-shadow:0 0 0 17px rgba(212,175,55,.055),0 22px 54px rgba(8,48,105,.3)}}@keyframes ecoSignal{0%{transform:scale(.78);opacity:.8}100%{transform:scale(1.28);opacity:0}}@keyframes ecoGlow{50%{transform:scale(1.09);opacity:.65}}
@media(max-width:700px){.eco-rings{min-height:390px;transform:none}.eco-rings .r1{width:190px}.eco-rings .r2{width:280px}.eco-rings .r3{width:350px}.eco-rings>b{width:98px;height:98px;font-size:13px}.eco-rings>b::before{width:118px;height:118px;margin:-59px 0 0 -59px}.eco-rings i{min-width:68px;padding:7px 10px;font-size:10px}.eco-rings .e3{right:1%}.eco-rings .e4{left:1%}.eco-rings .e5{right:5%}.eco-rings .e6{left:5%}}
@media(prefers-reduced-motion:reduce){.eco-rings .ring,.eco-rings>b,.eco-rings>b::before,.eco-rings i,.eco-rings::before{animation:none!important}}

.stories-section { background: linear-gradient(180deg, #fffdf9, #f4f7fc); }
.story-heading > span,
.story-meta span { color: var(--gold-dark); }
.story-card { border-radius: 14px; }
.story-card.is-active {
  border-color: rgba(212, 175, 55, .86);
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(11, 46, 99, .16), 0 0 0 1px rgba(212, 175, 55, .13);
}
.story-visual {
  background:
    radial-gradient(circle at 78% 22%, rgba(212, 175, 55, .17), transparent 28%),
    radial-gradient(circle at 20% 82%, rgba(19, 87, 214, .13), transparent 34%),
    linear-gradient(145deg, #eef4ff, #fbf6e8) !important;
}
.story-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 46, 99, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 46, 99, .035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
.story-visual::after {
  background: radial-gradient(circle, rgba(212, 175, 55, .2), rgba(19, 87, 214, .06) 45%, transparent 72%);
  filter: blur(24px);
  animation: storyGlowBrand 6s ease-in-out infinite !important;
}
.story-visual .draw {
  stroke: var(--blue);
  filter: drop-shadow(0 4px 7px rgba(19, 87, 214, .18));
  animation: storyDrawBrand 4.8s cubic-bezier(.45, 0, .2, 1) infinite !important;
}
.story-visual .dash {
  stroke: var(--blue);
  filter: drop-shadow(0 2px 3px rgba(19, 87, 214, .12));
  animation: storyDashBrand 8s linear infinite !important;
}
.story-visual .pulse {
  fill: var(--blue);
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 6px rgba(19, 87, 214, .42));
  animation: storyPulseBrand 2.6s ease-in-out infinite !important;
}
.story-visual .gold {
  fill: var(--gold);
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 6px 8px rgba(138, 100, 25, .24));
  animation: storyGoldBrand 3.8s ease-in-out infinite !important;
}
.story-card:nth-child(2) .story-visual .draw,
.story-card:nth-child(2) .story-visual .dash,
.story-card:nth-child(2) .story-visual .pulse { animation-delay: -.9s !important; }
.story-card:nth-child(2) .story-visual .gold { animation-delay: -1.4s !important; }
.story-card:nth-child(3) .story-visual .draw,
.story-card:nth-child(3) .story-visual .dash,
.story-card:nth-child(3) .story-visual .pulse { animation-delay: -1.8s !important; }
.story-card:nth-child(3) .story-visual .gold { animation-delay: -2.2s !important; }
.story-path span.active { color: var(--gold-dark); border-color: var(--gold); background: #fffaf0; box-shadow: none; }
.story-controls { align-items: center; }
.story-controls .story-dot.active { background: var(--gold-dark); }

@keyframes storyDrawBrand {
  0%, 10% { stroke-dashoffset: 500; opacity: .28; }
  50%, 78% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -35; opacity: .45; }
}
@keyframes storyDashBrand { to { stroke-dashoffset: -200; } }
@keyframes storyPulseBrand {
  0%, 100% { transform: scale(.88); opacity: .7; }
  50% { transform: scale(1.42); opacity: 1; }
}
@keyframes storyGoldBrand {
  0%, 100% { transform: translateY(0) scale(.92); }
  50% { transform: translateY(-12px) scale(1.08); }
}
@keyframes storyGlowBrand {
  0%, 100% { transform: translate(-3%, 8%) scale(.88); opacity: .45; }
  50% { transform: translate(6%, -18%) scale(1.08); opacity: .9; }
}

.news { background: linear-gradient(180deg, #f1f5fb, #eaf0f8); }
.featured,
.news-list article { border-radius: 12px; }
.featured > span,
.news-list span { color: var(--gold-dark); font-weight: 700; }
.news-art::after { display: none; animation: none; }
.news-more { margin-top: -65px; }

.final-cta {
  padding: 78px 0;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 14% 20%, rgba(212, 175, 55, .18), transparent 18rem),
    linear-gradient(120deg, #071a39, var(--blue-dark));
  border-top: 4px solid var(--gold);
}
.final-cta span { color: #f1d579; font-size: 13px; font-weight: 800; }
.final-cta h2 { max-width: 760px; margin: 9px auto; color: #fff; font-size: 31px; }
.final-cta p { margin: 0 auto 24px; color: #d7e3f4; }
.final-cta > div > div { display: flex; justify-content: center; gap: 10px; }
.final-cta .primary { color: var(--blue-dark); background: var(--gold); box-shadow: none; }
.final-cta .ghost { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .35); }

footer { background: #071a39; border-top: 1px solid rgba(212, 175, 55, .35); }
footer .copy { border-top-color: rgba(255, 255, 255, .12); }
footer form button { color: var(--blue-dark); background: var(--gold); font-weight: 800; }
.floating { background: var(--blue-dark); border: 2px solid var(--gold); box-shadow: 0 12px 28px rgba(7, 26, 57, .28); animation: none; }
.mobile-apply { display: none; }

.inner-nav,
.news-nav { background: rgba(255, 255, 255, .96); border-bottom: 1px solid rgba(11, 46, 99, .1); }
.inner-nav nav a:hover,
.news-nav nav a:hover,
.news-nav nav a.current { color: var(--blue-dark); background: var(--blue-soft); }
.inner-hero,
.news-hero { background: linear-gradient(120deg, #f8f2df, #edf4ff); border-bottom: 1px solid rgba(11, 46, 99, .08); }
.inner-hero span,
.news-hero span { color: var(--gold-dark); }
.inner-hero h1,
.news-hero h1 { color: var(--blue-dark); }
.faq-layout aside button.active { color: var(--blue-dark); border-color: var(--gold); background: #fffaf0; }
.contact-info article,
.contact-form,
.faq-list details,
.side-card,
.archive-card { border-radius: 12px; }
.contact-form button,
.news-tools button,
.side-card form button { background: var(--blue-dark); }

@media (max-width: 1050px) {
  .topbar { justify-content: flex-start; }
  .topbar .menu {
    width: 42px;
    height: 42px;
    margin-right: auto;
    margin-left: 0;
    color: var(--blue-dark);
    background: #f5f8fc;
    border: 1px solid #d9e1ec;
    border-radius: 10px;
  }
  .topbar nav.open { top: calc(100% - 1px); border-radius: 12px; }
  .hero { grid-template-columns: minmax(290px, .75fr) minmax(0, 1.35fr); }
  .hero-intro { padding: 30px 26px; }
  .feed ul { grid-template-columns: 1fr 1fr; }
  .feed li:nth-child(2) { border-left: 0; }
  .feed li:nth-child(-n+2) { border-bottom: 1px solid #e8edf3; }
  .service-personas { grid-template-columns: 1fr 1fr; }
  .trust-ribbon { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .trust-ribbon div:nth-child(2) { border-left: 0; }
}

@media (max-width: 700px) {
  .ai-grid > * { min-width: 0; }
  .chat { width: 100%; min-width: 0; }
  .assistant-form input,
  footer form input { min-width: 0; }
  body { padding-bottom: 66px; }
  .brand-masthead { min-height: 82px; }
  .brand-masthead a { height: 76px; }
  .brand-masthead img { width: 160px; }
  .topbar { height: 64px; }
  .topbar.scrolled { height: 60px; }
  .topbar nav.open { top: 58px; }
  .menu { color: var(--blue-dark); }
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "intro" "slider" "feed";
    padding-top: 18px;
  }
  .hero-intro { min-height: auto; padding: 28px 23px; }
  .hero h1 { font-size: 32px; }
  .hero .network { order: 0; }
  .hero .network.hero-slider-card { min-height: 410px; }
  .slide-copy { right: 22px; left: 22px; bottom: 76px; }
  .slide-copy h2 { font-size: 23px; }
  .feed ul { grid-template-columns: 1fr; }
  .feed li { border-left: 0; border-bottom: 1px solid #e8edf3 !important; }
  .feed li:last-child { border-bottom: 0 !important; }
  .trust-ribbon { grid-template-columns: 1fr 1fr; padding: 18px 10px; }
  .trust-ribbon div { padding: 0 12px; }
  .trust-ribbon b { font-size: 14px; }
  .mapviz { height: 235px; }
  .mapviz .continent,
  .mapviz .iran-hub { padding: 1px 4px; font-size: 7px; }
  .service-personas { grid-template-columns: 1fr; gap: 9px; margin-bottom: 42px; }
  .service-personas button { min-height: 94px; padding: 16px; }
  .service-grid article { min-height: auto; }
  .section { padding-block: 72px; }
  .final-cta { padding: 58px 0; }
  .final-cta h2 { font-size: 25px; }
  .final-cta > div > div { flex-direction: column; }
  .final-cta a { width: 100%; }
  .mobile-apply {
    display: grid;
    place-items: center;
    position: fixed;
    z-index: 35;
    right: 14px;
    left: 82px;
    bottom: 12px;
    height: 48px;
    color: var(--blue-dark);
    background: var(--gold);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(7, 26, 57, .28);
    font-weight: 800;
  }
  .floating { left: 16px; bottom: 11px; width: 50px; height: 50px; }
  footer { padding-bottom: 16px; }
}

@media (max-width: 430px) {
  .hero-buttons { grid-template-columns: 1fr; }
  .hero-buttons a { width: 100%; min-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .story-visual *,
  .story-visual::after,
  .pipeline i.active,
  .mapviz .map-routes path,
  .mapviz .map-hubs circle { animation: none !important; }
  .primary:hover,
  .service-personas button:hover,
  .service-grid article:hover { transform: none; }
}
