:root {
    color-scheme: dark;
    --bg: #0f172a;
    --bg-alt: #111d3c;
    --panel: rgba(15, 23, 42, 0.96);
    --surface: #152242;
    --surface-alt: #1f3052;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --primary: #3b82f6;
    --primary-strong: #2563eb;
    --accent: #22c55e;
    --border: rgba(148, 163, 184, 0.2);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.12), transparent 35%),
                linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
    color: var(--text);
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

header.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: rgba(15, 23, 42, 0.88);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
}

.brand-name,
.brand-tag {
    margin: 0;
    line-height: 1.15;
}

.brand-name {
    font-weight: 700;
    letter-spacing: -0.03em;
}

.brand-tag {
    font-size: 0.92rem;
    color: var(--muted);
}

.site-nav {
    display: flex;
    gap: 1.3rem;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
}

.hero {
    padding: 5rem 0 3rem;
}

.hero-content {
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 0.9rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.hero h1,
.section-header h2,
.about h2,
.contact-card h2 {
    margin: 0;
    line-height: 1.1;
}

.hero h1 {
    font-size: clamp(2.8rem, 5vw, 4.4rem);
    margin-bottom: 1.1rem;
}

.hero-copy {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.8rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 18px 40px rgba(59, 130, 246, 0.16);
}

.btn-secondary {
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: var(--text);
    background: rgba(255,255,255,0.04);
}

.section {
    padding: 4rem 0;
}

.section-header {
    max-width: 680px;
    margin-bottom: 2rem;
}

.cards-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    padding: 1.75rem;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.85rem;
}

.card p {
    margin: 0;
    line-height: 1.8;
    color: var(--muted);
}

.technologies {
    background: rgba(255,255,255,0.03);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.tech-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-size: 0.95rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

.about-list {
    display: grid;
    gap: 1.25rem;
}

.about-list h3 {
    margin: 0 0 0.5rem;
}

.about-list p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.contact-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    border-radius: 28px;
    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.contact-info p {
    margin: 0.45rem 0;
    color: var(--muted);
}

.site-footer {
    padding: 1.8rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.9);
}

.footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--muted);
}

@media (max-width: 860px) {
    .cards-grid,
    .tech-grid,
    .about-grid,
    .contact-card {
        grid-template-columns: 1fr;
    }

    .site-nav {
        justify-content: flex-start;
        gap: 0.95rem;
    }
}

@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        padding-top: 3rem;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .site-nav {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }

    .tech-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
