/**
 * Creative homepage — digital craft atmosphere + parallax
 * Scoped to front page via body.home / .home-hero
 */

body.home {
    --home-ink: #0f172a;
    --home-mist: #e8eef7;
    --home-accent: var(--accent-color);
    --home-teal: #0d9488;
    --home-sky: #0284c7;
}

html[data-theme="dark"] body.home,
body.home[data-theme="dark"] {
    --home-ink: #f8fafc;
    --home-mist: #0b1220;
}

/* ---------- Hero ---------- */
.home-hero {
    position: relative;
    min-height: min(92vh, 820px);
    display: flex;
    align-items: center;
    padding: 5.5rem 0 4rem;
    overflow: hidden;
    background:
        linear-gradient(165deg, rgba(232, 238, 247, 0.95) 0%, rgba(245, 245, 245, 0.4) 45%, rgba(13, 148, 136, 0.06) 100%);
}

html[data-theme="dark"] .home-hero,
[data-theme="dark"] .home-hero {
    background:
        linear-gradient(165deg, #071018 0%, #0a0a0a 50%, rgba(2, 132, 199, 0.12) 100%);
}

.home-hero::before {
    display: none;
}

.hero-parallax {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.parallax-layer {
    position: absolute;
    will-change: transform;
}

.hero-grid-layer {
    inset: -20%;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

html[data-theme="dark"] .hero-grid-layer,
[data-theme="dark"] .hero-grid-layer {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.hero-orb {
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.45;
}

.hero-orb--a {
    top: -8%;
    inset-inline-end: -6%;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.45), transparent 68%);
}

.hero-orb--b {
    bottom: -12%;
    inset-inline-start: -8%;
    width: 22rem;
    height: 22rem;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.4), transparent 70%);
}

.hero-wire {
    top: 18%;
    inset-inline-start: 8%;
    width: 12rem;
    height: 12rem;
    border: 1px dashed rgba(2, 132, 199, 0.28);
    border-radius: 24px;
    transform: rotate(12deg);
}

.hero-stage {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem;
    align-items: center;
    width: 100%;
}

.home-hero .hero-copy {
    max-width: 34rem;
}

.hero-brand {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    background: linear-gradient(120deg, var(--text-primary) 20%, var(--home-sky) 55%, var(--home-teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroBrandIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-hero .hero-title {
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    font-weight: 700;
    line-height: 1.45;
    color: var(--text-primary);
    animation: heroRise 0.85s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-hero .hero-description {
    margin: 0 0 1.75rem;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-secondary);
    max-width: 32rem;
    animation: heroRise 0.85s 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-hero .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    animation: heroRise 0.85s 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroBrandIn {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

@keyframes heroRise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}

/* Device composition */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin-inline-start: auto;
    margin-inline-end: 0;
    padding: 1.25rem 0.5rem 2.75rem 3.75rem;
    box-sizing: border-box;
    isolation: isolate;
    animation: heroRise 1s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

[dir="ltr"] .hero-visual,
body.ltr .hero-visual {
    margin-inline-start: auto;
    margin-inline-end: 0;
    padding: 1.25rem 3.75rem 2.75rem 0.5rem;
}

.device-browser {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    transform: perspective(900px) rotateY(-6deg) rotateX(4deg);
    transition: transform 0.5s ease;
    z-index: 1;
}

html[data-theme="dark"] .device-browser,
[data-theme="dark"] .device-browser {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

@media (min-width: 1025px) {
    .home-hero:hover .device-browser {
        transform: perspective(900px) rotateY(-2deg) rotateX(2deg);
    }
}

.device-browser-chrome {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 0.85rem;
    background: linear-gradient(180deg, #f1f5f9, #e2e8f0);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] .device-browser-chrome,
[data-theme="dark"] .device-browser-chrome {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.08);
}

.device-browser-chrome > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
}

.device-browser-chrome > span:nth-child(1) { background: #f87171; }
.device-browser-chrome > span:nth-child(2) { background: #fbbf24; }
.device-browser-chrome > span:nth-child(3) { background: #34d399; }

.device-browser-url {
    flex: 1;
    min-width: 0;
    margin-inline-start: 0.5rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    color: #64748b;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    direction: ltr;
    text-align: left;
}

.device-browser-screen {
    padding: 1rem 1.1rem 1.25rem;
    background:
        linear-gradient(160deg, rgba(2, 132, 199, 0.08), transparent 40%),
        linear-gradient(180deg, #f8fafc, #eef2ff);
    min-height: 220px;
}

html[data-theme="dark"] .device-browser-screen,
[data-theme="dark"] .device-browser-screen {
    background:
        linear-gradient(160deg, rgba(2, 132, 199, 0.15), transparent 40%),
        linear-gradient(180deg, #0f172a, #111827);
}

.ui-nav {
    font-size: 0.72rem;
    color: #64748b;
    margin-bottom: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ui-hero-block {
    margin-bottom: 1rem;
}

.ui-line {
    height: 8px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.12);
    margin-bottom: 0.45rem;
    width: 78%;
}

.ui-line--lg {
    height: 14px;
    width: 62%;
    background: linear-gradient(90deg, var(--home-sky), var(--home-teal));
    opacity: 0.85;
}

.ui-line--sm { width: 48%; }

html[data-theme="dark"] .ui-line,
[data-theme="dark"] .ui-line {
    background: rgba(255, 255, 255, 0.12);
}

.ui-cta {
    width: 5.5rem;
    height: 1.5rem;
    margin-top: 0.75rem;
    border-radius: 8px;
    background: var(--accent-color);
}

.ui-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
}

.ui-card {
    height: 4.25rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] .ui-card,
[data-theme="dark"] .ui-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.device-phone {
    position: absolute;
    bottom: 0.35rem;
    inset-inline-start: 0.15rem;
    width: 118px;
    height: 232px;
    padding: 9px;
    border-radius: 24px;
    background: #0f172a;
    border: 2px solid #1e293b;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.28);
    z-index: 2;
    box-sizing: border-box;
    animation: phoneFloat 5.5s ease-in-out infinite;
}

.device-phone-notch {
    width: 42%;
    height: 8px;
    margin: 0 auto 8px;
    border-radius: 999px;
    background: #334155;
}

.device-phone-screen {
    height: calc(100% - 16px);
    border-radius: 16px;
    padding: 0.55rem;
    background: linear-gradient(165deg, #ecfeff, #e0f2fe 50%, #f0fdfa);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    overflow: hidden;
}

html[data-theme="dark"] .device-phone-screen,
[data-theme="dark"] .device-phone-screen {
    background: linear-gradient(165deg, #0f172a, #164e63);
}

.ui-app-bar {
    height: 6px;
    width: 40%;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.15);
    align-self: center;
    flex-shrink: 0;
}

.ui-app-title {
    font-size: 0.55rem;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    line-height: 1.3;
    flex-shrink: 0;
}

html[data-theme="dark"] .ui-app-title,
[data-theme="dark"] .ui-app-title {
    color: #e2e8f0;
}

.ui-app-block {
    flex: 1;
    min-height: 0;
    border-radius: 10px;
    background: rgba(2, 132, 199, 0.18);
}

.ui-app-block--sm {
    flex: 0.45;
    background: rgba(13, 148, 136, 0.22);
}

.ui-app-dock {
    display: flex;
    justify-content: space-between;
    padding: 0.15rem 0.1rem 0;
    flex-shrink: 0;
}

.ui-app-dock i {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.18);
    display: block;
}

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

.hero-float-chip {
    position: absolute;
    z-index: 3;
    padding: 0.45rem 0.7rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #0f172a;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
    animation: chipPulse 4s ease-in-out infinite;
    pointer-events: none;
}

html[data-theme="dark"] .hero-float-chip,
[data-theme="dark"] .hero-float-chip {
    background: rgba(17, 24, 39, 0.85);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.1);
}

.hero-float-chip--code {
    top: 6%;
    inset-inline-start: 42%;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: var(--home-sky);
}

.hero-float-chip--ux {
    top: 38%;
    inset-inline-end: 0;
    animation-delay: 0.6s;
}

.hero-float-chip--seo {
    bottom: 22%;
    inset-inline-end: 8%;
    animation-delay: 1.2s;
    color: var(--home-teal);
}

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

/* ---------- Craft marquee ---------- */
.craft-marquee {
    overflow: hidden;
    border-block: 1px solid var(--border-color);
    background: linear-gradient(90deg, rgba(2, 132, 199, 0.06), rgba(13, 148, 136, 0.06));
    padding: 0.85rem 0;
}

.craft-marquee-track {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: max-content;
    animation: craftScroll 32s linear infinite;
}

.craft-item {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    white-space: nowrap;
}

.craft-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0.55;
    flex-shrink: 0;
}

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

[dir="rtl"] .craft-marquee-track,
body.rtl .craft-marquee-track {
    animation-name: craftScrollRtl;
}

@keyframes craftScrollRtl {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

/* ---------- Pillars ---------- */
.pillars-section {
    padding-top: 3.5rem;
    padding-bottom: 1rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.pillar-card {
    padding: 1.75rem 1.5rem;
    border-radius: 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--backdrop-blur);
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
    border-color: rgba(2, 132, 199, 0.45);
}

.pillar-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.15), rgba(13, 148, 136, 0.15));
    color: var(--home-sky);
    font-size: 1.25rem;
}

.pillar-title {
    margin: 0 0 0.4rem;
    font-size: 1.2rem;
}

.pillar-desc {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ---------- Services polish ---------- */
body.home .services-section {
    position: relative;
}

body.home .services-section .service-card {
    position: relative;
    overflow: hidden;
}

body.home .services-section .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--home-sky), var(--home-teal));
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.home .services-section .service-card:hover::before {
    opacity: 1;
}

body.home .service-icon {
    width: 3.25rem;
    height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(2, 132, 199, 0.12), rgba(13, 148, 136, 0.1));
}

/* ---------- Stats parallax ---------- */
.stats-section--parallax {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0;
}

.stats-parallax-bg {
    inset: -30% 0;
    background:
        radial-gradient(ellipse 50% 40% at 20% 50%, rgba(2, 132, 199, 0.12), transparent 60%),
        radial-gradient(ellipse 45% 40% at 80% 40%, rgba(13, 148, 136, 0.1), transparent 60%);
    z-index: 0;
}

.stats-section--parallax .container {
    position: relative;
    z-index: 1;
}

/* ---------- Process ---------- */
body.home .process-section .process-step {
    position: relative;
}

body.home .process-number {
    background: linear-gradient(135deg, var(--home-sky), var(--home-teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* ---------- CTA creative ---------- */
.cta-section--creative {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0;
    background:
        linear-gradient(135deg, rgba(2, 132, 199, 0.1), rgba(13, 148, 136, 0.08));
}

.cta-parallax-a,
.cta-parallax-b {
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.5;
    pointer-events: none;
}

.cta-parallax-a {
    top: -30%;
    inset-inline-end: -10%;
    background: rgba(2, 132, 199, 0.35);
}

.cta-parallax-b {
    bottom: -35%;
    inset-inline-start: -8%;
    background: rgba(13, 148, 136, 0.3);
}

.cta-section--creative .container {
    position: relative;
    z-index: 1;
}

.cta-section--creative .cta-content {
    max-width: 40rem;
    margin: 0 auto;
    padding: 0.5rem;
}

.cta-section--creative .cta-title {
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    margin-bottom: 0.85rem;
}

.cta-section--creative .cta-description {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    line-height: 1.8;
}

.cta-section--creative .cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
}

/* ---------- Reveal ---------- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

.pillars-grid .reveal-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.pillars-grid .reveal-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.services-grid .reveal-on-scroll:nth-child(2) { transition-delay: 0.06s; }
.services-grid .reveal-on-scroll:nth-child(3) { transition-delay: 0.12s; }
.services-grid .reveal-on-scroll:nth-child(4) { transition-delay: 0.18s; }
.services-grid .reveal-on-scroll:nth-child(5) { transition-delay: 0.24s; }
.services-grid .reveal-on-scroll:nth-child(6) { transition-delay: 0.3s; }
.stats-grid .reveal-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.stats-grid .reveal-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.stats-grid .reveal-on-scroll:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    .craft-marquee-track,
    .device-phone,
    .hero-float-chip,
    .hero-brand,
    .home-hero .hero-title,
    .home-hero .hero-description,
    .home-hero .hero-buttons,
    .hero-visual {
        animation: none !important;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .parallax-layer,
    .hero-visual,
    .parallax-float {
        transform: none !important;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .home-hero {
        min-height: auto;
        padding: 4.5rem 0 2.75rem;
        overflow: hidden;
    }

    .hero-stage {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .home-hero .hero-copy {
        max-width: none;
        text-align: center;
    }

    .home-hero .hero-description {
        margin-inline: auto;
    }

    .home-hero .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        max-width: min(420px, 100%);
        width: 100%;
        margin-inline: auto;
        padding: 1rem 0.35rem 2.25rem 3rem;
    }

    [dir="ltr"] .hero-visual,
    body.ltr .hero-visual {
        padding: 1rem 3rem 2.25rem 0.35rem;
    }

    .device-browser {
        transform: none !important;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    }

    .device-browser-screen {
        min-height: 190px;
    }

    .device-phone {
        width: 96px;
        height: 188px;
        bottom: 0.5rem;
        inset-inline-start: 0.25rem;
        animation: none;
    }

    .hero-float-chip--code {
        inset-inline-start: 48%;
        top: 4%;
    }

    .hero-float-chip--ux {
        top: 34%;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .home-hero {
        padding: 3.5rem 0 2rem;
    }

    .hero-visual {
        max-width: 100%;
        padding: 0.5rem 0 1.75rem 2.35rem;
    }

    [dir="ltr"] .hero-visual,
    body.ltr .hero-visual {
        padding: 0.5rem 2.35rem 1.75rem 0;
    }

    .device-browser-screen {
        min-height: 160px;
        padding: 0.75rem;
    }

    .ui-card {
        height: 3.25rem;
    }

    .device-phone {
        width: 78px;
        height: 152px;
        padding: 6px;
        border-radius: 18px;
        bottom: 0.35rem;
        inset-inline-start: 0;
    }

    .device-phone-notch {
        height: 5px;
        margin-bottom: 5px;
    }

    .device-phone-screen {
        border-radius: 12px;
        padding: 0.4rem;
        gap: 0.3rem;
    }

    .ui-app-title {
        font-size: 0.48rem;
    }

    .ui-app-dock i {
        width: 9px;
        height: 9px;
    }

    .hero-float-chip {
        display: none;
    }

    .hero-orb,
    .hero-wire {
        display: none;
    }
}

@media (max-width: 400px) {
    .hero-visual {
        padding: 0.35rem 0 1.35rem 0;
    }

    [dir="ltr"] .hero-visual,
    body.ltr .hero-visual {
        padding: 0.35rem 0 1.35rem 0;
    }

    .device-phone {
        display: none;
    }

    .device-browser-screen {
        min-height: 140px;
    }
}

/* =========================================================
   Shared home sections — hero-aligned creative layouts
   ========================================================= */
body.home .home-section {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0;
}

body.home .home-section > .container {
    position: relative;
    z-index: 1;
}

.home-section-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.home-grid-layer {
    inset: -15%;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 15%, transparent 78%);
    opacity: 0.9;
}

html[data-theme="dark"] .home-grid-layer,
[data-theme="dark"] .home-grid-layer {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
}

.home-orb {
    position: absolute;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.4;
}

.home-orb--a,
.home-orb--sky {
    top: -20%;
    inset-inline-end: -8%;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.4), transparent 68%);
}

.home-orb--b,
.home-orb--teal {
    bottom: -25%;
    inset-inline-start: -10%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.35), transparent 70%);
}

.home-section-head {
    max-width: 40rem;
    margin: 0 0 2.5rem;
}

.home-section-head--row {
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem 2rem;
}

.home-section-head-copy {
    max-width: 40rem;
}

body.home .home-section .eyebrow,
body.home .cta-section .eyebrow {
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--home-sky);
}

body.home .home-section-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.55rem, 3.2vw, 2.15rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

body.home .home-section .lead,
body.home .about-description {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.85;
}

body.home .home-section .section-title,
body.home .home-section .section-subtitle {
    display: none;
}

/* Services showcase — clean equal grid */
.home-section-head--center {
    max-width: 42rem;
    margin-inline: auto;
    margin-bottom: 2.75rem;
    text-align: center;
}

.home-section-head--center .lead {
    margin-inline: auto;
}

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

body.home .services-showcase .service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    margin: 0;
    padding: 1.5rem 1.35rem 1.4rem;
    min-height: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

body.home .services-showcase .service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(2, 132, 199, 0.4);
}

body.home .services-showcase .service-card::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--home-sky), var(--home-teal));
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.home .services-showcase .service-card:hover::before {
    opacity: 1;
}

.service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.75rem;
}

.service-index {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--home-sky);
    opacity: 0.75;
    font-variant-numeric: tabular-nums;
}

body.home .services-showcase .service-icon {
    width: 3rem;
    height: 3rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(2, 132, 199, 0.14), rgba(13, 148, 136, 0.1));
    color: var(--home-sky);
    font-size: 1.2rem;
    flex-shrink: 0;
}

body.home .services-showcase .service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

body.home .services-showcase .service-title {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.4;
    font-weight: 700;
}

body.home .services-showcase .service-description {
    margin: 0;
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.35rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    transition: gap 0.25s ease, color 0.25s ease;
}

.service-link:hover {
    gap: 0.7rem;
    color: var(--accent-hover);
}

.service-link i {
    font-size: 0.75rem;
}

/* Legacy bento rules neutralized if any markup remains */
.services-bento {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.services-bento .service-card,
.services-bento .service-card--feature {
    grid-column: auto;
    grid-row: auto;
}

/* Stats band */
.stats-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

body.home .stats-band .stat-card {
    padding: 1.75rem 1.25rem;
    text-align: center;
    border-radius: 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--backdrop-blur);
}

body.home .stats-band .stat-number {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: linear-gradient(120deg, var(--home-sky), var(--home-teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.4rem;
}

body.home .stats-band .stat-label {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* Process timeline */
.process-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    counter-reset: none;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 2.1rem;
    inset-inline: 8%;
    height: 2px;
    background: linear-gradient(90deg, rgba(2, 132, 199, 0.35), rgba(13, 148, 136, 0.35));
    z-index: 0;
}

body.home .process-timeline .process-step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1.5rem 1.1rem 1.35rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.home .process-timeline .process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    margin-bottom: 0.85rem;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--home-sky), var(--home-teal));
    -webkit-text-fill-color: #fff;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.25);
}

body.home .process-timeline .process-icon {
    margin-bottom: 0.65rem;
    color: var(--home-sky);
    font-size: 1.35rem;
}

body.home .process-timeline .process-title {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
}

body.home .process-timeline .process-description {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* About stage */
.about-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2rem;
    align-items: center;
}

.about-copy .home-section-title {
    margin-bottom: 1rem;
}

.about-copy .btn {
    margin-top: 1.5rem;
}

.about-panel {
    padding: 1.75rem 1.5rem;
}

.about-panel-title {
    margin: 0 0 1.15rem;
    font-size: 1.25rem;
}

.about-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(2, 132, 199, 0.06);
    border: 1px solid rgba(2, 132, 199, 0.1);
    color: var(--text-primary);
    line-height: 1.55;
}

.about-features i {
    color: var(--home-teal);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* FAQ stage (legacy split — overridden by modern FAQ below) */
.faq-stage {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 2.25rem;
    align-items: start;
}

.faq-intro {
    position: sticky;
    top: 6rem;
}

.faq-intro .btn {
    margin-top: 1.35rem;
}

/* Modern FAQ */
body.home .faq-section--modern {
    padding-top: 4.75rem;
    padding-bottom: 4.75rem;
}

.faq-modern {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

body.home .faq-section--modern .faq-item {
    margin: 0;
    padding: 0;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    backdrop-filter: var(--backdrop-blur);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

body.home .faq-section--modern .faq-item:hover {
    border-color: rgba(2, 132, 199, 0.28);
}

body.home .faq-section--modern .faq-item.active {
    border-color: rgba(2, 132, 199, 0.45);
    box-shadow: 0 14px 36px rgba(2, 132, 199, 0.1);
    background:
        linear-gradient(135deg, rgba(2, 132, 199, 0.08), rgba(13, 148, 136, 0.05)),
        var(--bg-glass);
}

body.home .faq-section--modern .faq-question {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.9rem 1rem;
    padding: 1.15rem 1.2rem;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: inherit;
    font: inherit;
    color: inherit;
    transition: background 0.25s ease;
}

body.home .faq-section--modern .faq-question:hover {
    background: transparent;
}

body.home .faq-section--modern .faq-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    height: 2.1rem;
    padding: 0 0.35rem;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--home-sky);
    background: rgba(2, 132, 199, 0.1);
    font-variant-numeric: tabular-nums;
}

body.home .faq-section--modern .faq-q-text {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text-primary);
}

body.home .faq-section--modern .faq-toggle {
    width: 2.15rem;
    height: 2.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--home-sky), var(--home-teal));
    color: #fff;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

body.home .faq-section--modern .faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

body.home .faq-section--modern .faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

body.home .faq-section--modern .faq-answer-inner {
    padding: 0 1.2rem 1.25rem 1.2rem;
    padding-inline-start: calc(2.1rem + 1rem + 1.2rem);
    color: var(--text-secondary);
    line-height: 1.85;
    font-size: 0.98rem;
}

body.home .faq-section--modern .faq-answer-inner p {
    margin: 0 0 0.75rem;
}

body.home .faq-section--modern .faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.faq-help {
    max-width: 820px;
    margin: 2rem auto 0;
    padding: 1.35rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    border-radius: 20px;
    border: 1px dashed rgba(2, 132, 199, 0.35);
    background: linear-gradient(120deg, rgba(2, 132, 199, 0.07), rgba(13, 148, 136, 0.07));
}

.faq-help-title {
    margin: 0 0 0.3rem;
    font-size: 1.15rem;
}

.faq-help-text {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

body.home .faq-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

body.home .faq-item {
    padding: 0;
    overflow: hidden;
}

body.home .faq-question {
    padding: 1.1rem 1.25rem;
}

body.home .faq-answer {
    padding: 0 1.25rem 1.15rem;
}

body.home .testimonials-section .testimonial-card {
    min-height: 220px;
}

body.home .cta-section--creative .eyebrow.cta-eyebrow,
body.home .cta-section--creative .eyebrow {
    color: var(--home-sky);
}

/* Portfolio / products section breathing room */
body.home .portfolio-section .portfolio-carousel-wrapper,
body.home .products-section .products-carousel-wrapper,
body.home .testimonials-section .testimonials-carousel-wrapper {
    margin-top: 0.5rem;
}

body.home .portfolio-section .home-section-head--row > .btn,
body.home .products-section .home-section-head--row > .btn {
    flex-shrink: 0;
}

/* Modern testimonials */
body.home .testimonials-section--modern {
    padding-top: 4.75rem;
    padding-bottom: 4.75rem;
    overflow: hidden;
}

body.home .testimonials-section--modern .testimonials-stage {
    overflow: hidden;
    margin-inline: -0.25rem;
    padding-inline: 0.25rem;
}

body.home .testimonials-section--modern .testimonials-carousel-wrapper {
    padding: 0;
    margin: 0.25rem 0 0;
}

body.home .testimonials-section--modern .testimonials-swiper {
    overflow: visible;
    padding: 0.35rem 0 0.75rem;
}

body.home .testimonials-section--modern .swiper-slide {
    height: auto;
    opacity: 0.42;
    transform: scale(0.94);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

body.home .testimonials-section--modern .swiper-slide-active,
body.home .testimonials-section--modern .swiper-slide.is-active-quote {
    opacity: 1;
    transform: scale(1);
}

body.home .testimonials-section--modern .testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 280px;
    height: 100%;
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    background:
        linear-gradient(160deg, rgba(2, 132, 199, 0.07), rgba(13, 148, 136, 0.04) 42%, transparent 70%),
        var(--bg-glass);
    backdrop-filter: var(--backdrop-blur);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

body.home .testimonials-section--modern .swiper-slide-active .testimonial-card {
    border-color: rgba(2, 132, 199, 0.35);
    box-shadow: 0 22px 50px rgba(2, 132, 199, 0.12);
}

body.home .testimonials-section--modern .testimonial-quote {
    position: absolute;
    top: 0.35rem;
    inset-inline-end: 1rem;
    font-size: 5.5rem;
    line-height: 1;
    font-weight: 800;
    color: rgba(2, 132, 199, 0.12);
    pointer-events: none;
    user-select: none;
}

body.home .testimonials-section--modern .testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin: 0;
    font-size: 0.85rem;
    color: #f59e0b;
}

body.home .testimonials-section--modern .testimonial-stars .is-empty {
    color: rgba(15, 23, 42, 0.18);
}

html[data-theme="dark"] body.home .testimonials-section--modern .testimonial-stars .is-empty,
[data-theme="dark"] body.home .testimonials-section--modern .testimonial-stars .is-empty {
    color: rgba(255, 255, 255, 0.2);
}

body.home .testimonials-section--modern .testimonial-text {
    margin: 0;
    flex: 1;
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text-primary);
    font-style: normal;
    font-weight: 500;
}

body.home .testimonials-section--modern .testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] body.home .testimonials-section--modern .testimonial-author,
[data-theme="dark"] body.home .testimonials-section--modern .testimonial-author {
    border-top-color: rgba(255, 255, 255, 0.08);
}

body.home .testimonials-section--modern .author-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--home-sky), var(--home-teal));
    color: #fff;
    flex-shrink: 0;
}

body.home .testimonials-section--modern .author-avatar img,
body.home .testimonials-section--modern .author-avatar .avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.home .testimonials-section--modern .author-avatar--initial {
    font-weight: 800;
    font-size: 1.1rem;
}

body.home .testimonials-section--modern .author-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

body.home .testimonials-section--modern .author-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

body.home .testimonials-section--modern .testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

body.home .testimonials-section--modern .testimonials-nav {
    position: static !important;
    left: auto !important;
    right: auto !important;
    inset: auto !important;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: none !important;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

body.home .testimonials-section--modern .testimonials-nav:after {
    display: none !important;
    content: none !important;
}

body.home .testimonials-section--modern .testimonials-nav:hover {
    border-color: rgba(2, 132, 199, 0.45);
    color: var(--home-sky);
    background: var(--bg-glass);
    transform: translateY(-2px) !important;
}

body.home .testimonials-section--modern .testimonials-pagination {
    position: static !important;
    width: auto !important;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

body.home .testimonials-section--modern .testimonials-pagination .swiper-pagination-bullet {
    width: 0.55rem;
    height: 0.55rem;
    margin: 0 !important;
    opacity: 1;
    background: rgba(15, 23, 42, 0.18);
    transition: width 0.3s ease, background 0.3s ease;
}

html[data-theme="dark"] body.home .testimonials-section--modern .testimonials-pagination .swiper-pagination-bullet,
[data-theme="dark"] body.home .testimonials-section--modern .testimonials-pagination .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.25);
}

body.home .testimonials-section--modern .testimonials-pagination .swiper-pagination-bullet-active {
    width: 1.5rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--home-sky), var(--home-teal));
}

body.home .testimonials-section--modern .swiper-button-next,
body.home .testimonials-section--modern .swiper-button-prev {
    display: none;
}

@media (max-width: 640px) {
    body.home .testimonials-section--modern .testimonial-card {
        min-height: 240px;
        padding: 1.35rem 1.15rem 1.2rem;
    }

    body.home .testimonials-section--modern .testimonial-text {
        font-size: 0.98rem;
    }

    body.home .testimonials-section--modern .testimonial-quote {
        font-size: 4rem;
    }
}

@media (max-width: 1024px) {
    .services-showcase,
    .services-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-bento .service-card,
    .services-bento .service-card--feature {
        grid-column: span 1;
        grid-row: auto;
    }

    .stats-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-timeline::before {
        display: none;
    }

    .about-stage,
    .faq-stage {
        grid-template-columns: 1fr;
    }

    .faq-intro {
        position: static;
    }

    body.home .faq-section--modern .faq-answer-inner {
        padding-inline-start: 1.2rem;
    }

    .faq-help {
        flex-direction: column;
        align-items: flex-start;
    }

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

@media (max-width: 640px) {
    body.home .home-section {
        padding: 3.25rem 0;
    }

    .services-showcase,
    .services-bento {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .stats-band,
    .process-timeline {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    body.home .stats-band .stat-card {
        padding: 1.25rem 0.75rem;
    }

    .home-orb {
        width: 14rem;
        height: 14rem;
        opacity: 0.28;
    }
}

@media (max-width: 420px) {
    .stats-band,
    .process-timeline {
        grid-template-columns: 1fr;
    }
}
