/* =========================================================
   ENOCK KIRUI LABS
   Main Stylesheet
   ========================================================= */

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */

:root {
    --color-bg: #0b1120;
    --color-bg-soft: #111827;
    --color-surface: #172033;
    --color-surface-light: #1e293b;

    --color-text: #f8fafc;
    --color-text-muted: #a8b3c5;
    --color-text-soft: #cbd5e1;

    --color-primary: #38bdf8;
    --color-primary-hover: #7dd3fc;

    --color-border: rgba(255, 255, 255, 0.10);
    --color-border-strong: rgba(255, 255, 255, 0.18);

    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.22);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --container-width: 1180px;
    --section-space: 110px;

    --font-main: "Inter", "Helvetica Neue", Arial, sans-serif;
    --transition: 0.25s ease;
}


/* =========================================================
   2. RESET + BASE
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(56, 189, 248, 0.08),
            transparent 35%
        ),
        var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

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


/* =========================================================
   3. ACCESSIBILITY
   ========================================================= */

.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: 9999;

    padding: 12px 18px;

    border-radius: var(--radius-sm);
    background: var(--color-primary);
    color: #03111b;

    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 20px;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 4px;
}


/* =========================================================
   4. GLOBAL LAYOUT + TYPOGRAPHY
   ========================================================= */

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

.section {
    padding-block: var(--section-space);
}

.eyebrow {
    margin: 0 0 16px;

    color: var(--color-primary);

    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 48px;
}

.section-heading h2 {
    margin: 0 0 16px;

    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
}

.section-heading p {
    margin: 0;

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

    font-size: 1.05rem;
    line-height: 1.6;
}

.section-heading-row {
    max-width: none;

    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
}


/* =========================================================
   5. HEADER + BRAND
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(11, 17, 32, 0.90);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

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

.header-container {
    min-height: 78px;

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

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

    color: var(--color-text);
    text-decoration: none;
}

.brand-mark {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            rgba(56, 189, 248, 0.18),
            rgba(56, 189, 248, 0.04)
        );

    color: var(--color-primary);

    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1.1;
}

.brand-text strong {
    font-size: 0.98rem;
}

.brand-text span {
    margin-top: 4px;

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

    font-size: 0.76rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}


/* =========================================================
   6. NAVIGATION
   ========================================================= */

.primary-navigation {
    display: block;
}

.nav-list {
    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    gap: 4px;

    list-style: none;
}

.nav-link {
    display: inline-block;

    padding: 10px 12px;

    border-radius: 8px;

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

    font-size: 0.93rem;
    font-weight: 500;
    text-decoration: none;

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

.nav-link:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active,
.nav-link[aria-current="page"] {
    color: var(--color-primary);
}

.nav-toggle {
    display: none;

    width: 46px;
    height: 46px;
    padding: 10px;

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

    background: var(--color-surface);

    cursor: pointer;
}

.nav-toggle span {
    width: 100%;
    height: 2px;

    display: block;
    margin: 5px 0;

    border-radius: 999px;
    background: var(--color-text);
}


/* =========================================================
   7. HERO
   ========================================================= */

.hero {
    min-height: calc(100vh - 60px);

    display: flex;
    align-items: center;

    padding: 30px 0 40px;
}

.hero-container {
    display: grid;
    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(360px, 0.9fr);

    align-items: center;
    gap: 70px;
}

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

.hero h1 {
    max-width: 780px;
    margin: 0;

    font-size: clamp(3rem, 7vw, 5.8rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero-description {
    max-width: 680px;
    margin: 28px 0 0;

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

    font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.hero-actions {
    margin-top: 34px;

    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-links {
    margin-top: 28px;

    display: flex;
    gap: 22px;
}

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

    font-size: 0.94rem;
    text-decoration: none;

    border-bottom: 1px solid transparent;

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

.hero-links a:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}


/* =========================================================
   8. BUTTONS + TEXT LINKS
   ========================================================= */

.button {
    min-height: 48px;

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

    padding: 12px 20px;

    border: 1px solid transparent;
    border-radius: 10px;

    font-weight: 600;
    text-decoration: none;

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

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

.button-primary {
    background: var(--color-primary);
    color: #03111b;
}

.button-primary:hover {
    background: var(--color-primary-hover);
}

.button-secondary {
    border-color: var(--color-border-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text);
}

.button-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--color-primary);

    font-weight: 700;
    text-decoration: none;

    transition:
        gap var(--transition),
        color var(--transition);
}

.text-link:hover {
    gap: 12px;
    color: var(--color-primary-hover);
}


/* =========================================================
   9. HERO CODE CARD
   ========================================================= */

.hero-visual {
    display: flex;
    justify-content: flex-end;
}

.hero-code-card {
    width: 100%;
    max-width: 480px;

    overflow: hidden;

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

    background:
        linear-gradient(
            145deg,
            rgba(30, 41, 59, 0.95),
            rgba(17, 24, 39, 0.95)
        );

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

.code-card-header {
    height: 48px;

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

    padding: 0 18px;

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

.code-card-header span {
    width: 10px;
    height: 10px;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.26);
}

.hero-code-card pre {
    margin: 0;
    padding: 28px;
    overflow-x: auto;
}

.hero-code-card code {
    color: #c9e8f7;

    font-family: "Courier New", monospace;
    font-size: 0.94rem;
    line-height: 1.8;
}


/* =========================================================
   10. EXPERTISE
   ========================================================= */

.expertise {
    border-top: 1px solid var(--color-border);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.expertise-card {
    min-height: 320px;

    padding: 32px;

    display: flex;
    flex-direction: column;

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

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

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

.expertise-card:hover {
    transform: translateY(-6px);

    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(255, 255, 255, 0.045);
}

.card-number {
    margin-bottom: 70px;

    color: var(--color-primary);

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.expertise-card h3 {
    margin: 0 0 14px;

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

.expertise-card p {
    margin: 0 0 24px;

    color: var(--color-text-muted);
    line-height: 1.65;
}

.expertise-card .text-link {
    margin-top: auto;
}


/* =========================================================
   11. FEATURED PROJECT
   ========================================================= */

.featured-project {
    background: rgba(255, 255, 255, 0.018);

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

.featured-project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;

    padding: 48px;

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

    background:
        linear-gradient(
            145deg,
            rgba(23, 32, 51, 0.88),
            rgba(17, 24, 39, 0.82)
        );
}

.project-category {
    margin: 0 0 14px;

    color: var(--color-primary);

    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.featured-project-content h3 {
    margin: 0 0 20px;

    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
}

.featured-project-content > p:not(.project-category) {
    color: var(--color-text-muted);
}

.project-highlights {
    margin: 26px 0;
    padding: 0;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;

    list-style: none;
}

.project-highlights li {
    position: relative;

    padding-left: 22px;

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

    font-size: 0.92rem;
}

.project-highlights li::before {
    content: "";

    position: absolute;
    left: 0;
    top: 0.65em;

    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: var(--color-primary);
}

.technology-list {
    margin: 28px 0;
    padding: 0;

    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    list-style: none;
}

.technology-list li {
    padding: 7px 11px;

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

    background: rgba(255, 255, 255, 0.035);
    color: var(--color-text-soft);

    font-size: 0.78rem;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* =========================================================
   12. FEATURED PROJECT PREVIEW
   ========================================================= */

.featured-project-preview {
    display: flex;
    justify-content: center;
}

.project-preview-label {
    margin-bottom: 12px;

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

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-preview-window {
    width: 100%;

    overflow: hidden;

    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);

    background: #0d1524;
    box-shadow: var(--shadow-card);
}

.preview-toolbar {
    height: 42px;

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

    padding-inline: 14px;

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

.preview-toolbar-left {
    display: flex;
    gap: 7px;
}

.preview-toolbar span {
    width: 8px;
    height: 8px;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.preview-toolbar-title {
    color: var(--color-text-muted);

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

.preview-content {
    min-height: 310px;

    display: grid;
    grid-template-columns: 80px 1fr;
}

.preview-sidebar {
    padding: 16px 12px;

    border-right: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.035);
}

.preview-logo {
    width: 32px;
    height: 32px;

    margin-bottom: 24px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    background: var(--color-primary);
    color: #03111b;

    font-size: 0.85rem;
    font-weight: 800;
}

.preview-menu-item {
    height: 9px;

    margin-bottom: 14px;

    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.preview-menu-item.active {
    background: rgba(56, 189, 248, 0.40);
}

.preview-main {
    padding: 22px;
}

.preview-header {
    margin-bottom: 20px;

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

.preview-small-line,
.preview-large-line {
    display: block;

    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

.preview-small-line {
    width: 70px;
    height: 7px;
    margin-bottom: 9px;
}

.preview-large-line {
    width: 130px;
    height: 10px;
}

.preview-user {
    width: 30px;
    height: 30px;

    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 50%;

    background: rgba(56, 189, 248, 0.18);
}

.preview-stats {
    margin-bottom: 18px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.preview-stat {
    height: 80px;

    padding: 13px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

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

    background: rgba(56, 189, 248, 0.055);
}

.preview-stat-label {
    width: 60%;
    height: 7px;

    display: block;

    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

.preview-stat-value {
    width: 40%;
    height: 14px;

    display: block;

    border-radius: 4px;
    background: rgba(56, 189, 248, 0.28);
}

.preview-chart {
    min-height: 175px;

    padding: 20px;

    display: flex;
    align-items: end;
    gap: 10px;

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

    background:
        linear-gradient(
            to top,
            rgba(56, 189, 248, 0.10),
            rgba(56, 189, 248, 0.01)
        );
}

.chart-bar {
    flex: 1;
    min-width: 8px;

    border-radius: 4px 4px 0 0;
    background: rgba(56, 189, 248, 0.35);
}

.bar-1 { height: 30%; }
.bar-2 { height: 48%; }
.bar-3 { height: 66%; }
.bar-4 { height: 44%; }
.bar-5 { height: 78%; }
.bar-6 { height: 60%; }
.bar-7 { height: 88%; }


/* =========================================================
   13. PROJECT CARDS
   ========================================================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.project-card {
    position: relative;

    min-height: 290px;
    padding: 30px;

    display: flex;
    flex-direction: column;

    overflow: hidden;

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

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

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

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

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

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

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

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.38);
}

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

.project-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;

    margin-bottom: 12px;
}

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

    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.project-card h3 {
    margin: 0 0 14px;

    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.2;
}

.project-card p:not(.project-category) {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.project-tags {
    margin: 22px 0 28px;
    padding: 0;

    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    list-style: none;
}

.project-tags li {
    padding: 6px 10px;

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

    background: rgba(255, 255, 255, 0.025);
    color: var(--color-text-soft);

    font-size: 0.72rem;
}

.project-card .text-link {
    margin-top: auto;
}


/* =========================================================
   14. ABOUT PREVIEW
   ========================================================= */

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

.about-preview-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
}

.about-preview-heading {
    max-width: 520px;
}

.about-preview h2 {
    max-width: 560px;
    margin: 0;

    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 700;
    line-height: 1.08;
}

.about-preview-content {
    max-width: 680px;
}

.about-preview-content p {
    margin-top: 0;
    margin-bottom: 18px;
}

.about-lead {
    color: var(--color-text);

    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.6;
}

.about-preview-content p:not(.about-lead) {
    color: var(--color-text-muted);
    line-height: 1.75;
}

.about-actions {
    margin-top: 28px;

    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}


/* =========================================================
   15. CALL TO ACTION
   ========================================================= */

.cta {
    padding-top: 50px;
}

.cta-card {
    position: relative;

    overflow: hidden;

    padding: 80px 60px;

    text-align: center;

    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: var(--radius-lg);

    background:
        radial-gradient(
            circle at top center,
            rgba(56, 189, 248, 0.12),
            transparent 58%
        ),
        linear-gradient(
            145deg,
            rgba(23, 32, 51, 0.95),
            rgba(17, 24, 39, 0.95)
        );

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

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

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

    width: 260px;
    height: 2px;

    transform: translateX(-50%);

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

.cta-card h2 {
    max-width: 820px;
    margin: 0 auto;

    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.08;
}

.cta-card > p:not(.eyebrow) {
    max-width: 700px;
    margin: 24px auto 0;

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

    font-size: 1.05rem;
    line-height: 1.75;
}

.cta-actions {
    margin-top: 32px;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}


/* =========================================================
   16. FOOTER
   ========================================================= */

.site-footer {
    margin-top: 90px;
    padding-block: 55px;

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

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr auto auto;
    align-items: start;
    gap: 60px;
}

.footer-brand-block {
    max-width: 380px;
}

.footer-brand {
    display: inline-block;

    color: var(--color-text);

    font-size: 1.08rem;
    font-weight: 700;
    text-decoration: none;
}

.footer-brand:hover {
    color: var(--color-primary);
}

.footer-brand-block p {
    margin: 9px 0 0;

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

    font-size: 0.86rem;
    line-height: 1.6;
}

.footer-links {
    margin: 0;
    padding: 0;

    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 10px 24px;

    list-style: none;
}

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

    font-size: 0.88rem;
    line-height: 1.9;
    text-decoration: none;

    transition: color var(--transition);
}

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

.footer-meta {
    text-align: right;
}

.footer-socials {
    margin-bottom: 16px;

    display: flex;
    justify-content: flex-end;
    gap: 18px;
}

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

    font-size: 0.88rem;
    text-decoration: none;

    transition: color var(--transition);
}

.footer-socials a:hover {
    color: var(--color-primary);
}

.copyright {
    margin: 0;

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

    font-size: 0.82rem;
    white-space: nowrap;
}


/* =========================================================
   17. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 980px) {
    :root {
        --section-space: 85px;
    }

    .hero {
        min-height: 100vh;
        padding: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

    .hero-visual {
        justify-content: flex-start;
    }

    .hero-code-card {
        max-width: 620px;
    }

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

    .expertise-card {
        min-height: auto;
    }

    .card-number {
        margin-bottom: 30px;
    }

    .featured-project-card {
        grid-template-columns: 1fr;
        gap: 45px;
    }

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

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

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-meta {
        grid-column: 1 / -1;
        text-align: left;
    }

    .footer-socials {
        justify-content: flex-start;
    }
}


/* =========================================================
   18. RESPONSIVE — NAVIGATION
   ========================================================= */

@media (max-width: 820px) {
    .header-container {
        position: relative;
    }

    .nav-toggle {
        display: block;
    }

    .primary-navigation {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;

        display: none;

        padding: 18px 20px 24px;

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

        background: rgba(11, 17, 32, 0.98);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
    }

    .primary-navigation.is-open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .nav-link {
        display: block;
        padding: 13px 14px;
    }
}


/* =========================================================
   19. RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 640px) {
    :root {
        --section-space: 70px;
    }

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

    .header-container {
        min-height: 68px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .brand-text strong {
        font-size: 0.90rem;
    }

    .hero {
        min-height: auto;
        padding: 75px 0 55px;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 13vw, 4.3rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
    }

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

    .hero-code-card {
        border-radius: 14px;
    }

    .hero-code-card pre {
        padding: 20px;
    }

    .hero-code-card code {
        font-size: 0.78rem;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .featured-project-card {
        padding: 26px;
    }

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

    .preview-content {
        min-height: 230px;
        grid-template-columns: 55px 1fr;
    }

    .preview-main {
        padding: 14px;
    }

    .preview-stats {
        grid-template-columns: 1fr 1fr;
    }

    .preview-stats .preview-stat:last-child {
        grid-column: 1 / -1;
    }

    .preview-stat {
        height: 50px;
    }

    .preview-chart {
        min-height: 120px;
    }

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

    .cta-card {
        padding: 52px 22px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .footer-meta {
        grid-column: auto;
    }
}


/* =========================================================
   20. VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 390px) {
    .brand-text span {
        display: none;
    }

    .hero-links {
        flex-wrap: wrap;
    }

    .featured-project-card {
        padding: 20px;
    }
}
