:root {
    --blue-brand:   #2236C2;
    --bg:           #0B0F2E;
    --bg-surface:   #0F1542;
    --bg-card:      #111949;
    --border:       rgba(255,255,255,0.07);
    --border-hover: rgba(34,54,194,0.6);
    --text:         #E8EAFF;
    --text-muted:   #7A82B8;
    --text-dim:     #4A5280;
    --accent:       #3A52E8;
    --accent-light: #5B78FF;
    --discord:      #5865F2;
    --discord-dark: #4752C4;
    --radius:       10px;
    --radius-lg:    16px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

.section__inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 2rem;
}

.label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.section__header { margin-bottom: 4rem; }

.section__header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn--primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn--ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn--ghost:hover { border-color: var(--border-hover); color: var(--text); }
.btn--discord { background: var(--discord); color: #fff; }
.btn--discord:hover { background: var(--discord-dark); transform: translateY(-1px); }

/* ── Nav ── */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(11,15,46,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: border-color 0.3s ease;
}
.nav__inner {
    max-width: 1160px; margin: 0 auto;
    padding: 0 2rem; height: 64px;
    display: flex; align-items: center; gap: 3rem;
}
.nav__brand {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 1rem; font-weight: 700; color: var(--text); flex-shrink: 0;
}
.nav__logo {
    width: 32px; height: 32px; object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(91,120,255,0.3));
}
.nav__links { display: flex; list-style: none; gap: 2.5rem; flex: 1; }
.nav__links a { font-size: 0.9rem; color: var(--text-muted); transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
    margin-left: auto; font-size: 0.85rem; font-weight: 600;
    color: #fff; background: var(--discord);
    padding: 0.5rem 1.2rem; border-radius: var(--radius);
    transition: all 0.2s; flex-shrink: 0;
}
.nav__cta:hover { background: var(--discord-dark); }

/* ── Hero ── */
.hero { padding: 7rem 2rem 5rem; overflow: hidden; }
.hero__inner {
    max-width: 1160px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 5rem; align-items: center;
}
.hero__eyebrow {
    display: inline-block;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--accent-light);
    margin-bottom: 1.5rem; padding: 0.35rem 0.9rem;
    background: rgba(91,120,255,0.1);
    border: 1px solid rgba(91,120,255,0.2);
    border-radius: 100px;
}
.hero__title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800; line-height: 1.08;
    letter-spacing: -0.03em; color: var(--text); margin-bottom: 1.5rem;
}
.hero__sub {
    font-size: 1.05rem; color: var(--text-muted);
    line-height: 1.75; margin-bottom: 2.5rem; max-width: 480px;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__visual { display: flex; justify-content: flex-end; align-items: center; }
.hero__img {
    width: 100%; max-width: 460px; height: auto; object-fit: contain;
    filter: drop-shadow(0 8px 40px rgba(34,54,194,0.35));
}

/* ── Marquee ── */
.marquee {
    padding: 1.5rem 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.marquee__track {
    display: flex; gap: 2.5rem; align-items: center;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    font-size: 0.85rem; font-weight: 600;
    letter-spacing: 0.04em; color: var(--text-dim);
    text-transform: uppercase; width: max-content;
}
.marquee__track .dot { color: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Projects ── */
.services { padding: 8rem 2rem; }
.services__grid--two {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 1px; background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
}
.service {
    background: var(--bg-card); padding: 3rem;
    transition: background 0.2s;
    display: flex; flex-direction: column; gap: 1rem;
}
.service:hover { background: var(--bg-surface); }
.service__num { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent-light); }
.service h3 { font-size: 1.2rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.service p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.65; flex: 1; }
.service__link {
    font-size: 0.85rem; font-weight: 600;
    color: var(--accent-light); transition: color 0.2s;
    margin-top: 0.5rem; display: inline-block;
}
.service__link:hover { color: var(--text); }

/* ── Community ── */
.community {
    padding: 8rem 2rem;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.community__card {
    background: var(--bg-card);
    border: 1px solid rgba(88,101,242,0.2);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.community__card::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    background: rgba(88,101,242,0.06);
    border-radius: 50%;
    pointer-events: none;
}
.community__live {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 1.25rem;
}
.live__dot {
    width: 7px; height: 7px;
    background: #23d18b;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(35,209,139,0.25);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(35,209,139,0.25); }
    50%       { box-shadow: 0 0 0 5px rgba(35,209,139,0.1); }
}
.community__body h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.community__body p {
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    max-width: 520px;
}
.community__perks {
    list-style: none;
    display: flex; flex-direction: column; gap: 0.65rem;
    margin-bottom: 2rem;
}
.community__perks li {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex; align-items: center; gap: 0.75rem;
}
.community__perks li::before {
    content: '';
    width: 18px; height: 18px;
    background: rgba(88,101,242,0.15);
    border: 1px solid rgba(88,101,242,0.3);
    border-radius: 50%;
    flex-shrink: 0;
}
.community__badge {
    background: rgba(88,101,242,0.08);
    border: 1px solid rgba(88,101,242,0.2);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    text-align: center;
    min-width: 160px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.badge__icon {
    width: 60px; height: 60px;
    background: var(--discord);
    border-radius: var(--radius-lg);
    margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
}
.badge__name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
}
.badge__handle {
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.02em;
    word-break: break-all;
}

/* ── About — kompakt ── */
.about { padding: 6rem 2rem; }
.about__row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: start;
    max-width: 700px;
}
.about__avatar {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--discord) 100%);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}
.about__content h2 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.about__content p {
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.75;
}
.about__meta {
    display: flex; gap: 2.5rem;
    margin-top: 2rem; padding-top: 2rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.meta__item { display: flex; flex-direction: column; gap: 0.4rem; }
.meta__label {
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-dim);
}
.meta__value { font-size: 1rem; font-weight: 700; color: var(--text); }

/* ── Contact ── */
.contact {
    padding: 8rem 2rem;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
}
.contact__sub { font-size: 1rem; color: var(--text-muted); margin-top: 0.75rem; }
.contact__grid {
    display: grid; grid-template-columns: 1.5fr 1fr;
    gap: 4rem; align-items: start; margin-top: 4rem;
}
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form input,
.form textarea {
    width: 100%; padding: 0.9rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text); font-family: inherit;
    font-size: 0.92rem; transition: border-color 0.2s; resize: none;
}
.form input::placeholder,
.form textarea::placeholder { color: var(--text-dim); }
.form input:focus,
.form textarea:focus { outline: none; border-color: var(--accent); }
.form .btn { align-self: flex-start; padding: 0.85rem 2rem; }

.form__status {
    font-size: 0.88rem;
    border-radius: var(--radius);
    max-height: 0; overflow: hidden; padding: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.form__status.visible { max-height: 80px; padding: 0.75rem 1rem; }
.form__status.success {
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.2);
    color: #4ade80;
}
.form__status.error {
    background: rgba(224,82,82,0.08);
    border: 1px solid rgba(224,82,82,0.2);
    color: #f87171;
}

.contact__info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex; flex-direction: column; gap: 2rem;
}
.contact__link { display: flex; flex-direction: column; gap: 0.4rem; }
.contact__link .label { margin-bottom: 0.2rem; }
.contact__link a {
    font-size: 0.97rem; font-weight: 600;
    color: var(--text-muted); transition: color 0.2s;
}
.contact__link a:hover { color: var(--accent-light); }

/* ── Footer ── */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 2.5rem 2rem;
}
.footer__inner {
    max-width: 1160px; margin: 0 auto;
    display: flex; align-items: center;
    justify-content: space-between; gap: 1rem;
}
.footer__brand {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.95rem; font-weight: 700; color: var(--text-muted);
}
.footer__copy { font-size: 0.85rem; color: var(--text-dim); }

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
    .hero__visual { justify-content: flex-start; order: -1; }
    .hero__img { max-width: 300px; }
    .services__grid--two { grid-template-columns: 1fr; }
    .community__card {
        grid-template-columns: 1fr;
        padding: 2rem; gap: 2rem;
    }
    .community__badge { display: none; }
    .about__row { grid-template-columns: 1fr; gap: 1.5rem; }
    .about__avatar { width: 56px; height: 56px; }
    .contact__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .form__row { grid-template-columns: 1fr; }
    .nav__links { display: none; }
}

@media (max-width: 600px) {
    .hero         { padding: 4rem 1.5rem 3rem; }
    .services,
    .community,
    .about,
    .contact      { padding: 4rem 1.5rem; }
    .section__inner,
    .hero__inner,
    .community__card,
    .about__row,
    .contact__grid { padding-left: 0; padding-right: 0; }
    .footer__inner { flex-direction: column; text-align: center; }
    .community__card { padding: 1.75rem; }
    .contact__info { padding: 1.5rem; }
}