﻿/* =========================
   ROOT DESIGN SYSTEM (Premium SaaS)
========================= */
:root {
    --brand: #4f46e5; /* Deeper Indigo */
    --brand2: #7c3aed; /* Rich Violet */
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #0f172a; /* Darker Slate for contrast */
    --muted: #64748b;
    --border: #e2e8f0;
    --radius: 16px; /* Rounder, modern corners */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --ring: rgba(79, 70, 229, 0.2);
}

/* =========================
   GLOBAL & TYPOGRAPHY
========================= */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    background-image: radial-gradient(at 0% 0%, hsla(253,16%,7%,0.03) 0, transparent 50%), radial-gradient(at 50% 0%, hsla(225,39%,30%,0.03) 0, transparent 50%), radial-gradient(at 100% 0%, hsla(339,49%,30%,0.03) 0, transparent 50%);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 24px;
}

/* =========================
   NAVBAR (Glassmorphism)
========================= */
.navbar {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    margin-left: 32px;
    text-decoration: none;
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

    .nav-links a:hover {
        color: var(--brand);
    }

/* =========================
   HERO SECTION
========================= */
.hero {
    text-align: center;
    padding: 100px 20px 80px;
    animation: fadeinUp 0.8s ease-out forwards;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    line-height: 1.1;
    color: var(--text);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--muted);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================
   CARDS & PLATFORM GRID
========================= */
.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,255,255,0.5);
    margin-bottom: 24px;
}

.platform-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.platform-card {
    width: 240px;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

    .platform-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: var(--shadow-lg);
        background: #ffffff;
        border-color: var(--brand);
    }

    .platform-card h3 {
        margin: 16px 0 8px;
        font-size: 18px;
        font-weight: 700;
    }

/* =========================
   BUTTONS
========================= */
.btn {
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    display: inline-block;
    text-decoration: none;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
    }

.btn-secondary {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

    .btn-secondary:hover {
        background: var(--bg);
        box-shadow: var(--shadow-md);
    }

/* =========================
   INPUTS & FORMS
========================= */
input, select, textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background-color: #ffffff;
    margin-bottom: 20px;
    font-size: 15px;
    transition: all 0.2s ease;
    color: var(--text);
    font-family: inherit;
}

    input:focus, textarea:focus, select:focus {
        outline: none;
        border-color: var(--brand);
        box-shadow: 0 0 0 4px var(--ring);
    }

label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: block;
    margin-bottom: 8px;
}

/* =========================
   DASHBOARD STATS
========================= */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

    .stat-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(to bottom, var(--brand), var(--brand2));
    }

    .stat-card p {
        margin: 0;
        color: var(--muted);
        font-size: 14px;
        font-weight: 500;
    }

    .stat-card h2 {
        margin: 8px 0 0;
        font-size: 32px;
        font-weight: 800;
        letter-spacing: -1px;
    }

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeinUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    animation: fadeinUp 0.5s ease-out forwards;
}
