/* =========================
   Base / Globals (ONLY)
   - variables
   - reset
   - typography
   - container + helpers
   - buttons
   - common section spacing
   - common UI (cards/forms)
   ========================= */

:root {
    /* Colors */
    --bg: #0f1115;
    --bg-2: #141824;
    --surface: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.10);

    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.70);
    --muted-2: rgba(255, 255, 255, 0.55);

    --accent: #5ddcff;
    --accent-2: #a78bfa;

    /* Layout */
    --container: 1100px;
    --radius: 16px;

    /* Spacing */
    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 0.75rem;
    --s-4: 1rem;
    --s-5: 1.25rem;
    --s-6: 1.5rem;
    --s-8: 2rem;
    --s-10: 2.5rem;
    --s-12: 3rem;
    --s-16: 4rem;
    --s-20: 5rem;

    /* Type */
    --font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
    --leading: 1.5;

    /* Effects */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    line-height: var(--leading);
    color: var(--text);
    background: radial-gradient(1200px 800px at 20% -10%, rgba(93, 220, 255, 0.14), transparent 60%),
    radial-gradient(900px 700px at 90% 0%, rgba(167, 139, 250, 0.12), transparent 55%),
    var(--bg);
}

/* Improve readability + prevent weird overflow */
img,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

p {
    margin: 0 0 var(--s-4);
    color: var(--muted);
}

h1,
h2,
h3,
h4 {
    margin: 0 0 var(--s-4);
    color: var(--text);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    line-height: 1.2;
}

h3 {
    font-size: 1.2rem;
    line-height: 1.25;
}

small {
    color: var(--muted-2);
}

/* Selection */
::selection {
    background: rgba(93, 220, 255, 0.28);
}

/* Focus styles (accessible) */
:focus-visible {
    outline: 2px solid rgba(93, 220, 255, 0.8);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Container */
.container {
    width: min(var(--container), 92%);
    margin-inline: auto;
}

/* Common section spacing */
section {
    padding: var(--s-16) 0;
}

/* Section header helper (used across includes) */
.section-head {
    margin-bottom: var(--s-10);
    max-width: 720px;
}

.section-head p {
    margin-bottom: 0;
}

/* Simple divider helper */
.hr {
    height: 1px;
    background: var(--border);
    margin: var(--s-12) 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(93, 220, 255, 0.95), rgba(167, 139, 250, 0.9));
    color: rgba(0, 0, 0, 0.92);
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
}

.btn:active {
    transform: translateY(0px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
    box-shadow: none;
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Cards (generic base) */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Lists */
ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
}

li {
    margin: 0.35rem 0;
}

/* Forms (generic) */
input,
textarea,
select,
button {
    font: inherit;
}

input,
textarea,
select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    padding: 0.85rem 0.9rem;
    outline: none;
    transition: border-color 140ms ease, background 140ms ease;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.40);
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(93, 220, 255, 0.55);
    background: rgba(255, 255, 255, 0.05);
}

label span {
    display: inline-block;
    margin-bottom: var(--s-2);
    color: var(--muted-2);
    font-size: 0.95rem;
}

/* Utility helpers */
.hidden {
    display: none !important;
}

.center {
    text-align: center;
}

.muted {
    color: var(--muted);
}

/* Responsive tweaks */
@media (max-width: 720px) {
    section {
        padding: var(--s-12) 0;
    }

    .btn {
        width: 100%;
    }
}
