:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-card: #18181b;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --border: #27272a;
    --radius: 12px;
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

.accent {
    color: var(--accent);
}

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

.nav__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav__logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

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

.nav__links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition);
}

.nav__links a:hover {
    color: var(--text-primary);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
    padding: 120px 64px 64px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero__content {
    max-width: 600px;
}

.hero__tagline {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

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

.code-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.code-block pre {
    margin-top: 24px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: var(--accent);
    color: white;
}

.btn--primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn--secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn--secondary:hover {
    border-color: var(--text-muted);
    background: var(--bg-secondary);
}

/* Section Title */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 48px;
    text-align: center;
}

/* About Section */
.about {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.about__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 64px;
    align-items: center;
}

.about__text p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    margin-bottom: 20px;
}

.about__stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stat {
    text-align: center;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat__number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat__label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Services Section */
.services {
    padding: 120px 0;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px var(--accent-glow);
    transform: translateY(-4px);
}

.service-card__icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card__desc {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Stack Section */
.stack {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.stack__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.stack-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.stack-item:hover {
    border-color: var(--accent);
}

.stack-item__icon {
    font-size: 1.5rem;
}

.stack-item__name {
    font-size: 0.9375rem;
    font-weight: 500;
}

/* Showcase Section */
.showcase {
    padding: 120px 0;
}

.showcase__subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.0625rem;
    max-width: 600px;
    margin: -32px auto 48px;
}

.showcase__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 16px;
}

.showcase-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.85) saturate(0.9);
}

.showcase-item:hover img {
    transform: scale(1.05);
    filter: brightness(1) saturate(1);
}

.showcase-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 11, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.showcase-item:hover .showcase-item__overlay {
    opacity: 1;
}

.showcase-item__label {
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 6px 14px;
    background: var(--accent);
    border-radius: 6px;
}

/* Contact Section */
.contact {
    padding: 120px 0;
}

.contact__content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact__text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 40px;
}

.contact__links {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all var(--transition);
}

.contact-link:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.contact-link__icon {
    font-size: 1.25rem;
}

/* Footer */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.footer p {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__content > * {
    animation: fadeInUp 0.6s ease forwards;
}

.hero__content > *:nth-child(1) { animation-delay: 0.1s; }
.hero__content > *:nth-child(2) { animation-delay: 0.2s; }
.hero__content > *:nth-child(3) { animation-delay: 0.3s; }
.hero__content > *:nth-child(4) { animation-delay: 0.4s; }

.code-block {
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 120px 32px 64px;
    }

    .hero__content {
        max-width: 100%;
        text-align: center;
    }

    .hero__actions {
        justify-content: center;
    }

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

@media (max-width: 768px) {
    .nav__links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
    }

    .nav__links.active {
        display: flex;
    }

    .nav__toggle {
        display: flex;
    }

    .hero {
        padding: 100px 24px 48px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .code-block {
        max-width: 100%;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 36px;
    }

    .about,
    .services,
    .stack,
    .showcase,
    .contact {
        padding: 80px 0;
    }

    .showcase__grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .showcase-item {
        height: 240px;
    }

    .showcase-item:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }

    .contact__links {
        flex-direction: column;
        align-items: center;
    }
}
