/* ========================================
   ENIGMAPI MARKETING DESIGN SYSTEM V4.0
   Complete CSS for all marketing pages
   ======================================== */

/* ===== 1. CSS VARIABLES ===== */
:root {
    /* Backgrounds */
    --bg-primary: #0a0e27;
    --bg-secondary: #0f1629;
    --bg-card: #141829;
    --bg-hover: #1a1f3a;

    /* Text */
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Brand */
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-light: rgba(99, 102, 241, 0.1);
    --accent-glow: rgba(99, 102, 241, 0.3);

    /* Semantic */
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.1);
    --gold: #fbbf24;
    --gold-light: rgba(251, 191, 36, 0.1);

    /* Trading */
    --buy: #10b981;
    --sell: #ef4444;

    /* Borders */
    --border: #1e293b;
    --border-light: #334155;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.6);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
}

/* ===== 2. RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== 3. TYPOGRAPHY ===== */
.hero-heading {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-heading {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.section-subheading {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.card-heading {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== 4. LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: var(--space-4xl) 0;
}

/* ===== 5. NAVIGATION ===== */
nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

/* ===== 6. BUTTONS ===== */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #f59e0b 100%);
    color: var(--bg-primary);
}

.btn-large {
    font-size: 16px;
    padding: 1rem 2rem;
}

.btn-xl {
    font-size: 18px;
    padding: 1.25rem 2.5rem;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== 7. CARDS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-interactive {
    cursor: pointer;
}

.card-highlight {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--bg-card) 100%);
}

/* ===== 8. TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    color: var(--gold);
    font-size: 20px;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--text-primary);
}

.testimonial-author {
    font-size: 14px;
    color: var(--text-secondary);
}

.testimonial-capital {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ===== 9. PRICING CARDS ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-light);
}

.pricing-card.elite {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--bg-card) 100%);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-tier {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.pricing-capital {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.pricing-fee {
    text-align: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.pricing-amount {
    font-size: 36px;
    font-weight: 900;
    color: var(--text-primary);
}

.pricing-frequency {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.pricing-profit {
    text-align: center;
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
}

.pricing-profit.highlight {
    background: var(--success-light);
    border-radius: 8px;
}

.profit-share {
    font-size: 24px;
    font-weight: 700;
    color: var(--success);
}

.profit-share-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* ===== 10. PROFIT CALCULATOR ===== */
.calculator-card {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.calculator-input {
    margin-bottom: 2rem;
}

.calculator-input label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.calculator-input input {
    width: 100%;
    padding: 1rem;
    font-size: 18px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
}

.calculator-input input:focus {
    outline: none;
    border-color: var(--accent);
}

.calculator-results {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.result-row:last-child {
    border-bottom: none;
}

.result-row.highlight {
    background: var(--success-light);
    margin: 0 -1rem;
    padding: 1rem;
    border-radius: 8px;
    border-bottom: none;
}

.result-value {
    font-weight: 700;
    font-size: 18px;
}

.result-value.success {
    color: var(--success);
}

.result-value.warning {
    color: var(--warning);
}

.result-value.large {
    font-size: 24px;
}

.result-value.xlarge {
    font-size: 28px;
}

.calculator-disclaimer {
    margin-top: 1.5rem;
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== 11. STORY CHAPTERS ===== */
.story-chapter {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    border-left: 4px solid var(--accent);
}

.chapter-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
}

.chapter-content h2 {
    font-size: 32px;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.chapter-content h4 {
    font-size: 20px;
    margin: 1.5rem 0 0.5rem;
    color: var(--accent);
}

.chapter-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.stat-highlight {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stat-highlight .stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--success-light);
    border-radius: 12px;
    min-width: 150px;
}

.stat-highlight .stat-value {
    font-size: 36px;
    font-weight: 900;
    color: var(--success);
    line-height: 1;
}

.stat-highlight .stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.dream-quote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    font-style: italic;
    font-size: 18px;
    color: var(--text-primary);
    margin: 1.5rem 0;
}

.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.inspiration-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
}

.results-banner {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--success-light) 0%, var(--accent-light) 100%);
    border-radius: 16px;
    margin: 2rem 0;
}

.banner-icon {
    font-size: 64px;
}

.banner-content h3 {
    font-size: 32px;
    margin-bottom: 0.5rem;
}

.banner-stat {
    font-size: 48px;
    font-weight: 900;
    color: var(--success);
    margin: 0.5rem 0;
}

/* ===== 12. FOOTER ===== */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    margin-top: var(--space-4xl);
}

footer .container {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

/* ===== 13. RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .testimonials-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: var(--space-2xl) 0;
    }

    .story-chapter {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .chapter-number {
        font-size: 32px;
    }

    .results-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== 14. ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== 15. ACCESSIBILITY ===== */
*:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===== 16. UTILITIES ===== */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: var(--space-sm);
}

.mb-2 {
    margin-bottom: var(--space-md);
}

.mb-3 {
    margin-bottom: var(--space-lg);
}

.mb-4 {
    margin-bottom: var(--space-xl);
}

.mt-1 {
    margin-top: var(--space-sm);
}

.mt-2 {
    margin-top: var(--space-md);
}

.mt-3 {
    margin-top: var(--space-lg);
}

.mt-4 {
    margin-top: var(--space-xl);
}
