/* ===================================
   RISK FIRST TRADING - STYLES
   Professional trader aesthetic
   =================================== */

/* ===================================
   RESET & BASE STYLES
   =================================== */

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

:root {
    /* Colors - Professional trader palette */
    --primary-blue: #1e40af;
    --primary-blue-dark: #1e3a8a;
    --primary-blue-light: #3b82f6;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --dark-bg: #0f172a;
    --dark-bg-light: #1e293b;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: var(--spacing-md);
}

strong {
    font-weight: 600;
}

/* ===================================
   BUTTONS
   =================================== */

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
}

.cta-primary {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.cta-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.cta-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
}

.cta-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
}

/* ===================================
   HEADER
   =================================== */

.header {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue);
}

/* Mobile menu toggle */
@media (max-width: 768px) {
    .logo {
        height: 40px;
    }
    
    .header-nav {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .header-nav .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .header-nav .nav-link:not(.cta-button) {
        display: none;
    }
    
    .logo {
        height: 36px;
    }
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-light) 100%);
    color: var(--white);
    padding: var(--spacing-3xl) 0;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-blue-light);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.hero-title {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gray-300);
    max-width: 900px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.6;
}

.hero-components {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--spacing-lg);
    font-size: 0.9rem;
    color: var(--gray-300);
}

.hero-price {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: var(--spacing-xl);
    color: var(--gray-200);
}

.price-highlight {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--accent-green);
}

.hero .cta-button {
    margin-bottom: var(--spacing-lg);
}

.hero-guarantees {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--gray-300);
}

/* ===================================
   SECTION STYLES
   =================================== */

section {
    padding: var(--spacing-3xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.subtitle-light {
    font-weight: 400;
    color: var(--text-light);
}

.section-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 800px;
    margin: -1rem auto var(--spacing-xl);
}

/* ===================================
   PROBLEM SECTION
   =================================== */

.problem {
    background: var(--gray-100);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.problem-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.problem-card h3 {
    color: var(--primary-blue-dark);
    margin-bottom: var(--spacing-sm);
}

.problem-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

.reality-check {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.reality-check h3 {
    color: var(--primary-blue);
}

.highlight-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-top: var(--spacing-md);
}

/* ===================================
   SOLUTION SECTION
   =================================== */

.solution {
    background: var(--white);
}

.solution-badge {
    display: inline-block;
    background: var(--primary-blue-light);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 auto var(--spacing-md);
    display: block;
    width: fit-content;
    text-align: center;
}

.solution-intro {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    text-align: center;
}

.solution-story {
    background: var(--gray-100);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    max-width: 900px;
    margin: 0 auto var(--spacing-xl);
}

.solution-story h3 {
    color: var(--primary-blue);
    text-align: center;
}

.solution-benefits {
    max-width: 900px;
    margin: 0 auto;
}

.solution-benefits h3 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-lg);
}

.benefit-list {
    display: grid;
    gap: var(--spacing-md);
}

.benefit-item {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.benefit-item strong {
    color: var(--primary-blue);
    display: block;
    margin-bottom: var(--spacing-xs);
}

/* ===================================
   FEATURES SECTION
   =================================== */

.features {
    background: var(--gray-100);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
}

.feature-tagline {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.feature-list {
    list-style: none;
    margin: var(--spacing-lg) 0;
}

.feature-list li {
    padding: var(--spacing-xs) 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

.feature-why {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--gray-200);
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ===================================
   VALUE/PRICING SECTION
   =================================== */

.value {
    background: var(--white);
}

.value-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.value-col {
    background: var(--gray-100);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
}

.value-col h3 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
}

.value-list {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.value-list li {
    padding: var(--spacing-xs) 0;
    color: var(--text-light);
}

.value-list li strong {
    color: var(--primary-blue);
    float: right;
}

.value-total {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--gray-300);
}

.value-hidden {
    background: var(--gray-100);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
}

.value-hidden h3 {
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.value-list-big {
    list-style: none;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

.value-list-big li {
    padding: var(--spacing-sm) 0;
    font-size: 1.125rem;
}

.value-list-big li strong {
    color: var(--primary-blue);
}

.value-math {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-dark);
    max-width: 700px;
    margin: 0 auto;
}

.pricing-box {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-light) 100%);
    color: var(--white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.pricing-value {
    margin-bottom: var(--spacing-lg);
}

.pricing-label {
    display: block;
    font-size: 1rem;
    color: var(--gray-300);
    margin-bottom: var(--spacing-xs);
}

.pricing-old {
    font-size: 1.5rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.pricing-current {
    margin-bottom: var(--spacing-xl);
}

.pricing-price {
    display: block;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--accent-green);
    margin-bottom: var(--spacing-xs);
}

.pricing-note {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-300);
}

.pricing-includes {
    text-align: left;
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
}

.pricing-includes h4 {
    color: var(--white);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.pricing-includes ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-sm);
}

.pricing-includes li {
    color: var(--gray-200);
    font-size: 0.95rem;
}

.pricing-guarantee {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    color: var(--gray-200);
    font-size: 0.95rem;
}

.pricing-guarantee strong {
    color: var(--accent-green);
}

/* ===================================
   TESTIMONIALS SECTION
   =================================== */

.testimonials {
    background: var(--gray-100);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.testimonial-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.testimonial-text {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-blue);
}

/* ===================================
   FAQ SECTION
   =================================== */

.faq {
    background: var(--white);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: var(--spacing-lg);
    background: var(--white);
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
    font-family: var(--font-primary);
}

.faq-question:hover {
    background: var(--gray-100);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: var(--text-light);
    margin: 0;
}

/* ===================================
   FINAL CTA SECTION
   =================================== */

.final-cta {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
    color: var(--white);
    text-align: center;
}

.final-cta .section-title {
    color: var(--white);
}

.final-cta-text {
    font-size: 1.125rem;
    color: var(--gray-200);
    max-width: 800px;
    margin: 0 auto var(--spacing-md);
}

.final-cta-highlight {
    font-size: 1.25rem;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.final-cta .cta-button {
    background: var(--white);
    color: var(--primary-blue);
    margin-bottom: var(--spacing-lg);
}

.final-cta .cta-button:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.final-cta-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--spacing-lg);
    font-size: 0.9rem;
    color: var(--gray-200);
}

.final-cta-note {
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: var(--spacing-xl);
}

.final-ps {
    max-width: 700px;
    margin: 0 auto;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
    color: var(--gray-300);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--dark-bg);
    color: var(--gray-300);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer .container {
    display: grid;
    gap: var(--spacing-xl);
    text-align: center;
}

.footer-logo {
    height: 45px;
    width: auto;
    margin-bottom: var(--spacing-md);
}

.footer-brand h3 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    color: var(--gray-400);
    margin-bottom: var(--spacing-xs);
}

.footer-flag {
    font-size: 1.125rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-lg);
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-700);
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
        --spacing-3xl: 4rem;
    }
    
    .hero-components,
    .hero-guarantees,
    .final-cta-features {
        font-size: 0.85rem;
    }
    
    .problem-grid,
    .features-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .value-comparison {
        grid-template-columns: 1fr;
    }
    
    .pricing-includes ul {
        grid-template-columns: 1fr;
    }
    
    .cta-button {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .hero-components span:nth-child(even),
    .hero-guarantees span:nth-child(even),
    .final-cta-features span:nth-child(even) {
        display: none;
    }
    
    .hero-components,
    .hero-guarantees,
    .final-cta-features {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

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

.hero,
.problem,
.solution,
.features,
.value,
.testimonials,
.faq,
.final-cta {
    animation: fadeInUp 0.6s ease-out;
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .cta-button,
    .footer {
        display: none;
    }
}