:root {
    /* Color Palette */
    --primary-color: #1a237e;
    --primary-dark: #000051;
    --primary-light: #534bae;
    --secondary-color: #ff6f00;
    --accent-color: #ffd700;
    --text-color: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --success-color: #2e7d32;
    --border-color: #e0e0e0;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --spacing-lg: 2rem;
    --spacing-md: 1rem;
    --spacing-sm: 0.5rem;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.top-bar {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 8px 0;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar i {
    color: var(--accent-color);
    margin-right: 8px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
    font-size: 16px; /* Base font size for mobile SEO */
}

a {
    text-decoration: none !important;
    color: inherit;
    transition: var(--transition);
    min-height: 44px; /* Minimum tap target height for links if they are buttons */
    display: inline-flex;
    align-items: center;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem; /* Better padding for mobile */
}

.section {
    padding: 4rem 0;
    width: 100%;
    clear: both;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    color: var(--primary-color);
    font-size: clamp(1.5rem, 4vw, 2.2rem); /* Dynamic font size for better fit */
    font-weight: 800;
    margin-bottom: 10px;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 10px;
}

/* Live Title */
.section-title h2.live-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title h2.live-title::after {
    display: none; /* Remove underline for live title */
}

.live-dot {
    width: 12px;
    height: 12px;
    background: #ff0000;
    border-radius: 50%;
    animation: blink 1s infinite;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px; /* Increased padding for better tap target */
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem; /* Minimum 16px for readability */
    letter-spacing: 0.5px;
    text-align: center;
    gap: 8px;
    min-height: 48px; /* Ensure 44px+ tap target */
}

.btn-lg {
    padding: 16px 45px;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(255, 111, 0, 0.4);
}

.btn-lg:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 111, 0, 0.5);
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-light) !important;
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    animation: shine 3s infinite linear;
}

.btn-primary i {
    animation: icon-bounce 1.5s ease-in-out infinite;
}

.btn-primary:hover {
    background-color: #e65100;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 111, 0, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light) !important;
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

/* Header & Nav */
header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
    width: auto;
    aspect-ratio: 190 / 50;
}

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

.nav-links a {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.nav-links a.active {
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.nav-links .btn-primary {
    padding: 10px 24px;
    font-size: 0.85rem;
    border-radius: 50px; /* Ensure rounding */
}

.mobile-menu-btn {
    display: none; /* Hidden by default on desktop */
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: 2rem 0 0; /* Shorter padding as requested */
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: flex-end; /* Align image to bottom */
    justify-content: space-between;
    gap: 3rem;
}

.hero-content {
    flex: 1.2;
    padding-bottom: 4rem;
    animation: fadeInUp 1s ease-out;
}

.welcome-badge {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-color);
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.hero-image {
    flex: 0.8;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    animation: float 4s ease-in-out infinite;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 900;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 2.5rem;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 10px;
    width: fit-content;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-feature-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Why Millions Trust Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 100%;
}

.feature-card {
    background: var(--bg-white);
    padding: 3rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 800;
}

/* Market Cards */
.market-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem 2.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid var(--secondary-color);
    transition: var(--transition);
}

.market-card:hover {
    transform: scale(1.02);
}

.market-info h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 800;
}

.result-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.profit-badge {
    color: var(--success-color);
    font-weight: 700;
    font-size: 0.9rem;
}

.market-status {
    padding: 6px 18px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.8rem;
}

.status-high { background: #e8f5e9; color: #2e7d32; }
.status-low { background: #ffebee; color: #c62828; }

/* App Download Section */
.app-download {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--text-light);
    border-radius: 40px;
    padding: 5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.app-content {
    flex: 1.2;
}

.app-content h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.app-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.app-content ul {
    margin-bottom: 3rem;
}

.app-content ul li {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.app-content ul li i {
    color: var(--accent-color);
    font-size: 1.4rem;
}

.app-image {
    flex: 0.8;
    display: flex;
    justify-content: center;
    position: relative;
}

.app-image svg {
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    max-width: 100%;
}

/* Tabs System */
.tabs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    border-radius: 50px;
    background: white;
    color: var(--primary-color);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--primary-light);
    font-size: 1rem;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

/* Rates Grid */
.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.rate-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 5px solid var(--secondary-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rate-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 800;
    font-size: 1.3rem;
}

.rate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.rate-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--secondary-color);
    line-height: 1.2;
}

.rate-label {
    font-size: 1rem;
    font-weight: 700;
    color: #444;
    margin-top: 0.5rem;
    background: #f1f4f9;
    padding: 5px 15px;
    border-radius: 50px;
    display: inline-block;
    align-self: center;
}

/* Winners Section - Live Ticker */
.winners-ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: #f1f4f9;
    padding: 2rem 0;
    position: relative;
}

.winners-ticker-wrap::before,
.winners-ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.winners-ticker-wrap::before {
    left: 0;
    background: linear-gradient(to right, #f1f4f9 0%, transparent 100%);
}

.winners-ticker-wrap::after {
    right: 0;
    background: linear-gradient(to left, #f1f4f9 0%, transparent 100%);
}

.winners-ticker {
    display: flex;
    width: max-content;
    animation: ticker 40s linear infinite;
    gap: 2rem;
    padding-left: 2rem;
}

.winners-ticker:hover {
    animation-play-state: paused;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.winner-card {
    background: white;
    padding: 1.2rem 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-left: 4px solid var(--secondary-color);
    flex-shrink: 0;
    width: 280px;
    position: relative;
}

.winner-avatar {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.winner-info h4 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 0.2rem;
    font-weight: 700;
}

.win-amount {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 0.2rem;
}

.win-time {
    font-size: 0.75rem;
    color: #2e7d32;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.win-time i {
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.win-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--secondary-color);
    font-size: 1rem;
    opacity: 0.2;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

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

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 5rem 0 0;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 2rem;
}

.footer-col h4 {
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
}

.footer-col p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-col ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-col ul li i {
    color: var(--secondary-color);
    width: 20px;
}

.footer-col ul li a {
    color: var(--text-light);
    opacity: 0.8;
}

.footer-col ul li a:hover,
.footer-col ul li a.active {
    color: var(--accent-color);
    opacity: 1;
    padding-left: 8px;
}

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

.footer-bottom p {
    opacity: 0.7;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    opacity: 0.8;
}

.trust-item i {
    font-size: 1.2rem;
    color: var(--accent-color);
}

/* SVG Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-green {
    0% { fill: #2e7d32; opacity: 0.8; }
    50% { fill: #4caf50; opacity: 1; }
    100% { fill: #2e7d32; opacity: 0.8; }
}

@keyframes pulse-red {
    0% { fill: #c62828; opacity: 0.8; }
    50% { fill: #ef5350; opacity: 1; }
    100% { fill: #c62828; opacity: 0.8; }
}

@keyframes chart-grow {
    from { stroke-dasharray: 0 100; }
    to { stroke-dasharray: 75 100; }
}

.svg-float { animation: float 4s ease-in-out infinite; }
.svg-pulse-green { animation: pulse-green 2s infinite; }
.svg-pulse-red { animation: pulse-red 2s infinite; }
.svg-chart-path { animation: chart-grow 2s ease-out forwards; }

@media (max-width: 1200px) {
    .section-title h2 { font-size: 2rem; }
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid, .footer-grid, .rates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar { height: 60px; }
    .logo img { height: 35px; }
    
    .section { padding: 3rem 0; }
    
    .mobile-menu-btn { display: block; } /* Show only on mobile */
    
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        text-align: center;
        gap: 1.2rem;
    }
    
    .nav-links.active { display: flex; }
    .nav-links a { font-size: 0.85rem; }
    
    .hero { padding: 1.5rem 0 0; }
    .hero .container { flex-direction: column; text-align: center; align-items: center; gap: 1rem; } /* Reduced gap from 2rem to 1rem */
    .hero-content { 
        padding-bottom: 1rem; /* Reduced from 1.5rem */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hero-image { justify-content: center; width: 100%; }
    .hero-image img { margin-bottom: 0; max-width: 60%; } /* Reduced from 75% to 60% */
    .hero-feature-item { margin: 0 auto; padding: 8px 15px; font-size: 0.9rem; }
    
    .hero-btns {
        justify-content: center;
        width: 100%;
        margin-top: 1.2rem; /* Reduced from 2rem */
        margin-bottom: 1.5rem; /* Reduced from 2.5rem */
    }
    
    .hero p { font-size: 1rem; }
    
    .section-title { margin-bottom: 2.5rem; }
    .section-title h2 { font-size: 1.5rem; } /* Reduced from 2rem (25%) */
    
    .app-download { flex-direction: column; padding: 2.5rem 1.5rem; text-align: center; gap: 2.5rem; }
    .app-content h2 { font-size: 2rem; }
    .app-content p { font-size: 1rem; }
    .app-image { justify-content: center; }
    .app-image svg { width: 250px; height: 250px; } /* Reduce SVG size */
    
    .market-card { flex-direction: column; gap: 12px; text-align: center; padding: 1.2rem; }
    .result-number { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .features-grid, .footer-grid, .rates-grid { grid-template-columns: 1fr; }
    .btn { 
        width: 100%; 
        padding: 16px 24px; 
        font-size: 1rem; 
        min-height: 54px;
    }
    
    .app-download h2 { font-size: 1.6rem; }
    
    .footer-col { text-align: center; }
    .footer-col h4 { font-size: 1.1rem; margin-bottom: 1.5rem; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .footer-col ul li { justify-content: center; font-size: 1rem; }
}
