/* ============================================================
   DevKarim — "Blueprint Atelier"
   SECTIONS: hero, portfolio, services, about, process, faq,
   testimonials, cta, contact, secondary pages
   ============================================================ */

/* Generic section rhythm */
section {
    position: relative;
}

.section-pad {
    padding: clamp(4.5rem, 9vw, 8.5rem) 0;
}

/* Ultrawide: scale the whole UI up very gently (only on huge displays) */
@media (min-width: 2600px) {
    html {
        font-size: 17px;
    }
}

@media (min-width: 3400px) {
    html {
        font-size: 18px;
    }
}

/* ============================================
   HERO — daylight blueprint, interactive ink canvas
   ============================================ */
.hero {
    /* Slightly under one screen so the marquee strip peeks on load */
    min-height: calc(100svh - 2.7rem);
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    /* Pin-and-reveal: hero stays put while the next sections slide up over it */
    position: sticky;
    top: 0;
    z-index: 0;
    overflow: hidden;
    color: var(--color-text);
    background: var(--color-bg);
}

/* Everything after the hero rides above it for the curtain reveal */
main > .marquee,
main > section:not(.hero) {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero {
        /* sticky pin can feel janky on mobile; keep it simple there */
        position: relative;
        min-height: calc(100svh - 2.4rem);
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background:
        radial-gradient(1100px 720px at 85% -12%, rgba(255, 92, 26, 0.13), transparent 60%),
        radial-gradient(900px 620px at -10% 112%, rgba(255, 92, 26, 0.07), transparent 55%),
        radial-gradient(760px 520px at 28% 18%, rgba(90, 110, 160, 0.07), transparent 60%),
        var(--color-bg);
}

/* Blueprint grid overlay */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: var(--grid-light);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, black 30%, transparent 100%);
}

/* Interactive ink flow-field simulation */
.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Animated circuit beams */
.hero-beam {
    position: absolute;
    height: 1px;
    width: 100%;
    background: rgba(20, 22, 27, 0.06);
    overflow: hidden;
}

.hero-beam::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 220px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    animation: beam-run 7s linear infinite;
    opacity: 0.9;
}

.hero-beam-1 { top: 26%; }
.hero-beam-1::after { animation-delay: 0s; }
.hero-beam-2 { top: 58%; }
.hero-beam-2::after { animation-delay: 2.4s; animation-duration: 9s; }
.hero-beam-3 { top: 82%; }
.hero-beam-3::after { animation-delay: 4.8s; animation-duration: 11s; }

@keyframes beam-run {
    from { transform: translateX(-260px); }
    to { transform: translateX(110vw); }
}

/* Floating node dots */
.hero-node {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 14px 2px rgba(255, 92, 26, 0.45);
    animation: node-pulse 3.4s ease-in-out infinite;
}

.hero-node-1 { top: 26%; left: 14%; }
.hero-node-2 { top: 58%; right: 18%; animation-delay: 1.2s; }
.hero-node-3 { top: 38%; right: 32%; animation-delay: 2.1s; width: 4px; height: 4px; }

@keyframes node-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

.hero-container {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 5.5rem clamp(1.25rem, 4vw, 3.5rem) 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    flex: 1;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(1.5rem, 4vh, 3rem);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease, transform 0.7s var(--ease-out-expo);
}

.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Spec-sheet meta row (editorial signature) ── */
.hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.hero-meta-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.hero-meta-coord {
    color: var(--color-text-muted);
}

.hero-meta-studio {
    margin-inline-start: auto;
    color: var(--color-text);
    font-weight: 500;
}

.hero-meta-studio::before {
    content: '◆';
    color: var(--color-primary);
    margin-inline-end: 0.55rem;
    font-size: 0.7em;
}

.hero-clock {
    color: var(--color-text);
    font-weight: 500;
}

.hero-clock time {
    font-variant-numeric: tabular-nums;
    color: var(--color-primary-deep);
}

.hero-meta-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16A34A;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
    animation: meta-ping 2.6s ease-out infinite;
}

@keyframes meta-ping {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
    70%, 100% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
}

.hero-lead {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.hero-title {
    font-size: clamp(2rem, 6.2vw, 5.25rem);
    line-height: 1.0;
    letter-spacing: -0.02em;
    margin-bottom: 0;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
}

.hero-title-line {
    display: block;
    overflow: visible;
}

/* Outlined accent line in the headline */
.hero-title .hero-title-accent {
    color: var(--color-primary);
    text-shadow: 0 0 50px rgba(255, 92, 26, 0.25);
}

.hero-title .hero-title-ghost {
    -webkit-text-stroke: 2px rgba(20, 22, 27, 0.8);
    color: transparent;
}

.hero-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
}

.hero-description {
    max-width: 540px;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    color: var(--color-text-secondary);
    line-height: 1.65;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Stats strip */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--color-border);
    padding: 0.85rem 0 0.5rem;
    gap: 1.25rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2vw, 1.95rem);
    font-weight: 700;
    color: var(--color-text);
}

.hero-stat-value em {
    font-style: normal;
    color: var(--color-primary);
}

.hero-stat-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    right: clamp(1.25rem, 4vw, 3.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    z-index: 5;
}

[dir="rtl"] .hero-scroll-indicator {
    right: auto;
    left: clamp(1.25rem, 4vw, 3.5rem);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: rgba(20, 22, 27, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--color-primary);
    animation: scroll-drop 2s var(--ease-in-out) infinite;
}

@keyframes scroll-drop {
    to { top: 110%; }
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    writing-mode: vertical-rl;
}

/* Arabic needs looser leading — tight 0.98 clips ascenders/marks */
[dir="rtl"] .hero-title {
    line-height: 1.22;
}

/* Split-text choreography (chars injected by motion.js) */
.hero-title-line {
    overflow: hidden;
    padding-bottom: 0.06em;
}

[dir="rtl"] .hero-title-line {
    padding-bottom: 0.12em;
}

/* word wrapper keeps multi-letter words from breaking across lines */
.hero-title .word-wrap {
    display: inline-block;
    white-space: nowrap;
}

.hero-title .char,
.hero-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(115%) rotate(4deg);
    animation: char-rise 0.85s var(--ease-out-expo) forwards;
    animation-delay: calc(var(--ci, 0) * 0.026s + var(--ld, 0) * 0.14s);
    will-change: transform, opacity;
}

@keyframes char-rise {
    to {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}

@media (max-width: 768px) {
    .hero-container {
        padding-top: 5rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 1.25rem;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .hero-bottom {
        margin-bottom: 1.5rem;
    }
}

/* ============================================
   PORTFOLIO — sticky stage + macOS dock
   ============================================ */
.portfolio {
    background: var(--color-bg);
    background-image: var(--grid-light);
    background-size: 64px 64px;
}

@media (min-width: 1025px) {
    .portfolio {
        height: 220vh; /* scroll runway for panel switching (3 projects) */
    }

    .portfolio-sticky {
        position: sticky;
        top: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }
}

@media (max-width: 1024px) {
    .portfolio-sticky {
        padding: clamp(4.5rem, 9vw, 8.5rem) 0;
    }
}

.portfolio-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: clamp(1.5rem, 3vh, 3rem);
}

.portfolio-title {
    margin: 0;
}

/* Stage = display + dock */
.portfolio-stage {
    display: grid;
    grid-template-columns: 1fr 116px;
    gap: 1.5rem;
    align-items: stretch;
}

.portfolio-display {
    position: relative;
    min-height: 560px;
}

.portfolio-panel {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 2.5rem;
    align-items: center;
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

@media (min-width: 1025px) {
    .portfolio-panel {
        position: absolute;
        inset: 0;
        opacity: 0;
        pointer-events: none;
    }

    .portfolio-panel.active {
        opacity: 1;
        pointer-events: all;
    }
}

@media (max-width: 1024px) {
    .portfolio-panel {
        display: none;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.25rem;
    }

    .portfolio-panel.active {
        display: grid;
        /* neutralise inline transforms set by the dock controller */
        opacity: 1 !important;
        transform: none !important;
    }
}

.panel-media {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 100%;
    min-height: 300px;
    max-height: 560px;
    background: var(--color-bg-dark);
    position: relative;
}

.panel-media img,
.panel-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.5rem 0.5rem 0.5rem 0;
}

.panel-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary-deep);
    font-weight: 600;
}

.panel-title {
    font-size: clamp(1.5rem, 2.6vw, 2.4rem);
    margin: 0;
}

.panel-desc {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.panel-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.panel-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    padding: 0.4rem 0.85rem;
}

.panel-feature i {
    color: var(--color-primary);
    font-size: 0.72rem;
}

.panel-cta {
    margin-top: 0.5rem;
}

/* Dock */
.portfolio-dock {
    display: flex;
    align-items: center;
}

.dock-inner {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: rgba(20, 22, 27, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(244, 241, 234, 0.12);
    border-radius: 22px;
    padding: 0.8rem;
    width: 100%;
}

.dock-item {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 16px;
    transform: scale(var(--dock-scale, 1)) translateX(calc(var(--dock-lift, 0) * -1px));
    transition: transform 0.15s ease-out;
    transform-origin: right center;
}

[dir="rtl"] .dock-item {
    transform-origin: left center;
}

.dock-thumb {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.25s;
    background: var(--color-bg-dark-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.3rem;
}

.dock-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dock-item.active .dock-thumb {
    border-color: var(--color-primary);
}

.dock-item.active::after {
    content: '';
    position: absolute;
    right: -9px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-primary);
}

.dock-label {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.dock-item:hover .dock-label {
    opacity: 1;
}

@media (max-width: 1024px) {
    .portfolio-stage {
        grid-template-columns: 1fr;
    }

    .portfolio-display {
        min-height: 0;
        order: 2;
    }

    .portfolio-dock {
        order: 1;
        overflow-x: auto;
        scrollbar-width: none;
        margin: 0 -0.25rem 1rem;
        padding: 0.25rem;
    }

    .portfolio-dock::-webkit-scrollbar {
        display: none;
    }

    .dock-inner {
        flex-direction: row;
        width: max-content;
    }

    .dock-item {
        width: 64px;
        flex-shrink: 0;
        transform: none !important;
    }

    .dock-label {
        display: none;
    }

    .dock-item.active::after {
        right: 50%;
        top: auto;
        bottom: -7px;
        transform: translateX(50%);
    }
}

/* ============================================
   SERVICES — bento grid
   ============================================ */
.services {
    background: var(--color-bg-dark);
    background-image: var(--grid-dark);
    background-size: 64px 64px;
    color: var(--color-text-light);
    padding: clamp(4.5rem, 9vw, 8.5rem) 0;
}

.services-header {
    max-width: 720px;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.services-header h2 {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.services-header p {
    color: rgba(244, 241, 234, 0.65);
    font-size: 1.1rem;
}

/* Uniform, orderly 3-column grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}

/* Flip-to-orange cards */
.service-card {
    position: relative;
    background: var(--color-surface-dark);
    border: 1.5px solid var(--color-border-dark);
    border-radius: var(--radius-md);
    padding: 2rem 1.9rem 1.9rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    min-height: 270px;
    overflow: hidden;
    transition: background 0.45s var(--ease-out-expo), border-color 0.45s, transform 0.45s var(--ease-out-expo);
}

.service-card:hover,
.service-card:focus-within {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-6px);
}

/* Giant ghost number that swings in on hover */
.service-number {
    position: absolute;
    top: 1.5rem;
    right: 1.6rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: rgba(244, 241, 234, 0.35);
    line-height: 1;
    transition: all 0.5s var(--ease-out-expo);
    pointer-events: none;
}

[dir="rtl"] .service-number {
    right: auto;
    left: 1.6rem;
}

.service-card:hover .service-number,
.service-card:focus-within .service-number {
    top: auto;
    bottom: -2.2rem;
    right: 0.4rem;
    font-size: 8rem;
    font-weight: 700;
    color: rgba(20, 22, 27, 0.14);
}

[dir="rtl"] .service-card:hover .service-number,
[dir="rtl"] .service-card:focus-within .service-number {
    right: auto;
    left: 0.4rem;
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 92, 26, 0.12);
    border: 1px solid rgba(255, 92, 26, 0.3);
    color: var(--color-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: background 0.45s, border-color 0.45s, color 0.45s;
}

.service-card:hover .service-icon,
.service-card:focus-within .service-icon {
    background: rgba(20, 22, 27, 0.16);
    border-color: rgba(20, 22, 27, 0.28);
    color: #14161B;
}

.service-title {
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    color: var(--color-text-light);
    margin: 0;
    transition: color 0.45s;
}

.service-card:hover .service-title,
.service-card:focus-within .service-title {
    color: #14161B;
}

.service-desc {
    color: rgba(244, 241, 234, 0.62);
    font-size: 0.96rem;
    line-height: 1.65;
    flex: 1;
    transition: color 0.45s;
}

.service-card:hover .service-desc,
.service-card:focus-within .service-desc {
    color: rgba(20, 22, 27, 0.82);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-primary-soft);
    margin-top: auto;
    position: relative;
    z-index: 1;
    transition: gap 0.25s, color 0.45s;
}

.service-card:hover .service-link,
.service-card:focus-within .service-link {
    color: #14161B;
    gap: 0.85rem;
}

.service-link i {
    font-size: 0.72rem;
}

[dir="rtl"] .service-link i {
    transform: scaleX(-1);
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 0;
    }
}

/* ============================================
   SHOWCASE — pinned "Blueprint → Built" scroll scrub
   ============================================ */
.showcase {
    position: relative;
    background: var(--color-bg-dark);
    background-image:
        radial-gradient(900px 600px at 80% -10%, rgba(255, 92, 26, 0.16), transparent 60%),
        var(--grid-dark);
    background-size: auto, 64px 64px;
    color: var(--color-text-light);
}

.showcase-sticky {
    padding: clamp(3rem, 7vw, 6rem) 0;
}

@media (min-width: 901px) {
    .showcase { height: 300vh; }
    .showcase-sticky {
        position: sticky;
        top: 0;
        height: 100vh;
        display: flex;
        align-items: center;
        overflow: hidden;
    }
}

.showcase-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.showcase-copy h2 {
    color: var(--color-text-light);
    margin: 0.8rem 0 1.6rem;
}

.showcase-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin: 0 0 1.6rem;
    padding: 0;
}

.showcase-step {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    color: rgba(244, 241, 234, 0.4);
    transition: color 0.4s, transform 0.4s var(--ease-out-expo);
}

.showcase-step-no {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(244, 241, 234, 0.3);
    transition: color 0.4s;
}

.showcase-step.is-active {
    color: var(--color-text-light);
    transform: translateX(6px);
}

.showcase-step.is-active .showcase-step-no { color: var(--color-primary); }

[dir="rtl"] .showcase-step.is-active { transform: translateX(-6px); }

.showcase-progress {
    height: 3px;
    max-width: 320px;
    background: rgba(244, 241, 234, 0.12);
    border-radius: 100px;
    overflow: hidden;
}

.showcase-progress-fill {
    display: block;
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
}

.showcase-stage { position: relative; }

.showcase-glow {
    position: absolute;
    inset: -12% -6% auto -6%;
    height: 70%;
    background: radial-gradient(closest-side, rgba(255, 92, 26, 0.22), transparent);
    filter: blur(44px);
    z-index: 1;
}

.showcase-frame {
    position: relative;
    z-index: 2;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--color-border-dark);
    background: #0E1117;
    box-shadow: var(--shadow-pop);
}

.showcase-frame-bar {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 10px 14px;
    background: #141821;
    border-bottom: 1px solid var(--color-border-dark);
}

.showcase-frame-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(244, 241, 234, 0.25);
}

.showcase-frame-bar i:first-child { background: var(--color-primary); }

.showcase-screen {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0B0D12;
}

.showcase-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

img.showcase-shot {
    object-fit: cover;
    opacity: 0;
    transform: scale(1.06);
    will-change: opacity, transform;
}

/* Blueprint wireframe */
.showcase-blueprint {
    opacity: 1;
    background-image: var(--grid-dark);
    background-size: 28px 28px;
}

.bp-line,
.bp-block {
    position: absolute;
    border: 1.5px solid rgba(255, 122, 61, 0.6);
    border-radius: 4px;
    box-shadow: inset 0 0 18px rgba(255, 92, 26, 0.15);
}

.bp-line { height: 10px; background: rgba(255, 122, 61, 0.12); }
.bp-logo { top: 7%; left: 5%; width: 16%; }
.bp-nav  { top: 7%; right: 5%; width: 34%; }
.bp-hero { top: 22%; left: 5%; width: 56%; height: 30%; }
.bp-h1   { top: 60%; left: 5%; width: 46%; height: 16px; }
.bp-h2   { top: 70%; left: 5%; width: 32%; }
.bp-card { top: 80%; height: 13%; width: 27%; }
.bp-card-1 { left: 5%; }
.bp-card-2 { left: 36.5%; }
.bp-card-3 { left: 68%; }

/* Mobile / no-pin fallback: static, show the finished shot only */
@media (max-width: 900px) {
    .showcase { height: auto; }
    .showcase-sticky { position: static; height: auto; }
    .showcase-grid { grid-template-columns: 1fr; }
    img.showcase-shot[data-layer="2"] { opacity: 1; transform: none; }
    .showcase-blueprint,
    img.showcase-shot[data-layer="1"] { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    img.showcase-shot[data-layer="2"] { opacity: 1 !important; transform: none !important; }
    .showcase-blueprint,
    img.showcase-shot[data-layer="1"] { opacity: 0 !important; }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: clamp(4.5rem, 9vw, 8.5rem) 0;
    background: var(--color-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
}

.about-title {
    margin-bottom: 1.5rem;
}

.about-text {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 2rem 0;
}

.about-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.about-feature h4 {
    font-family: var(--font-body);
    font-size: 1.02rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    letter-spacing: 0;
}

.about-feature p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

.about-feature-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255, 92, 26, 0.1);
    border: 1px solid rgba(255, 92, 26, 0.3);
    color: var(--color-primary-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.about-visual {
    position: relative;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-pop);
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1.5px solid rgba(20, 22, 27, 0.12);
    border-radius: var(--radius-lg);
    z-index: 2;
    pointer-events: none;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Orange offset frame */
.about-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    transform: translate(16px, 16px);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-lg);
    z-index: -1;
}

[dir="rtl"] .about-visual::before {
    transform: translate(-16px, 16px);
}

.about-badge {
    position: absolute;
    bottom: -22px;
    left: -22px;
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-pop);
    border: 1px solid var(--color-border-dark);
}

[dir="rtl"] .about-badge {
    left: auto;
    right: -22px;
}

.about-badge-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.about-badge-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(244, 241, 234, 0.6);
    margin-top: 0.4rem;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-visual {
        order: -1;
        max-width: 520px;
    }

    .about-badge {
        left: auto;
        right: 12px;
        bottom: -18px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PROCESS — numbered blueprint steps
   ============================================ */
.process {
    padding: clamp(4.5rem, 9vw, 8.5rem) 0;
    background: var(--color-bg-alt);
    background-image: var(--grid-light);
    background-size: 64px 64px;
}

.process-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(2.5rem, 5vw, 4.5rem);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
    counter-reset: step;
}

.process-step {
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s, border-color 0.35s;
}

.process-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
    border-color: rgba(255, 92, 26, 0.45);
}

.process-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.process-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 13, 18, 0.25), transparent 50%);
}

.process-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.process-step:hover .process-image img {
    transform: scale(1.06);
}

.process-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.process-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary-deep);
    letter-spacing: 0.18em;
}

.process-number::after {
    content: ' /04';
    color: var(--color-text-muted);
    font-weight: 400;
}

.process-title {
    font-size: 1.2rem;
    margin: 0;
}

.process-text {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .process-steps {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FAQ
   ============================================ */
.faq {
    padding: clamp(4.5rem, 9vw, 8.5rem) 0;
    background: var(--color-bg);
}

.faq-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
}

.faq-intro {
    position: sticky;
    top: 110px;
}

.faq-intro h2 {
    margin-bottom: 1.25rem;
}

.faq-intro p {
    margin-bottom: 1.75rem;
    font-size: 1.05rem;
}

@media (max-width: 900px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-intro {
        position: static;
    }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    padding: clamp(4.5rem, 9vw, 8.5rem) 0;
    background: var(--color-bg-alt);
}

.testimonials-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

/* Endless auto-scrolling marquee of testimonials */
.testimonials-marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.testimonials-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    padding: 1.5rem 0.6rem;
    /* JS drives the scroll + drag (animations.js); CSS animation is the
       no-JS fallback only */
    will-change: transform;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.testimonials-track.dragging {
    cursor: grabbing;
}

.testimonials-track .testimonial-card {
    pointer-events: none; /* let drags pass through; re-enabled when idle */
}

.testimonials-track.idle .testimonial-card {
    pointer-events: auto;
}

/* No-JS fallback: pure CSS marquee */
.no-js-marquee {
    animation: testimonials-scroll 70s linear infinite;
}

@keyframes testimonials-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.testimonial-card {
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.9rem;
    position: relative;
    flex: 0 0 auto;
    width: clamp(280px, 80vw, 360px);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s;
}

.testimonial-card .testimonial-text {
    flex: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-pop);
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: 0.4rem;
    right: 1.4rem;
    font-family: var(--font-display);
    font-size: 4.5rem;
    line-height: 1;
    color: rgba(255, 92, 26, 0.18);
}

.testimonial-stars {
    color: var(--color-primary);
    font-size: 0.8rem;
    display: flex;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-bg-dark);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.author-name {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
}

.author-role {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

@media (max-width: 900px) {
    .testimonials-track {
        animation-duration: 48s;
    }
}

/* ============================================
   CTA BAND
   ============================================ */
.cta {
    background: var(--color-bg-dark);
    background-image:
        radial-gradient(900px 480px at 50% 120%, rgba(255, 92, 26, 0.25), transparent 65%),
        var(--grid-dark);
    background-size: auto, 64px 64px;
    color: var(--color-text-light);
    padding: clamp(5rem, 10vw, 9rem) 0;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 880px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cta-title {
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    text-transform: uppercase;
    color: var(--color-text-light);
    margin: 0;
}

.cta-title .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-desc {
    color: rgba(244, 241, 234, 0.7);
    font-size: 1.12rem;
    max-width: 560px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: clamp(4.5rem, 9vw, 8.5rem) 0;
    background: var(--color-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.contact-info {
    background: var(--color-bg-dark);
    background-image: var(--grid-dark);
    background-size: 48px 48px;
    color: var(--color-text-light);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 3.5vw, 3rem);
    position: sticky;
    top: 110px;
}

.contact-title {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.contact-text {
    color: rgba(244, 241, 234, 0.68);
    margin-bottom: 2.25rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255, 92, 26, 0.12);
    border: 1px solid rgba(255, 92, 26, 0.35);
    color: var(--color-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.contact-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(244, 241, 234, 0.5);
    margin-bottom: 0.3rem;
}

.contact-value,
.contact-value a {
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.25s;
}

.contact-value a:hover {
    color: var(--color-primary-soft);
}

/* Phone row: numbers left, app buttons right */
.contact-phone-row {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-apps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.contact-app-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.42rem 0.9rem;
    border-radius: 100px;
    border: 1px solid var(--color-border-dark);
    color: rgba(244, 241, 234, 0.85);
    transition: all 0.25s;
}

.contact-app-link:hover {
    transform: translateY(-2px);
}

.contact-app-link.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: #0B0D12;
}

.contact-app-link.viber:hover {
    background: #7360F2;
    border-color: #7360F2;
    color: #fff;
}

.contact-form-wrap {
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: var(--shadow-card);
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        position: static;
    }
}

/* ============================================
   SECONDARY PAGES (pricing / privacy)
   ============================================ */
.pricing-hero {
    background: var(--color-bg-dark) !important;
    background-image: var(--grid-dark) !important;
    background-size: 64px 64px !important;
}

.privacy-page {
    min-height: 100vh;
    padding-top: 160px !important;
    padding-bottom: 80px !important;
}

.privacy-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

/* Old pricing-section classes kept for the standalone pricing pages */
.pricing {
    padding: clamp(4.5rem, 9vw, 8.5rem) 0;
}

.pricing-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}

.pricing-grid {
    display: grid;
    gap: 1.25rem;
}

.pricing-card {
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.pricing-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.pricing-note i {
    color: var(--color-primary);
}
