@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg: #07111f;
    --bg-soft: #0c1728;
    --panel: rgba(13, 24, 43, 0.82);
    --panel-strong: #101c31;
    --line: rgba(255, 255, 255, 0.08);
    --text: #ebf2ff;
    --muted: #9eb1cf;
    --brand: #4de2c5;
    --brand-2: #6d8cff;
    --accent: #9a7cff;
    --danger: #ff6b88;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --radius: 22px;
    --maxw: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 20%, rgba(77, 226, 197, 0.12), transparent 22%),
        radial-gradient(circle at 85% 18%, rgba(109, 140, 255, 0.15), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(154, 124, 255, 0.12), transparent 22%),
        linear-gradient(180deg, #06101c 0%, #08111f 45%, #091220 100%);
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    width: 280px;
    height: 280px;
    background: rgba(77, 226, 197, 0.14);
    top: 80px;
    left: -40px;
}

.glow-2 {
    width: 320px;
    height: 320px;
    background: rgba(109, 140, 255, 0.14);
    right: -60px;
    top: 160px;
}

.container {
    width: min(calc(100% - 32px), var(--maxw));
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(6, 16, 28, 0.72);
    border-bottom: 1px solid var(--line);
}

.nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.logo-box {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #06111f;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 12px 28px rgba(77, 226, 197, 0.24);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 800;
    font-size: 1rem;
}

.logo-subtitle {
    color: var(--muted);
    font-size: 0.88rem;
}

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

.menu a {
    color: var(--muted);
    font-weight: 500;
}

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

.menu-btn {
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
}

.hero {
    padding: 72px 0 48px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 28px;
    align-items: center;
}

.hero-content,
.hero-panel,
.info-card,
.topic-card,
.member-card,
.cta-box {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-content {
    padding: 42px;
}

.tag,
.section-tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--brand);
    background: rgba(77, 226, 197, 0.08);
    border: 1px solid rgba(77, 226, 197, 0.18);
}

.hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(2.3rem, 5vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    max-width: 10ch;
}

.hero-text {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 60ch;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.btn {
    min-height: 48px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 700;
    transition: 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #07111f;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.btn-secondary {
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
}

.hero-panel {
    padding: 24px;
}

.code-window {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #09111d;
    margin-bottom: 18px;
}

.code-top {
    height: 42px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
}

.code-top span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.code-top span:nth-child(1) { background: #ff6b88; }
.code-top span:nth-child(2) { background: #ffd166; }
.code-top span:nth-child(3) { background: #4de2c5; }

.code-window pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
}

.code-window code {
    font-family: 'JetBrains Mono', monospace;
    color: #cfe1ff;
    line-height: 1.8;
    font-size: 0.95rem;
}

.stat-cards {
    display: grid;
    gap: 14px;
}

.stat-card {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid var(--line);
}

.stat-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.stat-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.section {
    padding: 26px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 24px;
}

.section-heading h2 {
    margin: 12px 0 12px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.15;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.card-grid {
    display: grid;
    gap: 18px;
}

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

.info-card,
.topic-card,
.member-card {
    padding: 24px;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    font-weight: 800;
    color: #07111f;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.info-card h3,
.topic-card h3,
.member-card h3,
.cta-box h2 {
    margin: 0 0 10px;
}

.info-card p,
.topic-card p,
.member-card p,
.cta-box p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.member-avatar {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-2), var(--accent));
}

.member-role {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--brand);
    font-size: 0.92rem;
    font-weight: 600;
}

.cta-box {
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, rgba(77, 226, 197, 0.10), rgba(109, 140, 255, 0.12));
}

.site-footer {
    padding: 40px 0 60px;
}

.footer-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
}

.site-footer h3 {
    margin: 0 0 8px;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 980px) {
    .hero-grid,
    .card-grid.three {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 30px;
    }

    .cta-box,
    .footer-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero h1 {
        max-width: none;
    }
}

@media (max-width: 720px) {
    .nav {
        padding: 14px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .menu {
        width: 100%;
        justify-content: space-between;
    }

    .hero {
        padding-top: 40px;
    }

    .hero-content,
    .hero-panel {
        padding: 22px;
    }

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