/* ========================
   FONT - ICEBERG

@font-face {
    font-family: "Iceberg";
    src: url("/fonts/Iceberg/Iceberg-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

======================== */

/* ========================
   FONT - Space Grotesk

@font-face {
    font-family: "Space_Grotesk";
    src: url("/fonts/Space_Grotesk/SpaceGrotesk-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

======================== */

/* ========================
   FONT - Sora
======================== */

@font-face {
    font-family: "Sora-Regular";
    src: url("/fonts/Sora/Sora-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ========================
   CLOUD ZERO - GLOBAL RESET
======================== */


:root {
    /* ========================
       BACKGROUNDS
    ======================== */

    --bg-main: #0d0f12;
    --bg-deep: #090a0c;
    --bg-sidebar: #101216;

    --bg-surface: #16191e;
    --bg-surface-hover: #1c2026;
    --bg-surface-active: #242931;

    /* ========================
       BORDERS
    ======================== */

    --border: #292d34;
    --border-hover: #414752;

    /* ========================
       TEXT
    ======================== */

    --text-primary: #f1f3f5;
    --text-secondary: #b0b6c0;
    --text-muted: #7e8693;
    --text-white: #ffffff;

    /* ========================
       ACCENT — RED
    ======================== */

    --accent: #d9364f;
    --accent-hover: #e84a61;
    --accent-light: #ff7183;

    --accent-background: rgba(217, 54, 79, 0.10);
    --accent-border: rgba(217, 54, 79, 0.25);
    --accent-focus: rgba(217, 54, 79, 0.18);

    /* ========================
       STATUS
    ======================== */

    --success: #3fb987;
    --warning: #e8ad55;
    --danger: #ef5265;
    --info: #7da7e8;

    /* ========================
       SHADOWS
    ======================== */

    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.16);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.22);
    --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.30);

    --glow-accent: 0 0 14px rgba(217, 54, 79, 0.08);

    /* ========================
       RADIUS
    ======================== */

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;

    /* ========================
       TRANSITIONS
    ======================== */

    --transition: 0.2s ease;
}

/* ========================
   RESET
======================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Sora-Regular", sans-serif;
    letter-spacing: 1.5px;

    color: var(--text-primary);

    font-size: 14px;
    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

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

button {
    cursor: pointer;
}

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

img {
    display: block;
}

[hidden] {
    display: none !important;
}

::selection {
    background: var(--accent-border);
    color: var(--text-white);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ========================
   GLOBAL BACKGROUND
======================== */

html {
    background: var(--bg-deep);
}

body {
    position: relative;
    isolation: isolate;

    background:
        radial-gradient(
            ellipse 560px 440px at 50% 38%,
            rgba(125, 26, 43, 0.13),
            transparent 75%
        ),
        var(--bg-deep);
}

/* ========================
   BACKGROUND GLOW
======================== */

body::before {
    content: "";

    position: fixed;
    top: -320px;
    left: 50%;

    width: 850px;
    height: 850px;

    transform: translateX(-50%);

    background: radial-gradient(
        circle,
        rgba(241, 53, 75, 0.09) 0%,
        rgba(150, 25, 45, 0.025) 40%,
        transparent 70%
    );

    pointer-events: none;
    z-index: -1;
}

/* ========================
   BACKGROUND GRID
======================== */

body::after {
    content: "";

    position: fixed;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.012) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.012) 1px,
            transparent 1px
        );

    background-size: 48px 48px;

    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5),
        transparent 85%
    );

    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5),
        transparent 85%
    );

    pointer-events: none;
    z-index: -1;
}

/* ========================
   SCROLLBAR
======================== */

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

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border: 2px solid var(--bg-deep);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ========================
   ACCESSIBILITY
======================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}