:root {
    --primary: #0077B6;
    --primary-dark: #023E8A;
    --secondary: #90E0EF;
    --accent: #CAF0F8;
    --text: #1D3557;
    --text-light: #457B9D;
    --bg: #F8FAFC;
    --white: #FFFFFF;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --container: 1140px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; border-left: 6px solid var(--primary); padding-left: 1.5rem; }
h3 { font-size: 1.6rem; }

p { margin-bottom: 1.2rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- COMPONENTS --- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    gap: 0.6rem;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover { background: var(--primary-dark); color: var(--white); }

.btn-secondary {
    background: var(--secondary);
    color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.section {
    padding: 6rem 0;
}

.hero {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--accent) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.hero-img {
    position: absolute;
    right: 2%;
    top: 50%;
    transform: translateY(-50%);
    width: 42%;
    height: 75%;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

@media (max-width: 992px) {
    .hero-img { display: none; }
    .hero-content { max-width: 100%; text-align: center; }
}

/* --- CARDS & BOXES --- */

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card i {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.grid {
    display: grid;
    gap: 2.5rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.content-box {
    background: var(--white);
    padding: 3.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 4rem;
    overflow: hidden;
}

.content-box h2, .content-box h3 {
    margin-top: 1rem;
}

.highlight-box {
    background: var(--accent);
    border-left: 8px solid var(--primary);
    padding: 2.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 2.5rem 0;
}

/* --- LISTS --- */

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 900;
}

/* --- RANKING LIST --- */

.rank-item {
    display: flex;
    align-items: center;
    background: var(--white);
    margin-bottom: 1.2rem;
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    gap: 2rem;
    transition: transform 0.2s;
}

.rank-item:hover {
    transform: scale(1.02);
}

.rank-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    min-width: 50px;
}

.rank-name {
    font-weight: 800;
    font-size: 1.2rem;
    flex-grow: 1;
}

.rank-rating {
    color: #FBBF24;
    display: flex;
    gap: 4px;
}

/* --- NAVIGATION --- */

header {
    background: var(--white);
    padding: 1.2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
}

.nav-links a:hover { color: var(--primary); }

.dropdown {
    position: relative;
    padding-bottom: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--white);
    min-width: 260px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    top: 100%;
    left: 0;
    padding: 1rem 0;
    border-top: 3px solid var(--primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 0.8rem 2rem;
}

.dropdown-content a:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

/* --- FOOTER --- */

footer {
    background: #111827;
    color: #F9FAFB;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--white);
    border: none;
    padding: 0;
    margin-bottom: 1.8rem;
    font-size: 1.3rem;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col a {
    opacity: 0.7;
    font-size: 0.95rem;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* --- REVEAL ON SCROLL --- */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- UTILS --- */

.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }
.mt-4 { margin-top: 4rem; }

img.rounded { border-radius: var(--radius); }
img.shadow { box-shadow: var(--shadow); }

/* Viewer Silo Specific */
.viewer-section {
    background: #0F172A;
    color: #F8FAFC;
    border-radius: var(--radius);
}

.viewer-section h1, .viewer-section h2, .viewer-section h3 {
    color: #F8FAFC;
}

.viewer-section h2 {
    border-left-color: var(--secondary);
}

.viewer-section .card {
    background: #1E293B;
    color: #F8FAFC;
    border: 1px solid #334155;
}

.viewer-section .rank-item {
    background: #1E293B;
    border: 1px solid #334155;
}

.viewer-section .rank-name {
    color: #F8FAFC;
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .section { padding: 4rem 0; }
    .content-box { padding: 2rem 1.5rem; }
}