:root {
    --bg-light: #eaf3fc;
    --bg-page: #f4f9fe;
    --bg-card: #ffffff;
    --bg-elevated: #dcebf9;
    --text-primary: #0f2b46;
    --text-secondary: #4a6a8a;
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --glow-blue: rgba(59, 130, 246, 0.35);
    --accent-gold: #d9a418;
    --accent-gold-hover: #b98a0f;
    --glow-gold: rgba(217, 164, 24, 0.4);
    --accent-heart: #e3170d;
    --accent-heart-hover: #c4140b;
    --glow-heart: rgba(227, 23, 13, 0.45);

    --discord-bg: #5865F2;
    --discord-hover: #4752c4;
    --discord-glow: rgba(88, 101, 242, 0.5);
    --discord-green: #57F287;

    --font-outfit: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-outfit);
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #dbeaf8 0%, var(--bg-page) 70%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="1" cy="1" r="1" fill="rgba(59,130,246,0.07)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

::selection {
    background: var(--accent-gold);
    color: var(--text-primary);
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: #9dbfdd;
    border-radius: 4px;
}

.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="1" cy="1" r="1" fill="rgba(59,130,246,0.07)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 2rem;
    animation: slideUp 1s ease-out forwards;
}

.glitch {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    margin-bottom: 1.5rem;
    line-height: 1.25;
    padding-bottom: 0.5rem;
}

.glitch {
    background: linear-gradient(110deg, #9dbfdd 0%, rgba(217, 164, 24, 0.75) 50%, #9dbfdd 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    font-weight: 400;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 10px;
    corner-shape: superellipse(2.5);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-heart);
    color: white;
    box-shadow: 0 0 12px var(--glow-heart);
}

.btn-primary:hover {
    background: var(--accent-heart-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px var(--glow-heart);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-primary);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.discord-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #5865F2, #4752c4);
    padding: 10px 18px 10px 12px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.18), 0 0 24px rgba(88, 101, 242, 0.05);
    border: 1px solid rgba(255,255,255,0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.discord-float:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 6px 24px rgba(88, 101, 242, 0.25), 0 0 36px rgba(88, 101, 242, 0.08);
}

.discord-float:active {
    transform: scale(0.98);
}

.discord-float-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
}

.discord-float:hover .discord-float-icon {
    transform: rotate(-4deg) scale(1.03);
}

.discord-float-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.discord-float-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.75;
}

.discord-float-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

.discord-float-status .status-dot {
    width: 7px;
    height: 7px;
    background: var(--discord-green);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 4px var(--discord-green);
}

.discord-float-status .online-number {
    font-size: 1rem;
    font-weight: 800;
    min-width: 2ch;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.discord-float-status .status-dot.loading {
    background: var(--accent-gold);
    box-shadow: 0 0 4px var(--accent-gold);
}

.discord-float-status .status-dot.error {
    background: var(--accent-heart);
    box-shadow: 0 0 4px var(--accent-heart);
}

.discord-float {
    animation: float-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

@keyframes float-in {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.features {
    position: relative;
    z-index: 1;
    padding: 4rem 2rem 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 0.5rem;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
    background: linear-gradient(to right, var(--accent-heart), var(--accent-gold), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 20px;
    corner-shape: superellipse(2.5);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.08);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(217, 164, 24, 0.12), rgba(59, 130, 246, 0.06));
    clip-path: circle(0% at var(--mx, 50%) var(--my, 50%));
    transition: clip-path 0.7s ease;
    pointer-events: none;
    border-radius: 20px;
    corner-shape: superellipse(2.5);
}

.feature-card:hover::before {
    clip-path: circle(140% at var(--mx, 50%) var(--my, 50%));
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--glow-gold);
    box-shadow: 0 10px 22px rgba(59, 130, 246, 0.15), 0 0 24px rgba(217, 164, 24, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(217, 164, 24, 0.15), rgba(59, 130, 246, 0.12));
    border-radius: 16px;
    corner-shape: superellipse(2.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-heart);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .glitch { font-size: 3rem; line-height: 1.3; }
    .hero-actions { flex-direction: column; align-items: center; }

.features {
        padding: 3rem 1.2rem;
    }
    .section-title h2 {
        font-size: 2rem;
    }
    .section-title {
        margin-bottom: 3rem;
    }

    .discord-float {
        bottom: 16px;
        right: 16px;
        padding: 8px 14px 8px 10px;
        gap: 10px;
    }
    .discord-float-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    .discord-float-label {
        font-size: 0.6rem;
    }
    .discord-float-status {
        font-size: 0.75rem;
    }
    .discord-float-status .online-number {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .glitch {
        font-size: 2.2rem;
        line-height: 1.35;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .btn {
        font-size: 0.85rem;
        padding: 0.8rem 1.5rem;
    }
    .hero-content {
        padding: 0 1.2rem;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .feature-card {
        padding: 1.8rem;
    }
}
