/* Home — استودیوی طراحی (متمایز از landing حسابداری) */

.it-home {
    --it-ink: #152C4A;
    --it-teal: #18A89A;
    --it-teal-soft: #d4f5f1;
    --it-orange: #E8952E;
    --it-orange-soft: #fef3e2;
    --it-paper: #faf8f5;
    --it-paper-2: #f0ece6;
    --it-muted: #6b7280;
    background: var(--it-paper);
}

.it-home .landing-header {
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(21, 44, 74, 0.06);
    padding: 0.85rem 0;
}

.it-home .landing-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 32px rgba(21, 44, 74, 0.06);
}

.it-home .landing-brand-text,
.it-home .landing-nav-link {
    color: var(--it-ink);
}

.it-home .landing-nav-link:hover {
    color: var(--it-teal);
    background: var(--it-teal-soft);
}

.it-home .landing-header:not(.scrolled) .landing-nav-login {
    background: #fff;
    border: 1px solid rgba(21, 44, 74, 0.12);
    color: var(--it-ink);
}

.it-home .landing-header:not(.scrolled) .landing-nav-cta {
    background: var(--it-ink);
    border-color: var(--it-ink);
    color: #fff;
}

.it-home .landing-nav-toggle {
    background: var(--it-paper-2);
    color: var(--it-ink);
}

.it-home .landing-user-trigger {
    background: #fff;
    border: 1px solid rgba(21, 44, 74, 0.12);
    color: var(--it-ink);
}

.it-home .landing-user-trigger:hover,
.it-home .landing-user-menu.open .landing-user-trigger {
    background: var(--it-teal-soft);
    border-color: rgba(24, 168, 154, 0.35);
    color: var(--it-teal);
}

.it-home .landing-user-avatar {
    background: var(--it-teal);
    color: #fff;
}

.it-home .landing-header.scrolled .landing-user-trigger {
    background: #fff;
    border-color: rgba(21, 44, 74, 0.12);
    color: var(--it-ink);
}

.it-home .landing-header.scrolled .landing-user-trigger:hover,
.it-home .landing-header.scrolled .landing-user-menu.open .landing-user-trigger {
    background: var(--it-teal-soft);
    border-color: rgba(24, 168, 154, 0.35);
    color: var(--it-teal);
}

/* Hero */
.it-hero {
    padding: 7.5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.it-hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(24, 168, 154, 0.12) 0%, transparent 70%);
    top: -120px;
    left: -180px;
    pointer-events: none;
}

.it-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--it-teal);
    margin-bottom: 1.25rem;
}

.it-hero-kicker::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--it-orange);
}

.it-hero-title {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--it-ink);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.it-hero-title em {
    font-style: normal;
    color: var(--it-teal);
}

.it-hero-title span {
    display: block;
    font-size: 0.45em;
    font-weight: 600;
    color: var(--it-muted);
    margin-top: 0.35em;
    letter-spacing: 0;
}

.it-hero-lead {
    font-size: 1.125rem;
    line-height: 1.95;
    color: var(--it-muted);
    max-width: 480px;
    margin-bottom: 2rem;
}

.it-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.it-btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    background: var(--it-ink);
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.it-btn-solid:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(21, 44, 74, 0.2);
}

.it-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    background: transparent;
    color: var(--it-ink);
    font-weight: 600;
    border: 2px solid rgba(21, 44, 74, 0.15);
    border-radius: 999px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.it-btn-ghost:hover {
    color: var(--it-ink);
    border-color: var(--it-teal);
    background: var(--it-teal-soft);
}

.it-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.it-hero-stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--it-ink);
}

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

/* Hero visual — mood-board mosaic (CSS-only, no stock mockup) */
.it-hero-visual {
    position: relative;
    aspect-ratio: 1;
    max-width: 420px;
    margin-inline: auto;
}

.it-hero-visual-aura {
    position: absolute;
    inset: -8%;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, rgba(24, 168, 154, 0.22) 0%, transparent 62%);
    pointer-events: none;
}

.it-hero-visual-orbit {
    position: absolute;
    border: 1px dashed rgba(21, 44, 74, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.it-hero-visual-orbit--a {
    inset: 2%;
    animation: it-orbit-spin 48s linear infinite;
}

.it-hero-visual-orbit--b {
    inset: 14%;
    animation: it-orbit-spin 32s linear infinite reverse;
}

.it-hero-visual-mosaic {
    position: absolute;
    inset: 18% 10% 22% 10%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    transform: rotate(-6deg);
    z-index: 2;
}

.it-hero-visual-tile {
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(21, 44, 74, 0.14);
}

.it-hero-visual-tile--teal {
    grid-row: span 2;
    background: linear-gradient(165deg, var(--it-teal) 0%, #0d7a6f 100%);
}

.it-hero-visual-tile--ink {
    background: var(--it-ink);
    display: flex;
    align-items: center;
    justify-content: center;
}

.it-hero-visual-type {
    font-size: 2rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: -0.04em;
}

.it-hero-visual-tile--warm {
    background: linear-gradient(135deg, var(--it-orange) 0%, #d4781a 100%);
}

.it-hero-visual-tile--light {
    background: #fff;
    border: 1px solid rgba(21, 44, 74, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.it-hero-visual-mark {
    font-size: 1.5rem;
    color: var(--it-teal);
    opacity: 0.85;
}

.it-hero-visual-core {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%) rotate(3deg);
    z-index: 4;
    text-align: center;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(21, 44, 74, 0.08);
    border-radius: 14px;
    padding: 0.65rem 1.25rem;
    box-shadow: 0 12px 36px rgba(21, 44, 74, 0.1);
    min-width: 72%;
}

.it-hero-visual-label {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--it-ink);
}

.it-hero-visual-caption {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--it-teal);
    margin-top: 0.15rem;
}

.it-hero-visual-float {
    position: absolute;
    z-index: 5;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(21, 44, 74, 0.08);
    box-shadow: 0 8px 20px rgba(21, 44, 74, 0.08);
    color: var(--it-ink);
    animation: it-float-drift 5s ease-in-out infinite;
}

.it-hero-visual-float--1 {
    top: 12%;
    left: 0;
    animation-delay: 0s;
}

.it-hero-visual-float--2 {
    top: 4%;
    right: 4%;
    animation-delay: 1.2s;
}

.it-hero-visual-float--3 {
    bottom: 28%;
    right: -2%;
    animation-delay: 2.4s;
}

.it-hero-visual-badge {
    position: absolute;
    top: 0;
    right: 6%;
    z-index: 6;
    background: var(--it-ink);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(21, 44, 74, 0.2);
    max-width: 11rem;
    line-height: 1.45;
}

@keyframes it-orbit-spin {
    to { transform: rotate(360deg); }
}

@keyframes it-float-drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Marquee — seamless loop (two identical groups) */
.it-marquee {
    border-block: 1px solid rgba(21, 44, 74, 0.08);
    background: #fff;
    padding: 1rem 0;
    overflow: hidden;
    direction: ltr;
}

.it-marquee-track {
    display: flex;
    width: max-content;
    animation: it-marquee 32s linear infinite;
    will-change: transform;
}

.it-marquee-group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 3rem;
    padding-inline-end: 3rem;
}

.it-marquee-item {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--it-ink);
    white-space: nowrap;
    opacity: 0.55;
}

.it-marquee-item::after {
    content: "◆";
    margin-left: 3rem;
    color: var(--it-orange);
    font-size: 0.6rem;
    vertical-align: middle;
}

@keyframes it-marquee {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

/* Home portfolio strip */
.it-home-portfolio {
    padding: 4.5rem 0;
    background: linear-gradient(180deg, var(--it-paper) 0%, #fff 100%);
}

.it-home-portfolio-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.it-home-portfolio-head h2 {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 900;
    color: var(--it-ink);
    margin: 0 0 0.5rem;
}

.it-home-portfolio-head h2 em {
    font-style: normal;
    color: var(--it-teal);
}

.it-home-portfolio-head p {
    color: var(--it-muted);
    max-width: 28rem;
    line-height: 1.75;
}

.it-home-portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

@media (max-width: 575.98px) {
    .it-home-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }

    .it-hero-visual-badge {
        font-size: 0.68rem;
        max-width: 9.5rem;
    }
}

/* Pillars */
.it-pillars {
    padding: 5rem 0;
}

.it-pillars-head {
    max-width: 520px;
    margin-bottom: 3rem;
}

.it-pillars-head h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 900;
    color: var(--it-ink);
    margin-bottom: 0.75rem;
}

.it-pillars-head p {
    color: var(--it-muted);
    line-height: 1.85;
    margin: 0;
}

.it-pillar {
    padding: 2rem;
    border-radius: 20px;
    height: 100%;
    border: 1px solid rgba(21, 44, 74, 0.08);
    background: #fff;
    transition: transform 0.25s, box-shadow 0.25s;
}

.it-pillar:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(21, 44, 74, 0.08);
}

.it-pillar-num {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    color: var(--it-teal-soft);
    -webkit-text-stroke: 1px var(--it-teal);
    margin-bottom: 1rem;
}

.it-pillar h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--it-ink);
    margin-bottom: 0.5rem;
}

.it-pillar p {
    color: var(--it-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin: 0;
}

/* Dark band */
.it-band {
    background: var(--it-ink);
    color: #fff;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.it-band::after {
    content: "DESIGN";
    position: absolute;
    left: -5%;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(6rem, 18vw, 12rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    letter-spacing: 0.1em;
}

.it-band-quote {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    line-height: 1.7;
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.it-band-quote strong {
    color: var(--it-teal);
    font-weight: 800;
}

/* Bento services */
.it-bento {
    padding: 5rem 0;
}

.it-bento-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.it-bento-head h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 900;
    color: var(--it-ink);
    margin: 0;
}

.it-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.it-bento-card {
    grid-column: span 4;
    background: #fff;
    border: 1px solid rgba(21, 44, 74, 0.08);
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.it-bento-card:hover {
    border-color: var(--it-teal);
    box-shadow: 0 12px 32px rgba(24, 168, 154, 0.1);
}

.it-bento-card--wide {
    grid-column: span 8;
    background: linear-gradient(135deg, var(--it-teal-soft) 0%, #fff 60%);
}

.it-bento-cat {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--it-teal);
    margin-bottom: 0.75rem;
}

.it-bento-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--it-ink);
    margin-bottom: 0.5rem;
}

.it-bento-card p {
    color: var(--it-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.it-bento-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px dashed rgba(21, 44, 74, 0.1);
    font-weight: 700;
    color: var(--it-ink);
}

.it-bento-meta small {
    font-weight: 500;
    color: var(--it-muted);
}

@media (max-width: 991.98px) {
    .it-bento-card,
    .it-bento-card--wide {
        grid-column: span 12;
    }
}

/* Timeline process */
.it-flow {
    padding: 5rem 0;
    background: var(--it-paper-2);
}

.it-flow-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.it-flow-head h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 900;
    color: var(--it-ink);
    margin-bottom: 0.75rem;
}

.it-flow-head p {
    color: var(--it-muted);
    line-height: 1.85;
}

.it-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.it-timeline::before {
    content: "";
    position: absolute;
    right: 19px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--it-teal), var(--it-orange));
}

.it-timeline li {
    position: relative;
    padding:0.8rem 3rem 1.4rem 0;
}

.it-timeline li:last-child {
    padding-bottom: 0;
}

.it-timeline-dot {
    position: absolute;
    right: 0;
    top: 4px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--it-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--it-teal);
}

.it-timeline h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--it-ink);
    margin: 0 0.7rem;
}

.it-timeline p {
    color: var(--it-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0 0.9rem;
}

@media (max-width: 767.98px) {
    .it-flow-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* CTA card */
.it-cta {
    padding: 4rem 0 6rem;
}

.it-cta-card {
    background: #fff;
    border: 2px solid var(--it-ink);
    border-radius: 24px;
    padding: clamp(2rem, 5vw, 3.5rem);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.it-cta-card h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--it-ink);
    margin-bottom: 0.5rem;
}

.it-cta-card p {
    color: var(--it-muted);
    margin: 0;
}

.it-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.it-btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    background: var(--it-teal);
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.it-btn-accent:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(24, 168, 154, 0.35);
}

.it-trust {
    padding: 2rem 0 2.5rem;
    background: #fff;
    border-bottom: 1px solid rgba(21, 44, 74, 0.06);
}

.it-trust-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--it-ink);
}

.it-trust-list li::before {
    content: "✓ ";
    color: var(--it-teal);
    font-weight: 700;
}

.it-trust-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    font-size: 0.85rem;
}

.it-trust-links a {
    color: var(--it-teal);
    text-decoration: none;
    font-weight: 600;
}

.it-trust-links a:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .landing-page:has(.landing-sticky-bar) main {
        padding-bottom: 4.5rem;
    }
}

/* Services catalog (/Services) */
.it-hero--compact {
    padding: 6.5rem 0 2.5rem;
}

.it-hero-title--sm {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
}

.it-hero-title--sm span {
    display: block;
    font-size: 0.55em;
    font-weight: 600;
    color: var(--it-muted);
    margin-top: 0.35rem;
}

.it-bento--catalog {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.it-bento-card--service {
    min-height: 240px;
}

.it-bento-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.it-btn-solid--sm,
.it-btn-ghost--sm {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    border-radius: 10px;
}

.it-catalog-group:last-child {
    margin-bottom: 0 !important;
}
