/* TRINITY Landing Page - Production Fintech Aesthetic */
/* Typography: Outfit (headings), DM Sans (body) - distinctive, professional */
/* Responsive bands: use static/css/breakpoints.css (--bp-mobile-max 639px, tablet 640–1023px, --bp-full-min 1024px). */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Outfit:wght@400;500;600;700;800&display=swap');

.landing-page {
    --landing-font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --landing-font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --landing-accent: #0ea5e9;
    --landing-accent-hover: #0284c7;
    --landing-emerald: #10b981;
    --landing-emerald-muted: rgba(16, 185, 129, 0.15);
    --landing-slate-900: #0f172a;
    --landing-slate-800: #1e293b;
    --landing-slate-700: #334155;
    --landing-slate-500: #64748b;
    --landing-slate-400: #94a3b8;
    --landing-white: #ffffff;
    --landing-glass: rgba(255, 255, 255, 0.06);
    --landing-glass-border: rgba(255, 255, 255, 0.08);
    --landing-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    --landing-transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-page {
    font-family: var(--landing-font-body);
}

/* Hero: pull section up under sticky header so gradient fills viewport top (50px bar + 1px border) */
.landing-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -51px;
    margin-bottom: 40px;
    padding: calc(140px + 51px) 0 100px;
    overflow: hidden;
}

.landing-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 0% 80%, rgba(14, 165, 233, 0.06) 0%, transparent 50%);
    z-index: 0;
}

.landing-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 880px;
}

.landing-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--landing-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--landing-glass-border);
    border-radius: 100px;
    font-size: 22.4px;
    font-weight: 600;
    color: var(--landing-slate-400);
    margin-top: -40px;
    margin-bottom: 28px;
    letter-spacing: 0.02em;
    animation: landingFadeIn 0.6s ease-out;
}

.landing-hero-badge i {
    color: var(--landing-accent);
}

.landing-hero-title {
    font-family: var(--landing-font-display);
    font-size: clamp(44px, 7vw, 72px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--landing-white);
    animation: landingFadeIn 0.6s ease-out 0.1s both;
}

.landing-hero-title .landing-gradient {
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-hero-desc {
    font-size: clamp(21.6px, 2.64vw, 26.4px);
    color: var(--landing-slate-400);
    line-height: 1.7;
    max-width: 660px;
    margin: 0 auto 40px;
    animation: landingFadeIn 0.6s ease-out 0.2s both;
}

.landing-hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    animation: landingFadeIn 0.6s ease-out 0.3s both;
}

.landing-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    font-weight: 600;
    font-size: 20.4px;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--landing-transition);
    box-shadow: 0 4px 24px rgba(14, 165, 233, 0.35);
}

.landing-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.45);
}

.landing-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--landing-glass);
    color: var(--landing-white);
    font-weight: 600;
    font-size: 20.4px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid var(--landing-glass-border);
    backdrop-filter: blur(12px);
    transition: var(--landing-transition);
}

.landing-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Paper Trading / Simulator Section */
.landing-simulator {
    padding: 100px 0;
    margin-bottom: 40px;
    position: relative;
}

.landing-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.landing-section-label {
    font-size: 28px;
    font-weight: 600;
    color: var(--landing-emerald);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.landing-section-title {
    font-family: var(--landing-font-display);
    font-size: clamp(36px, 4.5vw, 48px);
    font-weight: 700;
    color: var(--landing-white);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.landing-section-desc {
    font-size: 21.6px;
    color: var(--landing-slate-400);
    line-height: 1.75;
}

.landing-simulator .landing-section-desc {
    font-size: calc(21.6px * 1.2);
}

.landing-simulator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1320px;
    margin: 0 auto;
}

.landing-sim-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 12px;
    align-items: start;
    background: var(--landing-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--landing-glass-border);
    border-radius: 16px;
    padding: 32px;
    transition: var(--landing-transition);
}

.landing-sim-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.landing-sim-icon {
    grid-column: 1;
    grid-row: 1;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--landing-emerald-muted);
    border-radius: 14px;
    color: var(--landing-emerald);
    font-size: 24px;
}

.landing-sim-card h3 {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    font-family: var(--landing-font-display);
    font-size: 32px;
    font-weight: 600;
    color: var(--landing-white);
    margin: 0;
    line-height: 1.2;
}

.landing-sim-card p {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 24px;
    color: var(--landing-slate-400);
    line-height: 1.65;
    margin: 0;
}

/* How It Works */
.landing-how {
    padding: 100px 0;
    margin-bottom: 40px;
}

.landing-how-steps {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 864px;
    margin: 48px auto 0;
}

/* Mobile + tablet (breakpoints.css max-width 1023px): 20% wider than full layout */
@media (max-width: 1023px) {
    .landing-how-steps {
        max-width: calc(864px * 1.2);
    }
}

.landing-how-step {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.landing-how-num {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--landing-accent) 0%, var(--landing-emerald) 100%);
    border-radius: 14px;
    font-family: var(--landing-font-display);
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.landing-how-step h3 {
    font-family: var(--landing-font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--landing-white);
    margin-bottom: 8px;
}

.landing-how-steps > .landing-how-step:nth-child(2) h3 {
    font-size: 26px;
}

.landing-how-step p {
    font-size: 32px;
    color: var(--landing-slate-400);
    line-height: 1.7;
}

/* For Beginners / For Investors */
.landing-audience {
    padding: 100px 0;
}

.landing-audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 48px auto 0;
}

/* Mobile only (breakpoints.css --bp-mobile-max); tablet + full keep two columns */
@media (max-width: 639px) {
    .landing-audience-grid {
        grid-template-columns: 1fr;
    }

    .landing-cta-box > p {
        font-size: 25.6px;
    }

    /* Hero badge: hidden on mobile (no display, no layout space) */
    .landing-hero-badge {
        display: none;
    }

    /* Hero desc: 80% of base clamp + 2pt on mobile */
    .landing-hero-desc {
        font-size: clamp(
            calc(17.28px + 2pt),
            calc(2.112vw + 2pt),
            calc(21.12px + 2pt)
        );
    }

    /* How it works: num + title one row; body copy full width below (matches simulator cards) */
    .landing-how-step {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        column-gap: 16px;
        row-gap: 12px;
        align-items: start;
    }

    .landing-how-step > div:nth-child(2) {
        display: contents;
    }

    .landing-how-num {
        grid-column: 1;
        grid-row: 1;
    }

    .landing-how-step h3 {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        margin-bottom: 0;
        font-size: 26px;
    }

    .landing-how-steps > .landing-how-step:nth-child(2) h3 {
        font-size: 30px;
    }

    .landing-how-step p {
        grid-column: 1 / -1;
        grid-row: 2;
        margin: 0;
    }
}

.landing-audience-card {
    background: var(--landing-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--landing-glass-border);
    border-radius: 20px;
    padding: 40px;
    transition: var(--landing-transition);
}

.landing-audience-card:hover {
    border-color: rgba(14, 165, 233, 0.3);
    transform: translateY(-2px);
}

.landing-audience-card h3 {
    font-family: var(--landing-font-display);
    font-size: 28.8px;
    font-weight: 700;
    color: var(--landing-white);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-audience-card h3 i {
    color: var(--landing-accent);
}

.landing-audience-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.landing-audience-card li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--landing-glass-border);
    font-size: 30px;
    color: var(--landing-slate-400);
    line-height: 1.6;
}

.landing-audience-card li:last-child {
    border-bottom: none;
}

.landing-audience-card li i {
    color: var(--landing-emerald);
    flex-shrink: 0;
    margin-top: 2px;
}

/* CTA Section */
.landing-cta {
    padding: 100px 0;
}

.landing-cta-box {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 24px;
    padding: 64px 48px;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.landing-cta-box h2 {
    font-family: var(--landing-font-display);
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 700;
    color: var(--landing-white);
    margin-bottom: 16px;
}

.landing-cta-box p {
    font-size: 21.6px;
    color: var(--landing-slate-400);
    margin-bottom: 32px;
}

.landing-cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.landing-cta-divider {
    font-size: 14px;
    color: var(--landing-slate-500);
    font-weight: 500;
}

/* Trust Pills */
.landing-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.landing-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--landing-glass);
    border: 1px solid var(--landing-glass-border);
    border-radius: 100px;
    font-size: 18px;
    color: var(--landing-slate-400);
}

.landing-trust-pill i {
    color: var(--landing-emerald);
}

/* Animations */
@keyframes landingFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark theme landing (when <html> has data-theme="dark", set by header) */
[data-theme="dark"] .landing-page {
    --landing-slate-900: #0f172a;
    --landing-slate-800: #1e293b;
    --landing-slate-700: #334155;
    --landing-slate-500: #64748b;
    --landing-slate-400: #94a3b8;
    --landing-white: #ffffff;
    --landing-glass: rgba(255, 255, 255, 0.06);
    --landing-glass-border: rgba(255, 255, 255, 0.08);
}

/* Dark mode section backgrounds */
[data-theme="dark"] .landing-hero,
[data-theme="dark"] .landing-simulator,
[data-theme="dark"] .landing-how,
[data-theme="dark"] .landing-audience,
[data-theme="dark"] .landing-cta {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

[data-theme="dark"] .landing-hero .landing-hero-title,
[data-theme="dark"] .landing-simulator .landing-section-title,
[data-theme="dark"] .landing-how .landing-how-step h3,
[data-theme="dark"] .landing-audience-card h3,
[data-theme="dark"] .landing-cta-box h2 {
    color: #ffffff;
}

/* Light theme landing - responds to nav bar toggle */
:root:not([data-theme="dark"]) .landing-page {
    --landing-slate-900: #0f172a;
    --landing-slate-800: #1e293b;
    --landing-slate-700: #334155;
    --landing-slate-500: #64748b;
    --landing-slate-400: #475569;
    --landing-white: #0f172a;
    --landing-glass: rgba(248, 250, 252, 0.9);
    --landing-glass-border: rgba(148, 163, 184, 0.25);
}

:root:not([data-theme="dark"]) .landing-hero,
:root:not([data-theme="dark"]) .landing-simulator,
:root:not([data-theme="dark"]) .landing-how,
:root:not([data-theme="dark"]) .landing-audience,
:root:not([data-theme="dark"]) .landing-cta {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
}

:root:not([data-theme="dark"]) .landing-hero-bg {
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(14, 165, 233, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 0% 80%, rgba(14, 165, 233, 0.05) 0%, transparent 50%);
}

:root:not([data-theme="dark"]) .landing-hero-title {
    color: #0f172a;
}

:root:not([data-theme="dark"]) .landing-hero-title .landing-gradient {
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

:root:not([data-theme="dark"]) .landing-hero-desc,
:root:not([data-theme="dark"]) .landing-section-desc,
:root:not([data-theme="dark"]) .landing-sim-card p,
:root:not([data-theme="dark"]) .landing-how-step p,
:root:not([data-theme="dark"]) .landing-audience-card li,
:root:not([data-theme="dark"]) .landing-cta-box p {
    color: #475569;
}

:root:not([data-theme="dark"]) .landing-hero-badge,
:root:not([data-theme="dark"]) .landing-trust-pill {
    color: #64748b;
}

:root:not([data-theme="dark"]) .landing-section-title,
:root:not([data-theme="dark"]) .landing-how-step h3,
:root:not([data-theme="dark"]) .landing-sim-card h3,
:root:not([data-theme="dark"]) .landing-audience-card h3,
:root:not([data-theme="dark"]) .landing-cta-box h2 {
    color: #0f172a;
}

:root:not([data-theme="dark"]) .landing-sim-card,
:root:not([data-theme="dark"]) .landing-audience-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

:root:not([data-theme="dark"]) .landing-sim-card:hover,
:root:not([data-theme="dark"]) .landing-audience-card:hover {
    background: #ffffff;
    border-color: rgba(14, 165, 233, 0.3);
}

:root:not([data-theme="dark"]) .landing-btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

:root:not([data-theme="dark"]) .landing-btn-secondary:hover {
    background: #ffffff;
    border-color: rgba(14, 165, 233, 0.4);
}

:root:not([data-theme="dark"]) .landing-cta-box {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(16, 185, 129, 0.06) 100%);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

:root:not([data-theme="dark"]) .landing-cta-divider {
    color: #64748b;
}

:root:not([data-theme="dark"]) .landing-audience-card li {
    border-bottom-color: rgba(148, 163, 184, 0.2);
}
