/* ===== EXO 2 FONT ===== */
@font-face {
    font-family: 'Exo 2';
    src: url('/assets/fonts/Exo2-VariableFont_wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Exo 2';
    src: url('/assets/fonts/Exo2-Italic-VariableFont_wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* ===== COLOR VARIABLES ===== */
:root {
    /* --- Dark theme backgrounds --- */
    --bg-void: #09080A;
    --bg-primary: #0E0C10;
    --bg-surface: #141118;
    --bg-elevated: #1C1921;

    /* --- Gold system --- */
    --gold-deep: #7A5C10;
    --gold-mid: #B8941F;
    --gold-core: #D4A929;
    --gold-bright: #E8C84D;
    --gold-pale: #F5E4A0;

    /* --- Gradients --- */
    --gradient-gold-text: linear-gradient(100deg, #B8941F 0%, #F0D060 45%, #B8941F 100%);

    /* --- Text --- */
    --text-primary: #F0EBE0;
    --text-secondary: #A89E8C;
    --text-muted: #5C5650;
    --text-highlight: var(--gradient-gold-text);

    /* --- Borders --- */
    --border-primary: rgba(212, 169, 41, 0.45);
    --border-default: rgba(212, 169, 41, 0.20);
    --border-subtle: rgba(212, 169, 41, 0.12);

    /* --- Glass --- */
    --glass-bg: rgba(255, 255, 255, 0.035);
    --glass-bg-hover: rgba(255, 255, 255, 0.060);
    --glass-border: rgba(212, 169, 41, 0.20);
    --glass-blur: blur(18px);
    --glass-shadow: 0 4px 24px rgba(0, 0, 0, 0.55),
        0 1px 0 rgba(212, 169, 41, 0.10) inset;

    /* --- Glows --- */
    --glow-gold: 0 0 28px rgba(212, 169, 41, 0.18),
        0 0 60px rgba(212, 169, 41, 0.07);
    --glow-gold-btn: 0 4px 18px rgba(180, 140, 20, 0.18);

    /* --- Buttons --- */
    --btn-bg-hover: rgba(212, 169, 41, 0.08);

    /* --- Navbar --- */
    --navbar-height: clamp(70px, 7vw, 130px);
}

/* ===== RESET / NORMALIZE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* ===== GLOBAL BASE STYLES ===== */
html {
    font-family: 'Exo 2', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Grain texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 9999;
}

/* Ambient gold glow — top center */
body::after {
    content: '';
    position: fixed;
    top: -25vh;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 60vh;
    background: radial-gradient(ellipse, rgba(180, 130, 20, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ===== TYPOGRAPHY SYSTEM ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.2rem, 6vw, 6rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 4rem);
}

h3 {
    font-size: clamp(1.4rem, 2.4vw, 2.4rem);
}

h4 {
    font-size: clamp(1.1rem, 1.2vw, 1.4rem);
}

h5 {
    font-size: clamp(1rem, 1.1vw, 1.2rem);
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    max-width: 70ch;
    opacity: 0.9;
    color: var(--text-secondary);
}

/* Small text / UI labels */
small,
.text-small {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===== FORM ELEMENTS ===== */
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

/* ===== BUTTON COMPONENT ===== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: clamp(0.6rem, 0.8vw, 0.8rem) clamp(0.4rem, 0.6vw, 0.6rem);
    border-radius: 999px;
    font-size: clamp(1rem, 1.4vw, 1.5rem);
    font-weight: 500;
    line-height: 1;
    color: var(--gold-pale);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-default);
    cursor: pointer;
    user-select: none;
    box-shadow: var(--glass-shadow);
    transform: translateY(0) scale(1);
    will-change: transform;
    transition:
        transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1),
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.btn:hover {
    color: var(--gold-bright);
    background: rgba(255, 255, 255, 0.11);
    border-color: var(--border-primary);
    transform: scale(1.02);
    box-shadow: var(--glass-shadow);
}

.btn:active {
    transform: scale(0.97);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

.btn-text {
    position: relative;
    top: -1px;
}

.btn-icon {
    width: 1.2em;
    height: 1.2em;
    object-fit: contain;
    pointer-events: none;
    filter: brightness(0) saturate(100%) invert(79%) sepia(30%) saturate(600%) hue-rotate(10deg);
}

.btn--compact {
    padding: 0.55rem 1.3rem;
    font-size: 0.9rem;
}

.btn--large {
    padding: clamp(0.75rem, 1vw, 1.05rem) clamp(1.5rem, 2vw, 2.4rem);
    font-size: clamp(1rem, 1.2vw, 1.25rem);
}