/* RESET */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0b1220;
    color: #e2e8f0;
}

/* LINKS */
a {
    text-decoration: none;
    color: inherit;
}

/* LAYOUT */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 20px;
}

/* GRID */
.grid {
    display: grid;
    gap: 20px;
}

/* CARD */
.card {
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 20px;
    transition: 0.2s ease;
}

.card:hover {
    border-color: #38bdf8;
}

/* BUTTON */
button {
    cursor: pointer;
    border: none;
    outline: none;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 20;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 32px;
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(10px);

    border-bottom: 1px solid #1e293b;
}

/* NAV LINKS */
.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    transition: 0.2s ease;
}

.nav-link:hover {
    background: #0f172a;
    color: #38bdf8;
}

.nav-link.active {
    background: #0f172a;
    color: #f8fafc;
    border: 1px solid #1e293b;
}

/* LOGIN BUTTON */
.nav-login {
    padding: 10px 16px;
    border-radius: 8px;
    background: #38bdf8;
    color: #020617;
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s ease;
}

.nav-login:hover {
    opacity: 0.92;
}

/* BRAND */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #020617;
    font-size: 14px;
    font-weight: 800;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc;
}

.brand-subtitle {
    font-size: 10px;
    color: #64748b;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* SECTIONS */
.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #f8fafc;
}

.subtext {
    font-size: 14px;
    color: #94a3b8;
}

/* HERO */
.hero {
    padding: 100px 0 70px;
    text-align: center;
}

.hero h1 {
    font-size: 46px;
    margin-bottom: 18px;
    color: #f8fafc;
}

.hero p {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 30px;
}

.hero .cta {
    display: inline-block;
    padding: 14px 26px;
    background: #38bdf8;
    color: #020617;
    border-radius: 8px;
    font-weight: 600;
}

/* SECTION */
.section {
    margin-bottom: 40px;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* CARD */
.card {
    background: #020617;
    padding: 22px;
    border-radius: 12px;
    border: 1px solid #1e293b;
}

/* TITLE */
.section-title {
    font-size: 18px;
    margin-bottom: 15px;
}

/* ITEMS */
.item {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: 0.2s;
}

.item:hover {
    background: #0b1220;
}

.active {
    border: 1px solid #38bdf8;
}

/* ROW */
.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left {
    flex: 1;
}

.right {
    text-align: right;
    min-width: 120px;
    font-size: 13px;
    color: #94a3b8;
}

.spark {
    width: 80px;
    height: 30px;
}

/* INPUT */
input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #1e293b;
    background: #020617;
    color: #e2e8f0;
}

/* PERF */
.perf {
    float: right;
    font-weight: bold;
    color: #22c55e;
}

.change-up { color:#22c55e; font-size:11px; }
.change-down { color:#ef4444; font-size:11px; }

.kpi {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.kpi-box {
    text-align: center;
}

.kpi-value {
    font-size: 28px;
    font-weight: 700;
    color: #38bdf8;
}

.kpi-label {
    font-size: 12px;
    color: #64748b;
}

/* EMPTY STATE */
.empty {
    padding: 30px;
    text-align: center;
    border: 1px dashed #1e293b;
    border-radius: 10px;
    color: #64748b;
    font-size: 14px;
}

.cta {
    display: inline-block;
    padding: 14px 26px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #020617;
    border-radius: 10px;
    font-weight: 700;
    transition: 0.2s ease;
}

.cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(56,189,248,0.25);
}

.plan-badge {
    margin-left: 10px;
    padding: 4px 8px;
    background: #4f46e5;
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.nav-upgrade {
    margin-left: 10px;
    padding: 6px 10px;
    background: #22c55e;
    color: #020617;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
}

.nav-upgrade:hover {
    background: #16a34a;
}

.auth-modal {
    max-width: 400px;
    margin: 60px auto;
    padding: 30px;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 12px;
}

.auth-modal h2 {
    margin-bottom: 20px;
    color: #f8fafc;
}

.auth-modal input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #1e293b;
    background: #0b1220;
    color: #f8fafc;
}

.auth-modal button {
    width: 100%;
    padding: 10px;
    background: #38bdf8;
    border: none;
    border-radius: 6px;
    color: #020617;
    font-weight: 600;
    cursor: pointer;
}

.auth-modal button:hover {
    background: #0ea5e9;
}

.card:hover {
    transform: scale(1.02);
}