/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d2b1e 0%, #1b4332 40%, #2d6a4f 75%, #3a7d5e 100%);
    overflow: hidden;
    padding: 0 5%;
}

/* Fade into page */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to top, var(--bg-main), transparent);
    pointer-events: none;
    z-index: 3;
}

/* Decorative floating shapes */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 1; }

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
}

.hero-shape--1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #52b788, transparent 70%);
    top: -200px; right: -150px;
    animation: heroFloat 8s ease-in-out infinite;
}

.hero-shape--2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #f2cc8f, transparent 70%);
    bottom: 0; left: -100px;
    animation: heroFloat 10s ease-in-out infinite reverse;
}

.hero-shape--3 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, #e07a5f, transparent 70%);
    top: 40%; left: 55%;
    opacity: 0.08;
    animation: heroFloat 6s ease-in-out infinite 2s;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* Inner layout — split */
.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 10rem 0 8rem;
}

/* Left: text */
.hero-content { text-align: left; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.45rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.8rem;
    backdrop-filter: blur(8px);
}

.hero-badge__dot {
    width: 7px; height: 7px;
    background: #52b788;
    border-radius: 50%;
    box-shadow: 0 0 8px #52b788;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.4); }
}

.hero h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.8rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.hero h1 span {
    color: var(--accent-warm);
    font-style: italic;
    position: relative;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-warm);
    opacity: 0.4;
    border-radius: 2px;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 480px;
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.hero-actions .btn-primary {
    font-family: 'DM Sans', sans-serif;
    display: inline-block;
    padding: 1rem 2.4rem;
    font-size: 0.95rem;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 6px 24px rgba(224, 122, 95, 0.45);
}

.hero-actions .btn-primary:hover {
    background: #c9614a;
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(224, 122, 95, 0.55);
}

.btn-ghost {
    font-family: 'DM Sans', sans-serif;
    display: inline-block;
    padding: 1rem 2.4rem;
    font-size: 0.95rem;
    border-radius: 4px;
    background: transparent;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1.5px solid rgba(255,255,255,0.3);
    transition: var(--transition);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}

/* Stats row */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stat strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.hero-stat span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.15);
}

/* Right: visual card stack */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card-stack {
    position: relative;
    width: 320px;
    height: 380px;
}

.hero-card {
    position: absolute;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
}

.hero-card--back {
    width: 260px; height: 320px;
    background: rgba(255,255,255,0.04);
    bottom: 0; right: 0;
    transform: rotate(8deg);
    backdrop-filter: blur(4px);
}

.hero-card--mid {
    width: 270px; height: 330px;
    background: rgba(255,255,255,0.07);
    bottom: 10px; right: 10px;
    transform: rotate(4deg);
    backdrop-filter: blur(6px);
}

.hero-card--front {
    width: 280px; height: 340px;
    background-color: rgba(255,255,255,0.12);
    background-size: cover;
    background-position: center;
    bottom: 20px; right: 20px;
    transform: rotate(0deg);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1.5rem;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
    animation: cardFloat 5s ease-in-out infinite;
    overflow: hidden;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
    border-radius: inherit;
    pointer-events: none;
}

.hero-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.hero-card__badge {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-card__label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.12);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.2);
    align-self: flex-start;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.4);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-scroll__line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Feature Grid ── */
.game-features {
    padding: 7rem 0;
    background: var(--bg-main);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.game-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover img { transform: scale(1.04); }

.game-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-top: 3px solid transparent;
    transition: var(--transition);
}

.game-card:hover .game-info { border-top-color: var(--primary-light); }

.game-info h3 {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
}

.game-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.btn-outline {
    font-family: 'DM Sans', sans-serif;
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.4rem;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    align-self: flex-start;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* ── Latest News ── */
.latest-news {
    padding: 7rem 0;
    background: #f0ece4;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.news-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover img { transform: scale(1.04); }

.news-content {
    padding: 1.8rem;
    border-top: 3px solid var(--accent);
}

.news-date {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
}

.news-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.45;
    font-weight: 700;
}

.news-content h3 a { color: var(--text-main); }
.news-card:hover h3 a { color: var(--primary); }

.news-content p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 9rem 0 7rem;
        gap: 3rem;
    }

    .hero-content { text-align: center; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
}

@media (max-width: 768px) {
    .hero-inner { padding: 8rem 0 6rem; }
    .hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); letter-spacing: -0.5px; }
    .hero p { font-size: 1rem; }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn-primary,
    .btn-ghost {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .hero-stats { gap: 1rem; }
    .hero-stat strong { font-size: 1.3rem; }

    .game-features, .latest-news { padding: 4rem 0; }

    .news-grid, .grid-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .game-card img, .news-card img { height: 180px; }
    .game-info, .news-content { padding: 1.4rem; }
    .btn-outline { width: 100%; text-align: center; justify-content: center; }
}

/* ── Ticker Bar ── */
.ticker-bar {
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 44px;
    position: relative;
    z-index: 5;
}

.ticker-label {
    flex-shrink: 0;
    background: var(--accent);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0 1.2rem;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.ticker-inner {
    display: flex;
    gap: 0;
    animation: tickerScroll 40s linear infinite;
    width: max-content;
}

.ticker-item {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: color 0.2s;
}

.ticker-item:hover { color: var(--accent-warm); }

.ticker-dot {
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Featured Spotlight ── */
.featured-spotlight {
    padding: 6rem 0;
    background: var(--bg-main);
}

.spotlight-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.spotlight-text {
    padding: 4rem;
}

.spotlight-tag {
    display: inline-block;
    background: #e8f5ee;
    color: var(--primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(45,106,79,0.2);
}

.spotlight-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.spotlight-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.spotlight-text .btn-primary {
    font-family: 'DM Sans', sans-serif;
    display: inline-block;
    padding: 0.85rem 2rem;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.spotlight-text .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.spotlight-image {
    height: 100%;
    min-height: 380px;
}

.spotlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .spotlight-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .spotlight-image { min-height: 240px; }
    .spotlight-text { padding: 2.5rem; }
}

/* ── Why Us ── */
.why-us {
    padding: 7rem 0;
    background: var(--primary-dark);
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.why-us .section-title { color: #fff; }
.why-us .section-title::after { background: var(--accent); }

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.why-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.why-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.2);
}

.why-icon {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    display: block;
}

.why-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.8rem;
}

.why-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .why-grid { grid-template-columns: 1fr; }
}

/* ── Popular Articles ── */
.popular-section {
    padding: 7rem 0;
    background: #f0ece4;
}

.popular-inner {}

.popular-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.popular-header .section-title {
    margin-bottom: 0;
}

.popular-header .section-title::after { display: none; }

.popular-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.popular-item:hover {
    border-color: var(--primary-light);
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
}

.popular-item img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.popular-item__body { flex: 1; }

.popular-item__date {
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.4rem;
}

.popular-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    font-family: 'Playfair Display', serif;
}

.popular-item:hover h4 { color: var(--primary); }

@media (max-width: 600px) {
    .popular-item img { width: 70px; height: 56px; }
    .popular-item h4 { font-size: 0.9rem; }
}

/* ── CTA Banner ── */
.cta-banner {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--accent) 0%, #c9614a 100%);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    pointer-events: none;
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 240px; height: 240px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    pointer-events: none;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.6rem;
}

.cta-text p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    max-width: 500px;
}

.cta-btn {
    font-family: 'DM Sans', sans-serif;
    display: inline-block;
    padding: 1rem 2.8rem;
    background: #fff;
    color: var(--accent);
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.2);
}

@media (max-width: 640px) {
    .cta-inner { flex-direction: column; text-align: center; }
    .cta-text p { margin: 0 auto; }
    .cta-btn { width: 100%; text-align: center; }
    .popular-header { flex-direction: column; align-items: flex-start; }
}
