:root {
    --bg: #05060a;
    --bg-elevated: rgba(10, 13, 20, 0.74);
    --panel: rgba(13, 17, 26, 0.78);
    --panel-solid: #0f1420;
    --panel-hover: rgba(19, 25, 39, 0.9);
    --line: rgba(166, 184, 214, 0.16);
    --line-strong: rgba(121, 229, 217, 0.34);
    --text: #f5f7fb;
    --muted: #94a0b4;
    --muted-strong: #c5cedc;
    --cyan: #67f5df;
    --blue: #78a9ff;
    --violet: #be8cff;
    --pink: #ff7aa8;
    --lime: #bef264;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
    --radius: 8px;
    --max: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--text);
    background:
        linear-gradient(115deg, rgba(8, 10, 16, 0.92), rgba(5, 6, 10, 0.98) 48%, rgba(13, 9, 20, 0.94)),
        var(--bg);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -4;
    content: "";
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.034) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 92%);
}

body::after {
    position: fixed;
    inset: 0;
    z-index: -3;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(105deg, transparent 0 28%, rgba(103, 245, 223, 0.045) 38%, transparent 51%),
        linear-gradient(252deg, transparent 0 46%, rgba(255, 122, 168, 0.038) 57%, transparent 72%);
}

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

button,
input,
textarea,
select {
    font: inherit;
}

img,
svg,
canvas {
    display: block;
    max-width: 100%;
}

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

.ambient-canvas {
    position: fixed;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.page-noise {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.11;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 3px 3px;
    mix-blend-mode: screen;
}

.site-header {
    position: sticky;
    top: 14px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(6, 8, 13, 0.66);
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 8px;
    color: var(--text);
    font-weight: 800;
}

.brand__sigil {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(103, 245, 223, 0.42);
    border-radius: 6px;
    color: var(--cyan);
    background:
        linear-gradient(145deg, rgba(103, 245, 223, 0.16), rgba(190, 140, 255, 0.08)),
        rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 0 18px rgba(103, 245, 223, 0.1);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    line-height: 1;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
}

.site-nav a {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 14px;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--text);
    background: rgba(103, 245, 223, 0.11);
}

.site-nav a:hover {
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
    cursor: pointer;
}

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

main {
    width: 100%;
}

.section-shell {
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
    padding: 104px 0 0;
}

.hero {
    display: grid;
    min-height: calc(100vh - 20px);
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
    gap: 52px;
    align-items: center;
    padding-top: 86px;
}

.hero__copy {
    position: relative;
}

.hero__copy::before {
    position: absolute;
    top: -28px;
    left: 0;
    width: 140px;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--cyan), var(--pink), transparent);
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--cyan);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    text-transform: lowercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 8em;
    margin-bottom: 16px;
    color: transparent;
    background: linear-gradient(92deg, #ffffff 0%, #dfe8ff 34%, var(--cyan) 58%, var(--pink) 100%);
    background-clip: text;
    font-size: clamp(70px, 13vw, 156px);
    line-height: 0.86;
    letter-spacing: 0;
    text-shadow: 0 18px 80px rgba(103, 245, 223, 0.08);
}

h2 {
    margin-bottom: 0;
    font-size: clamp(32px, 5vw, 60px);
    line-height: 1;
    letter-spacing: 0;
}

h3 {
    color: var(--text);
    font-size: 20px;
    line-height: 1.25;
}

.hero__role {
    max-width: 760px;
    margin-bottom: 14px;
    color: var(--muted-strong);
    font-size: clamp(19px, 3vw, 26px);
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
}

.hero__meta span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 5px 9px;
    border: 1px solid rgba(166, 184, 214, 0.14);
    border-radius: 6px;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.04);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
}

.hero__text,
.lead {
    max-width: 780px;
    color: var(--muted-strong);
    font-size: clamp(18px, 2vw, 22px);
}

.hero__actions,
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    position: relative;
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 780;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button::after {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: opacity 180ms ease, transform 520ms ease;
}

.button:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.button:hover::after {
    opacity: 1;
    transform: translateX(100%);
}

.button--primary {
    border-color: rgba(103, 245, 223, 0.46);
    background: linear-gradient(135deg, var(--cyan), var(--blue) 58%, var(--violet));
    color: #061019;
}

.button--ghost {
    background: rgba(255, 255, 255, 0.045);
}

.terminal-card {
    position: relative;
    min-height: 420px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid rgba(166, 184, 214, 0.17);
    border-radius: var(--radius);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.085), transparent 38%),
        linear-gradient(180deg, rgba(12, 16, 24, 0.88), rgba(7, 9, 14, 0.78));
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.terminal-card::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, rgba(103, 245, 223, 0.09), transparent),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 7px);
    mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

.terminal-card::after {
    position: absolute;
    right: -24px;
    bottom: 24px;
    width: 170px;
    height: 170px;
    content: "";
    border: 1px solid rgba(103, 245, 223, 0.16);
    transform: rotate(18deg);
}

.terminal-card__top {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 7px;
    margin-bottom: 46px;
}

.terminal-card__top span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--line);
}

.terminal-card__top span:nth-child(1) {
    background: var(--pink);
}

.terminal-card__top span:nth-child(2) {
    background: var(--lime);
}

.terminal-card__top span:nth-child(3) {
    background: var(--cyan);
}

.terminal-card__body {
    position: relative;
    z-index: 1;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.terminal-card__body p {
    margin: 0 0 18px;
    color: var(--muted-strong);
    overflow-wrap: anywhere;
}

.terminal-card__body span {
    color: var(--cyan);
}

.signal {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 1;
    display: grid;
    height: 88px;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    align-items: end;
    opacity: 0.74;
}

.signal span {
    border: 1px solid rgba(103, 245, 223, 0.2);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(103, 245, 223, 0.32), rgba(120, 169, 255, 0.06));
    box-shadow: 0 0 18px rgba(103, 245, 223, 0.08);
    animation: signalPulse 2.7s ease-in-out infinite;
}

.signal span:nth-child(1) {
    height: 28%;
    animation-delay: -0.4s;
}

.signal span:nth-child(2) {
    height: 64%;
    animation-delay: -1.1s;
}

.signal span:nth-child(3) {
    height: 43%;
    animation-delay: -0.7s;
}

.signal span:nth-child(4) {
    height: 82%;
    animation-delay: -1.6s;
}

.signal span:nth-child(5) {
    height: 52%;
    animation-delay: -0.2s;
}

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

.about {
    padding-top: 70px;
}

.about .lead {
    padding: 26px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.feature-card,
.step,
.project-row,
.contact-link {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(12px);
}

.feature-card::before,
.step::before,
.project-row::before,
.contact-link::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0;
    pointer-events: none;
    background:
        linear-gradient(130deg, rgba(103, 245, 223, 0.13), transparent 38%),
        linear-gradient(300deg, rgba(255, 122, 168, 0.08), transparent 46%);
    transition: opacity 180ms ease;
}

.feature-card,
.step {
    min-height: 224px;
    padding: 24px;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.feature-card:hover,
.step:hover,
.project-row:hover,
.contact-link:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    background: var(--panel-hover);
}

.feature-card:hover::before,
.step:hover::before,
.project-row:hover::before,
.contact-link:hover::before {
    opacity: 1;
}

.feature-card > *,
.step > *,
.project-row > *,
.contact-link > * {
    position: relative;
    z-index: 1;
}

.feature-card__mark,
.step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 30px;
    margin-bottom: 24px;
    border: 1px solid rgba(103, 245, 223, 0.28);
    border-radius: 5px;
    color: var(--cyan);
    background: rgba(103, 245, 223, 0.055);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
}

.feature-card p,
.step p,
.project-row p {
    margin-bottom: 0;
    color: var(--muted);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(130deg, rgba(103, 245, 223, 0.055), transparent 34%),
        rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(12px);
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(166, 184, 214, 0.16);
    border-radius: 6px;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.042);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 14px;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.tag:hover {
    color: var(--text);
    border-color: rgba(103, 245, 223, 0.32);
    background: rgba(103, 245, 223, 0.075);
    transform: translateY(-2px);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.project-list {
    display: grid;
    gap: 12px;
}

.project-row {
    display: grid;
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 22px 24px;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-row h3 {
    margin-bottom: 0;
}

.contact {
    padding-bottom: 98px;
}

.contact-link {
    display: inline-flex;
    min-width: 190px;
    flex-direction: column;
    gap: 2px;
    padding: 17px 18px;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.contact-link span {
    font-weight: 800;
}

.contact-link small {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.site-footer {
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
    padding: 28px 0 38px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.site-footer p {
    margin-bottom: 0;
}

.section-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 620ms ease, transform 620ms ease;
}

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

@keyframes signalPulse {
    0%,
    100% {
        filter: brightness(0.82);
        transform: scaleY(0.88);
    }

    50% {
        filter: brightness(1.18);
        transform: scaleY(1);
    }
}

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

@media (max-width: 980px) {
    .site-header {
        align-items: flex-start;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        display: grid;
        gap: 4px;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: rgba(6, 8, 13, 0.96);
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .site-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-nav a {
        width: 100%;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-top: 86px;
    }

    .terminal-card {
        min-height: 360px;
    }

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

    .project-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .site-header,
    .section-shell,
    .site-footer {
        width: min(calc(100% - 24px), var(--max));
    }

    .section-shell {
        padding-top: 76px;
    }

    .hero {
        gap: 34px;
        padding-top: 70px;
    }

    h1 {
        font-size: clamp(58px, 21vw, 92px);
    }

    .hero__actions,
    .contact-links {
        flex-direction: column;
    }

    .button,
    .contact-link {
        width: 100%;
    }

    .cards-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .terminal-card {
        min-height: 330px;
    }

    .feature-card,
    .step {
        min-height: auto;
    }

    .about .lead {
        padding: 20px;
    }
}
