/* ==============================
   MasterBet Design System
   Coming Soon + Blog Edition
   ============================== */

:root {
    --bg-dark: #06060a;
    --bg-surface: #0d0d14;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-glow: rgba(245, 158, 11, 0.15);
    --accent-glow-strong: rgba(245, 158, 11, 0.3);
    --text-primary: #f1f5f9;
    --text-secondary: #64748b;
    --text-muted: #475569;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    --gradient-text: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    --font-main: 'Outfit', sans-serif;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 60px rgba(245, 158, 11, 0.08);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: clamp(14px, 1.5vw + 8px, 16px);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    word-break: break-word;
    overflow-wrap: anywhere;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ==============================
   Utility Classes
   ============================== */

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(1.6rem, 4vw + 0.5rem, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-header > p {
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    max-width: 550px;
    margin: 0 auto;
}

.section-badge {
    background: var(--bg-card);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--accent);
    border: 1px solid var(--accent-glow);
    display: inline-block;
    margin-bottom: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ==============================
   Navbar
   ============================== */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
    padding: 0 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(6, 6, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.35s ease;
}

.navbar.scrolled {
    height: 70px;
    background: #06060a;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    height: 100%;
}

.nav-logo-img {
    height: 55px;
    width: auto;
    max-width: 250px;
    display: block;
    object-fit: contain;
    transition: all 0.35s ease;
}

.brand-text {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.1rem, 2vw + 0.3rem, 1.7rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.logo-highlight {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.navbar.scrolled .nav-logo-img {
    height: 45px;
}

.nav-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px var(--accent-glow-strong));
}

.footer-logo-img {
    height: 75px;
    width: auto;
    display: block;
    margin-bottom: 25px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.btn-nav a {
    background: var(--gradient);
    color: #000 !important;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-block;
}

.btn-nav a::after {
    display: none;
}

.btn-nav a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow-strong);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* ==============================
   Hero Section
   ============================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 5% 60px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(245, 158, 11, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--accent-glow);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: floatBadge 3s ease-in-out infinite;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw + 0.5rem, 4.2rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.15rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Waitlist Form */
.waitlist-form {
    margin-bottom: 3rem;
}

.input-group {
    display: flex;
    gap: 0;
    max-width: 520px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.input-group:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.btn-main {
    background: var(--gradient);
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    color: #000;
    font-family: var(--font-main);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px var(--accent-glow-strong);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.waitlist-count {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.waitlist-count span {
    color: var(--accent);
    font-weight: 600;
}

/* Countdown Timer */
.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    font-size: clamp(1.5rem, 3vw + 0.5rem, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.8rem 1.2rem;
    min-width: clamp(50px, 8vw, 80px);
    text-align: center;
    transition: var(--transition);
}

.countdown-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

/* ==============================
   Features Section
   ============================== */

.features-section {
    padding: 8rem 5%;
    background: var(--bg-surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==============================
   Stats Section
   ============================== */

.stats-section {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 5rem 5%;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.stat-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-card h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--accent);
    display: inline;
}

.stat-suffix {
    font-size: 2rem;
    color: var(--accent);
    font-weight: 700;
}

.stat-card p {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

/* ==============================
   Blog Section
   ============================== */

.blog-section {
    padding: 8rem 5%;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card);
}

.blog-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.blog-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-featured .blog-image {
    height: 100%;
    min-height: 300px;
}

.blog-image-icon {
    font-size: 4rem;
    opacity: 0.6;
    transition: var(--transition);
}

.blog-card:hover .blog-image-icon {
    opacity: 1;
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-content {
    padding: 1.8rem;
}

.blog-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.blog-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-content h3 a:hover {
    color: var(--accent);
}

.blog-content > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-featured .blog-content > p {
    -webkit-line-clamp: 5;
    line-clamp: 5;
}

.blog-read-more {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    transition: var(--transition);
}

.blog-read-more:hover {
    transform: translateX(5px);
}

/* ==============================
   About Section
   ============================== */

.about-section {
    padding: 8rem 5%;
    background: var(--bg-surface);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-values {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.value-item:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.value-icon {
    font-size: 1.2rem;
}

/* ==============================
   Contact Section
   ============================== */

.contact-section {
    padding: 8rem 5%;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.contact-icon {
    font-size: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: translateY(-3px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* ==============================
   Footer
   ============================== */

.footer {
    padding: 5rem 5% 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
}

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

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
    max-width: 300px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.footer-disclaimer {
    font-size: 0.78rem !important;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ==============================
   Animations
   ============================== */

[data-animate] {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for grid items */
.features-grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.features-grid [data-animate]:nth-child(3) { transition-delay: 0.2s; }
.features-grid [data-animate]:nth-child(4) { transition-delay: 0.3s; }
.features-grid [data-animate]:nth-child(5) { transition-delay: 0.4s; }
.features-grid [data-animate]:nth-child(6) { transition-delay: 0.5s; }

.blog-grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.blog-grid [data-animate]:nth-child(3) { transition-delay: 0.15s; }
.blog-grid [data-animate]:nth-child(4) { transition-delay: 0.2s; }
.blog-grid [data-animate]:nth-child(5) { transition-delay: 0.25s; }
.blog-grid [data-animate]:nth-child(6) { transition-delay: 0.3s; }

/* ==============================
   Responsive Design
   ============================== */

@media (max-width: 1024px) {
    .blog-featured { grid-column: 1 / -1; grid-template-columns: 1fr; }
    .blog-featured .blog-image { min-height: 200px; }
}

@media (max-width: 768px) {
    .navbar { height: 70px; padding: 0 4%; }
    .nav-logo-img { height: clamp(32px, 5vw, 42px); }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(6, 6, 10, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        padding: 2.5rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border);
        text-align: center;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .nav-links.active { display: flex; animation: slideDown 0.4s ease forwards; }
    .mobile-menu { display: flex; }

    .countdown { gap: 0.8rem; flex-wrap: wrap; justify-content: center; }

    .input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 1.2rem;
    }
    
    .input-group input {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 1.2rem;
        text-align: center;
        width: 100%;
    }
    
    .btn-main {
        width: 100%;
        padding: 1.1rem;
        border-radius: 12px;
        justify-content: center;
    }

    .stats-section { gap: 2rem; padding: 3rem 5%; }
    .footer-brand p { margin: 1rem auto 0; }
    .footer-brand .logo { justify-content: center; }
    
    .hero { padding: 100px 5% 40px; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
