@font-face {
    font-family: "Vazir";
    src: url("./fonts/Vazir-Medium.woff2") format("woff2"), url("./fonts/Vazir-Medium.woff") format("woff");
    font-display: swap;
    font-weight: 500;
}

@font-face {
    font-family: "BootstrapIcons";
    src: url("./fonts/bootstrap-icons.woff2") format("woff2"), url("./fonts/bootstrap-icons.woff") format("woff");
    font-display: swap;
    font-weight: 400;
}

/* :root {
    --bg: #f7fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --line: #dae3ef;
    --text: #0f172a;
    --muted: #60708a;
    --primary: #2e57d0;
    --accent: #0f9f98;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-1: 0 8px 30px rgba(15, 23, 42, 0.08);
    --shadow-2: 0 24px 70px rgba(34, 70, 174, 0.12);
    --gradient-1: linear-gradient(135deg, #4f46e5 0%, #3b82f6 52%, #10b981 100%);
    --container: min(1200px, calc(100% - 44px));
    --ease: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    font-family: "Vazir", Tahoma, sans-serif;
    background: radial-gradient(900px 500px at 95% -10%, rgba(46, 87, 208, 0.12), transparent 60%), var(--bg);
    color: var(--text);
    line-height: 1.9;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: var(--container);
    margin-inline: auto;
}

.bi {
    font-family: "BootstrapIcons";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-style: normal;
}

.bi-rocket-takeoff::before { content: "\f845"; }
.bi-stars::before { content: "\f589"; }
.bi-arrow-left::before { content: "\f12f"; }
.bi-lightning-charge::before { content: "\f46d"; }
.bi-check2-circle::before { content: "\f270"; }
.bi-globe2::before { content: "\f3ef"; }
.bi-phone-vibrate::before { content: "\f4e6"; }
.bi-robot::before { content: "\f6b1"; }
.bi-cpu::before { content: "\f2d6"; }
.bi-graph-up-arrow::before { content: "\f673"; }
.bi-shield-check::before { content: "\f52f"; }
.bi-briefcase::before { content: "\f1cc"; }
.bi-award::before { content: "\f154"; }
.bi-chat-quote::before { content: "\f260"; }
.bi-gear::before { content: "\f3e5"; }
.bi-phone::before { content: "\f4e7"; }
.bi-envelope::before { content: "\f32f"; }
.bi-geo-alt::before { content: "\f3e8"; }
.bi-instagram::before { content: "\f437"; }
.bi-linkedin::before { content: "\f472"; }
.bi-telegram::before { content: "\f5b3"; }
.bi-twitter-x::before { content: "\f8db"; }
.bi-layout-text-window-reverse::before { content: "\f14b"; }
.bi-window::before { content: "\f622"; }
.bi-kanban::before { content: "\f44f"; }
.bi-megaphone::before { content: "\f48a"; }
.bi-bar-chart::before { content: "\f17e"; }

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 120;
    background: rgba(247, 250, 252, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(162, 179, 206, 0.35);
    transition: var(--ease);
}

.header-inner {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(130deg, #2e57d0, #5c7ef0);
    color: #fff;
    box-shadow: 0 10px 24px rgba(46, 87, 208, 0.28);
    font-size: 1.2rem;
}

nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

nav a {
    font-size: 0.92rem;
    color: var(--muted);
    padding: 10px 13px;
    border-radius: 10px;
    transition: var(--ease);
}

nav a:hover {
    color: var(--primary);
    background: #edf2ff;
}

.nav-cta {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(46, 87, 208, 0.24);
}

.nav-cta:hover {
    color: #fff;
}

.menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #1e2a44;
    content: "";
    display: block;
    position: relative;
    transition: var(--ease);
}

.menu-btn span::before { top: -6px; position: absolute; }
.menu-btn span::after { top: 6px; position: absolute; }
.menu-btn.active span { background: transparent; }
.menu-btn.active span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn.active span::after { transform: translateY(-6px) rotate(-45deg); }

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 90;
}

section {
    padding: 78px 0;
}

#hero {
    min-height: 100vh;
    padding-top: 126px;
    display: grid;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
    pointer-events: none;
}

.hero-blur-1 {
    width: 360px;
    height: 360px;
    background: #7f9bff;
    top: -120px;
    right: -120px;
}

.hero-blur-2 {
    width: 420px;
    height: 420px;
    background: #8de8df;
    bottom: -160px;
    left: -150px;
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    gap: 44px;
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid #d2dcf2;
    background: #eef3ff;
    color: var(--primary);
    font-size: 0.82rem;
    margin-bottom: 18px;
}

h1 {
    font-size: clamp(2rem, 4.1vw, 3.5rem);
    line-height: 1.26;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

h1 span {
    color: var(--primary);
}

.hero-text p {
    color: var(--muted);
    font-size: 0.99rem;
    max-width: 620px;
    margin-bottom: 28px;
}

.actions {
    display: flex;
    gap: 11px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.btn {
    min-height: 50px;
    border-radius: 14px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 24px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ease);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 24px rgba(46, 87, 208, 0.24);
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-ghost {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text);
}

.btn-ghost:hover {
    background: #f8faff;
    border-color: #c4d4f4;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: var(--shadow-1);
}

.stat strong {
    display: block;
    color: var(--primary);
    font-size: 1.2rem;
}

.stat span {
    color: var(--muted);
    font-size: 0.82rem;
}

.hero-scene {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(165deg, #ffffff 0%, #f2f6ff 100%);
    box-shadow: var(--shadow-2);
    padding: 18px;
    min-height: 420px;
    position: relative;
    overflow: hidden;
}

.scene-grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(79, 70, 229, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 70, 229, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
}

.scene-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
}

.scene-orb-1 {
    width: 260px;
    height: 260px;
    background: #7c82ff;
    top: -60px;
    right: -50px;
}

.scene-orb-2 {
    width: 220px;
    height: 220px;
    background: #59ddc8;
    bottom: -80px;
    left: -40px;
}

.scene-illustration {
    position: absolute;
    inset: 16px;
    display: grid;
    place-items: center;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(79, 70, 229, 0.22);
}

.ring-outer {
    width: 82%;
    aspect-ratio: 1;
    animation: rotateRing 25s linear infinite;
}

.ring-inner {
    width: 56%;
    aspect-ratio: 1;
    border-color: rgba(16, 185, 129, 0.28);
    animation: rotateRing 18s linear infinite reverse;
}

.scene-core {
    width: 118px;
    height: 118px;
    border-radius: 30px;
    background: var(--gradient-1);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    color: #fff;
    font-size: 2.4rem;
    box-shadow: 0 18px 40px rgba(79, 70, 229, 0.32);
}

.scene-float {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: 1px solid #d8e2f3;
    background: rgba(255, 255, 255, 0.9);
    color: #334fb4;
    font-size: 1.2rem;
    box-shadow: var(--shadow-1);
    animation: floatY 4.2s ease-in-out infinite;
}

.float-1 { top: 8%; right: 22%; animation-delay: 0.1s; }
.float-2 { top: 24%; left: 10%; animation-delay: 0.6s; }
.float-3 { bottom: 16%; left: 12%; animation-delay: 1.1s; }
.float-4 { bottom: 10%; right: 20%; animation-delay: 1.5s; }
.float-5 { top: 45%; right: 4%; animation-delay: 1.9s; }

.trust-strip {
    margin-top: 18px;
    padding: 10px 14px;
}

.trust-strip {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.trust-strip p {
    font-size: 0.84rem;
    color: #425676;
}

.trust-items {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.trust-items span {
    font-size: 0.78rem;
    color: var(--muted);
    border: 1px solid #d9e3ef;
    background: #f8fbff;
    border-radius: 999px;
    padding: 5px 10px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 22px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    color: var(--primary);
    border-radius: 999px;
    border: 1px solid #d3def3;
    background: #eef3ff;
    padding: 6px 12px;
    margin-bottom: 10px;
}

h2 {
    font-size: clamp(1.5rem, 2.4vw, 2.2rem);
    line-height: 1.45;
}

h2 span {
    color: var(--primary);
}

.section-head p {
    max-width: 560px;
    color: var(--muted);
    font-size: 0.92rem;
}

#services,
#portfolio,
#faq {
    background: #f9fbff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.service {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-1);
    transition: var(--ease);
}

.service:hover { transform: translateY(-4px); }

.service .icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: #eaf0ff;
    color: var(--primary);
    margin-bottom: 12px;
}

.service h3 {
    font-size: 0.98rem;
    margin-bottom: 8px;
}

.service p {
    color: var(--muted);
    font-size: 0.84rem;
    margin-bottom: 10px;
}

.service ul {
    list-style: none;
    display: grid;
    gap: 7px;
}

.service li {
    display: flex;
    gap: 7px;
    align-items: center;
    font-size: 0.81rem;
    color: #33445f;
}

.service li i { color: var(--accent); }

.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.solution-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-1);
}

.solution-card h3 {
    font-size: 0.96rem;
    margin-bottom: 6px;
}

.solution-card p {
    color: var(--muted);
    font-size: 0.84rem;
    margin-bottom: 10px;
}

#blocks .blocks {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 12px;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-1);
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.feature-list.compact {
    margin-top: 0;
    gap: 8px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #344867;
    font-size: 0.86rem;
}

.feature-list li i {
    margin-top: 4px;
    color: var(--primary);
}

.stack {
    display: grid;
    gap: 10px;
}

.stack-item {
    border: 1px solid #e1e8f3;
    background: #f8fbff;
    border-radius: 12px;
    padding: 12px;
}

.stack-item h4 {
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.stack-item p {
    color: var(--muted);
    font-size: 0.77rem;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.case-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-1);
    overflow: hidden;
    transition: var(--ease);
}

.case-card:hover {
    transform: translateY(-4px);
    border-color: #c5d5ef;
}

.case-top {
    padding: 16px;
    background: linear-gradient(145deg, #f3f7ff 0%, #ffffff 100%);
    border-bottom: 1px solid #e0e8f5;
}

.case-chip {
    display: inline-flex;
    font-size: 0.72rem;
    color: #3154ba;
    background: #e8efff;
    border: 1px solid #cad8fb;
    border-radius: 999px;
    padding: 4px 9px;
    margin-bottom: 10px;
}

.case-top strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.case-top p {
    font-size: 0.8rem;
    color: var(--muted);
}

.case-body {
    padding: 14px 16px 16px;
}

.case-body h3 {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.case-body p {
    color: var(--muted);
    font-size: 0.81rem;
    margin-bottom: 10px;
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
}

.case-link:hover {
    gap: 10px;
}

#testimonials .quotes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.quote {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 18px;
}

.quote i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.quote p {
    font-size: 0.82rem;
    color: #3c5070;
    margin-bottom: 8px;
}

.quote strong {
    font-size: 0.82rem;
    color: #223555;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
}

.faq-item summary {
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.84rem;
}

#contact .cta {
    background: linear-gradient(160deg, #ffffff 0%, #f4f8ff 100%);
    border: 1px solid #d6e2f4;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2);
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
}

#contact .cta::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.16), transparent 65%);
    top: -180px;
    left: -140px;
}

#contact .cta::after {
    content: "";
    position: absolute;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 68%);
    bottom: -170px;
    right: -120px;
}

#contact .cta > * {
    position: relative;
    z-index: 1;
}

.cta p {
    color: var(--muted);
    margin-top: 8px;
    max-width: 620px;
}

.cta .actions { margin: 20px 0 0; }

.enamad {
    margin-top: 18px;
    border: 1px dashed #cdd9ef;
    border-radius: 14px;
    background: #f9fbff;
    width: fit-content;
    padding: 10px;
}

footer {
    margin-top: 70px;
    padding: 58px 0 24px;
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 16px;
    margin-bottom: 18px;
}

.footer-brand p {
    color: var(--muted);
    font-size: 0.84rem;
    margin: 10px 0 14px;
    max-width: 430px;
}

.footer-enamad {
    margin-bottom: 12px;
    border-style: solid;
    border-color: #d6e2f4;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(46, 87, 208, 0.08);
}

.socials {
    display: flex;
    gap: 8px;
}

.socials a {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #f9fbff;
    color: #2f56b5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--ease);
    font-size: 0.94rem;
}

.socials a:hover {
    background: #eaf0ff;
    border-color: #bfd0f0;
}

.footer-col h4 {
    font-size: 0.92rem;
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
    display: grid;
    gap: 7px;
}

.footer-col ul a,
.footer-col span {
    color: var(--muted);
    font-size: 0.82rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.contact-item i {
    color: var(--primary);
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 13px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 0.78rem;
}

@media (max-width: 1100px) {
    .hero-layout,
    #blocks .blocks {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .solution-grid,
    .cases-grid,
    #testimonials .quotes,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .menu-btn { display: inline-flex; }

    nav {
        position: fixed;
        top: 84px;
        right: -100%;
        width: min(320px, 90%);
        height: calc(100vh - 84px);
        background: #fff;
        border-left: 1px solid var(--line);
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        z-index: 100;
        transition: var(--ease);
    }

    nav.active { right: 0; }
    .overlay.active { display: block; }

    nav a {
        border: 1px solid #dde6f2;
        background: #f9fbff;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    :root { --container: min(1200px, calc(100% - 26px)); }
    #hero { padding-top: 118px; }
    .logo-text { display: none; }
    .actions .btn { width: 100%; justify-content: center; }

    .stats,
    .services-grid,
    .solution-grid,
    .cases-grid,
    #testimonials .quotes,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
} */
