/* =========================================================
   FUTURESTACK AI
   Main Design System
   ========================================================= */


/* =========================================================
   01. DESIGN TOKENS
   ========================================================= */

:root {
    --color-bg: #03050a;
    --color-bg-soft: #070a12;
    --color-surface: #0a0e18;
    --color-surface-light: #0d1220;

    --color-border: rgba(255, 255, 255, 0.09);
    --color-border-strong: rgba(126, 91, 255, 0.35);

    --color-text: #f5f7ff;
    --color-text-soft: #c5cad8;
    --color-text-muted: #7e8495;

    --color-primary: #7c4dff;
    --color-primary-light: #9a78ff;
    --color-blue: #238cff;
    --color-cyan: #16d9ff;

    --gradient-primary:
        linear-gradient(
            135deg,
            #7c4dff 0%,
            #4f7cff 100%
        );

    --gradient-text:
        linear-gradient(
            90deg,
            #ffffff 0%,
            #238cff 45%,
            #9a78ff 100%
        );

    --shadow-primary:
        0 0 40px rgba(124, 77, 255, 0.18);

    --shadow-card:
        0 20px 60px rgba(0, 0, 0, 0.25);

    --container-width: 1240px;

    --header-height: 78px;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition-fast: 180ms ease;
    --transition-normal: 300ms ease;
}


/* =========================================================
   02. RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(74, 67, 145, 0.14),
            transparent 35%
        ),
        var(--color-bg);

    color: var(--color-text);

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

    font-size: 16px;
    line-height: 1.6;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::selection {
    background: rgba(124, 77, 255, 0.4);
    color: #ffffff;
}

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

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

button,
input {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

ul {
    list-style: none;
}


/* =========================================================
   03. ACCESSIBILITY
   ========================================================= */

.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;
}


/* =========================================================
   04. GLOBAL CONTAINER
   ========================================================= */

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

    margin-inline: auto;
}


/* =========================================================
   05. GLOBAL SECTION
   ========================================================= */

.section {
    position: relative;

    padding-block: 120px;

    overflow: hidden;
}

.section-heading {
    max-width: 760px;

    margin-inline: auto;
    margin-bottom: 64px;

    text-align: center;
}

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

    margin-bottom: 16px;

    color: #8f79ff;

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

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

.section-eyebrow::before {
    content: "";

    width: 18px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--color-primary)
        );
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);

    line-height: 1.08;

    letter-spacing: -0.045em;

    margin-bottom: 20px;
}

.section-heading p {
    max-width: 650px;

    margin-inline: auto;

    color: var(--color-text-muted);

    font-size: 0.98rem;
}


/* =========================================================
   06. BUTTONS
   ========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 48px;

    padding: 0 22px;

    border-radius: var(--radius-sm);

    font-size: 0.84rem;
    font-weight: 600;

    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-normal),
        border-color var(--transition-normal),
        background var(--transition-normal);
}

.button span {
    transition: transform var(--transition-fast);
}

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

.button:hover span {
    transform: translateX(3px);
}

.button-primary {
    color: #ffffff;

    background: var(--gradient-primary);

    box-shadow:
        0 8px 30px rgba(124, 77, 255, 0.25);
}

.button-primary:hover {
    box-shadow:
        0 12px 40px rgba(124, 77, 255, 0.4);
}

.button-secondary {
    color: #ffffff;

    background: rgba(255, 255, 255, 0.025);

    border: 1px solid rgba(255, 255, 255, 0.18);

    backdrop-filter: blur(12px);
}

.button-secondary:hover {
    border-color: rgba(124, 77, 255, 0.65);

    background:
        rgba(124, 77, 255, 0.08);
}


/* =========================================================
   07. HEADER
   ========================================================= */

.site-header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    height: var(--header-height);

    z-index: 1000;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.055);

    background:
        rgba(3, 5, 10, 0.72);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-container {
    height: 100%;

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

    gap: 32px;
}


/* Logo */

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

    flex-shrink: 0;
}

.brand-logo-mark {
    display: grid;
    place-items: center;

    width: 34px;
    height: 34px;

    border: 1px solid rgba(124, 77, 255, 0.6);

    border-radius: 9px;

    color: #ffffff;

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

    background:
        linear-gradient(
            135deg,
            rgba(124, 77, 255, 0.25),
            rgba(35, 140, 255, 0.12)
        );

    box-shadow:
        inset 0 0 20px rgba(124, 77, 255, 0.12);
}

.brand-logo-text {
    color: #ffffff;

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

    letter-spacing: -0.02em;

    text-transform: uppercase;
}


/* Navigation */

.main-navigation {
    display: flex;
    align-items: center;

    margin-left: auto;
}

.navigation-list {
    display: flex;
    align-items: center;

    gap: 28px;
}

.navigation-link {
    position: relative;

    display: inline-flex;

    padding-block: 8px;

    color: var(--color-text-muted);

    font-size: 0.76rem;
    font-weight: 500;

    transition:
        color var(--transition-fast);
}

.navigation-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 1px;

    background: var(--color-primary-light);

    transition:
        width var(--transition-normal);
}

.navigation-link:hover,
.navigation-link.active {
    color: #ffffff;
}

.navigation-link:hover::after,
.navigation-link.active::after {
    width: 100%;
}


/* Header CTA */

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 17px;

    border-radius: 7px;

    color: #ffffff;

    background: var(--gradient-primary);

    font-size: 0.72rem;
    font-weight: 600;

    box-shadow:
        0 6px 25px rgba(124, 77, 255, 0.22);

    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-normal);
}

.header-cta:hover {
    transform: translateY(-1px);

    box-shadow:
        0 10px 35px rgba(124, 77, 255, 0.35);
}


/* Mobile button */

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    padding: 10px;

    background: transparent;
}

.mobile-menu-button span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 5px 0;

    background: #ffffff;

    border-radius: 10px;
}


/* Mobile navigation */

.mobile-navigation {
    display: none;
}


/* =========================================================
   08. HERO
   ========================================================= */

.hero-section {
    position: relative;

    min-height: 780px;

    display: flex;
    align-items: center;

    padding-top: var(--header-height);

    overflow: hidden;
}

.hero-background {
    position: absolute;

    inset: 0;

    z-index: -2;

    background:
        radial-gradient(
            circle at 70% 40%,
            rgba(50, 80, 170, 0.18),
            transparent 35%
        ),
        #02040a;
}

.hero-video {
    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0.58;

    filter:
        saturate(0.85)
        contrast(1.08);
}

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(2, 4, 10, 0.97) 0%,
            rgba(2, 4, 10, 0.82) 38%,
            rgba(2, 4, 10, 0.35) 70%,
            rgba(2, 4, 10, 0.62) 100%
        ),
        linear-gradient(
            180deg,
            rgba(2, 4, 10, 0.45),
            transparent 45%,
            rgba(2, 4, 10, 0.95)
        );
}

.hero-container {
    width: min(
        calc(100% - 48px),
        var(--container-width)
    );
}

.hero-content {
    max-width: 720px;

    padding-block: 110px 90px;
}

.hero-title {
    max-width: 760px;

    margin-bottom: 28px;

    font-size: clamp(
        3.1rem,
        6vw,
        5.5rem
    );

    line-height: 0.98;

    letter-spacing: -0.065em;

    font-weight: 800;
}

.hero-title span {
    display: inline;

    background: var(--gradient-text);

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

    color: transparent;
}

.hero-description {
    max-width: 630px;

    margin-bottom: 34px;

    color: #b6bccb;

    font-size: 0.98rem;

    line-height: 1.8;
}

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

    gap: 12px;

    margin-bottom: 58px;
}

.hero-technologies {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 22px;
}

.hero-technologies span {
    position: relative;

    color: #a9afbe;

    font-size: 0.63rem;
    font-weight: 600;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.hero-technologies span:not(:last-child)::after {
    content: "";

    position: absolute;

    right: -13px;
    top: 50%;

    width: 3px;
    height: 3px;

    transform: translateY(-50%);

    border-radius: 50%;

    background: var(--color-primary-light);
}


/* =========================================================
   09. TECHNOLOGY SECTION
   ========================================================= */

.technology-section {
    background:
        linear-gradient(
            180deg,
            #050811 0%,
            #070b14 100%
        );

    border-top:
        1px solid rgba(255, 255, 255, 0.04);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.04);
}

.technology-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

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

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

.technology-card {
    min-height: 250px;

    padding: 40px 28px;

    text-align: center;

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

    transition:
        background var(--transition-normal),
        transform var(--transition-normal);
}

.technology-card:last-child {
    border-right: 0;
}

.technology-card:hover {
    background:
        rgba(124, 77, 255, 0.035);

    transform: translateY(-3px);
}

.technology-icon {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    margin: 0 auto 25px;

    border:
        1px solid rgba(124, 77, 255, 0.4);

    border-radius: 50%;

    color: #a88cff;

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

    background:
        rgba(124, 77, 255, 0.06);

    box-shadow:
        0 0 30px rgba(124, 77, 255, 0.08);
}

.technology-card h3 {
    margin-bottom: 12px;

    font-size: 0.92rem;

    letter-spacing: -0.02em;
}

.technology-card p {
    color: var(--color-text-muted);

    font-size: 0.75rem;

    line-height: 1.65;
}

.technology-statement {
    padding-top: 60px;

    text-align: center;
}

.technology-statement p {
    margin-bottom: 4px;

    color: #b0b6c5;

    font-size: 1rem;
}

.technology-statement strong {
    display: block;

    font-size: 2rem;

    background: var(--gradient-text);

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

    color: transparent;
}


/* =========================================================
   10. WHAT WE BUILD
   ========================================================= */

.what-we-build-section {
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(124, 77, 255, 0.06),
            transparent 35%
        ),
        var(--color-bg);
}

.build-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 14px;
}

.build-card {
    position: relative;

    min-height: 340px;

    padding: 30px 25px;

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

    border-radius: var(--radius-md);

    background:
        linear-gradient(
            180deg,
            rgba(13, 18, 32, 0.75),
            rgba(7, 10, 18, 0.85)
        );

    overflow: hidden;

    transition:
        transform var(--transition-normal),
        border-color var(--transition-normal),
        box-shadow var(--transition-normal);
}

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

    position: absolute;

    inset: 0;

    opacity: 0;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(124, 77, 255, 0.12),
            transparent 55%
        );

    transition:
        opacity var(--transition-normal);
}

.build-card:hover {
    transform: translateY(-7px);

    border-color:
        rgba(124, 77, 255, 0.42);

    box-shadow:
        var(--shadow-card);
}

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

.build-number {
    position: absolute;

    top: 24px;
    right: 22px;

    color: #667085;

    font-size: 0.7rem;
    font-weight: 700;
}

.build-icon {
    position: relative;

    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    margin-bottom: 32px;

    border-radius: 13px;

    border:
        1px solid rgba(124, 77, 255, 0.4);

    color: #9c80ff;

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

    background:
        rgba(124, 77, 255, 0.07);
}

.build-card h3 {
    position: relative;

    margin-bottom: 14px;

    font-size: 1rem;

    line-height: 1.3;
}

.build-card p {
    position: relative;

    color: var(--color-text-muted);

    font-size: 0.76rem;

    line-height: 1.7;
}

.card-link {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 24px;

    color: #9c80ff;

    font-size: 0.72rem;
    font-weight: 600;

    transition:
        color var(--transition-fast);
}

.card-link:hover {
    color: #ffffff;
}

.card-link span {
    transition:
        transform var(--transition-fast);
}

.card-link:hover span {
    transform: translateX(4px);
}


/* =========================================================
   11. ECOSYSTEM
   ========================================================= */

.ecosystem-section {
    background:
        #050811;
}

.ecosystem-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr 0.65fr;

    gap: 14px;
}

.ecosystem-card {
    position: relative;

    min-height: 330px;

    display: flex;
    align-items: flex-end;

    padding: 32px;

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

    border-radius: var(--radius-md);

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #0b1020,
            #080b14
        );

    transition:
        transform var(--transition-normal),
        border-color var(--transition-normal);
}

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

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(124, 77, 255, 0.17),
            transparent 40%
        );

    opacity: 0.8;
}

.ecosystem-card::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -80px;
    top: -70px;

    border-radius: 50%;

    border:
        1px solid rgba(124, 77, 255, 0.12);

    box-shadow:
        0 0 80px rgba(35, 140, 255, 0.05);
}

.ecosystem-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(124, 77, 255, 0.4);
}

.ecosystem-card-content {
    position: relative;

    z-index: 2;

    max-width: 520px;
}

.ecosystem-number {
    display: block;

    margin-bottom: 18px;

    color: #6c7281;

    font-size: 0.68rem;
    font-weight: 700;
}

.ecosystem-icon {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    margin-bottom: 20px;

    border:
        1px solid rgba(35, 140, 255, 0.4);

    border-radius: 12px;

    color: #5db8ff;

    font-weight: 800;

    background:
        rgba(35, 140, 255, 0.06);
}

.ecosystem-card h3 {
    margin-bottom: 12px;

    font-size: 1.35rem;

    letter-spacing: -0.035em;
}

.ecosystem-card p {
    max-width: 450px;

    color: var(--color-text-muted);

    font-size: 0.77rem;

    line-height: 1.7;
}

.ecosystem-card-future {
    align-items: center;

    text-align: center;
}

.ecosystem-card-future .ecosystem-card-content {
    margin-inline: auto;
}

.ecosystem-card-future .ecosystem-icon {
    margin-inline: auto;
}

.ecosystem-card-future .card-link {
    justify-content: center;
}


/* Ecosystem Architecture */

.ecosystem-architecture {
    margin-top: 80px;

    padding: 50px;

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

    border-radius: var(--radius-lg);

    background:
        radial-gradient(
            circle at center,
            rgba(124, 77, 255, 0.06),
            transparent 55%
        );
}

.architecture-heading {
    margin-bottom: 42px;

    text-align: center;
}

.architecture-heading h3 {
    font-size: 1.45rem;

    letter-spacing: -0.03em;
}

.architecture-flow {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    flex-wrap: wrap;
}

.architecture-node {
    min-width: 110px;

    padding: 13px 18px;

    border:
        1px solid rgba(255, 255, 255, 0.1);

    border-radius: 8px;

    color: #bfc5d5;

    background:
        rgba(255, 255, 255, 0.025);

    text-align: center;

    font-size: 0.72rem;
    font-weight: 600;
}

.architecture-node-main {
    border-color:
        rgba(124, 77, 255, 0.55);

    color: #ffffff;

    background:
        rgba(124, 77, 255, 0.1);

    box-shadow:
        0 0 30px rgba(124, 77, 255, 0.1);
}

.architecture-line {
    color: #6f79a0;

    font-size: 0.85rem;
}


/* =========================================================
   12. DEVELOPERS
   ========================================================= */

.developers-section {
    background:
        linear-gradient(
            180deg,
            #03050a,
            #060914
        );
}

.developer-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 1px;

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

    background:
        var(-color-border);
}
  /* =========================================================
   FUTURESTACK AI
   13. RESPONSIVE MOBILE SYSTEM
   ---------------------------------------------------------
   Desktop layout remains unchanged.
   These rules only activate below 1100px / 850px / 600px.
   ========================================================= */


/* =========================================================
   13.1 LARGE TABLETS
   ========================================================= */

@media (max-width: 1100px) {

    .navigation-list {
        gap: 18px;
    }

    .header-cta {
        display: none;
    }

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

    .technology-card:nth-child(3) {
        border-right: 0;
    }

    .technology-card:nth-child(n + 4) {
        border-top: 1px solid var(--color-border);
    }

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

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


/* =========================================================
   13.2 TABLET / SMALL LAPTOP
   ========================================================= */

@media (max-width: 850px) {

    :root {
        --header-height: 70px;
    }
  
    .container {
        width: min(
            calc(100% - 40px),
            var(--container-width)
        );
    }

    /* ---------- HEADER ---------- */

    .main-navigation {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .mobile-menu-button {
        display: block;
        flex-shrink: 0;
    }

    .mobile-navigation {
    display: block;

    position: absolute;
    top: 100%;
        left: 0;

        width: 100%;

        padding: 18px 20px 22px;

        border-bottom: 1px solid rgba(255, 255, 255, 0.08);

        background: rgba(3, 5, 10, 0.98);

        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);

        box-shadow:
            0 20px 45px rgba(0, 0, 0, 0.35);

        visibility: hidden;
        opacity: 0;
        pointer-events: none;

        transform: translateY(-8px);

        transition:
            opacity var(--transition-normal),
            transform var(--transition-normal),
            visibility var(--transition-normal);
    }

    /*
       Supports the common states our main.js can use later.
       Desktop is unaffected.
    */
    .mobile-navigation.active,
    .mobile-navigation.open,
    .mobile-navigation.is-open,
    .mobile-navigation[aria-hidden="false"] {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .mobile-navigation-list {
        display: grid;
        gap: 3px;
    }

    .mobile-navigation-list a {
        display: flex;
        align-items: center;

        min-height: 46px;

        padding: 10px 12px;

        border-radius: 8px;

        color: var(--color-text-muted);

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

        transition:
            color var(--transition-fast),
            background var(--transition-fast);
    }

    .mobile-navigation-list a:hover,
    .mobile-navigation-list a.active {
        color: #ffffff;
        background: rgba(124, 77, 255, 0.08);
    }

    .mobile-navigation-cta {
        display: flex;
        align-items: center;
        justify-content: center;

        margin-top: 10px;

        min-height: 46px;

        border-radius: 8px;

        color: #ffffff !important;

        background: var(--gradient-primary);
    }


    /* ---------- HERO ---------- */

    .hero-section {
        min-height: 720px;
    }

    .hero-container {
        width: min(
            calc(100% - 40px),
            var(--container-width)
        );
    }

    .hero-content {
        max-width: 680px;
    }

    .hero-title {
        font-size: clamp(2.8rem, 8vw, 4.5rem);
    }


    /* ---------- TECHNOLOGY ---------- */
          
    .technology-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .technology-card {
        border-right: 1px solid var(--color-border);
    }

    .technology-card:nth-child(2n) {
        border-right: 0;
    }

    .technology-card:nth-child(n + 3) {
        border-top: 1px solid var(--color-border);
    }


    /* ---------- WHAT WE BUILD ---------- */

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


    /* ---------- ECOSYSTEM ---------- */

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

    .ecosystem-card-future {
        grid-column: 1 / -1;
        min-height: 260px;
    }

    .ecosystem-card-content {
        width: 100%;
        max-width: none;
    }

    .ecosystem-card p {
        max-width: 100%;
    }


    /* ---------- DEVELOPERS ---------- */

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


    /* ---------- ABOUT ---------- */
  
    .about-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .about-content {
        max-width: none;
        text-align: center;
    }

    .about-content p {
        max-width: 700px;
        margin-inline: auto;
    }


    /* ---------- FOUNDER ---------- */

    .founder-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .founder-image-wrapper {
        margin-inline: auto;
    }

    .founder-content > p {
        margin-inline: auto;
    }

    .founder-links {
        justify-content: center;
    }
}


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

@media (max-width: 600px) {

    :root {
        --header-height: 68px;
    }

    html {
        overflow-x: hidden;
    }

    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        width: calc(100% - 32px);
        max-width: none;
    }

    .section {
        padding-block: 82px;
    }

    .section-heading {
        width: 100%;
        max-width: 100%;
        margin-bottom: 42px;
    }

    .section-heading h2 {
        font-size: clamp(1.9rem, 9vw, 2.5rem);
        line-height: 1.08;
    }

    .section-heading p {
        font-size: 0.82rem;
        line-height: 1.7;
    }


    /* =====================================================
       HEADER
       ===================================================== */
      .hero-technologies span:not(:last-child)::after {
        right: -9px;
        width: 2px;
        height: 2px;
    }

    .hero-video {
        opacity: 0.42;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(2, 4, 10, 0.94) 0%,
                rgba(2, 4, 10, 0.72) 55%,
                rgba(2, 4, 10, 0.62) 100%
            ),
            linear-gradient(
                180deg,
                rgba(2, 4, 10, 0.45),
                transparent 42%,
                rgba(2, 4, 10, 0.96) 100%
            );
    }


    /* =====================================================
       TECHNOLOGY — ONE CARD PER ROW
       ===================================================== */

    .technology-grid {
    width: 100% !important;

    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;

    border-top: 1px solid var(--color-border) !important;
    border-bottom: 1px solid var(--color-border) !important;
    }

    .technology-card {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;

    padding: 34px 22px !important;

    border-right: 0 !important;
    border-top: 0 !important;
    border-bottom: 1px solid var(--color-border) !important;
    }

    .technology-card:last-child {
        border-bottom: 0;
    }

    .technology-icon {
        width: 54px;
        height: 54px;

        margin-bottom: 19px;
    }

    .technology-card h3 {
        margin-bottom: 9px;
        font-size: 0.94rem;
    }

    .technology-card p {
        max-width: 300px;

        margin-inline: auto;

        font-size: 0.73rem;
        line-height: 1.65;
    }

    .technology-statement {
        padding-top: 46px;
        padding-inline: 10px;
    }

    .technology-statement p {
        font-size: 0.82rem;
        line-height: 1.7;
    }

    .technology-statement strong {
        font-size: 1.85rem;
    }


    /* =====================================================
       WHAT WE BUILD — ONE CARD PER ROW
       ===================================================== */

    .build-grid {
    display: grid !important;
    width: 100% !important;

    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;

    gap: 12px !important;
    }

    .build-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 0 !important;

    padding: 26px 22px 28px !important;
    }

    .build-number {
        top: 20px;
        right: 18px;
    }

    .build-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 24px;
    }

    .build-card h3 {
        padding-right: 35px;

        font-size: 1rem;
    }

    .build-card p {
        font-size: 0.75rem;
        line-height: 1.7;
    }

    .card-link {
        margin-top: 20px;
    }


    /* =====================================================
       ECOSYSTEM — ONE CARD PER ROW
       ===================================================== */
  
    .ecosystem-grid {
    display: grid !important;
    width: 100% !important;

    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;

    gap: 12px !important;
    }

    .ecosystem-card,
.ecosystem-card-future {
    grid-column: auto !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 0 !important;

    padding: 28px 22px !important;

    align-items: flex-start !important;
    text-align: left !important;
}

    .ecosystem-card-future {
        min-height: 0;
    }

    .ecosystem-card-content {
        width: 100%;
        max-width: 100%;
    }

    .ecosystem-card-future .ecosystem-card-content {
        margin-inline: 0;
    }

    .ecosystem-card-future .ecosystem-icon {
        margin-inline: 0;
    }

    .ecosystem-card-future .card-link {
        justify-content: flex-start;
    }

    .ecosystem-number {
        margin-bottom: 14px;
    }

    .ecosystem-icon {
        width: 44px;
        height: 44px;

        margin-bottom: 17px;
    }

    .ecosystem-card h3 {
        font-size: 1.22rem;
        line-height: 1.2;
    }

    .ecosystem-card p {
        width: 100%;
        max-width: 100%;

        font-size: 0.75rem;
        line-height: 1.7;

        overflow-wrap: anywhere;
    }


    /* =====================================================
       ECOSYSTEM ARCHITECTURE
       ===================================================== */

    .ecosystem-architecture {
        width: 100%;

        margin-top: 52px;

        padding: 28px 18px;
    }

    .architecture-heading {
        margin-bottom: 30px;
    }

    .architecture-heading h3 {
        font-size: 1.2rem;
    }

    .architecture-flow {
        flex-direction: column;
        gap: 10px;
    }

    .architecture-node {
        width: min(100%, 230px);
        min-width: 0;

        padding: 12px 16px;
    }

    .architecture-line {
        transform: rotate(90deg);
    }


    /* =====================================================
       DEVELOPERS
       ===================================================== */

    .developer-grid {
    display: grid !important;
    width: 100% !important;

    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;

    gap: 1px !important;
    }

    .developer-card {
        min-height: 0;
        padding: 28px 22px;
    }


    /* =====================================================
       VISION
       ===================================================== */

    .vision-section {
        min-height: 520px;
    }

    .vision-content {
        width: 100%;
    }

    .vision-content h2 {
        font-size: clamp(2rem, 10vw, 2.7rem);
    }

    .vision-highlight {
        font-size: 1.35rem;
    }

    .vision-description {
        font-size: 0.82rem;
        line-height: 1.75;
    }

    .vision-grid {
        width: 720px;
        bottom: -170px;
    }


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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-content {
        text-align: center;
    }

    .about-content h2 {
        font-size: clamp(2rem, 10vw, 2.7rem);
    }

    .about-content p {
        font-size: 0.82rem;
        line-height: 1.75;
    }

    .about-visual {
        min-height: 340px;
    }


    /* =====================================================
       FOUNDER
       ===================================================== */

    .founder-card {
        width: 100%;

        grid-template-columns: 1fr;

        gap: 28px;

        padding: 30px 22px;

        text-align: center;
    }

    .founder-image-placeholder {
        width: 125px;
        height: 125px;
    }

    .founder-content h3 {
        font-size: 1.55rem;
    }

    .founder-content > p {
        font-size: 0.78rem;
        line-height: 1.7;
    }

    .founder-links {
        flex-wrap: wrap;
        justify-content: center;
    }


    /* =====================================================
       CONTACT
       ===================================================== */

    .contact-section {
        padding-block: 82px;
    }

    .contact-content h2 {
        font-size: clamp(2.2rem, 11vw, 3rem);
    }

    .contact-content > p {
        font-size: 0.82rem;
        line-height: 1.75;
    }

    .contact-actions {
        width: 100%;

        display: grid;
        grid-template-columns: 1fr;

        gap: 10px;
    }

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


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

    .footer-main {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .footer-brand,
    .footer-newsletter {
        grid-column: auto;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}


/* =========================================================
   13.4 VERY SMALL PHONES
   ========================================================= */
  
@media (max-width: 380px) {

    .container,
    .hero-container,
    .header-container {
        width: calc(100% - 24px);
    }

    .brand-logo-text {
        font-size: 0.7rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-actions {
        grid-template-columns: 1fr;
    }

    .hero-actions .button {
        min-height: 46px;
    }

    .technology-card {
        padding-inline: 18px;
    }

    .build-card,
    .ecosystem-card,
    .ecosystem-card-future {
        padding-inline: 18px;
    }
}


/* =========================================================
   13.5 ACCESSIBILITY / TOUCH
   ========================================================= */

@media (hover: none) {

    .button:hover,
    .build-card:hover,
    .ecosystem-card:hover,
    .technology-card:hover {
        transform: none;
    }
}

@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;
    }
}
   /* =========================================================
   FUTURESTACK AI
   MOBILE CARD GRID — FINAL
   ========================================================= */

@media (max-width: 600px) {

    /* =========================================
       TECHNOLOGY
       2 CARDS PER ROW
       ========================================= */

    .technology-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
        gap: 0 !important;
    }

    .technology-card {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 220px !important;

        padding: 28px 16px !important;

        border-right: 1px solid var(--color-border) !important;
        border-bottom: 1px solid var(--color-border) !important;
        border-top: 0 !important;
    }

    .technology-card:nth-child(2n) {
        border-right: 0 !important;
    }


    /* =========================================
       WHAT WE BUILD
       2 CARDS PER ROW
       ========================================= */

    .build-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .build-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 290px !important;

        padding: 22px 17px !important;
    }

    .build-card h3 {
        font-size: 0.92rem !important;
        line-height: 1.3 !important;
        padding-right: 18px !important;
    }

    .build-card p {
        font-size: 0.7rem !important;
        line-height: 1.6 !important;
    }

    .build-icon {
        width: 44px !important;
        height: 44px !important;
        margin-bottom: 20px !important;
    }

    .build-number {
        top: 16px !important;
        right: 14px !important;
    }

    .card-link {
        margin-top: 16px !important;
        font-size: 0.68rem !important;
    }


    /* =========================================
       OUR ECOSYSTEM
       2 CARDS PER ROW
       ========================================= */

    .ecosystem-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .ecosystem-card,
    .ecosystem-card-future {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 300px !important;

        padding: 22px 17px !important;

        align-items: flex-start !important;
        text-align: left !important;
    }

    .ecosystem-card-content {
        width: 100% !important;
        max-width: 100% !important;
    }

    .ecosystem-card h3 {
        font-size: 1.05rem !important;
        line-height: 1.25 !important;
    }

    .ecosystem-card p {
        width: 100% !important;
        max-width: 100% !important;

        font-size: 0.7rem !important;
        line-height: 1.6 !important;

        overflow-wrap: anywhere !important;
    }

    .ecosystem-icon {
        width: 42px !important;
        height: 42px !important;
        margin-bottom: 15px !important;
    }

    .ecosystem-number {
        margin-bottom: 12px !important;
    }


    /* =========================================
       DEVELOPERS
       2 CARDS PER ROW
       ========================================= */

    .developer-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
        gap: 1px !important;
    }

    .developer-card {
        min-width: 0 !important;
        min-height: 250px !important;
        padding: 22px 17px !important;
    }
}


/* =========================================================
   VERY SMALL PHONES
   1 CARD PER ROW
   ========================================================= */

@media (max-width: 380px) {

    .technology-grid,
    .build-grid,
    .ecosystem-grid,
    .developer-grid {
        grid-template-columns: 1fr !important;
    }

    .technology-card {
        min-height: 0 !important;
    }

    .build-card {
        min-height: 0 !important;
    }

    .ecosystem-card,
    .ecosystem-card-future {
        min-height: 0 !important;
    }
}
  
