:root {
    --color-bg: #0b1020;
    --color-bg-alt: #101629;
    --color-surface: #151b30;
    --color-primary: #2ea4c4;
    --color-accent: #7fd38a;
    --color-text: #f4f7fb;
    --color-text-muted: #a3adc4;
    --color-border: #262d45;
    --max-width: 1040px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.35);
}

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

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #151c33 0, #050712 55%);
    color: var(--color-text);
    line-height: 1.6;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & navigation */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(5, 8, 20, 0.92), rgba(5, 8, 20, 0.85), rgba(5, 8, 20, 0));
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
}

.logo img {
    height: 44px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 1.75rem;
    align-items: center;
    font-size: 0.95rem;
}

.main-nav a {
    color: var(--color-text-muted);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.2rem;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: width 0.2s ease-out;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a.active {
    color: var(--color-text);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
}

.nav-toggle-bar {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-text);
}

/* Hero */

.hero {
    padding: 4rem 0 3rem;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text {
    max-width: 680px;
    padding: 2rem 2.5rem;
    border-radius: 24px;
    background: radial-gradient(circle at top left, rgba(46, 164, 196, 0.18), transparent 55%),
                radial-gradient(circle at bottom right, rgba(127, 211, 138, 0.18), transparent 55%),
                rgba(10, 13, 30, 0.92);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero h1 {
    font-size: 2.2rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.hero p {
    margin: 0.35rem 0;
    color: var(--color-text-muted);
}

.hero-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.button.primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #050712;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.button.ghost {
    background: transparent;
    color: var(--color-text);
    border-color: rgba(255, 255, 255, 0.18);
}

.button.ghost:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

/* Sections */

.page-header {
    padding: 3.5rem 0 1.5rem;
}

.page-header h1 {
    margin-bottom: 0.4rem;
}

.page-header p {
    max-width: 720px;
    color: var(--color-text-muted);
}

.section {
    padding: 2.75rem 0;
}

.section.alt {
    background: radial-gradient(circle at top, #151c33 0, #050712 60%);
}

.section h2 {
    margin-top: 0;
}

.bullet-list,
.project-list,
.pub-list,
.file-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.bullet-list li,
.project-list li,
.pub-list li,
.file-list li {
    margin-bottom: 0.6rem;
    color: var(--color-text-muted);
}

.project-list h3 {
    margin: 0 0 0.15rem;
    font-size: 1.05rem;
}

/* Pillars section */

.pillars {
    padding: 2rem 0 3rem;
}

.pillars h2 {
    text-align: center;
    margin-bottom: 1.75rem;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.6rem 1.4rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.card p {
    color: var(--color-text-muted);
    margin-bottom: 0.9rem;
}

.card-link {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Clients */

.clients {
    padding: 2rem 0 3.5rem;
}

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

.clients-column h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.clients-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--color-text-muted);
}

.clients-column li {
    margin-bottom: 0.4rem;
}

/* Insights & repository */

.note {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.pub-meta,
.file-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* About */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr);
    gap: 2rem;
}

.contact-details a {
    font-weight: 500;
}

/* Footer */

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem 0 1.75rem;
    background: rgba(5, 8, 20, 0.98);
    margin-top: 2rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

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

.footer-links span {
    margin: 0 0.35rem;
}

/* Responsive */

@media (max-width: 900px) {
    .pillar-grid {
        grid-template-columns: 1fr;
    }

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

    .hero {
        padding-top: 3.25rem;
    }
}

@media (max-width: 720px) {
    .header-inner {
        padding-inline: 1rem;
    }

    .main-nav {
        position: absolute;
        inset: 56px 0 auto 0;
        flex-direction: column;
        background: rgba(5, 8, 20, 0.98);
        padding: 0.75rem 1.5rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.18s ease-out, opacity 0.18s ease-out;
    }

    .main-nav a {
        padding-block: 0.35rem;
    }

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

    .nav-toggle {
        display: flex;
    }

    .hero-inner {
        padding-inline: 0.25rem;
    }

    .hero-text {
        padding: 1.6rem 1.5rem;
    }

    .hero h1 {
        font-size: 1.7rem;
    }
}
