:root {
    --bg-dark: #0a0a0a;
    --accent-red: #dc2626;
    --accent-red-dark: #991b1b;
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.85);
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    --discord: #5865F2;
    --telegram: #0088cc;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-white);
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a0000 40%, #4a0000 70%, #ffffff 100%);
    background-attachment: fixed;
}

.bg-gradient {
    position: fixed; inset: 0; z-index: -1;
    background: radial-gradient(circle at 20% 0%, rgba(220, 38, 38, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 100%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5rem;
}

/* Hero Section */
.hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.logo-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
}

.est-badge {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, var(--accent-red) 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin: 0.5rem 0;
}

.tagline {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 600;
    color: var(--accent-red);
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

/* Buttons */
.cta-group {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    border-radius: 14px;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    min-width: 230px;
    justify-content: center;
}

.btn i { font-size: 1.4rem; }

.btn-discord {
    background: rgba(88, 101, 242, 0.25);
    border-color: rgba(88, 101, 242, 0.6);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
}
.btn-discord:hover { background: rgba(88, 101, 242, 0.4); transform: translateY(-3px); }

.btn-telegram {
    background: rgba(0, 136, 204, 0.25);
    border-color: rgba(0, 136, 204, 0.6);
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.3);
}
.btn-telegram:hover { background: rgba(0, 136, 204, 0.4); transform: translateY(-3px); }

/* CARD ALIGNMENT & GRID SYSTEM */
.features-grid {
    display: grid;
    /* This ensures 3 columns on large screens, auto-stacking on smaller screens */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1100px;
}

/* The Card Style */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    
    /* Flexbox to center everything perfectly inside the card */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* The Icon Circle */
.icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
    margin-bottom: 0.5rem;
}

.icon-box i {
    font-size: 2rem;
    color: white;
}

/* Card Text */
.card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.card p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Footer */
.footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    padding-top: 1rem;
    width: 100%;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .container { padding: 2.5rem 1.5rem; gap: 3rem; }
    .title { font-size: 2.5rem; }
    .tagline { font-size: 1.5rem; }
    .cta-group { flex-direction: column; width: 100%; max-width: 320px; }
    .btn { width: 100%; padding: 1.1rem 2rem; font-size: 1.1rem; }
    
    /* Stack cards on mobile but keep them wide */
    .features-grid { grid-template-columns: 1fr; }
    .card { padding: 2.5rem 1.5rem; }
}

/* Tablet Optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop Force 3 Columns */
@media (min-width: 1100px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
}