:root {
    --primary-color: #8ab4ff;
    --secondary-color: #111111;
    --accent-color: #9f7aea;
    --bg-color: #090909;
    --surface-color: rgba(17, 17, 17, 0.72);
    --surface-strong: #111111;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(138, 180, 255, 0.28);
    --text-color: #ffffff;
    --muted-color: #999999;
    --font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg-color);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--font-family);
    background:
        radial-gradient(circle at 50% 0%, rgba(102, 126, 234, 0.22), transparent 34rem),
        radial-gradient(circle at 85% 10%, rgba(0, 209, 255, 0.12), transparent 26rem),
        linear-gradient(180deg, #090909 0%, #0c0c0f 44%, #090909 100%);
    color: var(--text-color);
    line-height: 1.6;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    content: "";
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 72%);
}

body::after {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    opacity: 0.45;
    background:
        radial-gradient(circle at 22% 16%, rgba(120, 91, 255, 0.18), transparent 16rem),
        radial-gradient(circle at 78% 32%, rgba(56, 189, 248, 0.12), transparent 18rem);
    filter: blur(12px);
    animation: ambientShift 16s ease-in-out infinite alternate;
}

header {
    position: fixed;
    top: 16px;
    left: 50%;
    z-index: 20;
    width: min(calc(100% - 32px), 1120px);
    padding: 0.82rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(9, 9, 9, 0.66);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(22px);
    transform: translateX(-50%);
}

header .logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    padding-left: 0.2rem;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

header .logo::before {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    content: "";
    background: linear-gradient(135deg, #6ee7ff, #a78bfa 58%, #ffffff);
    box-shadow: 0 0 28px rgba(138, 180, 255, 0.72);
}

nav ul {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    list-style: none;
}

nav a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 0.85rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 240ms ease, background-color 240ms ease, box-shadow 240ms ease;
}

nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero {
    position: relative;
    min-height: 100vh;
    padding: 9rem 2rem 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(9, 9, 9, 0.2), #090909 94%),
        url('https://source.unsplash.com/1600x900/?technology') center/cover no-repeat;
}

.hero::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    content: "";
    background:
        radial-gradient(circle at 50% 28%, rgba(138, 180, 255, 0.3), transparent 22rem),
        radial-gradient(circle at 35% 48%, rgba(159, 122, 234, 0.24), transparent 20rem),
        linear-gradient(120deg, rgba(9, 9, 9, 0.88), rgba(9, 9, 9, 0.54) 45%, rgba(9, 9, 9, 0.9));
    animation: heroGlow 12s ease-in-out infinite alternate;
}

.hero::after {
    position: absolute;
    right: 50%;
    bottom: 7%;
    z-index: -1;
    width: min(860px, 86vw);
    height: min(420px, 44vw);
    border-radius: 50%;
    content: "";
    background: radial-gradient(ellipse, rgba(138, 180, 255, 0.18), transparent 68%);
    filter: blur(38px);
    transform: translateX(50%);
}

.hero h1 {
    max-width: 980px;
    margin-bottom: 1.35rem;
    color: var(--text-color);
    font-size: clamp(4.2rem, 11vw, 8.8rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: 0;
    text-wrap: balance;
    animation: blurReveal 900ms ease both;
}

.hero p {
    max-width: 760px;
    margin-bottom: 2.4rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(1.06rem, 2vw, 1.35rem);
    line-height: 1.75;
    text-wrap: pretty;
    animation: fadeUp 900ms 120ms ease both;
}

.hero .btn {
    position: relative;
    min-height: 52px;
    padding: 0 1.45rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    cursor: pointer;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.02)),
        linear-gradient(135deg, #2563eb, #7c3aed 58%, #38bdf8);
    box-shadow: 0 18px 60px rgba(79, 70, 229, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    font: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
    animation: fadeUp 900ms 220ms ease both;
}

.hero .btn::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: translateX(-120%);
    transition: transform 700ms ease;
}

.hero .btn:hover {
    border-color: rgba(255, 255, 255, 0.36);
    box-shadow: 0 24px 72px rgba(79, 70, 229, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.32);
    transform: translateY(-2px);
}

.hero .btn:hover::after {
    transform: translateX(120%);
}

section {
    position: relative;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 7rem 0;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 800ms ease, transform 800ms ease;
}

section.reveal-ready {
    opacity: 0;
    transform: translateY(24px);
}

section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

section h2 {
    margin-bottom: 2.8rem !important;
    color: #ffffff;
    font-size: clamp(2.1rem, 5vw, 4rem);
    font-weight: 750;
    line-height: 1;
    letter-spacing: 0;
    text-wrap: balance;
}

section > p {
    max-width: 820px;
    margin: 0 auto;
    color: var(--muted-color);
    font-size: clamp(1.02rem, 1.6vw, 1.2rem);
    line-height: 1.9;
    text-align: center;
    text-wrap: pretty;
}

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

.service-card {
    position: relative;
    min-height: 320px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        var(--surface-color);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-align: left;
    backdrop-filter: blur(18px);
    transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease, background-color 260ms ease;
}

.service-card::before {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.85rem;
    content: "";
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.82), transparent 0.26rem),
        linear-gradient(135deg, rgba(96, 165, 250, 0.22), rgba(167, 139, 250, 0.14));
    box-shadow: 0 0 42px rgba(138, 180, 255, 0.18);
}

.service-card::after {
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    content: "";
    opacity: 0;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.5), rgba(167, 139, 250, 0.18), transparent 64%);
    transition: opacity 260ms ease;
}

.service-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42), 0 0 42px rgba(59, 130, 246, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-8px);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card h3 {
    margin-bottom: 0.9rem;
    color: #ffffff;
    font-size: 1.34rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
}

.service-card p {
    color: var(--muted-color);
    font-size: 1rem;
    line-height: 1.8;
}

#workflow,
#remote,
#contact {
    width: min(900px, calc(100% - 40px));
    padding: 6.2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#workflow::before,
#remote::before,
#contact::before {
    position: absolute;
    top: -1px;
    left: 50%;
    width: min(360px, 70%);
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(138, 180, 255, 0.75), transparent);
    transform: translateX(-50%);
}

#contact div {
    width: min(520px, 100%);
    margin: 0 auto;
    padding: 1.35rem;
    border: 1px solid var(--border-color);
    border-radius: 1.35rem;
    background: rgba(17, 17, 17, 0.58);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

#contact div p {
    color: var(--muted-color);
    font-size: 0.98rem;
    line-height: 1.9;
}

.docs-entry {
    width: min(760px, calc(100% - 40px));
    padding: 1.5rem 0 4.5rem;
}

.docs-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1.15rem 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.012)),
        rgba(17, 17, 17, 0.48);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: var(--text-color) !important;
    text-decoration: none;
    backdrop-filter: blur(16px);
    transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease, background-color 240ms ease;
}

.docs-card::before {
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    content: "";
    opacity: 0;
    background: linear-gradient(135deg, rgba(138, 180, 255, 0.28), rgba(167, 139, 250, 0.12), transparent 68%);
    transition: opacity 240ms ease;
}

.docs-card:hover {
    border-color: rgba(138, 180, 255, 0.24);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28), 0 0 34px rgba(59, 130, 246, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-shadow: none;
    transform: translateY(-2px);
}

.docs-card:hover::before {
    opacity: 1;
}

.docs-kicker {
    padding: 0.35rem 0.58rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.docs-content {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.docs-content strong {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.docs-content span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.55;
}

.docs-arrow {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.045);
    transition: color 240ms ease, background-color 240ms ease, transform 240ms ease;
}

.docs-card:hover .docs-arrow {
    color: #ffffff;
    background: rgba(138, 180, 255, 0.12);
    transform: translateX(2px);
}

a {
    color: var(--primary-color) !important;
    text-underline-offset: 4px;
    transition: color 200ms ease, text-shadow 200ms ease;
}

a:hover {
    color: #dbeafe !important;
    text-shadow: 0 0 22px rgba(138, 180, 255, 0.4);
}

footer {
    margin-top: 2rem;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.54), rgba(9, 9, 9, 0.96));
    text-align: center;
}

footer p {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.9rem;
}

@keyframes ambientShift {
    from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
    to { transform: translate3d(1.5%, 1%, 0) scale(1.05); }
}

@keyframes heroGlow {
    from { opacity: 0.78; transform: scale(1); }
    to { opacity: 1; transform: scale(1.04); }
}

@keyframes blurReveal {
    from {
        opacity: 0;
        filter: blur(18px);
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 960px) {
    header {
        align-items: flex-start;
        border-radius: 1.35rem;
    }

    nav ul {
        max-width: 520px;
        flex-wrap: wrap;
        justify-content: flex-end;
        row-gap: 0.25rem;
    }

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

@media (max-width: 640px) {
    header {
        top: 10px;
        width: calc(100% - 20px);
        padding: 0.8rem;
        flex-direction: column;
        gap: 0.7rem;
    }

    nav ul {
        justify-content: flex-start;
        gap: 0.15rem;
    }

    nav a {
        min-height: 32px;
        padding: 0 0.58rem;
        font-size: 0.78rem;
    }

    .hero {
        min-height: 100svh;
        padding: 11rem 1.25rem 4.5rem;
    }

    .hero h1 {
        font-size: clamp(3.55rem, 18vw, 5.4rem);
    }

    section {
        width: min(100% - 28px, 1120px);
        padding: 5rem 0;
    }

    section h2 {
        margin-bottom: 2rem !important;
        font-size: 2.25rem;
    }

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

    .service-card {
        min-height: 220px;
    }

            #workflow,
            #remote,
            #contact {
                width: min(100% - 28px, 900px);
                padding: 5rem 0;
            }

            .docs-entry {
                width: min(100% - 28px, 760px);
                padding: 0.5rem 0 3.5rem;
            }

            .docs-card {
                grid-template-columns: 1fr auto;
                padding: 1.1rem;
            }

            .docs-kicker {
                grid-column: 1 / -1;
                width: fit-content;
            }
        }

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    section,
    section.reveal-ready {
        opacity: 1;
        transform: none;
    }
}

