:root {
    --bg: #f8f5ee;
    --surface: #ffffff;
    --ink: #1e1d1f;
    --muted: #625c52;
    --line: #e7dccb;
    --gold: #c99b3d;
    --gold-dark: #8f6720;
    --gold-soft: #f1dfb7;
    --green: #1f8a65;
    --blue: #3157ff;
    --charcoal: #111113;
    --black: #0e0e10;
    --radius: 8px;
    --shadow: 0 22px 70px rgba(29, 25, 20, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: radial-gradient(circle at 50% 0, #fff8e8 0, var(--bg) 380px);
    font-family: "Segoe UI", "IRANSansX", "Vazirmatn", Tahoma, Arial, sans-serif;
    line-height: 1.9;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(143, 103, 32, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 103, 32, 0.045) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    right: 16px;
    top: -60px;
    padding: 10px 16px;
    background: var(--charcoal);
    color: #fff;
    z-index: 10;
}

.skip-link:focus {
    top: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(255, 252, 245, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(143, 103, 32, 0.16);
    box-shadow: 0 10px 30px rgba(17, 17, 19, 0.04);
}

.nav-shell {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    direction: ltr;
}

.brand img {
    width: 46px;
    height: 46px;
    max-height: 46px;
    object-fit: contain;
}

.brand span {
    display: grid;
    line-height: 1.2;
}

.brand strong {
    font-size: 21px;
    letter-spacing: 4px;
    color: var(--black);
}

.brand small {
    margin-top: 4px;
    font-size: 9px;
    color: var(--muted);
    letter-spacing: 0;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.main-nav a,
.nav-cta,
.button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.main-nav a {
    padding: 7px 11px;
    color: var(--muted);
}

.main-nav a:hover {
    color: var(--ink);
    background: rgba(30, 29, 31, 0.06);
}

.nav-cta {
    padding: 9px 17px;
    background: linear-gradient(135deg, #0f0f12, #2c2418);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 12px 26px rgba(143, 103, 32, 0.2);
}

.section,
.hero {
    position: relative;
    padding: 72px 0;
}

.section-band {
    min-height: calc(92vh - 70px);
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 48px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold-dark);
    font-weight: 700;
    letter-spacing: 0;
    font-size: 13px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(36px, 4.6vw, 58px);
    line-height: 1.22;
    letter-spacing: 0;
    max-width: 720px;
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.35;
    letter-spacing: 0;
    max-width: 780px;
}

h3 {
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 1.5;
}

.lead {
    max-width: 620px;
    color: #55525a;
    font-size: 17px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    padding: 12px 20px;
    font-weight: 700;
}

.button:hover,
.nav-cta:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.primary {
    background: linear-gradient(135deg, #0f0f12, #2b251b);
    color: #fff;
    box-shadow: 0 16px 32px rgba(143, 103, 32, 0.22);
}

.secondary {
    border: 1px solid rgba(143, 103, 32, 0.26);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.52);
}

.hero-panel {
    min-height: 390px;
    position: relative;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.hero-panel::before {
    content: "";
    position: absolute;
    width: min(72%, 330px);
    aspect-ratio: 1;
    border: 1px solid rgba(30, 29, 31, 0.12);
    transform: rotate(45deg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(201, 155, 61, 0.2));
    box-shadow: var(--shadow);
    z-index: -1;
}

.hero-logo {
    width: min(52vw, 300px);
    max-height: 240px;
    object-fit: contain;
    filter: drop-shadow(0 24px 34px rgba(17, 17, 19, 0.16));
}

.orbit-card {
    position: absolute;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(17, 17, 19, 0.09);
    font-size: 13px;
    font-weight: 700;
}

.card-a {
    top: 66px;
    right: 30px;
}

.card-b {
    left: 14px;
    top: 46%;
}

.card-c {
    bottom: 78px;
    right: 82px;
}

.strip {
    padding: 22px 0;
    border-block: 1px solid rgba(30, 29, 31, 0.08);
    background: rgba(255, 255, 255, 0.78);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(30, 29, 31, 0.09);
}

.stat-item {
    padding: 24px;
    background: var(--surface);
}

.stat-item strong {
    display: block;
    font-size: 29px;
    line-height: 1.2;
}

.stat-item span {
    color: var(--muted);
    font-size: 14px;
}

.split-layout,
.contact-grid,
.faq-layout,
.timeline {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: 44px;
    align-items: start;
}

.content-stack {
    color: var(--muted);
    font-size: 16px;
}

.content-stack p {
    margin-bottom: 18px;
}

.muted {
    background: linear-gradient(180deg, #f0eadf, #f8f5ee);
}

.dark {
    background: radial-gradient(circle at 50% 0, rgba(201, 155, 61, 0.26), transparent 360px), #101012;
    color: #fff;
}

.section-head {
    margin-bottom: 30px;
}

.section-head.center {
    text-align: center;
}

.section-head.center > p:not(.eyebrow),
.section-head.center h2 {
    margin-right: auto;
    margin-left: auto;
}

.section-head > p:not(.eyebrow) {
    max-width: 620px;
    color: var(--muted);
}

.section-head.inverse > p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.68);
}

.compact {
    margin-bottom: 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.project-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff, #fffaf0);
    border: 1px solid rgba(143, 103, 32, 0.16);
    border-radius: var(--radius);
    padding: 20px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 44px rgba(143, 103, 32, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: var(--project-accent, var(--gold));
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--project-accent, var(--gold));
    box-shadow: 0 24px 56px rgba(143, 103, 32, 0.16);
}

.accent-green {
    --project-accent: #17a769;
}

.accent-emerald {
    --project-accent: #2fbd88;
}

.accent-blue {
    --project-accent: #3157ff;
}

.accent-gold {
    --project-accent: #c99b3d;
}

.project-topline {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.project-topline span {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff7e3;
    color: var(--project-accent, var(--gold-dark));
    border: 1px solid rgba(143, 103, 32, 0.18);
    direction: ltr;
    font-size: 11px;
    font-weight: 800;
}

.project-logo {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 16px;
}

.project-logo img {
    width: auto;
    max-width: 176px;
    max-height: 54px;
    object-fit: contain;
}

.project-category {
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.project-card h3 {
    margin-bottom: 10px;
    font-size: 21px;
}

.project-card p:not(.project-category) {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 2;
}

.feature-list {
    padding: 0;
    margin: 10px 0 22px;
    list-style: none;
    color: var(--ink);
    font-size: 12.5px;
    border-top: 1px solid rgba(143, 103, 32, 0.14);
    padding-top: 14px;
}

.feature-list li {
    position: relative;
    padding-right: 20px;
    margin-bottom: 9px;
    line-height: 1.75;
}

.feature-list li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--project-accent, var(--green));
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(201, 155, 61, 0.13);
}

.text-link {
    margin-top: auto;
    color: var(--project-accent, var(--blue));
    font-weight: 700;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
}

@supports (color: color-mix(in srgb, #000, #fff)) {
    .project-card:hover {
        border-color: color-mix(in srgb, var(--project-accent, var(--gold)) 55%, #fff);
    }

    .project-topline span {
        background: color-mix(in srgb, var(--project-accent, var(--gold)) 12%, #fff);
        color: color-mix(in srgb, var(--project-accent, var(--gold)) 72%, #111);
        border-color: color-mix(in srgb, var(--project-accent, var(--gold)) 24%, transparent);
    }

    .feature-list li::before {
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--project-accent, var(--green)) 14%, transparent);
    }

    .text-link {
        color: color-mix(in srgb, var(--project-accent, var(--blue)) 78%, #111);
    }
}

.text-link::after {
    content: "";
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: width 0.2s ease;
}

.text-link:hover::after {
    width: 30px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    border: 0;
}

.service-item {
    padding: 22px;
    border: 1px solid rgba(143, 103, 32, 0.2);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 32px rgba(143, 103, 32, 0.06);
}

.service-item span {
    color: var(--gold);
    font-weight: 800;
    display: inline-flex;
    margin-bottom: 20px;
}

.service-item p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 0;
}

.service-item h3 {
    font-size: 18px;
    line-height: 1.55;
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.client-tile {
    min-height: 132px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(201, 155, 61, 0.18);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--ink);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.13);
}

.client-tile img {
    width: 150px;
    height: 52px;
    margin-bottom: 13px;
    object-fit: contain;
    filter: saturate(0.92) contrast(1.04);
}

.client-tile span {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 12px;
    background: #fff;
    color: var(--charcoal);
    border-radius: 50%;
    font-weight: 800;
}

.client-tile strong {
    font-size: 14px;
    line-height: 1.45;
}

.client-tile small {
    color: var(--muted);
    font-size: 12px;
}

.licenses-section {
    background: linear-gradient(180deg, #fffaf0, #f8f5ee);
}

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

.license-tile {
    min-height: 154px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(143, 103, 32, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 14px 36px rgba(143, 103, 32, 0.08);
}

.license-tile img {
    width: 100%;
    max-width: 128px;
    height: 76px;
    object-fit: contain;
    border-radius: 6px;
}

.license-tile span {
    min-height: 34px;
    display: grid;
    place-items: center;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
}

.timeline-list {
    display: grid;
    gap: 12px;
}

.timeline-list div,
.contact-card,
details {
    background: var(--surface);
    border: 1px solid rgba(30, 29, 31, 0.08);
    border-radius: var(--radius);
    box-shadow: 0 10px 32px rgba(17, 17, 19, 0.05);
}

.timeline-list div {
    display: grid;
    grid-template-columns: 66px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px 18px;
}

.timeline-list span {
    color: var(--gold);
    font-weight: 800;
    font-size: 20px;
}

.timeline-list p {
    margin: 0;
    color: var(--muted);
}

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

details {
    padding: 15px 18px;
}

summary {
    cursor: pointer;
    font-weight: 800;
    font-size: 15px;
}

details p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.contact-section {
    background: linear-gradient(135deg, #fff9eb 0%, #ffffff 50%, #f0dfb4 100%);
}

.contact-card {
    padding: 24px;
    display: grid;
    gap: 10px;
}

.contact-card a {
    direction: ltr;
    text-align: right;
    color: var(--gold-dark);
    font-weight: 800;
    font-size: 15px;
}

.contact-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.site-footer {
    padding: 24px 0;
    background: #0d0d0f;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto minmax(240px, 1fr);
    gap: 18px;
    align-items: center;
}

.footer-brand-block {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.footer-grid img {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    max-height: 46px;
    object-fit: contain;
    filter: invert(1) contrast(1.1);
}

.footer-brand {
    display: block;
    margin: 0;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 4px;
    direction: ltr;
}

.footer-grid p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    justify-content: center;
    white-space: nowrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
}

.footer-contact {
    direction: ltr;
    color: var(--gold-soft);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.copyright {
    text-align: left;
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 1040px) {
    .project-grid,
    .service-grid,
    .client-grid,
    .license-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-grid,
    .split-layout,
    .contact-grid,
    .faq-layout,
    .timeline {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        min-height: 420px;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .nav-shell {
        min-height: auto;
        padding: 14px 0;
        flex-wrap: wrap;
    }

    .brand img {
        width: 42px;
        height: 42px;
        max-height: 42px;
    }

    .brand strong {
        font-size: 21px;
    }

    .brand small {
        font-size: 9px;
    }

    .main-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 2px;
    }

    .nav-cta {
        padding-inline: 12px;
        font-size: 13px;
    }

    .section,
    .hero {
        padding: 64px 0;
    }

    .section-band {
        min-height: auto;
    }

    h1 {
        font-size: 34px;
    }

    .lead,
    .content-stack {
        font-size: 16px;
    }

    .hero-panel {
        min-height: 290px;
    }

    .orbit-card {
        font-size: 12px;
    }

    .stats-grid,
    .project-grid,
    .service-grid,
    .client-grid,
    .license-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid,
    .copyright {
        text-align: right;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .footer-contact,
    .copyright {
        white-space: normal;
    }
}

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