:root {
    --bg: #07111f;
    --panel: rgba(9, 20, 37, 0.7);
    --line: rgba(143, 187, 255, 0.18);
    --text: #f5f7fb;
    --muted: #aebed3;
    --cyan: #2ad8ff;
    --blue: #4f7dff;
    --glow: rgba(42, 216, 255, 0.35);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Space Grotesk", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 14%, rgba(79, 125, 255, 0.18), transparent 24%),
        radial-gradient(circle at 86% 10%, rgba(42, 216, 255, 0.1), transparent 20%),
        radial-gradient(circle at 70% 78%, rgba(27, 53, 111, 0.22), transparent 24%),
        linear-gradient(160deg, #030814 0%, #06101d 48%, #081320 100%);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(2, 6, 14, 0.58), rgba(4, 12, 24, 0.4)),
        repeating-linear-gradient(
            115deg,
            rgba(125, 171, 255, 0.035) 0,
            rgba(125, 171, 255, 0.035) 1px,
            transparent 1px,
            transparent 110px
        );
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    width: 34rem;
    height: 34rem;
    top: -9rem;
    right: -8rem;
    background: url("img/logo.png") center/contain no-repeat;
    opacity: 0.05;
    filter: blur(2px);
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.25rem 0 2rem;
}

.topbar,
.stats,
.services,
.process,
.footer {
    backdrop-filter: blur(16px);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(4, 13, 25, 0.58);
    box-shadow: var(--shadow);
    animation: reveal-down 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.brand span {
    display: grid;
    gap: 0.15rem;
}

.brand strong,
.hero h1,
.section-heading h2,
.footer h2,
.service-card h3,
.timeline h3,
.hero-card strong,
.stats strong {
    font-family: "Sora", sans-serif;
}

.brand strong {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
}

.brand small,
.lead,
.hero-points,
.stats span,
.service-card p,
.timeline p,
.footer-cta {
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav a {
    position: relative;
    font-size: 0.95rem;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
    transform: scaleX(1);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #03111d;
    box-shadow: 0 18px 32px rgba(42, 216, 255, 0.28);
}

.button-secondary,
.button-ghost {
    border-color: rgba(140, 186, 255, 0.24);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 2rem;
    align-items: center;
    padding: 5.5rem 0 4rem;
    position: relative;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 1.2rem -2rem 0;
    border-radius: 40px;
    background:
        linear-gradient(90deg, rgba(4, 11, 22, 0.92) 0%, rgba(4, 11, 22, 0.58) 45%, rgba(4, 11, 22, 0.82) 100%),
        url("img/principal.png") center/cover no-repeat;
    opacity: 0.56;
    filter: saturate(0.85) brightness(0.5);
    z-index: -2;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 40px;
    background:
        radial-gradient(circle at 10% 20%, rgba(79, 125, 255, 0.16), transparent 30%),
        radial-gradient(circle at 88% 72%, rgba(42, 216, 255, 0.12), transparent 26%);
    z-index: -1;
}

.hero-copy {
    max-width: 640px;
    animation: reveal-up 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.5rem;
}

.hero-strip span {
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(140, 186, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #d8e5f7;
    font-size: 0.88rem;
}

.eyebrow {
    margin: 0 0 1rem;
    color: #90dfff;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.9rem, 6vw, 5.4rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.hero h1 span {
    display: block;
    color: #9cc2ff;
}

.lead {
    margin: 1.4rem 0 0;
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 58ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.hero-actions .button:first-child {
    animation: reveal-up 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) 0.14s both;
}

.hero-actions .button:last-child {
    animation: reveal-up 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) 0.22s both;
}

.hero-points {
    display: grid;
    gap: 0.75rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.hero-points li {
    position: relative;
    padding-left: 1.3rem;
}

.hero-points li:nth-child(1) {
    animation: reveal-up 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.24s both;
}

.hero-points li:nth-child(2) {
    animation: reveal-up 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.32s both;
}

.hero-points li:nth-child(3) {
    animation: reveal-up 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s both;
}

.hero-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.48rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 18px var(--glow);
}

.hero-visual {
    position: relative;
    min-height: 610px;
    display: grid;
    place-items: center;
    animation: reveal-right 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}

.hero-frame {
    position: relative;
    width: min(100%, 470px);
    margin: 0;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow);
    background: rgba(4, 11, 22, 0.7);
    z-index: 1;
}

.hero-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 18, 33, 0.04) 0%, rgba(8, 18, 33, 0.28) 100%),
        linear-gradient(135deg, rgba(42, 216, 255, 0.08), rgba(79, 125, 255, 0.06));
    z-index: 1;
}

.hero-frame img {
    width: 100%;
    height: 610px;
    object-fit: cover;
    transform: scale(1.04);
    animation: hero-image-settle 1.35s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}

.hero-card {
    position: absolute;
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    z-index: 3;
}

.hero-card span {
    display: block;
    margin-bottom: 0.35rem;
    color: #8ae4ff;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-card strong {
    display: block;
    max-width: 18ch;
    line-height: 1.35;
}

.hero-card-top {
    top: 3rem;
    left: -1rem;
}

.hero-card-bottom {
    right: -0.5rem;
    bottom: 4rem;
}

.stats,
.portfolio,
.services,
.process,
.footer {
    border: 1px solid var(--line);
    border-radius: 32px;
    background: rgba(5, 15, 28, 0.62);
    box-shadow: var(--shadow);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.4rem;
    animation: reveal-up 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) 0.26s both;
}

.stats article,
.service-card,
.timeline article {
    padding: 1.3rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stats strong,
.service-card h3,
.timeline h3 {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 1.1rem;
}

.portfolio,
.services,
.process,
.footer {
    margin-top: 1.4rem;
    padding: 2rem;
}

.portfolio {
    position: relative;
    overflow: hidden;
}

.portfolio::before {
    content: "";
    position: absolute;
    inset: -20% auto auto 68%;
    width: 18rem;
    height: 18rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(42, 216, 255, 0.16), transparent 68%);
    pointer-events: none;
}

.portfolio-heading .lead {
    margin-top: 0.2rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr 0.85fr;
    gap: 1rem;
    margin-top: 1.6rem;
}

.project-card {
    position: relative;
    min-height: 260px;
    padding: 1.5rem;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        rgba(7, 17, 31, 0.66);
    overflow: hidden;
}

.project-card::after {
    content: "";
    position: absolute;
    inset: auto -18% -28% auto;
    width: 14rem;
    height: 14rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(79, 125, 255, 0.22), transparent 70%);
}

.project-featured {
    background:
        linear-gradient(135deg, rgba(42, 216, 255, 0.08), rgba(79, 125, 255, 0.08)),
        rgba(7, 17, 31, 0.78);
}

.project-card h3 {
    margin: 0.9rem 0 0.8rem;
    font-family: "Sora", sans-serif;
    font-size: 1.45rem;
    line-height: 1.15;
}

.project-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.project-card ul {
    margin: 1.2rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.project-card li {
    position: relative;
    padding-left: 1.1rem;
    color: #dce7f8;
}

.project-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.project-tag {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #9fd8ff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.services {
    animation: reveal-up 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) 0.36s both;
}

.process {
    animation: reveal-up 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) 0.46s both;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    animation: reveal-up 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) 0.56s both;
}

.section-heading {
    display: grid;
    gap: 0.5rem;
    max-width: 760px;
}

.section-heading h2,
.footer h2 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.service-grid,
.timeline {
    display: grid;
    gap: 1rem;
    margin-top: 1.6rem;
}

.service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
    min-height: 240px;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: auto -10% -35% auto;
    width: 200px;
    height: 200px;
    border-radius: 999px;
    opacity: 0.28;
    filter: blur(10px);
}

.accent-cyan::after {
    background: rgba(42, 216, 255, 0.8);
}

.accent-blue::after {
    background: rgba(79, 125, 255, 0.8);
}

.accent-slate::after {
    background: rgba(174, 190, 211, 0.55);
}

.timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline article span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border-radius: 18px;
    color: #03111d;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan), #a7ebff);
    box-shadow: 0 14px 32px rgba(42, 216, 255, 0.24);
}

.footer-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-cta img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(42, 216, 255, 0.22));
}

.motion-enabled .reveal {
    opacity: 0;
    transform: translateY(42px);
    transition:
        opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.motion-enabled .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.motion-enabled .reveal-left {
    transform: translateX(-42px);
}

.motion-enabled .reveal-right {
    transform: translateX(42px);
}

.motion-enabled .reveal-left.is-visible,
.motion-enabled .reveal-right.is-visible {
    transform: translateX(0);
}

@keyframes reveal-down {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(34px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes reveal-right {
    from {
        opacity: 0;
        transform: translateX(36px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes hero-image-settle {
    from {
        opacity: 0;
        transform: scale(1.12);
    }

    to {
        opacity: 1;
        transform: scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 1080px) {
    .hero,
    .portfolio-grid,
    .service-grid,
    .timeline,
    .stats,
    .footer {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 3.5rem;
    }

    .hero::before {
        inset: 1rem -1rem 0;
        opacity: 0.46;
    }

    .hero-copy {
        max-width: none;
    }

    .hero-visual {
        min-height: auto;
        padding-top: 1.5rem;
    }

    .hero-card-top {
        top: 0.5rem;
        left: 0.5rem;
    }

    .hero-card-bottom {
        right: 0.5rem;
        bottom: 1rem;
    }

    .footer {
        align-items: flex-start;
    }
}

@media (max-width: 860px) {
    .topbar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .button-ghost {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 1rem, 1180px);
        padding-top: 0.5rem;
    }

    .topbar,
    .services,
    .process,
    .stats,
    .footer {
        padding: 1.15rem;
        border-radius: 24px;
    }

    .hero {
        gap: 1.25rem;
        padding: 2.5rem 0 2rem;
    }

    .hero::before,
    .hero::after {
        inset: 0;
        border-radius: 28px;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 13vw, 3.7rem);
    }

    .hero-actions,
    .hero-strip,
    .footer-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .project-card {
        min-height: auto;
    }

    .hero-frame img {
        height: 430px;
    }

    .hero-card {
        position: static;
        width: 100%;
    }

    .hero-visual {
        gap: 1rem;
    }

    .footer-cta img {
        margin: 0 auto;
    }
}