/* Portfolio Analytics — Landing Page */

/* ============ Reset & Base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-display);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ Gradient Utilities ============ */
.gradient-text {
    background: linear-gradient(135deg, #6366f1, #a855f7, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-border {
    border: 1px solid transparent;
    background-clip: padding-box;
    position: relative;
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(168,85,247,0.3), rgba(6,182,212,0.3));
    z-index: -1;
}

/* ============ Navigation ============ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 35, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(39, 39, 74, 0.5);
    transition: background 0.3s;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-logo svg { flex-shrink: 0; }

.nav-drawer {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-signin {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}
.btn-signin:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.btn-cta {
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.btn-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
}

.btn-cta-outline {
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color-light);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.btn-cta-outline:hover { background: rgba(255,255,255,0.05); border-color: #6366f1; }

.btn-cta-lg {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: 12px;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
}

/* ============ Hero ============ */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.2);
    color: #818cf8;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    max-width: 700px;
    margin: 0 auto 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px 0;
}

.hero-stat {
    text-align: center;
    flex: 1;
    position: relative;
    padding: 0 8px;
}
.hero-stat + .hero-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--border-color);
}
.hero-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}
.hero-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============ Section Base ============ */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #818cf8;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============ Features Grid ============ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99,102,241,0.3);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============ Dashboard Preview ============ */
.preview-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(26,26,46,0.5) 100%);
}

.preview-frame {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    overflow: hidden;
}

/* CSS-only dashboard mockup */
.mock-dashboard {
    display: grid;
    gap: 16px;
}

.mock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(15,15,35,0.6);
    border-radius: 10px;
}

.mock-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.mock-nav {
    display: flex;
    gap: 16px;
}
.mock-nav span {
    font-size: 0.72rem;
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 4px;
}
.mock-nav span:first-child { background: rgba(99,102,241,0.15); color: #818cf8; }

.mock-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mock-stat-card {
    padding: 16px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}
.mock-stat-label { font-size: 0.68rem; color: var(--text-muted); margin-bottom: 6px; }
.mock-stat-value { font-size: 1.2rem; font-weight: 700; }
.mock-stat-sub { font-size: 0.68rem; margin-top: 4px; }

.mock-chart-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
}

.mock-chart {
    padding: 16px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    min-height: 180px;
    display: flex;
    flex-direction: column;
}
.mock-chart-title { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 12px; }

.mock-bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding-top: 8px;
}
.mock-bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    min-height: 8px;
    transition: height 0.5s;
}

.mock-donut {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-table {
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
}
.mock-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
}
.mock-table-header span { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; font-weight: 600; }
.mock-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(39,39,74,0.3);
}
.mock-table-row span { font-size: 0.75rem; color: var(--text-secondary); }
.mock-table-row span:first-child { color: var(--text-primary); font-weight: 500; }

/* ============ Dividend Section ============ */
.dividend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dividend-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.dividend-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.dividend-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.dividend-card p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============ Security Section ============ */
.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.security-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.security-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.security-item h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.security-item p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }

/* ============ Pricing ============ */
.pricing-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 40px rgba(99,102,241,0.08);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 100px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    margin: 20px 0 8px;
}
.pricing-period { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; }

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}
.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(39,39,74,0.3);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-check {
    color: #22c55e;
    flex-shrink: 0;
}

/* ============ FAQ ============ */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq-question:hover { color: #818cf8; }

.faq-chevron {
    transition: transform 0.3s;
    flex-shrink: 0;
    color: var(--text-muted);
}
.faq-item.active .faq-chevron { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 20px;
}

.faq-answer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============ CTA Banner ============ */
.cta-banner {
    text-align: center;
    padding: 80px 0;
    position: relative;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(99,102,241,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-banner h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.cta-banner p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 28px;
}

/* ============ Footer ============ */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 48px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: 12px;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.88rem;
    padding: 5px 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom a { color: var(--accent-blue-light); }
.footer-bottom a:hover { text-decoration: underline; }

/* ============ Animations ============ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.8rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .mock-chart-area { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 1024px) {
    .nav-toggle { display: flex; }

    .nav-drawer {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(15, 15, 35, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border-color);
        padding: 8px 24px 18px;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }
    .nav-drawer.open { display: flex; }

    .nav-drawer .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: 0;
        margin: 0;
    }
    .nav-drawer .nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(39,39,74,0.3);
    }
    .nav-drawer .nav-links li:last-child a { border-bottom: none; }

    .nav-drawer .nav-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 14px 0 0;
        margin-top: 8px;
        border-top: 1px solid rgba(39,39,74,0.4);
    }
    .nav-drawer .btn-signin,
    .nav-drawer .btn-cta {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    .nav-drawer .btn-signin {
        border: 1px solid var(--border-color-light);
        border-radius: 10px;
    }
}

@media (max-width: 768px) {

.hero { padding: 110px 0 60px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; margin-left: auto; margin-right: auto; }
    .hero-buttons a, .hero-buttons button { width: 100%; text-align: center; }
    .hero-stats {
        flex-direction: column;
        gap: 0;
        border-radius: 12px;
        padding: 8px 16px;
        max-width: 320px;
    }
    .hero-stat {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }
    .hero-stat:last-child { border-bottom: none; }
    .hero-stat + .hero-stat::before { display: none; }
    .hero-stat-value { font-size: 1.1rem; order: 2; }
    .hero-stat-label { font-size: 0.82rem; order: 1; color: var(--text-secondary); }

    .section { padding: 64px 0; }
    .section-title { font-size: 1.8rem; }

    .features-grid { grid-template-columns: 1fr; }
    .dividend-grid { grid-template-columns: 1fr; }
    .security-grid { grid-template-columns: 1fr; }
    .mock-stats { grid-template-columns: repeat(2, 1fr); }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 1.8rem; }
    .section-title { font-size: 1.5rem; }
    .hero-stats { gap: 16px; }
    .mock-stats { grid-template-columns: 1fr; }
    .mock-table-header, .mock-table-row { grid-template-columns: 2fr 1fr 1fr; }
    .mock-table-header span:last-child, .mock-table-row span:last-child { display: none; }
    .pricing-card { padding: 28px 20px; }
    .feature-card { padding: 24px; }
}
