/* =========================================================
   SCYROLYNX — AI ENGINEERING SYSTEM
   Warm Cyber / AI Interface
========================================================= */

/* =========================================================
   VARIABLES
========================================================= */

:root {
    --bg: #0d0907;
    --bg-deep: #080605;
    --bg-soft: #140d0a;

    --surface: rgba(28, 18, 14, 0.72);
    --surface-solid: #19100d;
    --surface-hover: rgba(39, 23, 17, 0.9);

    --text: #faf7f3;
    --text-soft: #b8aaa1;
    --text-muted: #75675f;

    --purple: #8b5cf6;
    --purple-bright: #b18cff;
    --purple-deep: #6d3df5;

    --green: #39ff88;
    --green-bright: #72ffad;

    --cyan: #35f5ff;

    --orange: #d9824f;

    --line: rgba(255, 221, 201, 0.09);
    --line-bright: rgba(255, 221, 201, 0.17);

    --glow-purple: rgba(139, 92, 246, 0.25);
    --glow-green: rgba(57, 255, 136, 0.16);
    --glow-warm: rgba(217, 130, 79, 0.10);

    --max-width: 1200px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}


/* =========================================================
   RESET
========================================================= */

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

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

body {
    min-height: 100vh;
    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(139, 92, 246, 0.07),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 35%,
            rgba(57, 255, 136, 0.045),
            transparent 28%
        ),
        radial-gradient(
            circle at 50% 90%,
            rgba(217, 130, 79, 0.06),
            transparent 35%
        ),
        var(--bg-deep);

    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;
    z-index: 9999;

    opacity: 0.025;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.5) 1px,
            transparent 1px
        );

    background-size: 100% 4px;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   GLOBAL AMBIENT LIGHT
========================================================= */

body::after {
    content: "";

    position: fixed;

    width: 500px;
    height: 500px;

    top: 15%;
    left: 50%;

    transform: translateX(-50%);

    pointer-events: none;
    z-index: -1;

    background:
        radial-gradient(
            circle,
            rgba(139, 92, 246, 0.08),
            transparent 65%
        );

    filter: blur(70px);

    animation: ambientFloat 12s ease-in-out infinite alternate;
}

@keyframes ambientFloat {
    from {
        transform: translate(-50%, -20px) scale(0.95);
    }

    to {
        transform: translate(-50%, 30px) scale(1.08);
    }
}


/* =========================================================
   CONTAINER
========================================================= */

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


/* =========================================================
   TYPOGRAPHY
========================================================= */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--green);

    font-family: monospace;
    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 8px var(--green),
        0 0 20px var(--green);

    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.section-heading {
    max-width: 760px;
    margin-bottom: 70px;
}

.section-heading h2 {
    margin-top: 18px;

    font-size: clamp(2.5rem, 5vw, 4.7rem);
    line-height: 1;

    letter-spacing: -0.055em;
}

.section-heading > p:last-child {
    max-width: 650px;
    margin-top: 24px;

    color: var(--text-soft);

    font-size: 1.05rem;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: fixed;

    top: 0;
    left: 0;

    z-index: 1000;

    width: 100%;

    border-bottom: 1px solid transparent;

    transition:
        background 0.45s var(--ease),
        border-color 0.45s var(--ease),
        backdrop-filter 0.45s var(--ease);
}

.site-header.scrolled {
    background: rgba(13, 9, 7, 0.72);

    border-color: var(--line);

    backdrop-filter: blur(22px);
}

.navbar {
    width: min(var(--max-width), calc(100% - 48px));

    min-height: 78px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.logo {
    position: relative;

    font-size: 1.25rem;
    font-weight: 800;

    letter-spacing: -0.04em;
}

.logo span {
    color: var(--green);

    text-shadow:
        0 0 10px rgba(57, 255, 136, 0.7);
}

.logo::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 1px;

    background: var(--green);

    box-shadow: 0 0 10px var(--green);

    transition: width 0.4s var(--ease);
}

.logo:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    align-items: center;

    gap: 34px;
}

.nav-links a {
    position: relative;

    color: var(--text-soft);

    font-size: 0.86rem;

    transition:
        color 0.3s ease,
        transform 0.3s var(--ease);
}

.nav-links a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -9px;

    width: 0;
    height: 1px;

    background: var(--purple-bright);

    box-shadow:
        0 0 8px var(--purple);

    transform: translateX(-50%);

    transition: width 0.35s var(--ease);
}

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

    transform: translateY(-1px);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    position: relative;

    padding: 10px 19px;

    border: 1px solid rgba(139, 92, 246, 0.45);

    border-radius: 999px;

    background: rgba(139, 92, 246, 0.08);

    color: var(--text);

    font-size: 0.82rem;
    font-weight: 700;

    box-shadow:
        inset 0 0 15px rgba(139, 92, 246, 0.05),
        0 0 20px rgba(139, 92, 246, 0.04);

    transition:
        transform 0.35s var(--ease),
        border-color 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);

    border-color: var(--purple-bright);

    background: rgba(139, 92, 246, 0.15);

    box-shadow:
        0 0 25px rgba(139, 92, 246, 0.18),
        inset 0 0 18px rgba(139, 92, 246, 0.06);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    min-height: 100vh;

    padding: 180px 24px 120px;

    display: flex;
    align-items: center;

    overflow: hidden;

    border-bottom: 1px solid var(--line);
}

.hero-background {
    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 75% 28%,
            rgba(139, 92, 246, 0.22),
            transparent 31%
        ),
        radial-gradient(
            circle at 18% 78%,
            rgba(57, 255, 136, 0.075),
            transparent 28%
        ),
        radial-gradient(
            circle at 50% 55%,
            rgba(217, 130, 79, 0.08),
            transparent 42%
        );
}

.hero-background::before {
    content: "";

    position: absolute;
    inset: 0;

    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: 65px 65px;

    mask-image:
        linear-gradient(
            to bottom,
            black 0%,
            rgba(0,0,0,0.7) 45%,
            transparent 95%
        );

    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 65px 65px;
    }
}

.hero-background::after {
    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    top: 50%;
    left: 70%;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    border: 1px solid rgba(139, 92, 246, 0.08);

    box-shadow:
        0 0 80px rgba(139, 92, 246, 0.05),
        inset 0 0 80px rgba(139, 92, 246, 0.03);

    animation: orbital 16s linear infinite;
}

@keyframes orbital {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.hero-content {
    position: relative;

    z-index: 2;

    width: min(var(--max-width), 100%);

    margin: 0 auto;
}

.hero h1 {
    max-width: 980px;

    margin-top: 22px;

    font-size: clamp(3.7rem, 9vw, 8rem);

    line-height: 0.9;

    letter-spacing: -0.07em;

    font-weight: 850;
}

.hero h1 span {
    display: block;

    background:
        linear-gradient(
            110deg,
            #ffffff 0%,
            #d9cfff 38%,
            var(--purple-bright) 62%,
            var(--green-bright) 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

    background-size: 200% auto;

    animation: textFlow 8s ease-in-out infinite alternate;
}

@keyframes textFlow {
    from {
        background-position: 0% center;
    }

    to {
        background-position: 100% center;
    }
}

.hero-text {
    max-width: 650px;

    margin-top: 32px;

    color: var(--text-soft);

    font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-actions {
    display: flex;
    align-items: center;

    gap: 16px;

    margin-top: 42px;
}


/* =========================================================
   BUTTONS
========================================================= */

.primary-button,
.secondary-button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 52px;

    padding: 0 24px;

    border-radius: 999px;

    font-size: 0.86rem;
    font-weight: 750;

    overflow: hidden;

    transition:
        transform 0.35s var(--ease),
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease;
}

.primary-button {
    color: white;

    background:
        linear-gradient(
            110deg,
            var(--purple-deep),
            var(--purple),
            #9b72ff
        );

    box-shadow:
        0 10px 30px rgba(139, 92, 246, 0.22),
        0 0 30px rgba(139, 92, 246, 0.12);
}

.primary-button::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 80%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,0.25),
            transparent
        );

    transform: skewX(-20deg);

    transition: left 0.7s ease;
}

.primary-button:hover::before {
    left: 140%;
}

.primary-button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 16px 45px rgba(139, 92, 246, 0.3),
        0 0 40px rgba(139, 92, 246, 0.2);
}

.secondary-button {
    border: 1px solid rgba(57, 255, 136, 0.3);

    background: rgba(57, 255, 136, 0.035);

    color: var(--green-bright);

    box-shadow:
        inset 0 0 18px rgba(57, 255, 136, 0.025);
}

.secondary-button:hover {
    transform: translateY(-3px);

    border-color: rgba(57, 255, 136, 0.7);

    background: rgba(57, 255, 136, 0.08);

    box-shadow:
        0 0 28px rgba(57, 255, 136, 0.12),
        inset 0 0 20px rgba(57, 255, 136, 0.04);
}

.secondary-button span,
.primary-button span,
.project-link span {
    transition: transform 0.3s var(--ease);
}

.secondary-button:hover span,
.primary-button:hover span,
.project-link:hover span {
    transform: translateX(5px);
}


/* =========================================================
   HERO STATUS
========================================================= */

.hero-status {
    position: absolute;

    right: 5%;
    bottom: 15%;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 10px 15px;

    border: 1px solid var(--line);

    border-radius: 999px;

    background: rgba(20, 13, 10, 0.6);

    backdrop-filter: blur(12px);

    color: var(--text-muted);

    font-family: monospace;
    font-size: 0.65rem;

    box-shadow:
        0 0 25px rgba(57, 255, 136, 0.04);
}

.hero-status::before {
    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 8px var(--green),
        0 0 16px var(--green);
}

.hero-scroll {
    position: absolute;

    bottom: 32px;
    left: 50%;

    display: flex;
    align-items: center;

    gap: 10px;

    color: var(--text-muted);

    font-size: 0.65rem;

    letter-spacing: 0.12em;
    text-transform: uppercase;

    transform: translateX(-50%);
}

.hero-scroll span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--purple-bright);

    box-shadow:
        0 0 10px var(--purple),
        0 0 20px var(--purple);

    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(6px);
        opacity: 1;
    }
}


/* =========================================================
   SERVICES
========================================================= */

.services {
    position: relative;

    border-top: 1px solid var(--line);
}

.service-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.service-card {
    position: relative;

    min-height: 370px;

    padding: 32px;

    border: 1px solid var(--line);

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.035),
            rgba(255,255,255,0.008)
        );

    backdrop-filter: blur(15px);

    overflow: hidden;

    transition:
        transform 0.5s var(--ease),
        border-color 0.4s ease,
        background 0.4s ease,
        box-shadow 0.5s ease;
}

.service-card::before {
    content: "";

    position: absolute;

    inset: 0;

    opacity: 0;

    background:
        radial-gradient(
            circle at 20% 10%,
            rgba(139,92,246,0.12),
            transparent 45%
        );

    transition: opacity 0.5s ease;
}

.service-card:hover {
    transform: translateY(-9px);

    border-color: rgba(139, 92, 246, 0.4);

    background: var(--surface-hover);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.25),
        0 0 35px rgba(139,92,246,0.07);
}

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

.card-top {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-number {
    color: var(--green);

    font-family: monospace;
    font-size: 0.75rem;

    text-shadow:
        0 0 10px rgba(57,255,136,0.35);
}

.card-arrow {
    color: var(--purple-bright);

    font-size: 1.2rem;

    transition:
        transform 0.4s var(--ease),
        color 0.3s ease;
}

.service-card:hover .card-arrow {
    transform: translate(4px, -4px);

    color: var(--green);
}

.service-card h3 {
    position: relative;
    z-index: 1;

    margin-top: 70px;

    font-size: 1.65rem;

    letter-spacing: -0.035em;
}

.service-card p {
    position: relative;
    z-index: 1;

    max-width: 380px;

    margin-top: 16px;

    color: var(--text-soft);

    font-size: 0.93rem;
}

.card-line {
    position: absolute;

    bottom: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--purple),
            var(--green),
            transparent
        );

    transform: scaleX(0);

    transform-origin: center;

    transition: transform 0.6s var(--ease);

    box-shadow:
        0 0 15px rgba(139,92,246,0.5);
}

.service-card:hover .card-line {
    transform: scaleX(1);
}


/* =========================================================
   PROCESS
========================================================= */

.process {
    border-top: 1px solid var(--line);
}

.process-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    border-top: 1px solid var(--line);
}

.process-step {
    position: relative;

    display: grid;

    grid-template-columns: 70px 1fr;

    gap: 28px;

    padding: 42px 24px;

    border-bottom: 1px solid var(--line);

    transition:
        background 0.4s ease,
        padding-left 0.4s var(--ease);
}

.process-step:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.process-step:hover {
    background:
        linear-gradient(
            90deg,
            rgba(139,92,246,0.05),
            transparent
        );

    padding-left: 30px;
}

.step-number {
    color: var(--purple-bright);

    font-family: monospace;
    font-size: 0.75rem;

    text-shadow:
        0 0 12px rgba(139,92,246,0.4);
}

.process-step h3 {
    font-size: 1.35rem;

    letter-spacing: -0.025em;
}

.process-step p {
    max-width: 450px;

    margin-top: 10px;

    color: var(--text-soft);

    font-size: 0.9rem;
}


/* =========================================================
   WORK
========================================================= */

.work {
    border-top: 1px solid var(--line);
}

.project-card {
    display: grid;

    grid-template-columns: 1fr 1fr;

    border: 1px solid var(--line);

    border-radius: 24px;

    overflow: hidden;

    background: var(--surface-solid);

    box-shadow:
        0 30px 100px rgba(0,0,0,0.25);
}

.project-content {
    padding: 55px;
}

.project-label {
    color: var(--green);

    font-family: monospace;

    font-size: 0.68rem;

    letter-spacing: 0.12em;
}

.project-content h3 {
    margin-top: 22px;

    font-size: clamp(2.3rem, 5vw, 4.2rem);

    line-height: 1;

    letter-spacing: -0.055em;
}

.project-content > p {
    max-width: 530px;

    margin-top: 25px;

    color: var(--text-soft);
}

.project-details {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 15px;

    margin-top: 42px;

    padding-top: 24px;

    border-top: 1px solid var(--line);
}

.project-details div {
    display: flex;

    flex-direction: column;

    gap: 5px;
}

.project-details span {
    color: var(--text-muted);

    font-size: 0.67rem;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}

.project-details strong {
    font-size: 0.78rem;

    font-weight: 600;
}

.project-link {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-top: 42px;

    color: var(--green-bright);

    font-size: 0.84rem;

    font-weight: 700;
}

.project-visual {
    min-height: 520px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 45px;

    background:
        radial-gradient(
            circle at center,
            rgba(139,92,246,0.16),
            transparent 55%
        ),
        #110b09;
}


/* =========================================================
   TERMINAL
========================================================= */

.terminal-window {
    position: relative;

    width: 100%;

    max-width: 500px;

    border: 1px solid rgba(139,92,246,0.25);

    border-radius: 15px;

    background: #090706;

    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.55),
        0 0 60px rgba(139,92,246,0.10),
        inset 0 0 30px rgba(57,255,136,0.02);

    transition:
        transform 0.5s var(--ease),
        border-color 0.4s ease,
        box-shadow 0.5s ease;
}

.terminal-window:hover {
    transform: translateY(-5px);

    border-color: rgba(57,255,136,0.35);

    box-shadow:
        0 35px 90px rgba(0,0,0,0.6),
        0 0 70px rgba(139,92,246,0.14),
        0 0 30px rgba(57,255,136,0.06);
}

.terminal-header {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 14px 18px;

    border-bottom: 1px solid var(--line);

    color: var(--text-muted);

    font-family: monospace;

    font-size: 0.68rem;
}

.terminal-dots {
    display: flex;

    gap: 5px;
}

.terminal-dots span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #433a35;
}

.terminal-body {
    padding: 28px;

    font-family: monospace;

    font-size: 0.78rem;

    line-height: 2;
}

.terminal-body p {
    color: #ded8d3;
}

.terminal-muted {
    color: #69605a !important;
}

.terminal-success {
    color: var(--green) !important;

    text-shadow:
        0 0 8px rgba(57,255,136,0.3);
}

.terminal-divider {
    height: 1px;

    margin: 15px 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--line-bright),
            transparent
        );
}

.terminal-body strong {
    color: white;
}


/* =========================================================
   WHY
========================================================= */

.why {
    border-top: 1px solid var(--line);
}

.principles-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--line);

    border-bottom: 1px solid var(--line);
}

.principle {
    min-height: 270px;

    padding: 32px 25px;

    border-right: 1px solid var(--line);

    transition:
        background 0.4s ease,
        transform 0.4s var(--ease);
}

.principle:last-child {
    border-right: none;
}

.principle:hover {
    background: rgba(139,92,246,0.035);

    transform: translateY(-3px);
}

.principle > span {
    color: var(--green);

    font-family: monospace;

    font-size: 0.72rem;
}

.principle h3 {
    margin-top: 55px;

    font-size: 1.18rem;
}

.principle p {
    margin-top: 12px;

    color: var(--text-soft);

    font-size: 0.87rem;
}


/* =========================================================
   ABOUT
========================================================= */

.about {
    border-top: 1px solid var(--line);
}

.about-grid {
    display: grid;

    grid-template-columns: 0.7fr 1.3fr;

    gap: 80px;
}

.about-content {
    max-width: 760px;
}

.about-content h2 {
    font-size: clamp(2.4rem, 5vw, 4.8rem);

    line-height: 1;

    letter-spacing: -0.055em;
}

.about-content > p {
    max-width: 680px;

    margin-top: 25px;

    color: var(--text-soft);

    font-size: 1rem;
}

.about-line {
    width: 100%;

    height: 1px;

    margin: 45px 0 25px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--line-bright),
            transparent
        );
}

.about-highlight {
    color: var(--green-bright) !important;

    font-size: 1.12rem !important;

    font-weight: 600;

    text-shadow:
        0 0 20px rgba(57,255,136,0.08);
}


/* =========================================================
   CTA
========================================================= */

.cta {
    position: relative;

    border-top: 1px solid var(--line);

    text-align: center;

    overflow: hidden;
}

.cta::before {
    content: "";

    position: absolute;

    top: 20%;
    left: 50%;

    width: 700px;
    height: 500px;

    background:
        radial-gradient(
            circle,
            rgba(139,92,246,0.17),
            rgba(57,255,136,0.035),
            transparent 68%
        );

    filter: blur(60px);

    border-radius: 50%;

    transform: translate(-50%, -50%);

    pointer-events: none;

    animation: ctaGlow 8s ease-in-out infinite alternate;
}

@keyframes ctaGlow {
    from {
        transform: translate(-50%, -50%) scale(0.9);
    }

    to {
        transform: translate(-50%, -50%) scale(1.12);
    }
}

.cta-inner {
    position: relative;

    z-index: 1;

    max-width: 800px;

    margin: 0 auto;
}

.cta h2 {
    margin-top: 20px;

    font-size: clamp(3rem, 7vw, 6rem);

    line-height: 0.95;

    letter-spacing: -0.06em;
}

.cta p:not(.eyebrow) {
    max-width: 580px;

    margin: 28px auto 0;

    color: var(--text-soft);
}

.cta .primary-button {
    margin-top: 35px;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    width: min(var(--max-width), calc(100% - 48px));

    margin: 0 auto;

    border-top: 1px solid var(--line);
}

.footer-main {
    display: flex;

    justify-content: space-between;

    gap: 80px;

    padding: 65px 0;
}

.footer-brand p {
    max-width: 250px;

    margin-top: 14px;

    color: var(--text-muted);

    font-size: 0.84rem;
}

.footer-links {
    display: flex;

    gap: 100px;
}

.footer-links div {
    display: flex;

    flex-direction: column;

    gap: 11px;
}

.footer-links span {
    margin-bottom: 8px;

    color: var(--text-muted);

    font-size: 0.68rem;

    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}

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

    font-size: 0.83rem;

    transition:
        color 0.3s ease,
        transform 0.3s var(--ease);
}

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

    transform: translateX(4px);
}

.footer-bottom {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 20px 0;

    border-top: 1px solid var(--line);

    color: var(--text-muted);

    font-size: 0.68rem;
}


/* =========================================================
   SCROLL REVEAL
========================================================= */

.reveal {
    opacity: 0;

    transform: translateY(28px);

    transition:
        opacity 0.8s var(--ease),
        transform 0.8s var(--ease);
}

.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   FOCUS
========================================================= */

:focus-visible {
    outline: 2px solid var(--green);

    outline-offset: 4px;

    box-shadow:
        0 0 15px rgba(57,255,136,0.2);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .nav-links {
        display: none;
    }

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

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

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

    .process-step:nth-child(odd) {
        border-right: none;
    }

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

    .project-visual {
        min-height: 420px;
    }

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

    .principle:nth-child(2) {
        border-right: none;
    }

    .principle:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .about-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .hero-status {
        display: none;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .section {
        width: min(100% - 32px, var(--max-width));

        padding: 95px 0;
    }

    .navbar {
        width: calc(100% - 32px);

        min-height: 68px;
    }

    .nav-cta {
        padding: 8px 14px;

        font-size: 0.72rem;
    }

    .hero {
        min-height: 100svh;

        padding: 145px 16px 100px;
    }

    .hero h1 {
        font-size: clamp(3.3rem, 17vw, 5.5rem);
    }

    .hero-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .hero-scroll {
        display: none;
    }

    .section-heading {
        margin-bottom: 45px;
    }

    .section-heading h2 {
        font-size: 2.5rem;
    }

    .service-card {
        min-height: 270px;

        padding: 25px;
    }

    .service-card h3 {
        margin-top: 55px;
    }

    .process-step {
        grid-template-columns: 45px 1fr;

        gap: 15px;

        padding: 28px 0;
    }

    .project-content {
        padding: 30px 24px;
    }

    .project-content h3 {
        font-size: 2.8rem;
    }

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

    .project-visual {
        min-height: 350px;

        padding: 22px;
    }

    .terminal-body {
        padding: 20px;

        font-size: 0.68rem;
    }

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

    .principle,
    .principle:nth-child(2) {
        border-right: none;

        border-bottom: 1px solid var(--line);
    }

    .principle:last-child {
        border-bottom: none;
    }

    .principle {
        min-height: 210px;
    }

    .principle h3 {
        margin-top: 35px;
    }

    .about-content h2 {
        font-size: 2.8rem;
    }

    .cta h2 {
        font-size: 3.4rem;
    }

    .footer-main {
        flex-direction: column;

        gap: 45px;

        padding: 45px 0;
    }

    .footer-links {
        gap: 60px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}