﻿/* ═══════════════════════════════════════════════════════════════════════════════
   LANDING PAGE STYLES
   ═══════════════════════════════════════════════════════════════════════════════
   
   Standalone styles for the public landing page (Index.cshtml).
   Separated from the main design system for reusability and maintainability.
   
   This page uses Layout=null (standalone HTML), so it defines its own
   design tokens that mirror the design-system.css variables.
   ═══════════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0b1120;
    --card: rgba(255,255,255,0.05);
    --card-border: rgba(255,255,255,0.08);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --primary: #38bdf8;
    --primary-dark: #0ea5e9;
    --accent: #818cf8;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --radius: 16px;
    --radius-sm: 10px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── Animated background ── */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .25;
    animation: float 18s ease-in-out infinite;
}

    .orb:nth-child(1) {
        width: 600px;
        height: 600px;
        background: var(--primary);
        top: -10%;
        left: -10%;
    }

    .orb:nth-child(2) {
        width: 500px;
        height: 500px;
        background: var(--accent);
        bottom: -10%;
        right: -5%;
        animation-delay: -6s;
    }

    .orb:nth-child(3) {
        width: 400px;
        height: 400px;
        background: var(--success);
        top: 40%;
        left: 50%;
        animation-delay: -12s;
        opacity: .15;
    }

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ── Header ── */
.landing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: #fff;
}

.logo-accent {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

    .nav-links a {
        color: var(--muted);
        text-decoration: none;
        font-size: .9rem;
        font-weight: 500;
        transition: color .2s;
    }

        .nav-links a:hover {
            color: #fff;
        }

.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .25s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 4px 20px rgba(56,189,248,.25);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(56,189,248,.35);
    }

.btn-secondary {
    background: rgba(255,255,255,.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
}

    .btn-secondary:hover {
        background: rgba(255,255,255,.14);
    }

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 14px;
}

.btn-outline-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid rgba(248,113,113,.3);
}

    .btn-outline-danger:hover {
        background: rgba(248,113,113,.1);
    }

.user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 500;
}

    .user-badge i {
        color: var(--primary);
    }

/* ── Hero ── */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0 60px;
    min-height: 80vh;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56,189,248,.1);
    color: var(--primary);
    border: 1px solid rgba(56,189,248,.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-features {
    display: flex;
    gap: 24px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .85rem;
}

    .hero-feature i {
        color: var(--success);
    }

/* ── Dashboard mockup ── */
.hero-card {
    background: rgba(15,23,42,.8);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(20px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.card-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1rem;
}

.card-header-text h3 {
    font-size: .95rem;
    font-weight: 600;
}

.card-header-text span {
    font-size: .75rem;
    color: var(--muted);
}

.live-indicator {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .7rem;
    color: var(--success);
    font-weight: 600;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .4;
    }
}

.mockup-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.mockup-stat {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.mockup-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
}

    .mockup-stat-value.blue {
        color: var(--primary);
    }

    .mockup-stat-value.green {
        color: var(--success);
    }

    .mockup-stat-value.purple {
        color: var(--accent);
    }

.mockup-stat-label {
    font-size: .7rem;
    color: var(--muted);
    margin-top: 4px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
    margin-bottom: 20px;
}

.chart-bar {
    flex: 1;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(to top, var(--primary), var(--accent));
    opacity: .7;
    animation: grow 1.5s ease-out backwards;
}

    .chart-bar:nth-child(1) {
        animation-delay: .1s;
    }

    .chart-bar:nth-child(2) {
        animation-delay: .2s;
    }

    .chart-bar:nth-child(3) {
        animation-delay: .3s;
    }

    .chart-bar:nth-child(4) {
        animation-delay: .4s;
    }

    .chart-bar:nth-child(5) {
        animation-delay: .5s;
    }

    .chart-bar:nth-child(6) {
        animation-delay: .6s;
    }

    .chart-bar:nth-child(7) {
        animation-delay: .7s;
    }

@keyframes grow {
    from {
        height: 0;
    }
}

.mockup-progress {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: .7rem;
}

    .progress-icon.blue {
        background: rgba(56,189,248,.15);
        color: var(--primary);
    }

    .progress-icon.green {
        background: rgba(52,211,153,.15);
        color: var(--success);
    }

    .progress-icon.purple {
        background: rgba(129,140,248,.15);
        color: var(--accent);
    }

.progress-bar-container {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,.06);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1.5s ease;
}

    .progress-bar-fill.blue {
        background: var(--primary);
    }

    .progress-bar-fill.green {
        background: var(--success);
    }

    .progress-bar-fill.purple {
        background: var(--accent);
    }

.progress-value {
    font-size: .75rem;
    font-weight: 600;
    color: var(--muted);
    min-width: 36px;
    text-align: right;
}

/* ── Stats ── */
.stats-section {
    padding: 40px 0 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: transform .3s, border-color .3s;
}

    .stat-card:hover {
        transform: translateY(-4px);
        border-color: rgba(56,189,248,.3);
    }

    .stat-card h3 {
        font-size: 2.4rem;
        font-weight: 800;
        background: linear-gradient(135deg, var(--primary), var(--accent));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .stat-card p {
        color: var(--muted);
        font-size: .9rem;
        margin-top: 6px;
    }

/* ── Features ── */
.features-section {
    padding: 60px 0 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

    .section-header h2 {
        font-size: 2.2rem;
        font-weight: 800;
        margin-bottom: 12px;
    }

    .section-header p {
        color: var(--muted);
        font-size: 1.05rem;
        max-width: 600px;
        margin: 0 auto;
    }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform .3s, border-color .3s;
}

    .feature-card:hover {
        transform: translateY(-4px);
        border-color: rgba(56,189,248,.3);
    }

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

    .feature-icon.blue {
        background: rgba(56,189,248,.12);
        color: var(--primary);
    }

    .feature-icon.green {
        background: rgba(52,211,153,.12);
        color: var(--success);
    }

    .feature-icon.purple {
        background: rgba(129,140,248,.12);
        color: var(--accent);
    }

    .feature-icon.orange {
        background: rgba(251,191,36,.12);
        color: var(--warning);
    }

    .feature-icon.red {
        background: rgba(248,113,113,.12);
        color: var(--danger);
    }

    .feature-icon.cyan {
        background: rgba(34,211,238,.12);
        color: #22d3ee;
    }

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.6;
}

/* ── CTA ── */
.cta-section {
    padding: 40px 0 80px;
}

.cta-card {
    background: linear-gradient(135deg, rgba(56,189,248,.08), rgba(129,140,248,.08));
    border: 1px solid rgba(56,189,248,.15);
    border-radius: 24px;
    padding: 60px;
    text-align: center;
}

    .cta-card h2 {
        font-size: 2rem;
        font-weight: 800;
        margin-bottom: 12px;
    }

    .cta-card p {
        color: var(--muted);
        font-size: 1.05rem;
        margin-bottom: 28px;
    }

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ── Footer ── */
.landing-footer {
    padding: 32px 0;
    border-top: 1px solid var(--card-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .footer-content p {
        color: var(--muted);
        font-size: .8rem;
    }

.footer-links {
    display: flex;
    gap: 24px;
}

    .footer-links a {
        color: var(--muted);
        text-decoration: none;
        font-size: .8rem;
        transition: color .2s;
    }

        .footer-links a:hover {
            color: #fff;
        }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 0;
    }

        .hero h1 {
            font-size: 2.4rem;
        }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-features {
        flex-direction: column;
        gap: 8px;
    }

    .features-grid, .stats-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .cta-card {
        padding: 32px 20px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
