/* 
   Mobiplexus Design System V15
   Material Design × Premium — All bugs fixed
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    /* Brand */
    --brand:        #4f46e5;
    --brand-light:  #818cf8;
    --brand-glow:   rgba(79, 70, 229, 0.15);
    --google-blue:  #1a73e8;
    --google-green: #34a853;
    --google-red:   #ea4335;
    --google-yellow:#fbbc04;
    --blue:         #3b82f6;
    --purple:       #9333ea;
    --gold:         #f59e0b;
    --green:        #22c55e;
    --discord:      #5865f2;

    /* Surfaces */
    --bg:           #0b0b0d;
    --bg-elevated:  #151518;
    --bg-card:      rgba(255,255,255,0.03);
    --bg-card-hover:rgba(255,255,255,0.055);

    /* Text */
    --txt:          #f8fafc;
    --txt-2:        #e2e8f0;
    --txt-muted:    #94a3b8;
    --txt-disabled: #475569;

    /* Borders */
    --border:       rgba(255,255,255,0.08);
    --border-bright:rgba(255,255,255,0.16);

    /* Radius */
    --r-sm: 8px;
    --r-md: 16px;
    --r-lg: 32px;
    --r-xl: 40px;

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,.25), 0 2px 4px -2px rgba(0,0,0,.15);
    --shadow-md: 0 20px 40px -8px rgba(0,0,0,.5);

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --dur:  0.3s;
}

/* Base Styles */
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--brand-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s var(--ease); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--txt);
    font-family: 'Google Sans', 'Inter', Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; }

h1, h2, h3, h4 {
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--txt);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 100px 0; }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.ann-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px;
    font-size: 13px;
    color: var(--txt-muted);
    position: relative;
    z-index: 1001;
}
.ann-bar a {
    color: var(--brand-light);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}
.ann-bar a:hover { color: var(--txt); }
.ann-bar button {
    background: none;
    border: none;
    color: var(--txt-disabled);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: color var(--dur);
}
.ann-bar button:hover { color: var(--txt); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 64px;
    background: rgba(11, 11, 13, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    transition: box-shadow var(--dur) var(--ease);
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.4); }

.nav-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-brand img { width: 24px; height: 24px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    flex: 1;
}
.nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--txt-muted);
    transition: color var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--txt); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.nav-signin {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--txt-muted);
    transition: color var(--dur);
}
.nav-signin:hover { color: var(--txt); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--txt);
    border-radius: 2px;
    transition: transform var(--dur) var(--ease), opacity var(--dur);
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(11,11,13,0.97);
    backdrop-filter: blur(24px);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
}
.mobile-nav.is-open { opacity: 1; pointer-events: all; }

.mobile-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--txt);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

.mobile-nav nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}
.mob-link {
    font-size: 28px;
    font-weight: 500;
    color: var(--txt);
    text-decoration: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.2s;
}
.mob-link:hover { color: var(--brand-light); }
.mobile-nav.is-open .mob-link {
    opacity: 1;
    transform: translateY(0);
}
.mob-link:nth-child(1) { transition-delay: .05s; }
.mob-link:nth-child(2) { transition-delay: .10s; }
.mob-link:nth-child(3) { transition-delay: .15s; }
.mob-link:nth-child(4) { transition-delay: .20s; }
.mob-link:nth-child(5) { transition-delay: .25s; }

.mob-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 240px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--dur) var(--ease), box-shadow var(--dur), transform var(--dur);
    white-space: nowrap;
    border: 1px solid transparent;
    font-family: inherit;
    line-height: 1.2;
}

.btn-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    .btn-group .btn {
        width: 100%;
    }
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}
.btn-primary:hover {
    background: #4338ca;
    box-shadow: 0 0 20px var(--brand-glow);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--txt-muted);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--border-bright);
    color: var(--txt);
    transform: translateY(-1px);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: border-color var(--dur) var(--ease),
                background var(--dur) var(--ease),
                transform var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease);
    backdrop-filter: blur(12px);
}
.card:hover {
    border-color: var(--border-bright);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
/* Inner spotlight effect */
.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x,50%) var(--y,50%),
                rgba(255,255,255,0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.card:hover::after { opacity: 1; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    padding: 120px 0 80px;
    text-align: center;
}
.hero-title {
    font-size: clamp(36px, 7vw, 64px);
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.1;
}
.hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--txt-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* ============================================================
   DASHBOARD WINDOW
   ============================================================ */
.dash-window {
    background: #050507;
    border: 1px solid var(--border-bright);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}
.dash-titlebar {
    background: #111114;
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.win-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dash-label {
    margin-left: 12px;
    font-size: 11px;
    font-weight: 500;
    color: var(--txt-disabled);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
}

.feat-icon {
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.feat-icon svg { 
    width: 24px !important; 
    height: 24px !important; 
}
.feat-icon.blue { color: var(--blue) !important; background: rgba(59,130,246,0.05) !important; border-color: rgba(59,130,246,0.1) !important; }
.feat-icon.gold { color: var(--gold) !important; background: rgba(245,158,11,0.05) !important; border-color: rgba(245,158,11,0.1) !important; }
.feat-icon.purple { color: var(--purple) !important; background: rgba(147,51,234,0.05) !important; border-color: rgba(147,51,234,0.1) !important; }
.feat-icon.green { color: var(--green) !important; background: rgba(34,197,94,0.05) !important; border-color: rgba(34,197,94,0.1) !important; }
.feat-icon.red { color: var(--google-red) !important; background: rgba(234,67,53,0.05) !important; border-color: rgba(234,67,53,0.1) !important; }

/* ============================================================
   GRID UTILITIES
   ============================================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-grid, .download-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Component */
.card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    position: relative;
    transition: all var(--dur) var(--ease);
}
.card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: var(--border-bright);
}

/* Pricing Card Component */
.price-card {
    display: flex;
    flex-direction: column;
    padding: 48px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    position: relative;
    transition: all var(--dur) var(--ease);
}
.price-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: var(--border-bright);
}
.price-card.featured {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.05) 0%, transparent 100%);
    border-color: rgba(245, 158, 11, 0.3);
}

.price-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all var(--dur);
    margin-top: auto;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
}
.price-btn.solid-blue { background: var(--brand) !important; color: #fff !important; border: 1px solid var(--brand) !important; }
.price-btn.solid-blue:hover { background: #4338ca !important; box-shadow: 0 8px 24px var(--brand-glow) !important; }
.price-btn.solid-purple { background: #9333ea !important; color: #fff !important; border: 1px solid #9333ea !important; }
.price-btn.solid-purple:hover { background: #7e22ce !important; box-shadow: 0 8px 24px rgba(147, 51, 234, 0.4) !important; }
.price-btn.outline { background: transparent !important; color: var(--txt-muted) !important; border: 1px solid var(--border) !important; }
.price-btn.outline:hover { color: var(--txt) !important; border-color: var(--txt) !important; }

/* Pricing Elements */
.price-tier-label { font-size: 14px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 24px; }
.price-amount { font-size: 48px; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 8px; }
.currency { font-size: 24px; color: var(--txt-muted); vertical-align: top; margin-right: 4px; }
.price-period { font-size: 14px; color: var(--txt-muted); }
.price-divider { height: 1px; background: var(--border); margin: 32px 0; }
.price-desc { color: var(--txt-muted); font-size: 15px; line-height: 1.6; margin-bottom: 32px; min-height: 50px; }
.price-features { list-style: none; margin-bottom: 40px; }
.price-features li { margin-bottom: 16px; font-size: 14px; color: var(--txt-2); display: flex; align-items: center; gap: 12px; }
.feat-check-circ { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: #070709;
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
}
.footer-brand img { width: 24px; height: 24px; }
.footer-brand-desc {
    font-size: 14px;
    color: var(--txt-muted);
    line-height: 1.7;
    max-width: 280px;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(52, 168, 83, 0.1);
    border: 1px solid rgba(52, 168, 83, 0.2);
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--google-green);
    margin-top: 20px;
}
.status-dot {
    width: 6px;
    height: 6px;
    background: var(--google-green);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--google-green);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.footer-col-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--txt-disabled);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a {
    font-size: 14px;
    color: var(--txt-muted);
    text-decoration: none;
    transition: color var(--dur);
}
.footer-links a:hover { color: var(--txt); }

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--txt-muted);
    text-decoration: none;
    transition: color var(--dur);
    padding: 6px 0;
}
.social-link:hover { color: var(--txt); }
.social-link svg { width: 18px; height: 18px; flex-shrink: 0; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 32px;
    font-size: 13px;
    color: var(--txt-disabled);
}
.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 24px;
}
.back-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--txt-disabled);
    font-size: 13px;
    transition: color var(--dur);
}
.back-top:hover { color: var(--txt); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .two-col { grid-template-columns: 1fr; gap: 48px; }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 36px; }
    .hero-title { font-size: 48px; }
    .bento-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .hamburger { display: flex; }
    section { padding: 60px 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .footer-bottom-right { flex-wrap: wrap; justify-content: center; }
    
    .hero-title { font-size: 38px; }
    .hero-sub { font-size: 16px; }
    
    /* Stacking utilities for common inline grid patterns */
    div[style*="grid-template-columns:repeat(3,1fr)"],
    div[style*="grid-template-columns: repeat(3, 1fr)"],
    div[style*="grid-template-columns:repeat(4,1fr)"],
    div[style*="grid-template-columns: repeat(4, 1fr)"],
    div[style*="grid-template-columns:1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr"],
    .feature-grid, .pricing-grid, .download-grid, .feat-grid { 
        grid-template-columns: 1fr !important; 
        gap: 32px !important;
    }
    
    .card[style*="grid-template-columns:auto 1fr"] { 
        grid-template-columns: 1fr !important; 
        text-align: center; 
    }
    
    .btn-group { flex-direction: column; width: 100%; }
    .btn-group .btn { width: 100%; }
    
    /* Tables responsiveness */
    .table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    
    .mobile-hide { display: none !important; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 32px; }
    .container { padding: 0 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .bento-grid { grid-template-columns: 1fr !important; }
    .dash-main { padding: 32px 16px !important; }
}
