:root {
    color-scheme: dark;
    --bg: #030508;
    --surface: rgba(12, 18, 38, 0.72);
    --surface-strong: rgba(18, 26, 52, 0.95);
    --text: #f0f4ff;
    --muted: #8fa3d4;
    --accent: #5b7cff;
    --accent-bright: #7b97ff;
    --accent-glow: rgba(91, 124, 255, 0.45);
    --green: #3dd68c;
    --purple: #a78bfa;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 20px;
    --nav-h: 72px;
    --shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── Animated background ── */
.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-mesh__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 18s ease-in-out infinite;
}

.bg-mesh__orb--1 {
    width: 600px; height: 600px;
    top: -200px; left: -150px;
    background: rgba(91, 124, 255, 0.18);
    animation-delay: 0s;
}

.bg-mesh__orb--2 {
    width: 500px; height: 500px;
    top: 30%; right: -180px;
    background: rgba(167, 139, 250, 0.12);
    animation-delay: -6s;
}

.bg-mesh__orb--3 {
    width: 400px; height: 400px;
    bottom: -100px; left: 30%;
    background: rgba(61, 214, 140, 0.08);
    animation-delay: -12s;
}

.bg-mesh__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ── Layout ── */
.page-shell {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 96px 0; }

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(91, 124, 255, 0.12);
    border: 1px solid rgba(91, 124, 255, 0.25);
    color: var(--accent-bright);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title {
    margin: 20px 0 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 16ch;
}

.section-subtitle {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.75;
    max-width: 56ch;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 30%, var(--accent-bright) 70%, var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Nav ── */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.site-nav.scrolled {
    background: rgba(3, 5, 8, 0.85);
    backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.site-nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
    flex-shrink: 0;
}

.brand img {
    height: 36px;
    width: auto;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li { list-style: none; }

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 10px;
    transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.lang-switcher {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}

.lang-btn {
    border: none;
    background: transparent;
    color: var(--muted);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
    background: rgba(91, 124, 255, 0.25);
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent), #3451d1);
    color: #fff;
    box-shadow: 0 8px 32px var(--accent-glow);
    animation: pulseGlow 3s ease-in-out infinite;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px var(--accent-glow);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn--lg { min-height: 56px; padding: 0 32px; font-size: 1.05rem; border-radius: 16px; }

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 8px 32px var(--accent-glow); }
    50% { box-shadow: 0 8px 48px rgba(91, 124, 255, 0.65); }
}

/* ── Hero ── */
.hero {
    padding-top: calc(var(--nav-h) + 48px);
    padding-bottom: 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    min-height: 100vh;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 10px;
    border-radius: 999px;
    background: rgba(61, 214, 140, 0.1);
    border: 1px solid rgba(61, 214, 140, 0.25);
    color: var(--green);
    font-size: 0.88rem;
    font-weight: 600;
}

.hero-badge__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--green); }
    50% { opacity: 0.4; box-shadow: none; }
}

.hero-title {
    margin: 24px 0 0;
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.8;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat-item { display: flex; flex-direction: column; gap: 4px; }

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

.stat-value span { color: var(--accent-bright); }

.stat-label {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

/* ── Discord mockup ── */
.hero-visual { position: relative; }

.discord-mock {
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.6s ease;
}

.discord-mock:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.discord-mock__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
}

.discord-mock__dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}

.discord-mock__dot--r { background: #ff5f57; }
.discord-mock__dot--y { background: #febc2e; }
.discord-mock__dot--g { background: #28c840; }

.discord-mock__title {
    margin-left: 8px;
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 600;
}

.discord-mock__body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }

.notif-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(91, 124, 255, 0.08);
    border-left: 3px solid var(--accent);
    opacity: 0;
    transform: translateX(24px);
    animation: slideIn 0.6s ease forwards;
}

.notif-card:nth-child(1) { animation-delay: 0.4s; }
.notif-card:nth-child(2) { animation-delay: 1.2s; }
.notif-card:nth-child(3) { animation-delay: 2s; }

@keyframes slideIn {
    to { opacity: 1; transform: translateX(0); }
}

.notif-card__icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(91, 124, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notif-card__content { flex: 1; min-width: 0; }

.notif-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.notif-card__name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-bright);
}

.notif-card__time {
    font-size: 0.75rem;
    color: var(--muted);
}

.notif-card__bot {
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.notif-card__text {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.5;
}

.notif-card__text strong { color: var(--text); }

.notif-card__tag {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(61, 214, 140, 0.15);
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 600;
}

.hero-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

/* ── Logos bar ── */
.logos-bar {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.logos-bar__label {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.logos-bar__items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.logo-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 700;
    font-size: 1rem;
    transition: border-color var(--transition), transform var(--transition);
}

.logo-pill:hover {
    border-color: rgba(91, 124, 255, 0.4);
    transform: translateY(-2px);
}

.logo-pill__icon { font-size: 1.4rem; }

/* ── Features ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.feature-card {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(91, 124, 255, 0.35);
    box-shadow: 0 20px 60px rgba(91, 124, 255, 0.12);
}

.feature-card__icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.feature-card__icon--blue { background: rgba(91, 124, 255, 0.15); }
.feature-card__icon--green { background: rgba(61, 214, 140, 0.15); }
.feature-card__icon--purple { background: rgba(167, 139, 250, 0.15); }

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.7;
}

/* ── Steps ── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
    counter-reset: step;
}

.step-card {
    position: relative;
    padding: 32px 28px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    counter-increment: step;
}

.step-card::before {
    content: counter(step, decimal-leading-zero);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #3451d1);
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px var(--accent-glow);
}

.step-card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.step-card p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 0.94rem; }

/* ── Support ── */
.support-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    padding: 48px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(88, 101, 242, 0.16), rgba(61, 214, 140, 0.08)),
        var(--surface);
    border: 1px solid rgba(91, 124, 255, 0.24);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.support-panel .section-title {
    max-width: 18ch;
}

.support-panel .section-subtitle {
    max-width: 58ch;
}

/* ── FAQ ── */
.faq-list {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 760px;
}

.faq-item {
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
}

.faq-item summary {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: color var(--transition);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--accent);
    font-weight: 300;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--accent-bright); }

.faq-item__answer {
    padding: 0 24px 20px;
    color: var(--muted);
    line-height: 1.75;
    font-size: 0.94rem;
}

/* ── CTA ── */
.cta-section {
    margin: 48px 0 0;
    padding: 64px 48px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(91, 124, 255, 0.15), rgba(167, 139, 250, 0.1));
    border: 1px solid rgba(91, 124, 255, 0.25);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(91, 124, 255, 0.2), transparent 60%);
    pointer-events: none;
}

.cta-section h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    letter-spacing: -0.03em;
    position: relative;
}

.cta-section p {
    margin: 16px auto 0;
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 480px;
    position: relative;
}

.cta-section .btn { margin-top: 32px; position: relative; }

/* ── Footer ── */
.site-footer {
    margin-top: 80px;
    padding: 64px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand p {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-col h4 {
    margin: 0 0 16px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color var(--transition);
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--muted);
    font-size: 0.85rem;
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; min-height: auto; padding-top: calc(var(--nav-h) + 32px); }
    .hero-visual { order: -1; }
    .discord-mock { transform: none; }
    .features-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .support-panel { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    section { padding: 64px 0; }

    .nav-links, .nav-actions .btn--ghost { display: none; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        padding: 24px;
        background: rgba(3, 5, 8, 0.97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        gap: 4px;
    }

    .nav-toggle { display: flex; }

    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .features-grid, .steps-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .support-panel { padding: 36px 24px; }
    .support-panel .btn { width: 100%; }
    .cta-section { padding: 48px 24px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
}
