@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #07101d;
    --bg-alt: #0d1527;
    --card: rgba(255, 255, 255, 0.08);
    --muted: #98a7bf;
    --accent-a: #7b2ff7;
    --accent-b: #f107a3;
    --glass: rgba(255, 255, 255, 0.12);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Poppins, system-ui, Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
    color: #eff4ff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 32px 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(24px);
    background: rgba(9, 16, 34, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 48px;
    margin-right: 8px;
}

.nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav a {
    color: var(--muted);
    background: var(--card);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 14px;
    transition: background 0.2s ease, color 0.2s ease;
    font-weight: 500;
}

.nav a:hover {
    color: white;
    background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
    box-shadow: 0 14px 30px rgba(123, 47, 247, 0.18);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: var(--muted);
    font-size: 1.7rem;
    padding: 10px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hero {
    padding: 84px 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 42px;
    align-items: center;
}

.hero h1 {
    font-size: 3.3rem;
    margin: 0;
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.lead {
    color: var(--muted);
    margin-top: 16px;
    font-size: 1.15rem;
    max-width: 620px;
}

.hero-art img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
    color: white;
    padding: 14px 24px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 16px 40px rgba(123, 47, 247, 0.25);
}

.section {
    padding: 70px 0;
}

.section h2 {
    margin: 0 0 10px 0;
    font-size: 2.1rem;
}

.legal {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(20px);
    padding: 26px 40px;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

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

.cards {
    display: flex;
    gap: 18px;
    margin-top: 26px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.card {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(20px);
    padding: 28px;
    border-radius: 28px;
    flex: 1;
    min-width: 240px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.18);
    min-height: 190px;
}

.card h3 {
    margin-top: 0;
    font-size: 1.35rem;
}

.portfolio .grid {
    display: grid;
    gap: 22px;
    margin-top: 22px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cover {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 28px;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(24px);
    transition: transform 0.35s ease, border-color 0.25s ease;
}

.cover:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.24);
}

.cover img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(.2, .9, .2, 1);
}

.cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.62));
    pointer-events: none;
}

.cover-info {
    position: absolute;
    left: 16px;
    bottom: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: white;
    background: rgba(12, 22, 40, 0.82);
    backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px;
    border-radius: 22px;
}

.cover strong {
    font-size: 1.2rem;
    display: block;
    letter-spacing: 0.1px;
}

.cover span {
    color: var(--muted);
    font-size: 0.98rem;
}

.site-footer {
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0;
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.footer-logo img {
    width: 100%;
    opacity: 0.02;
    transition: opacity 0.3s ease;
}

.footer-logo img:hover {
    opacity: 0.08;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
}

.footer-top a {
    color: var(--muted);
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 10px;
}

.footer-top a:hover {
    color: white;
}

.subfooter {
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
}

.subfooter a {
    color: var(--accent-b);
    text-decoration: none;
}

.subfooter a:hover {
    text-decoration: underline;
}

@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .nav {
        display: none;
        position: absolute;
        top: 72px;
        right: 18px;
        left: 18px;
        flex-direction: column;
        gap: 12px;
        padding: 22px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 28px;
        backdrop-filter: blur(28px);
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        padding: 16px 18px;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 18px;
    }

    .nav-toggle {
        display: block;
    }

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

    .lead {
        font-size: 1.2rem;
    }

    .hero-art svg {
        height: 240px;
    }

    .cards {
        flex-direction: column;
    }

    .card {
        width: 100%;
    }

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

    .footer-top {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 20px;
    }

    .hero {
        padding: 56px 0;
    }

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

    .btn {
        padding: 14px 24px;
    }

    .cover img {
        height: 240px;
    }

    .cover-info {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 16px;
    }
}

.hidden {
    display: none;
}

.link {
    color: var(--accent-a);
    text-decoration: none;
    font-weight: 500;
}

.link:hover {
    text-decoration: underline;
}