/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --primary-gold: #FFD700;
    --primary-blue: #1E3A8A;
    --primary-dark: #0F172A;
    --primary-green: #10B981;
    --primary-red: #EF4444;
    
    /* Secondary Colors */
    --secondary-light: #F8FAFC;
    --secondary-gray: #64748B;
    --secondary-dark: #334155;
    
    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --gradient-blue: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 0;
    
    /* Shadows */
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--primary-dark);
    background-color: var(--secondary-light);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--secondary-dark);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--gradient-dark);
    color: white;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,215,0,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.stock-ticker {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 0;
    overflow: hidden;
    z-index: 2;
}

.ticker-content {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.stock-item {
    display: inline-block;
    margin-right: 40px;
    font-weight: 600;
    font-size: 0.9rem;
}

.stock-item.positive { color: var(--primary-green); }
.stock-item.negative { color: var(--primary-red); }

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding-top: 60px;
}

.hero-content .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - 120px);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--primary-gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 90%;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 3rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-item i {
    color: var(--primary-gold);
    font-size: 1.5rem;
}

.stat-item div strong {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
}

.stat-item div span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mario-portrait {
    position: relative;
    z-index: 2;
}

.mario-portrait img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    border: 4px solid var(--primary-gold);
}

.portfolio-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: white;
    color: var(--primary-dark);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow-heavy);
    min-width: 200px;
}

.portfolio-card h4 {
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 700;
}

.performance-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.performance-item .positive {
    color: var(--primary-green);
    font-weight: 600;
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: var(--gradient-primary);
    color: var(--primary-dark);
    box-shadow: var(--shadow-medium);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.cta-button.secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.cta-button.large {
    padding: 24px 48px;
    font-size: 1.3rem;
}

.cta-button i {
    font-size: 1.2em;
}

/* Section Styles */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--secondary-gray);
}

/* About Mario Section */
.about-mario {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.expertise-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.expertise-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.expertise-item i {
    color: var(--primary-gold);
    font-size: 2rem;
    margin-top: 5px;
    flex-shrink: 0;
}

.expertise-item h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.expertise-item p {
    color: var(--secondary-gray);
    font-size: 1rem;
}

.about-visual {
    background: var(--gradient-dark);
    color: white;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.about-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.social-stats {
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.platform {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.platform i {
    color: var(--primary-gold);
    font-size: 1.8rem;
    width: 30px;
}

.platform strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
}

.platform span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.books-showcase {
    position: relative;
    z-index: 2;
}

.books-showcase h4 {
    margin-bottom: 15px;
    color: var(--primary-gold);
}

.books-showcase ul {
    list-style: none;
}

.books-showcase li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}

.books-showcase li::before {
    content: '📚';
    position: absolute;
    left: 0;
}

/* Benefits Section */
.benefits {
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.benefit-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin-bottom: 20px;
}

.benefit-icon i {
    font-size: 2rem;
    color: var(--primary-dark);
}

.benefit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.benefit-card p {
    color: var(--secondary-gray);
    font-size: 1rem;
}

/* Image-Text Modules */
.image-text-module {
    padding: 100px 0;
}

.image-text-module:nth-child(even) {
    background: white;
}

.image-text-module:nth-child(odd) {
    background: var(--secondary-light);
}

.module-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.right-image .module-content {
    grid-template-columns: 1fr 1fr;
}

.right-image .module-text {
    order: 1;
}

.right-image .module-image {
    order: 2;
}

.module-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.module-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.module-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.overlay-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.overlay-text span {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1.2rem;
}

.chart-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.community-stats {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 215, 0, 0.95);
    color: var(--primary-dark);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.community-stats .stat {
    margin-bottom: 10px;
}

.community-stats .stat:last-child {
    margin-bottom: 0;
}

.community-stats strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
}

.community-stats span {
    font-size: 0.9rem;
    font-weight: 600;
}

.module-text h3 {
    color: var(--primary-dark);
    margin-bottom: 25px;
    font-size: 2.2rem;
}

.strategy-points, .analysis-features, .community-benefits {
    margin: 30px 0;
}

.point, .feature, .benefit {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.point i, .feature-icon i, .benefit i {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.feature-icon {
    background: var(--gradient-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i, .benefit i {
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.feature h4, .benefit h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.feature p, .benefit p {
    color: var(--secondary-gray);
    font-size: 0.95rem;
}

/* Final CTA Section */
.final-cta {
    background: var(--gradient-dark);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,215,0,0.1)"/></svg>') repeat;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.cta-content > p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.urgency-elements {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.urgency-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.urgency-item i {
    color: var(--primary-gold);
    font-size: 1.2rem;
}

.urgency-item span {
    font-weight: 600;
    font-size: 0.95rem;
}

.disclaimer {
    margin-top: 30px;
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-left h4 {
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.footer-left p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    color: var(--primary-gold);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.social-links a:hover {
    background: var(--primary-gold);
    color: var(--primary-dark);
    transform: translateY(-3px);
    border-color: var(--primary-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Floating CTA Button */
.floating-cta {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    animation: bounce 2s infinite;
}

.float-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-primary);
    color: var(--primary-dark);
    border: none;
    padding: 18px 30px;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-heavy);
    transition: var(--transition-smooth);
}

.float-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.float-button i {
    font-size: 1.3rem;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40%, 43% {
        transform: translate(-50%, -10px);
    }
    70% {
        transform: translate(-50%, -5px);
    }
    90% {
        transform: translate(-50%, -2px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .module-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .urgency-elements {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .mario-portrait img {
        width: 250px;
        height: 320px;
    }
    
    .portfolio-card {
        position: static;
        margin-top: 20px;
        width: 100%;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefit-card {
        padding: 30px 20px;
    }
    
    .floating-cta {
        bottom: 20px;
        left: 20px;
        right: 20px;
        transform: none;
    }
    
    .float-button {
        width: 100%;
        justify-content: center;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .cta-button.large {
        padding: 18px 30px;
        font-size: 1.1rem;
    }
    
    .module-text h3 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .floating-cta,
    .stock-ticker {
        display: none;
    }
    
    .hero {
        min-height: auto;
        page-break-after: always;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-gold: #FFFF00;
        --primary-blue: #0000FF;
        --primary-dark: #000000;
        --secondary-light: #FFFFFF;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-cta {
        animation: none;
    }
    
    .ticker-content {
        animation: none;
    }
}
