:root {
    --bg: #050711;
    --surface: rgba(14, 20, 39, 0.92);
    --surface-soft: rgba(255, 255, 255, 0.07);
    --line: rgba(190, 202, 255, 0.18);
    --text: #f8fbff;
    --muted: #cad5ea;
    --soft: #96a6c2;
    --purple: #9b5cff;
    --blue: #34a7ff;
    --cyan: #54f0ff;
    --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
    --glow: 0 0 22px rgba(52, 167, 255, 0.14);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 12%, rgba(155, 92, 255, 0.14), transparent 24rem),
        radial-gradient(circle at 86% 18%, rgba(52, 167, 255, 0.14), transparent 26rem),
        var(--bg);
    line-height: 1.6;
    opacity: 0;
    transition: opacity 180ms ease;
    overflow-x: hidden;
}

body.page-ready {
    opacity: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 7, 17, 0.94);
}

.nav-shell,
.section-shell,
.footer-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.nav-shell {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.site-menu,
.hero-actions,
.contact-actions,
.footer-links {
    display: flex;
    align-items: center;
}

.brand {
    min-width: 52px;
    min-height: 52px;
    justify-content: center;
    border-radius: 18px;
    transition: transform 140ms ease, opacity 140ms ease;
}

.brand:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.brand-logo {
    width: 46px;
    height: 46px;
    display: block;
    object-fit: contain;
}

.site-menu {
    gap: 8px;
}

.site-menu a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 600;
    border-radius: 999px;
    transition: color 140ms ease, background 140ms ease;
}

.site-menu a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
    border-radius: 2px;
}

.section-shell {
    padding: 92px 0;
}

.section-shell:not(.hero) {
    content-visibility: auto;
    contain-intrinsic-size: 680px;
}

.hero {
    position: relative;
    min-height: calc(100vh - 72px);
    display: grid;
    grid-template-columns: minmax(0, 820px);
    align-items: center;
    padding-top: 62px;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    z-index: -2;
    width: 100vw;
    height: 100%;
    min-height: calc(100vh - 72px);
    transform: translateX(-50%);
    background:
        linear-gradient(90deg, rgba(5, 7, 17, 0.96) 0%, rgba(5, 7, 17, 0.78) 42%, rgba(5, 7, 17, 0.58) 100%),
        linear-gradient(180deg, rgba(5, 7, 17, 0.12), var(--bg) 96%),
        url("bg-lite.jpg") center / cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: heroIn 320ms ease both;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cyan);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 14px;
}

.eyebrow::before,
.section-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
}

h1,
h2,
h3 {
    line-height: 1.08;
    letter-spacing: 0;
}

h1 {
    max-width: 780px;
    font-size: clamp(3rem, 8vw, 6.9rem);
    font-weight: 800;
}

h2 {
    max-width: 620px;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: 1.15rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-role {
    width: fit-content;
    color: transparent;
    background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 800;
    margin-top: 16px;
}

.hero-copy,
.section-copy {
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-copy {
    max-width: 680px;
    margin-top: 18px;
}

.hero-actions {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.btn::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    box-shadow: 0 10px 24px rgba(52, 167, 255, 0.18);
}

.btn.primary:hover {
    background: linear-gradient(135deg, #a66cff, #42aeff);
}

.btn.ghost {
    color: var(--text);
    border-color: var(--line);
    background: var(--surface-soft);
}

.glass-card {
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(27, 35, 65, 0.9), rgba(13, 18, 36, 0.82));
    box-shadow: var(--shadow), var(--glow);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 48px;
    border-top: 1px solid var(--line);
}

.about-section {
    display: grid;
    place-items: center;
    border-top: 1px solid var(--line);
}

.about-wrap {
    width: min(100%, 760px);
    display: grid;
    justify-items: center;
    text-align: center;
}

.about-note {
    width: 100%;
    padding: clamp(24px, 3vw, 32px);
    border-radius: 24px;
    text-align: left;
}

.about-label {
    max-width: none;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.pricing-panel {
    padding: clamp(24px, 4vw, 36px);
    border-radius: 24px;
}

.pricing-label {
    color: var(--blue);
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.pricing-list {
    display: grid;
}

.pricing-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 13px 0 14px;
    border-bottom: 1px solid rgba(190, 202, 255, 0.16);
}

.pricing-row:first-child {
    border-top: 0;
}

.pricing-row h3,
.pricing-row span,
.pricing-note {
    font-family: Consolas, "Courier New", monospace;
}

.pricing-row h3 {
    color: #ffffff;
    font-size: clamp(1.05rem, 2.4vw, 1.42rem);
    font-weight: 800;
}

.pricing-row span {
    color: var(--muted);
    font-size: clamp(0.92rem, 1.8vw, 1.04rem);
    white-space: nowrap;
}

.pricing-note {
    color: var(--muted);
    font-size: 1rem;
    margin-top: 24px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-list span {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    color: var(--muted);
    font-weight: 700;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    transition: transform 140ms ease, border-color 140ms ease, color 140ms ease;
}

.skill-list span:hover {
    color: var(--text);
    transform: translateY(-2px);
    border-color: rgba(155, 92, 255, 0.55);
}

.project-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
    align-items: center;
    border-top: 1px solid var(--line);
}

.project-contact .section-copy {
    max-width: 640px;
    margin-top: 18px;
}

.contact-actions {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.contact-link {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface-soft);
    transition: border-color 140ms ease, transform 140ms ease;
}

.contact-link:hover {
    transform: translateY(-2px);
    border-color: rgba(84, 240, 255, 0.48);
}

.contact-link span {
    color: var(--soft);
    text-align: right;
}

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--soft);
    background: rgba(5, 7, 17, 0.58);
}

.footer-shell {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.92rem;
}

.footer-links {
    gap: 16px;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--text);
}

.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 300ms ease, transform 300ms ease;
}

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

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 920px) {
    .hero,
    .split,
    .project-contact {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .project-contact {
        align-items: stretch;
    }
}

@media (max-width: 680px) {
    .nav-shell,
    .section-shell,
    .footer-shell {
        width: min(100% - 28px, 1120px);
    }

    .nav-toggle {
        display: block;
    }

    .site-menu {
        position: absolute;
        left: 14px;
        right: 14px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(5, 7, 17, 0.98);
        box-shadow: var(--shadow);
    }

    .site-menu.is-open {
        display: flex;
    }

    .site-menu a {
        justify-content: center;
    }

    .section-shell {
        padding: 66px 0;
    }

    .about-wrap {
        justify-items: stretch;
        text-align: left;
    }

    .about-section .section-kicker {
        justify-self: center;
    }

    .hero {
        padding-top: 46px;
        gap: 30px;
    }

    .hero::before {
        background:
            linear-gradient(90deg, rgba(5, 7, 17, 0.96), rgba(5, 7, 17, 0.72)),
            linear-gradient(180deg, rgba(5, 7, 17, 0.18), var(--bg) 96%),
            url("bg-lite.jpg") 58% center / cover no-repeat;
    }

    .pricing-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 15px 0;
    }

    .pricing-row span {
        white-space: normal;
    }

    .contact-link {
        flex-direction: column;
    }

    .contact-link span {
        text-align: left;
    }

    .footer-shell {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 22px 0;
    }
}
