/* landing.css - Premium Dark Aesthetic */
:root {
    --bg-dark: #0a0e17;
    --bg-card: rgba(18, 24, 38, 0.6);
    --bg-card-hover: rgba(30, 41, 59, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-cyan: #22d3ee;
    --accent-emerald: #10b981;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-family: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Grid Effect */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    mask-image: radial-gradient(ellipse at top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
    -webkit-mask-image: radial-gradient(ellipse at top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
    color: #fff;
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 211, 238, 0.4);
}

.btn-primary:disabled {
    background: #334155;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Section 1: Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px;
    padding-bottom: 60px;
}

.logo-wrapper {
    margin-bottom: 2rem;
    animation: float 6s ease-in-out infinite;
}

.logo-wrapper img {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(34, 211, 238, 0.2));
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 2rem;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Section 2: Pain Point vs Solution */
.comparison-section {
    padding: 100px 0;
    position: relative;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.3);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-title.problem { color: #f43f5e; }
.card-title.solution { color: var(--accent-cyan); }

.list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.list-item svg {
    flex-shrink: 0;
    margin-top: 4px;
}

/* Section 3: Stats */
.stats-section {
    padding: 100px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    text-align: center;
    padding: 40px 24px;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 8px;
    font-family: monospace;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Accordion */
.accordion-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.accordion-header {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.05);
    transition: background 0.3s;
}

.accordion-header:hover {
    background: rgba(16, 185, 129, 0.1);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    background: rgba(0,0,0,0.2);
}

.accordion-content.open {
    max-height: 1000px;
    transition: max-height 0.5s ease-in-out;
}

.accordion-inner {
    padding: 24px;
}

/* Mockup Table */
.mockup-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.9rem;
}

.mockup-table th, .mockup-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.mockup-table th {
    color: var(--text-muted);
    font-weight: 500;
}

.text-green { color: var(--accent-emerald); }
.text-red { color: #f43f5e; }

/* Section 4: Final CTA */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(to top, rgba(34, 211, 238, 0.05), transparent);
}

.disclaimer-box {
    max-width: 600px;
    margin: 0 auto 30px;
    text-align: left;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 4px;
    cursor: pointer;
    accent-color: var(--accent-cyan);
}

.checkbox-wrapper label {
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .comparison-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }
}

/* Modal / Level 2 Deep Data */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.open .modal-container {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(18, 24, 38, 0.95);
    backdrop-filter: blur(5px);
    z-index: 10;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin: 0;
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.btn-close:hover {
    color: #f43f5e;
}

.modal-body {
    padding: 24px;
}

/* Modal Stats Grid */
.modal-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.modal-stat-box {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.modal-stat-val {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.modal-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Modal Charts & Images */
.modal-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-main);
    border-left: 3px solid var(--accent-emerald);
    padding-left: 12px;
}

.equity-curve-placeholder {
    height: 300px;
    background: rgba(0,0,0,0.2);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.market-conditions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.condition-card {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.condition-header {
    padding: 12px 16px;
    font-weight: 600;
    text-align: center;
}

.condition-header.favorable {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.condition-header.unfavorable {
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
    border-bottom: 1px solid rgba(244, 63, 94, 0.2);
}

.condition-image-placeholder {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.condition-desc {
    padding: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .modal-stats-grid { grid-template-columns: 1fr 1fr; }
    .market-conditions-grid { grid-template-columns: 1fr; }
}

/* Path Choice Cards */
.path-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 60px auto 40px;
    max-width: 1000px;
}

.path-card {
    background: rgba(18, 24, 38, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.path-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.1);
    background: rgba(34, 211, 238, 0.05);
}

.path-card.left-path:hover {
    border-color: var(--accent-emerald);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
    background: rgba(16, 185, 129, 0.05);
}

.path-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.path-card.left-path .path-icon { color: var(--accent-emerald); }
.path-card.right-path .path-icon { color: var(--accent-cyan); }

.path-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.path-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.path-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    transition: all 0.2s;
}

.path-card.left-path .path-btn {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.path-card.left-path:hover .path-btn {
    background: var(--accent-emerald);
    color: #000;
}

.path-card.right-path .path-btn {
    background: rgba(34, 211, 238, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.path-card.right-path:hover .path-btn {
    background: var(--accent-cyan);
    color: #000;
}

/* Monthly Performance Table */
.monthly-performance-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 40px;
    background: rgba(18, 24, 38, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.monthly-performance-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: right;
    white-space: nowrap;
}

.monthly-performance-table th,
.monthly-performance-table td {
    padding: 10px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.monthly-performance-table th {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.monthly-performance-table th:first-child,
.monthly-performance-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text-main);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.monthly-performance-table td.positive { color: var(--accent-emerald); }
.monthly-performance-table td.negative { color: #f43f5e; }
.monthly-performance-table td.zero { color: rgba(255, 255, 255, 0.2); }
.monthly-performance-table th.ytd,
.monthly-performance-table td.ytd {
    font-weight: 700;
    background: rgba(255, 255, 255, 0.03);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.sl-notice {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--accent-cyan);
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 24px;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

@media (max-width: 768px) {
    .path-choice-grid { grid-template-columns: 1fr; }
}

/* Strategy Dashboard Tabs */
.strategy-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.strategy-tab {
    background: rgba(25, 30, 45, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
}

.strategy-tab:hover {
    background: rgba(45, 55, 75, 1);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.strategy-tab.active {
    background: #4f46e5;
    border-color: #6366f1;
    color: #fff;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

/* 12-Box Dashboard Grid System */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

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

.stat-card.large {
    padding: 30px 20px;
    background: rgba(18, 24, 38, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
}
.stat-card.large .stat-value {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.stat-card.large .stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.stat-card.medium {
    padding: 20px 15px;
    background: rgba(18, 24, 38, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
}
.stat-card.medium .stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.stat-card.medium .stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.stat-card.small {
    padding: 15px 10px;
    background: rgba(18, 24, 38, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
}
.stat-card.small .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.stat-card.small .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Colors for specific metrics */
.text-green { color: #10b981 !important; }
.text-blue { color: #3b82f6 !important; }
.text-red { color: #ef4444 !important; }
.text-gold { color: #eab308 !important; }

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

/* Strategy Dashboard Tabs */
.strategy-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Fix squashing */
    justify-content: center;
}

.strategy-tab {
    background: rgba(25, 30, 45, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.strategy-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.strategy-tab.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}
