:root {
    --bg: #050816;
    --bg-soft: #0a1022;
    --panel: rgba(11, 18, 38, 0.72);
    --panel-strong: rgba(14, 24, 51, 0.92);
    --line: rgba(148, 163, 184, 0.14);
    --line-strong: rgba(148, 163, 184, 0.25);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --accent: #7c9cff;
    --accent-2: #56e5c5;
    --accent-3: #d59cff;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --container: min(1180px, calc(100vw - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(124, 156, 255, 0.12), transparent 26%),
        radial-gradient(circle at 85% 15%, rgba(86, 229, 197, 0.1), transparent 20%),
        linear-gradient(180deg, #050816 0%, #060a15 40%, #04060d 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

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

img {
    max-width: 100%;
}

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

.page-shell {
    position: relative;
    overflow: clip;
}

.container {
    width: var(--container);
    margin-inline: auto;
}

.ambient {
    position: fixed;
    inset: auto;
    width: 26rem;
    height: 26rem;
    filter: blur(90px);
    opacity: 0.35;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

.ambient-one {
    top: -6rem;
    left: -8rem;
    background: rgba(124, 156, 255, 0.34);
}

.ambient-two {
    top: 24rem;
    right: -10rem;
    background: rgba(86, 229, 197, 0.18);
}

.grid-mask {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.site-header,
main,
.site-footer {
    position: relative;
    z-index: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: linear-gradient(180deg, rgba(5, 8, 22, 0.92), rgba(5, 8, 22, 0.58));
    border-bottom: 1px solid transparent;
    transition: border-color 200ms ease, background 200ms ease;
}

.site-header.scrolled {
    border-color: var(--line);
    background: linear-gradient(180deg, rgba(5, 8, 22, 0.95), rgba(5, 8, 22, 0.75));
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 78px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(124, 156, 255, 0.95), rgba(86, 229, 197, 0.78));
    color: #04111f;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(124, 156, 255, 0.28);
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    margin-top: -0.1rem;
}

.site-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(8, 13, 28, 0.65);
}

.site-nav a,
.nav-cta {
    transition: 180ms ease;
}

.site-nav a {
    color: var(--muted-strong);
    padding: 0.75rem 1rem;
    border-radius: 999px;
    font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background: rgba(124, 156, 255, 0.12);
    color: var(--text);
}

.nav-cta {
    padding: 0.85rem 1.05rem;
    border-radius: 999px;
    border: 1px solid rgba(124, 156, 255, 0.22);
    background: linear-gradient(135deg, rgba(124, 156, 255, 0.18), rgba(86, 229, 197, 0.12));
    color: var(--text);
    font-weight: 700;
}

.nav-cta:hover,
.nav-cta:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(124, 156, 255, 0.4);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 2rem;
    align-items: center;
    padding: 5.75rem 0 2.5rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(124, 156, 255, 0.1);
    border: 1px solid rgba(124, 156, 255, 0.18);
    color: #d9e3ff;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero h1,
.section-heading h2,
.contact-card h2 {
    margin: 1rem 0 0.9rem;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero h1 {
    font-size: clamp(2.85rem, 6vw, 5.55rem);
    max-width: 13ch;
}

.hero h1 span {
    color: transparent;
    background: linear-gradient(120deg, #ffffff 5%, #9db4ff 55%, #6ef2d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-text,
.section-heading p,
.project-summary,
.process-card p,
.feature-card p,
.service-card li,
.faq-item p,
.contact-card p {
    color: var(--muted);
}

.hero-text {
    max-width: 62ch;
    font-size: 1.08rem;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.4rem;
    padding: 0.9rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button.primary {
    background: linear-gradient(135deg, #8aa7ff, #69efd2);
    color: #03101f;
    box-shadow: 0 18px 34px rgba(124, 156, 255, 0.22);
}

.button.ghost {
    background: rgba(9, 14, 28, 0.72);
    border-color: var(--line-strong);
}

.hero-meta {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-meta > div,
.terminal-card,
.mini-card,
.stat-card,
.feature-card,
.service-card,
.project-card,
.stack-card,
.process-card,
.faq-item,
.contact-card {
    background: linear-gradient(180deg, rgba(13, 20, 41, 0.92), rgba(9, 14, 28, 0.8));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.hero-meta > div {
    padding: 1rem 1.15rem;
}

.meta-label,
.project-impact span,
.muted {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.terminal-card {
    overflow: hidden;
}

.terminal-top {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.terminal-top span {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

.terminal-top span:nth-child(1) { background: #ff6b6b; }
.terminal-top span:nth-child(2) { background: #ffd166; }
.terminal-top span:nth-child(3) { background: #06d6a0; }

.terminal-body {
    padding: 1.35rem 1.3rem 1.45rem;
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.94rem;
}

.terminal-body p {
    margin: 0 0 0.85rem;
}

.highlight {
    color: #6ef2d4;
}

.mini-card {
    margin-top: 1rem;
    padding: 1.1rem 1.15rem;
}

.mini-card span {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem 0 2rem;
}

.stat-card {
    padding: 1.35rem;
    min-height: 9.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card strong {
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    line-height: 1.05;
}

.section {
    padding: 4rem 0 0;
}

.section-heading {
    max-width: 56rem;
    margin-bottom: 1.7rem;
}

.section-heading h2,
.contact-card h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.highlight-grid,
.service-grid,
.project-grid,
.stack-grid,
.process-grid {
    display: grid;
    gap: 1rem;
}

.highlight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.feature-card,
.service-card,
.stack-card,
.process-card {
    padding: 1.4rem;
}

.feature-card h3,
.service-card h3,
.project-card h3,
.stack-card h3,
.process-card h3 {
    margin: 0 0 0.55rem;
    font-size: 1.18rem;
}

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

.service-head {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1rem;
}

.service-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 0 6px rgba(124, 156, 255, 0.08);
}

.service-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.service-card li {
    position: relative;
    padding-left: 1.1rem;
}

.service-card li::before {
    content: "";
    position: absolute;
    top: 0.68rem;
    left: 0;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: rgba(86, 229, 197, 0.9);
}

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

.project-card {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
}

.project-card::after {
    content: "";
    position: absolute;
    inset: auto -4rem -4rem auto;
    width: 11rem;
    height: 11rem;
    background: radial-gradient(circle, rgba(124, 156, 255, 0.18), transparent 70%);
    pointer-events: none;
}

.project-category {
    display: inline-flex;
    margin-bottom: 0.8rem;
    color: #dce4ff;
    border: 1px solid rgba(124, 156, 255, 0.2);
    background: rgba(124, 156, 255, 0.08);
    border-radius: 999px;
    padding: 0.4rem 0.7rem;
    font-size: 0.84rem;
    font-weight: 700;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #d9e3f0;
    font-size: 0.88rem;
}

.tag-row.dense span {
    padding: 0.44rem 0.65rem;
}

.project-impact {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

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

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

.step-number {
    display: inline-block;
    margin-bottom: 0.9rem;
    font-size: 0.9rem;
    font-weight: 800;
    color: #b8c7ff;
    letter-spacing: 0.08em;
}

.faq-list {
    display: grid;
    gap: 0.85rem;
}

.faq-item {
    padding: 0.25rem 1.2rem;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 0;
    font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    padding: 0 0 1.15rem;
    margin: 0;
}

.contact-card {
    padding: 1.65rem;
    display: grid;
    gap: 1rem;
}

.contact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--muted-strong);
}

.contact-meta a {
    color: #dce4ff;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 2.5rem 0 2rem;
    color: var(--muted);
}

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

.reveal-delay {
    transition-delay: 120ms;
}

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

::selection {
    background: rgba(124, 156, 255, 0.3);
    color: #ffffff;
}

@media (max-width: 1080px) {
    .hero,
    .highlight-grid,
    .service-grid,
    .project-grid,
    .stack-grid,
    .process-grid,
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-nav {
        display: none;
    }
}

@media (max-width: 760px) {
    .nav-wrap,
    .site-footer,
    .hero,
    .hero-meta,
    .highlight-grid,
    .service-grid,
    .project-grid,
    .stack-grid,
    .process-grid,
    .stats {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-wrap {
        min-height: auto;
        padding: 0.9rem 0;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
    }

    .hero {
        padding-top: 4rem;
    }

    .hero h1 {
        max-width: 100%;
    }

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

    .site-footer {
        text-align: center;
    }
}
