/* =========================================
   ROOT
========================================= */

:root {
    --primary: #d54e30;

    --black: #161616;
    --dark: #101010;

    --white: #ffffff;

    --gray: #777777;
    --light: #f4f4f2;

    --border: #e4e4e0;

    --container: 1280px;
}


/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;

    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Vazirmatn", sans-serif;

    background: var(--white);

    color: var(--black);

    line-height: 1.8;
}

a {
    color: inherit;

    text-decoration: none;
}

.container {
    width: min(
        calc(100% - 64px),
        var(--container)
    );

    margin: auto;
}


/* =========================================
   LOADER
========================================= */

.page-loader {
    display: none;
}


/* =========================================
   HEADER
========================================= */

.header {
    position: absolute;

    top: 0;
    right: 0;

    width: 100%;

    z-index: 100;
}

.header-container {
    height: 100px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.brand {
    display: flex;

    align-items: center;

    gap: 12px;
}

.brand-symbol {
    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    background: var(--primary);

    color: white;

    font-weight: 800;

    font-size: 20px;
}

.brand-text {
    display: flex;

    flex-direction: column;

    line-height: 1.3;
}

.brand-text strong {
    letter-spacing: 2px;

    font-size: 14px;
}

.brand-text span {
    font-size: 9px;

    color: var(--gray);

    letter-spacing: 1px;
}

.header-right {
    display: flex;

    gap: 25px;

    align-items: center;

    font-size: 11px;

    letter-spacing: 1px;
}

.catalog-year {
    color: var(--primary);

    font-weight: 700;
}


/* =========================================
   HERO
========================================= */

.hero {
    position: relative;

    min-height: 100vh;

    display: flex;

    align-items: center;

    overflow: hidden;
}

.hero-grid {
    position: absolute;

    inset: 0;

    opacity: 0.45;

    background-image:
        linear-gradient(
            var(--border) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            var(--border) 1px,
            transparent 1px
        );

    background-size:
        100px 100px;
}

.hero::after {
    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    background:
        radial-gradient(
            circle,
            rgba(213, 78, 48, 0.14),
            transparent 65%
        );

    left: -200px;
    bottom: -250px;
}

.hero-container {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        1fr auto;

    align-items: center;

    gap: 50px;
}

.hero-content {
    max-width: 950px;
}

.hero-top {
    display: flex;

    align-items: center;

    gap: 15px;

    color: var(--primary);

    font-size: 11px;

    letter-spacing: 2px;

    margin-bottom: 35px;
}

.hero-line {
    width: 50px;
    height: 1px;

    background: var(--primary);
}

.hero h1 {
    font-size:
        clamp(48px, 7vw, 105px);

    line-height: 1.2;

    letter-spacing: -4px;

    font-weight: 900;
}

.hero h1 span {
    display: block;

    color: var(--primary);

    font-size: 0.55em;

    margin-top: 20px;
}

.hero p {
    max-width: 600px;

    color: var(--gray);

    font-size: 17px;

    margin-top: 35px;
}

.hero-number {
    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 20px;
}

.hero-number > span {
    font-size: 150px;

    color: var(--light);

    font-weight: 800;

    line-height: 1;
}

.hero-number small {
    color: var(--primary);

    font-size: 9px;

    letter-spacing: 3px;

    text-align: left;
}

.hero-scroll {
    margin-top: 80px;

    display: flex;

    align-items: center;

    gap: 20px;

    color: var(--gray);

    font-size: 12px;
}

.scroll-line {
    width: 90px;

    height: 1px;

    background: var(--border);

    position: relative;

    overflow: hidden;
}

.scroll-line span {
    position: absolute;

    width: 40%;

    height: 100%;

    background: var(--primary);

    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {

    from {
        right: -40%;
    }

    to {
        right: 100%;
    }

}


/* =========================================
   SECTION
========================================= */

.section {
    padding:
        140px 0;

    position: relative;
}

.section-index {
    color: var(--primary);

    font-size: 12px;

    letter-spacing: 3px;

    margin-bottom: 60px;
}

.section-label {
    display: block;

    color: var(--primary);

    font-size: 11px;

    letter-spacing: 2px;

    margin-bottom: 25px;
}


/* =========================================
   INTRO
========================================= */

.intro {
    background: var(--light);
}

.intro-grid {
    display: grid;

    grid-template-columns:
        1.1fr 0.9fr;

    gap: 120px;
}

.intro-title h2,
.section-header-simple h2,
.services-header h2 {
    font-size:
        clamp(38px, 5vw, 75px);

    line-height: 1.4;

    font-weight: 800;

    letter-spacing: -2px;
}

.intro-title h2 span,
.section-header-simple h2 span,
.services-header h2 span {
    color: var(--primary);
}

.intro-text {
    padding-top: 30px;
}

.intro-text p {
    color: var(--gray);

    font-size: 17px;

    margin-bottom: 25px;
}

.text-link {
    display: inline-flex;

    gap: 15px;

    align-items: center;

    margin-top: 25px;

    font-size: 14px;

    font-weight: 700;
}

.text-link span {
    color: var(--primary);

    font-size: 20px;
}


/* =========================================
   SERVICES
========================================= */

.services-header {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 60px;

    margin-bottom: 90px;
}

.services-header > p {
    max-width: 320px;

    color: var(--gray);

    font-size: 14px;
}

.services-list {
    border-top:
        1px solid var(--border);
}

.service-item {
    display: grid;

    grid-template-columns:
        80px
        1fr
        1fr
        70px;

    gap: 40px;

    align-items: center;

    min-height: 150px;

    border-bottom:
        1px solid var(--border);

    transition:
        0.35s ease;

    padding:
        25px 0;
}

.service-item:hover {
    padding-right: 20px;

    background:
        rgba(213, 78, 48, 0.025);
}

.service-number {
    color: var(--primary);

    font-size: 13px;

    font-weight: 700;
}

.service-name h3 {
    font-size: 28px;

    margin-bottom: 6px;
}

.service-name span {
    color: var(--gray);

    font-size: 10px;

    letter-spacing: 1px;
}

.service-item p {
    color: var(--gray);

    font-size: 14px;
}

.service-arrow {
    width: 55px;
    height: 55px;

    display: grid;

    place-items: center;

    border:
        1px solid var(--border);

    border-radius: 50%;

    font-size: 20px;

    transition: 0.3s;
}

.service-item:hover .service-arrow {
    background: var(--primary);

    color: white;

    border-color: var(--primary);
}


/* =========================================
   PHILOSOPHY
========================================= */

.philosophy {
    background: var(--black);

    color: white;

    padding:
        130px 0;
}

.philosophy-number {
    color: var(--primary);

    font-size: 12px;

    margin-bottom: 60px;
}

.philosophy-content > span {
    color: var(--primary);

    font-size: 11px;

    letter-spacing: 2px;
}

.philosophy h2 {
    margin-top: 35px;

    font-size:
        clamp(40px, 6vw, 90px);

    font-weight: 800;

    line-height: 1.5;

    letter-spacing: -3px;
}

.philosophy i {
    color: var(--primary);

    font-style: normal;

    margin: 0 12px;
}


/* =========================================
   PROCESS
========================================= */

.section-header-simple {
    max-width: 900px;

    margin-bottom: 100px;
}

.process-list {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 1px;

    background: var(--border);
}

.process-item {
    background: white;

    padding: 35px;

    min-height: 270px;
}

.process-item span {
    display: block;

    color: var(--primary);

    font-size: 12px;

    margin-bottom: 70px;
}

.process-item h3 {
    font-size: 22px;

    margin-bottom: 15px;
}

.process-item p {
    color: var(--gray);

    font-size: 13px;
}


/* =========================================
   CTA
========================================= */

.cta {
    background: var(--primary);

    color: white;

    text-align: center;

    padding:
        160px 0;
}

.cta > .container > span {
    font-size: 11px;

    letter-spacing: 3px;

    opacity: 0.7;
}

.cta h2 {
    font-size:
        clamp(45px, 7vw, 100px);

    line-height: 1.25;

    margin:
        35px 0 55px;

    font-weight: 900;
}

.cta em {
    font-style: normal;

    opacity: 0.6;
}

.cta-button {
    display: inline-flex;

    align-items: center;

    gap: 25px;

    padding:
        17px 25px;

    background: white;

    color: var(--primary);

    font-size: 14px;

    font-weight: 700;
}

.cta-button span,
.cta-button svg {
    font-size: 20px;
}

.cta-contacts {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 35px;
}

.cta-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    transition: 0.25s;
    direction: ltr;
}

.cta-contact:hover {
    background: white;
    color: var(--primary);
}


/* =========================================
   FOOTER
========================================= */

.footer {
    background: #101010;

    color: white;

    padding:
        35px 0;
}

.footer-container {
    display: flex;

    justify-content: space-between;

    align-items: center;
}

.footer strong {
    display: block;

    font-size: 14px;

    letter-spacing: 2px;
}

.footer span {
    color: #666;

    font-size: 9px;

    letter-spacing: 2px;
}

.footer-container > div:last-child {
    color: #555;

    font-size: 10px;
}

.footer-contacts {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    direction: ltr;
    font-size: 11px;
}

.footer-contacts a {
    color: #bbb;
    transition: 0.2s;
}

.footer-contacts a:hover {
    color: var(--primary);
}

.footer-sep {
    color: #333 !important;
    font-size: 11px !important;
    letter-spacing: 0 !important;
}

.service-arrow svg {
    display: block;
}

.text-link svg {
    color: var(--primary);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

    .intro-grid {
        gap: 60px;
    }

    .process-list {
        grid-template-columns:
            repeat(3, 1fr);
    }

}


@media (max-width: 900px) {

    .hero-container {
        grid-template-columns:
            1fr;
    }

    .hero-number {
        display: none;
    }

    .intro-grid {
        grid-template-columns:
            1fr;
    }

    .services-header {
        flex-direction: column;

        align-items: flex-start;
    }

    .service-item {
        grid-template-columns:
            50px
            1fr
            60px;
    }

    .service-item p {
        display: none;
    }

    .process-list {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .container {
        width:
            min(
                calc(100% - 32px),
                var(--container)
            );
    }

    .section {
        padding:
            90px 0;
    }

    .header-right {
        display: none;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero-scroll {
        margin-top: 50px;
    }

    .services-header {
        margin-bottom: 50px;
    }

    .service-item {
        grid-template-columns:
            35px
            1fr
            50px;

        gap: 15px;

        min-height: 110px;
    }

    .service-name h3 {
        font-size: 20px;
    }

    .service-arrow {
        width: 42px;
        height: 42px;
    }

    .philosophy {
        padding:
            90px 0;
    }

    .philosophy i {
        display: inline-block;
    }

    .process-list {
        grid-template-columns:
            1fr;
    }

    .process-item {
        min-height: auto;
    }

    .process-item span {
        margin-bottom: 40px;
    }

    .cta {
        padding:
            100px 0;
    }

    .footer-container {
        flex-direction: column;

        gap: 20px;

        text-align: center;
    }

}


/* =========================================
   FINAL POLISH & ACCESSIBILITY
========================================= */
:root {
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

body {
    overflow-x: hidden;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 5px;
}

.service-item,
.cta-button,
.cta-contact,
.text-link {
    transition: transform 180ms var(--ease-out), background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.service-item:active,
.cta-button:active,
.cta-contact:active {
    transform: scale(0.98);
}

@media (max-width: 600px) {
    .hero {
        min-height: 760px;
    }

    .hero h1 {
        font-size: clamp(42px, 12vw, 72px);
    }

    .hero p,
    .intro-text p {
        font-size: 15px;
    }

    .cta-contacts {
        flex-direction: column;
        align-items: stretch;
        margin-inline: 16px;
    }

    .cta-contact {
        justify-content: center;
    }

    .footer-contacts {
        justify-content: center;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* =========================================
   RICH CONTENT & DYNAMIC VISUALS
========================================= */
.philosophy-content {
    text-align: center;
}

.philosophy h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: clamp(8px, 1.4vw, 24px);
    font-size: clamp(25px, 5.2vw, 72px);
    letter-spacing: -2px;
}

.philosophy h2 i {
    flex: 0 0 auto;
    margin: 0;
}

.hero-number {
    width: min(360px, 34vw);
}

.hero-visual-svg {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 18px;
    overflow: visible;
}

.hero-visual-svg text,
.service-illustration text,
.tech-illustration text {
    font-family: Arial, sans-serif;
    font-size: 9px;
    letter-spacing: 2px;
    fill: var(--primary);
}

.hero-visual-svg .svg-grid path {
    stroke: var(--border);
    stroke-width: 1;
    fill: none;
}

.hero-visual-svg .svg-route,
.hero-visual-svg .svg-route-secondary {
    fill: none;
    stroke: url(#heroGradient);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 5 8;
    animation: routeFlow 5s linear infinite;
}

.hero-visual-svg .svg-route-secondary {
    stroke: var(--black);
    opacity: .16;
    stroke-width: 1.5;
    animation-duration: 8s;
}

.hero-visual-svg .svg-node circle,
.hero-visual-svg .svg-ring {
    fill: var(--white);
    stroke: var(--primary);
    stroke-width: 2;
}

.hero-visual-svg .svg-node circle {
    animation: nodePulse 2.8s ease-in-out infinite;
}

.hero-visual-svg .svg-node circle:nth-child(2) { animation-delay: .4s; }
.hero-visual-svg .svg-node circle:nth-child(3) { animation-delay: .8s; }
.hero-visual-svg .svg-node circle:nth-child(4) { animation-delay: 1.2s; }
.hero-visual-svg .svg-ring {
    fill: none;
    stroke-dasharray: 3 7;
    animation: ringSpin 10s linear infinite;
    transform-origin: 222px 150px;
}

@keyframes routeFlow { to { stroke-dashoffset: -120; } }
@keyframes nodePulse { 0%, 100% { transform: scale(1); opacity: .72; } 50% { transform: scale(1.3); opacity: 1; } }
@keyframes ringSpin { to { transform: rotate(360deg); } }

.value-section {
    background: var(--white);
}

.section-lead {
    max-width: 680px;
    margin-top: 22px;
    color: var(--gray);
    font-size: 16px;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    margin-top: 70px;
}

.value-card {
    position: relative;
    min-height: 300px;
    padding: 34px;
    background: var(--white);
    overflow: hidden;
}

.value-card::before {
    content: "";
    position: absolute;
    inset: auto -35px -55px auto;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(213, 78, 48, .18);
    border-radius: 50%;
    transition: transform .4s var(--ease-out);
}

.value-card:hover::before { transform: scale(1.35); }
.value-card > span { color: var(--primary); font-size: 10px; letter-spacing: 2px; }
.value-card h3 { margin: 44px 0 14px; font-size: 24px; }
.value-card p { color: var(--gray); font-size: 14px; max-width: 290px; }

.value-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--primary);
}

.value-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
    .hero-number { width: min(460px, 80vw); }
    .value-grid { grid-template-columns: 1fr; }
    .value-card { min-height: 230px; }
}

@media (max-width: 600px) {
    .philosophy h2 {
        gap: 5px;
        font-size: clamp(18px, 5.7vw, 32px);
        letter-spacing: -1px;
    }

    .philosophy i { margin: 0 !important; }
    .section-lead { font-size: 14px; }
    .value-grid { margin-top: 45px; }
    .value-card { padding: 28px; }
}


/* =========================================
   DAYNACODE BRAND BRIDGE
   Inspired by the brand website, not a copy
========================================= */
:root {
    --black: #173c35;
    --dark: #102b26;
    --light: #f0f8f4;
    --border: #dbe8e2;
    --brand-green: #2f7d68;
    --brand-mint: #e8f4ee;
}

.brand-symbol {
    width: 58px;
    height: 58px;
    padding: 5px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(23, 60, 53, .12);
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 13% 4% auto auto;
    width: min(560px, 60vw);
    height: 180px;
    border-radius: 50%;
    background: var(--brand-mint);
    filter: blur(30px);
    opacity: .7;
}

.hero h1 span,
.intro-title h2 span,
.section-header-simple h2 span,
.services-header h2 span {
    color: var(--brand-green);
}

.service-item:hover {
    background: rgba(47, 125, 104, .055);
}

.service-item:hover .service-arrow {
    background: var(--brand-green);
    border-color: var(--brand-green);
}

.philosophy {
    background: var(--dark);
}

.cta {
    background: linear-gradient(135deg, var(--brand-green), #1e5d50);
}

.cta-contact {
    background: rgba(255, 255, 255, .13);
    border-color: rgba(255, 255, 255, .27);
}

@media (max-width: 600px) {
    .brand-symbol { width: 48px; height: 48px; border-radius: 13px; }
}
