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

:root {
    --bg: #09090b;
    --surface: #111113;
    --border: #1c1c1f;
    --text: #e4e4e7;
    --muted: #71717a;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Nav ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.875rem;
    transition: color 0.2s;
    cursor: pointer;
}

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

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav.open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav.open .nav-toggle span:nth-child(2) {
    opacity: 0;
}
.nav.open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-lines {
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 55% 50% at 50% 45%, black 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 55% 50% at 50% 45%, black 10%, transparent 70%);
}

.glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 24px;
}

.hero-tag {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #71717a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn:hover {
    background: #2563eb;
    box-shadow: 0 0 24px var(--accent-glow);
    transform: translateY(-1px);
}

/* ── Sections ── */
.section {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.section-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-heading {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 56px;
}

/* ── About ── */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.3;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.85;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 8px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Cards ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 28px;
    transition: border-color 0.3s, transform 0.3s;
}

.card:hover {
    border-color: #27272a;
    transform: translateY(-4px);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-glow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.75;
}

/* ── Contact ── */
.contact {
    text-align: center;
}

.contact-desc {
    color: var(--muted);
    font-size: 1rem;
    margin-top: -40px;
    margin-bottom: 40px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #a78bfa;
    text-decoration: none;
    font-size: 1.05rem;
    font-family: 'JetBrains Mono', monospace;
    padding: 18px 36px;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.contact-email:hover {
    color: #c4b5fd;
    border-color: #7c3aed;
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 32px rgba(139, 92, 246, 0.08);
}

/* ── Footer ── */
.footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--muted);
}

/* ── Scroll Animation ── */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* stagger cards */
.card.fade-up:nth-child(2) { transition-delay: 0.1s; }
.card.fade-up:nth-child(3) { transition-delay: 0.2s; }
.stat.fade-up:nth-child(2) { transition-delay: 0.1s; }
.stat.fade-up:nth-child(3) { transition-delay: 0.15s; }

/* ── Responsive: tablet ── */
@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .section-heading {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .about-text h2 {
        font-size: 1.6rem;
    }

    .about-stats {
        flex-direction: row;
        gap: 40px;
    }

    .stat-num {
        font-size: 1.8rem;
    }

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

    .contact-desc {
        margin-top: -24px;
    }

    .contact-email {
        font-size: 0.9rem;
        padding: 16px 28px;
    }
}

/* ── Responsive: mobile ── */
@media (max-width: 480px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(9, 9, 11, 0.96);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }

    .nav.open .nav-links {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.15rem;
        color: var(--text);
    }

    .container {
        padding: 0 20px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-tag {
        font-size: 0.7rem;
    }

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

    .hero-sub {
        font-size: 0.9rem;
        margin-bottom: 32px;
    }

    .btn {
        padding: 14px 36px;
        font-size: 0.85rem;
    }

    .section {
        padding: 64px 0;
    }

    .section-heading {
        font-size: 1.35rem;
        margin-bottom: 32px;
    }

    .about-text h2 {
        font-size: 1.35rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 24px;
    }

    .stat-num {
        font-size: 1.5rem;
    }

    .card {
        padding: 24px 20px;
    }

    .contact-desc {
        margin-top: -16px;
        margin-bottom: 32px;
        font-size: 0.9rem;
    }

    .contact-email {
        font-size: 0.8rem;
        padding: 16px 20px;
        width: 100%;
        justify-content: center;
    }

    .footer .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
