:root {
    --bg-dark: #050505;
    --card-bg: rgba(20, 20, 24, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #f8f8f8;
    --text-muted: #a1a1aa;
    
    --accent-standard: #38bdf8;
    
    --glow-primary: rgba(56, 189, 248, 0.15);
    --glow-secondary: rgba(168, 85, 247, 0.15);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Effects */
.bg-glow {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--glow-primary) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
}

.bg-glow-secondary {
    top: auto;
    bottom: -20%;
    left: auto;
    right: -10%;
    background: radial-gradient(circle, var(--glow-secondary) 0%, rgba(0,0,0,0) 70%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

header {
    text-align: center;
    margin-bottom: 5rem;
    animation: fadeInDown 0.8s ease-out;
}

.badge-pill {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(135deg, #38bdf8 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Card Grid and Tiers */
.card-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 4rem;
}

.tier-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.6s ease-out backwards;
}

.tier-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
}

.tier-header p {
    color: var(--accent-standard);
    font-size: 1.05rem;
    font-weight: 600;
}

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

/* Individual Card */
.tos-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease-out backwards;
    cursor: pointer;
}

.tos-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border-color: rgba(56, 189, 248, 0.4);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.platform-name {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.score-badge {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-standard);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.card-body {
    flex-grow: 1;
    pointer-events: none;
}

.list-section {
    margin-bottom: 1.5rem;
}

.list-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

ul {
    list-style: none;
}

li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: #e4e4e7;
    line-height: 1.5;
}

li::before {
    content: '•';
    color: var(--accent-standard);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.verdict {
    margin-top: auto;
    font-size: 1rem;
    color: var(--text-muted);
    pointer-events: none;
}

.verdict strong {
    color: var(--text-main);
    font-weight: 600;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px dashed rgba(255,255,255,0.1);
}

.btn-source {
    color: var(--accent-standard);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.05);
    transition: all 0.2s;
    position: relative;
    z-index: 10;
}

.btn-source:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.6);
}

.click-prompt {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.3s;
}

.tos-card:hover .click-prompt {
    color: var(--text-main);
}

footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: #0f0f13;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.modal-overlay.hidden .modal-content {
    transform: translateY(30px);
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0.5rem;
}

.close-btn:hover {
    color: #fff;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-wrap: wrap;
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 800;
}

.modal-body {
    font-size: 1.05rem;
    color: #e4e4e7;
    line-height: 1.7;
}

.modal-body h3 {
    color: #fff;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.modal-body li {
    padding-left: 0;
    margin-bottom: 0.6rem;
}
.modal-body li::before {
    display: none;
}
.modal-body li {
    list-style-type: disc;
}

.modal-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #38bdf8 0%, #a855f7 100%);
    color: #fff;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.3);
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Responsive UI/UX for Mobile */
@media (max-width: 768px) {
    .container { 
        padding: 2rem 1.2rem; 
    }
    
    header { 
        margin-bottom: 3rem; 
    }
    
    h1 { 
        font-size: 2.2rem; 
    }
    
    .subtitle { 
        font-size: 1.05rem; 
    }
    
    .card-grid { 
        grid-template-columns: 1fr; 
        gap: 1.5rem; 
    }
    
    .tos-card { 
        padding: 1.5rem; 
    }
    
    .platform-name { 
        font-size: 1.5rem; 
    }
    
    .list-section li { 
        font-size: 1rem; 
        margin-bottom: 0.8rem; 
    }
    
    .modal-content { 
        padding: 1.5rem; 
        border-radius: 16px; 
    }
    
    .modal-header h2 { 
        font-size: 1.5rem; 
    }
    
    .modal-body { 
        font-size: 1rem; 
    }
    
    .click-prompt {
        color: var(--text-main);
    }
}
