/* =========================
   Navo Base
   Global variables, reset, typography, utilities
========================= */

:root {
    --primary: #2dd4bf;
    --primary-hover: #5eead4;
    --primary-dark: #14b8a6;
    --primary-soft: rgba(45, 212, 191, 0.14);
    --primary-faint: rgba(45, 212, 191, 0.08);
    --primary-ring: rgba(45, 212, 191, 0.14);

    --blue: #3b82f6;
    --blue-soft: rgba(59, 130, 246, 0.12);
    --indigo: #818cf8;
    --indigo-soft: rgba(129, 140, 248, 0.12);

    --success: #22c55e;
    --success-dark: #16a34a;
    --success-soft: rgba(34, 197, 94, 0.14);

    --warning: #f59e0b;
    --warning-dark: #d97706;
    --warning-soft: rgba(245, 158, 11, 0.16);

    --danger: #ef4444;
    --danger-dark: #fca5a5;
    --danger-soft: rgba(239, 68, 68, 0.14);

    --info: #38bdf8;
    --info-dark: #0ea5e9;
    --info-soft: rgba(56, 189, 248, 0.14);

    --bg: #020617;
    --bg-soft: #08111f;
    --surface: rgba(15, 23, 42, 0.88);
    --surface-strong: rgba(15, 23, 42, 0.96);
    --surface-soft: rgba(30, 41, 59, 0.72);
    --surface-faint: rgba(2, 6, 23, 0.56);

    --text: #ffffff;
    --text-soft: #cbd5e1;
    --muted: #94a3b8;
    --muted-light: #64748b;

    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.16);
    --border-glow: rgba(45, 212, 191, 0.34);

    --dark: #020617;
    --dark-soft: #0f172a;

    --shadow-xs: 0 6px 18px rgba(0, 0, 0, 0.18);
    --shadow-soft: 0 18px 52px rgba(0, 0, 0, 0.26);
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
    --shadow-glow: 0 0 42px rgba(45, 212, 191, 0.08);

    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;
    --radius-xl: 34px;

    --sidebar-width: 280px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 16% 8%, rgba(45, 212, 191, 0.14), transparent 30%),
        radial-gradient(circle at 86% 14%, rgba(129, 140, 248, 0.12), transparent 32%),
        radial-gradient(circle at 50% 94%, rgba(59, 130, 246, 0.08), transparent 30%),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    background:
        linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    content: "";
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img,
svg {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--text);
    font-family: Outfit, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 1.05;
}

h1 {
    font-size: clamp(38px, 4vw, 58px);
}

h2 {
    font-size: clamp(28px, 3vw, 42px);
}

h3 {
    font-size: clamp(22px, 2vw, 30px);
}

h4 {
    font-size: 18px;
}

p {
    color: var(--muted);
}

::selection {
    background: rgba(45, 212, 191, 0.30);
    color: #ffffff;
}

::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(2, 6, 23, 0.78);
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.28);
    border: 2px solid rgba(2, 6, 23, 0.78);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(45, 212, 191, 0.42);
}

.text-muted {
    color: var(--muted) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger-dark) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-info {
    color: var(--info) !important;
}

.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

.hidden {
    display: none !important;
}

.surface-card {
    background:
        radial-gradient(circle at 92% 8%, rgba(45, 212, 191, 0.08), transparent 28%),
        radial-gradient(circle at 8% 92%, rgba(129, 140, 248, 0.07), transparent 30%),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.navo-gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--blue), var(--indigo));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}