:root{
  --premium-navy:#082b5c;
  --premium-blue:#0e55c7;
  --premium-gold:#d9ad2b;
  --premium-cream:#fbf8f0;
  --premium-line:#dce5f2;
}

body{background:linear-gradient(180deg,#fff 0,#f8f5ed 38%,#f5f8fc 100%)}
.brand-masthead{display:none!important}
.topbar{height:76px;padding:0 max(24px,calc((100% - 1280px)/2));gap:34px;background:rgba(255,255,255,.94);border-top:0;border-bottom:1px solid rgba(8,43,92,.1);box-shadow:0 10px 30px rgba(8,43,92,.05)}
.topbar.scrolled{height:68px}
.header-brand{display:flex;align-items:center;gap:12px;min-width:300px;color:var(--premium-navy)}
.header-brand img{width:104px;height:52px;object-fit:contain;object-position:center}
.header-brand span{display:grid;line-height:1.35}
.header-brand b{font-size:18px}
.header-brand small{font-size:10px;color:#718096}
.topbar nav{justify-content:flex-start;gap:2px}
.topbar nav a{font-size:13px;padding:10px 13px;border-radius:9px;color:#354257}
.topbar nav a:hover,.topbar nav a.active,.topbar nav a.current{background:transparent;color:var(--premium-blue);box-shadow:none}
.topbar nav a.active::after,.topbar nav a.current::after{content:'';display:block;width:20px;height:2px;margin:5px auto -7px;background:var(--premium-gold);border-radius:4px}

.hero{display:grid;grid-template-columns:1fr;grid-template-areas:"intro" "slider" "feed";gap:18px;padding-top:24px;position:relative}
.hero::before{display:none}
.hero-intro{grid-area:intro;min-height:var(--hero-height,560px);padding:clamp(32px,6vw,84px);display:flex;align-items:center;isolation:isolate;overflow:hidden;border:0;border-radius:var(--hero-radius,28px);background-color:#071e40;background-image:var(--hero-image);background-position:var(--hero-position,center);background-size:cover;background-repeat:no-repeat;box-shadow:0 28px 80px rgba(4,24,58,.22);font-family:var(--hero-font,Vazirmatn,Tahoma,sans-serif)}
.hero-intro::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgb(3 21 47 / var(--hero-overlay-soft,.16)) 0%,rgb(3 21 47 / var(--hero-overlay-mid,.42)) 45%,rgb(3 21 47 / var(--hero-overlay,.94)) 100%)}
.hero-copy{width:min(610px,100%);align-self:flex-start;color:#fff}
.hero .eyebrow{display:inline-flex;align-items:center;border-color:rgba(255,255,255,.25);background:rgba(255,255,255,.1);backdrop-filter:blur(10px);color:#fff;font-size:12px}
.hero .eyebrow i{background:var(--premium-gold)}
.hero h1{max-width:570px;margin:24px 0 15px;color:var(--hero-title-color,#fff);font-size:clamp(34px,4.2vw,var(--hero-title-size,64px));line-height:1.28;letter-spacing:-1px}
.hero-intro>p,.hero-copy>p{max-width:550px;color:var(--hero-body-color,#dce7f7);font-size:var(--hero-body-size,17px);line-height:2}
.hero-intro[data-text-align="center"] .hero-copy{margin-inline:auto;text-align:center}.hero-intro[data-text-align="center"] .hero-points,.hero-intro[data-text-align="center"] .hero-buttons{justify-content:center}
.hero-intro[data-text-align="left"] .hero-copy{margin-right:auto;text-align:left}.hero-intro[data-text-align="left"] .hero-points,.hero-intro[data-text-align="left"] .hero-buttons{justify-content:flex-end}
.hero-points{display:flex;flex-wrap:wrap;gap:8px;margin:25px 0}
.hero-points span{padding:7px 12px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(4,26,58,.42);color:#eef5ff;font-size:12px}
.hero-buttons{gap:11px}
.hero-buttons a{min-height:48px;padding:10px 22px;border-radius:12px;font-size:14px}
.hero-buttons .primary{background:linear-gradient(135deg,#1763d6,#0b4cb0);box-shadow:0 10px 25px rgba(2,13,34,.3),inset 0 -2px 0 var(--premium-gold)}
.hero-buttons .ghost{background:rgba(255,255,255,.11);border-color:rgba(255,255,255,.3);color:#fff;backdrop-filter:blur(12px)}
.hero-help{display:inline-block;margin-top:19px;color:#f1ce68;font-size:13px}

.section{padding-top:88px;padding-bottom:88px}
.section-title{margin-bottom:34px}
.section-title>span,.label{color:#9b7412}
.section-title h2,.ai-grid h2{color:var(--premium-navy);font-size:clamp(28px,3vw,42px)}
.service-grid{gap:18px}
.service-grid article{min-height:230px;padding:27px;border-radius:18px;border-top:0;background:linear-gradient(160deg,#fff,#f7f9fc);box-shadow:0 16px 38px rgba(8,43,92,.06)}
.service-grid article:hover,.service-grid article.is-selected{transform:translateY(-5px);border-color:rgba(14,85,199,.28);background:#fff;box-shadow:0 24px 55px rgba(8,43,92,.13)}
.service-symbol{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:linear-gradient(145deg,#eaf2ff,#fff);border:1px solid #cbdcf7;color:var(--premium-blue);font-size:20px;font-weight:900;box-shadow:inset 0 -3px 0 rgba(217,173,43,.35)}
.service-grid .service-category{margin:-35px 62px 0 0;min-height:35px;color:#8a6915;font-size:11px}
.service-grid h3{margin-top:30px;color:var(--premium-navy);font-size:19px}
.service-grid p{line-height:2}

.funding-calls{padding-top:25px}
.funding-call-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.funding-call-card{display:flex;min-height:270px;flex-direction:column;padding:25px;border:1px solid var(--premium-line);border-top:3px solid var(--premium-gold);border-radius:18px;background:#fff;box-shadow:0 16px 38px rgba(8,43,92,.07)}
.funding-call-meta{display:flex;justify-content:space-between;gap:10px;color:#6d7890;font-size:12px}
.funding-call-meta span:first-child{color:var(--premium-blue);font-weight:800}
.funding-call-card h3{margin:22px 0 8px;color:var(--premium-navy);font-size:19px}
.funding-call-card p{margin:0 0 18px;color:#667085;font-size:13px;line-height:2}
.funding-call-card small{display:block;margin-top:auto;color:#715919}
.funding-call-card a{align-self:flex-start;margin-top:17px;padding:9px 16px;border-radius:10px;background:var(--premium-blue);color:#fff;font-size:12px;font-weight:800;box-shadow:inset 0 -2px 0 var(--premium-gold)}
.dashboard.section{padding-top:74px}
.ai-section{background:linear-gradient(120deg,#061f46,#0d3b75);border:0;color:#dbe8fb}
.ai-section .label{color:#f1c74f}
.ai-section .ai-grid h2{color:#fff}
.ai-section .ai-grid>div>p,.ai-section .ai-grid li{color:#dbe8fb}
.chat{box-shadow:0 25px 70px rgba(0,0,0,.2)}
.floating{width:116px;height:62px;padding:8px 11px;border-radius:18px;background:#fff;border:2px solid var(--premium-gold);box-shadow:0 14px 34px rgba(8,43,92,.24);overflow:hidden}
.floating img{display:block;width:100%;height:100%;object-fit:contain}
.floating:hover,.floating:focus-visible{background:#f8fbff;transform:translateY(-3px);box-shadow:0 18px 42px rgba(8,43,92,.3)}

@media(max-width:900px){
  .topbar{height:70px;padding:0 18px;justify-content:space-between}
  .header-brand{min-width:0}
  .header-brand img{width:90px;height:45px}
  .header-brand small{display:none}
  .hero-intro{min-height:530px;background-position:42% center;padding:34px}
  .funding-call-grid{grid-template-columns:1fr 1fr}
}

@media(max-width:700px){
  .topbar{height:66px}
  .header-brand{gap:8px}
  .header-brand img{width:80px;height:40px}
  .header-brand b{font-size:15px}
  .floating{left:14px;bottom:10px;width:76px;height:54px;padding:7px 8px;border-radius:15px}
  .mobile-apply{left:100px}
  .hero{padding-top:12px;gap:12px}
  .hero-intro{min-height:600px;padding:28px 22px;align-items:flex-end;border-radius:20px;background-position:38% center}
  .hero-intro::before{background:linear-gradient(0deg,rgba(3,18,42,.98) 0%,rgba(3,18,42,.78) 48%,rgba(3,18,42,.12) 100%)}
  .hero h1{font-size:35px}
  .hero-copy>p{font-size:14px}
  .hero-points{display:none}
  .hero-buttons{display:grid;grid-template-columns:1fr 1fr}
  .hero-buttons a{padding-inline:10px}
  .section{padding-block:66px}
  .funding-call-grid{grid-template-columns:1fr}
  .service-grid article{min-height:auto}
}

@media(prefers-reduced-motion:reduce){
  .service-grid article,.funding-call-card{transition:none!important}
}

/* Animated service illustrations */
#services .service-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
#services .service-grid article{min-height:0;padding:0;overflow:hidden;border:1px solid #dce5f1;border-radius:20px;background:#fff;box-shadow:0 15px 38px rgba(8,43,92,.065)}
#services .service-grid article::after{display:none}
#services .service-grid article:last-child:nth-child(3n + 1){grid-column:2}
#services .service-grid article:hover,#services .service-grid article.is-selected{transform:translateY(-6px);border-color:rgba(14,85,199,.32);background:#fff;box-shadow:0 24px 52px rgba(8,43,92,.13)}
.service-art{height:158px;margin:0;display:grid;place-items:center;overflow:hidden;position:relative;background:radial-gradient(circle at 72% 22%,rgba(227,185,45,.13),transparent 25%),linear-gradient(145deg,#f4f7fc,#eef3fa)}
.service-art::before{content:'';position:absolute;inset:0;background-image:linear-gradient(rgba(26,94,190,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(26,94,190,.045) 1px,transparent 1px);background-size:28px 28px;mask-image:linear-gradient(to bottom,#000,transparent 90%)}
.service-art svg{width:86%;height:92%;position:relative;z-index:1;overflow:visible}
.service-art .svc-draw,.service-art .svc-shield{fill:none;stroke:#1462e6;stroke-width:3.8;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:520;stroke-dashoffset:520;animation:svcDraw 4.8s ease-in-out infinite alternate}
.service-art .svc-faint{fill:none;stroke:#9cb8e8;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.service-art .svc-dash{fill:none;stroke:#1462e6;stroke-width:3;stroke-linecap:round;stroke-dasharray:9 12;animation:svcDash 8s linear infinite}
.service-art .svc-dash.reverse{animation-direction:reverse}
.service-art .svc-dot,.service-art .svc-node{fill:#1462e6;filter:drop-shadow(0 4px 8px rgba(20,98,230,.3));animation:svcPulse 2.5s ease-in-out infinite}
.service-art .svc-gold{fill:#d9b544;filter:drop-shadow(0 5px 9px rgba(217,181,68,.3));animation:svcFloat 3.2s ease-in-out infinite}
.service-art .svc-scan{fill:none;stroke:#d9b544;stroke-width:2.5;stroke-linecap:round;animation:svcScan 3.6s ease-in-out infinite}
.service-art .svc-ticks{fill:none;stroke:#8aa9dc;stroke-width:3;stroke-linecap:round}
.service-art .svc-needle{fill:none;stroke:#1462e6;stroke-width:5;stroke-linecap:round;transform-origin:160px 111px;animation:svcNeedle 3.8s ease-in-out infinite}
.service-art .svc-arrow,.service-art .svc-check,.service-art .svc-flow{fill:none;stroke:#d9b544;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:180;stroke-dashoffset:180;animation:svcDraw 3.4s ease-in-out infinite alternate}
.service-art .svc-bar{fill:#dce8fa;stroke:#1462e6;stroke-width:2;transform-box:fill-box;transform-origin:center bottom;animation:svcBar 3.8s ease-in-out infinite}
.service-art .b2{animation-delay:-.6s}.service-art .b3{animation-delay:-1.2s}
.service-copy{display:flex;min-height:225px;flex-direction:column;align-items:flex-start;padding:22px 25px 25px}
#services .service-grid .service-category{min-height:0;margin:0 0 5px;padding:4px 10px;border-radius:999px;background:#fff8e6;color:#8a6915;font-size:10px}
#services .service-grid h3{margin:8px 0 7px;color:var(--premium-navy);font-size:19px}
#services .service-grid p{margin:0 0 16px;color:#69768c;font-size:12px;line-height:2}
.service-link{display:flex;align-items:center;gap:7px;margin-top:auto;color:var(--premium-blue);font-size:11px}
.service-link b{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#edf4ff;transition:transform .25s ease}
#services .service-grid article:hover .service-link b{transform:translateX(-4px)}
@keyframes svcDraw{55%,100%{stroke-dashoffset:0}}
@keyframes svcDash{to{stroke-dashoffset:-210}}
@keyframes svcPulse{50%{transform:scale(1.28);opacity:.62}}
@keyframes svcFloat{50%{transform:translateY(-9px)}}
@keyframes svcScan{0%,100%{transform:translateX(-46px);opacity:.25}50%{transform:translateX(46px);opacity:1}}
@keyframes svcNeedle{0%,100%{transform:rotate(-35deg)}50%{transform:rotate(23deg)}}
@keyframes svcBar{0%,100%{transform:scaleY(.72)}50%{transform:scaleY(1)}}

@media(min-width:921px){
  #services{width:min(1160px,calc(100% - 48px))}
  #services .service-grid{gap:16px}
  #services .service-grid article:last-child:nth-child(3n + 1){grid-column:1/-1;width:calc((200% - 16px)/3);justify-self:center;display:grid;grid-template-columns:1fr 1fr}
  #services .service-grid article:last-child:nth-child(3n + 1) .service-art{height:100%;min-height:220px;border-left:1px solid #e2e9f3}
  #services .service-grid article:last-child:nth-child(3n + 1) .service-copy{min-height:220px;justify-content:center;padding:28px}
  .service-art{height:120px}
  .service-art svg{width:76%;height:88%}
  .service-copy{min-height:168px;padding:17px 20px 20px}
  #services .service-grid .service-category{padding:3px 9px;font-size:9px}
  #services .service-grid h3{margin:6px 0 5px;font-size:17px}
  #services .service-grid p{margin-bottom:11px;font-size:11px;line-height:1.9}
  .service-link{font-size:10px}
  .service-link b{width:22px;height:22px}
}

@media(max-width:920px){
  #services .service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #services .service-grid article:last-child:nth-child(3n + 1){grid-column:auto}
  #services .service-grid article:last-child:nth-child(2n + 1){grid-column:1/-1;width:calc(50% - 10px);justify-self:center}
}
@media(max-width:620px){
  #services .service-grid{grid-template-columns:1fr}
  #services .service-grid article:last-child:nth-child(2n + 1){grid-column:auto;width:auto}
  .service-art{height:142px}
  .service-copy{min-height:0}
}
@media(prefers-reduced-motion:reduce){
  .service-art *{animation:none!important}
}
