:root {
    --bg-primary: #06080f;
    --bg-secondary: #0c0f1a;
    --bg-card: rgba(255, 255, 255, 0.025);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text-white: #ffffff;
    --text-muted: #8b95a8;
    --text-light: #cbd5e1;
    --accent-cyan: #38bdf8;
    --accent-violet: #818cf8;
    --accent-purple: #a855f7;
    --accent-orange: #ff6600;
    --gradient-main: linear-gradient(135deg, #38bdf8, #818cf8, #a855f7);
    --gradient-orange: linear-gradient(135deg, #ff8c33, #ff5500);
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 50px;
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
.nav-brand,
.badge,
.card-rank {
    font-family: 'Outfit', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- BACKGROUND EFFECTS --- */
.bg-glow {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    filter: blur(100px);
    opacity: 0.4;
}

.bg-glow-1 {
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.35) 0%, transparent 70%);
    animation: drift 25s infinite ease-in-out alternate;
}

.bg-glow-2 {
    bottom: -100px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
    animation: drift 30s infinite ease-in-out alternate-reverse;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(80px, 40px) scale(1.1);
    }
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(6, 8, 15, 0.7);
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.3s ease;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand .logo-icon {
    font-size: 1.6rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-white);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.6rem;
    cursor: pointer;
}

/* --- BADGES --- */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.badge-primary {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--accent-cyan);
}

.badge-orange {
    background: rgba(255, 102, 0, 0.1);
    border: 1px solid rgba(255, 102, 0, 0.3);
    color: var(--accent-orange);
}

/* --- GRADIENT TEXT --- */
.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shimmer 6s ease infinite;
}

.gradient-text-orange {
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
}

.hero-content {
    max-width: 820px;
}

.hero h1 {
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 1.5rem 0;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* --- HERO IMAGE --- */
.hero-visual {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    aspect-ratio: 16/7;
    position: relative;
}

.hero-visual img,
.hero-visual svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- CTA BUTTON --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
}

.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.35);
}

.btn-orange {
    background: var(--gradient-orange);
    color: #fff;
}

.btn-orange:hover {
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
}

/* --- SECTION HEADER --- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin: 1rem 0 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 550px;
    margin: 0 auto;
}

/* --- CARD GRID (Home) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 0 0 6rem;
}

.preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.4s var(--transition-smooth), border-color 0.4s ease;
    position: relative;
}

.preview-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
}

.preview-card .card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.preview-card .card-thumb svg,
.preview-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.preview-card:hover .card-thumb svg,
.preview-card:hover .card-thumb img {
    transform: scale(1.05);
}

.preview-card .card-body {
    padding: 1.8rem;
}

.preview-card .card-rank-badge {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.preview-card .card-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.preview-card .card-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preview-card .read-more {
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.3s ease;
}

.preview-card:hover .read-more {
    gap: 0.8rem;
}

/* --- FEATURED CARD (Braspress on Home) --- */
.featured-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: linear-gradient(145deg, rgba(255, 102, 0, 0.04) 0%, var(--bg-card) 100%);
    border: 1px solid rgba(255, 102, 0, 0.15);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform 0.4s var(--transition-smooth), border-color 0.4s ease;
}

.featured-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 102, 0, 0.3);
}

.featured-card .card-thumb {
    aspect-ratio: auto;
    min-height: 320px;
}

.featured-card .card-body {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-card .card-rank-badge {
    color: var(--accent-orange);
}

.featured-card .card-body h3 {
    font-size: 2rem;
}

.featured-card .read-more {
    color: var(--accent-orange);
}

/* --- ARTICLE PAGE --- */
.article-hero {
    padding: 10rem 2rem 4rem;
    text-align: center;
}

.article-hero .badge {
    margin-bottom: 1.5rem;
}

.article-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.article-hero .subtitle {
    color: var(--accent-cyan);
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
}

.article-cover {
    max-width: 900px;
    margin: 3rem auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    aspect-ratio: 16/8;
}

.article-cover svg,
.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.article-body h2 {
    font-size: 1.8rem;
    margin: 3rem 0 1rem;
}

.article-body h3 {
    font-size: 1.4rem;
    margin: 2rem 0 0.8rem;
    color: var(--accent-cyan);
}

.article-body p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    color: var(--text-light);
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-body li {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.8rem;
    text-align: center;
}

.stat-card .stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

/* Feature Blocks */
.feature-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}

.feature-block {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-block:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.feature-block .fb-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.feature-block h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-block p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* --- PROMO SECTION (Braspress) --- */
.promo-banner {
    background: linear-gradient(145deg, rgba(255, 102, 0, 0.06) 0%, rgba(15, 15, 25, 0.8) 100%);
    border: 1px solid rgba(255, 102, 0, 0.15);
    border-radius: var(--radius-xl);
    padding: 4rem;
    text-align: center;
    margin: 2rem 0 4rem;
}

.promo-banner h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin: 1rem 0;
}

.promo-banner p {
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

/* --- NEWSLETTER --- */
.newsletter-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 3rem;
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    backdrop-filter: blur(12px);
}

.newsletter-section h3 {
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
}

.newsletter-section p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--accent-orange);
}

/* --- RELATED ARTICLES --- */
.related-section {
    padding: 4rem 0 6rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: left;
}

.footer-col h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
}

.footer-col p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-links-vertical {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links-vertical a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-links-vertical a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom p {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.footer-bottom strong {
    color: rgba(255, 255, 255, 0.6);
}

/* --- BACK TO TOP --- */
.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
    transition: color 0.3s ease;
}

.back-to-top:hover {
    color: var(--text-white);
}

/* --- ANIMATIONS --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s var(--transition-smooth) forwards;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.45s;
}

.delay-4 {
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(6, 8, 15, 0.95);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-subtle);
        backdrop-filter: blur(20px);
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-card .card-body {
        padding: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-banner {
        padding: 2rem 1.5rem;
    }
}