* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(87, 199, 255, 0.18), transparent 0, transparent 32%),
        radial-gradient(circle at top right, rgba(32, 227, 178, 0.12), transparent 0, transparent 28%),
        linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 50%, #111827 100%);
    padding: 24px;
}

.landing-shell {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.landing-hero {
    position: relative;
    padding: 30px;
    overflow: hidden;
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: auto -80px -80px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(87, 199, 255, 0.18), transparent 68%);
    pointer-events: none;
}

.hero-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.85fr);
    gap: 22px;
    align-items: stretch;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
}

.hero-btn-primary {
    background: linear-gradient(135deg, #20e3b2 0%, #0ea5e9 100%);
    color: #04111f;
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.25);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-highlights {
    display: grid;
    gap: 12px;
}

.highlight-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(7, 17, 31, 0.48);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.highlight-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #8fe8ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.highlight-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.05rem;
    color: #fff;
}

.highlight-card p {
    color: var(--muted);
    line-height: 1.5;
}

.cluster-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cluster-section {
    padding: 22px;
    border-radius: 24px;
    background: rgba(10, 18, 33, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #8fe8ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.15rem);
    color: #fff;
    margin-bottom: 6px;
}

.section-heading p {
    color: var(--muted);
    line-height: 1.6;
    max-width: 760px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(87, 199, 255, 0.12);
    border: 1px solid rgba(87, 199, 255, 0.18);
    color: #dff9ff;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.cluster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.cluster-grid--manual {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 225px;
    padding: 20px;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(10, 18, 33, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

/* Phosphor icon inside card-icon */
.card-icon i.ph {
    font-size: 1.5rem;
    color: #fff;
    line-height: 1;
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 55%);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(87, 199, 255, 0.34);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.card-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    font-size: 1.45rem;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.card-tag {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 0.77rem;
    font-weight: 700;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
}

.card-description {
    color: var(--muted);
    line-height: 1.6;
    flex: 1;
}

.card-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: 6px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 600;
}

.card--overview .card-icon {
    background: linear-gradient(135deg, #34d6ff 0%, #00c2a8 100%);
}

.card--trades .card-icon {
    background: linear-gradient(135deg, #6172ff 0%, #7a4df4 100%);
}

.card--journal .card-icon {
    background: linear-gradient(135deg, #ff7bd5 0%, #ff5f7a 100%);
}

.card--live .card-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
}

.card--ea-live .card-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.card--ea-backtest .card-icon {
    background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
}

.card--ea-compare .card-icon {
    background: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
}

.card--lab .card-icon {
    background: linear-gradient(135deg, #20e3b2 0%, #0ea5e9 100%);
}

.card--maintenance .card-icon {
    background: linear-gradient(135deg, #94a3b8 0%, #475569 100%);
}

.footer {
    text-align: center;
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-maintenance-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.12);
    color: rgba(226, 232, 240, 0.45);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.footer-maintenance-link:hover {
    color: rgba(226, 232, 240, 0.85);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(148, 163, 184, 0.25);
}

.install-cta {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
    display: none;
}

.install-cta-btn {
    border: 1px solid rgba(32, 227, 178, 0.45);
    background: linear-gradient(135deg, #20e3b2 0%, #0ea5e9 100%);
    color: #03141f;
    font-weight: 800;
    letter-spacing: 0.01em;
    padding: 12px 16px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.install-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(14, 165, 233, 0.42);
}

.install-cta-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

@media (max-width: 1000px) {
    .cluster-grid--manual {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hero-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cluster-grid--manual {
        grid-template-columns: 1fr;
    }
    body {
        padding: 16px;
    }

    .landing-hero,
    .cluster-section {
        padding: 18px;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-btn {
        width: 100%;
    }

    .install-cta {
        display: block;
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .install-cta-btn {
        width: 100%;
        text-align: center;
        padding: 13px 16px;
    }
}
