/* ══════════════════════════════════════════════
   BASE — design tokens, reset, typography, buttons
══════════════════════════════════════════════ */
:root {
    /* brand */
    --gold: #ffd400;
    --gold-light: #ffe97a;
    --gold-dark: #b98b00;
    --gold-dim: rgba(255, 212, 0, 0.08);
    --gold-glow: rgba(255, 212, 0, 0.3);
    --telegram: #229ed9;
    --telegram-hover: #45b8ee;

    /* surfaces */
    --dark-0: #050506;
    --dark-1: #0a0a0d;
    --dark-2: #111115;
    --dark-3: #1d1d24;
    --card: linear-gradient(180deg, rgba(24, 24, 29, 0.86), rgba(11, 11, 14, 0.9));
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --line-gold: rgba(255, 212, 0, 0.38);

    /* text */
    --text-primary: #f7f7f8;
    --text-secondary: #a5a8b6;
    --text-dim: #6c6f7e;

    /* shape + motion */
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-full: 999px;
    --header-h: 116px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.35s var(--ease);

    /* type */
    --font-display: 'Alexandria', 'Manrope', sans-serif;
    --font-body: 'IBM Plex Sans Arabic', 'Manrope', sans-serif;
    --font-latin: 'Manrope', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; overflow-x: hidden; scrollbar-color: var(--gold-dark) var(--dark-1); }

body {
    font-family: var(--font-body);
    background: var(--dark-0);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
[dir="ltr"] body { font-family: var(--font-latin); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.25; text-wrap: balance; }
[dir="ltr"] h1, [dir="ltr"] h2, [dir="ltr"] h3, [dir="ltr"] h4 { font-family: var(--font-latin); letter-spacing: -0.03em; line-height: 1.12; }

img { max-width: 100%; display: block; }
::selection { background: var(--gold); color: #050506; }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--dark-1); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--gold), var(--gold-dark)); border-radius: 10px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ─── Buttons ─── */
.btn {
    position: relative; overflow: hidden; isolation: isolate;
    min-height: 46px; padding: 10px 22px; border-radius: var(--radius-full);
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: inherit; font-weight: 700; font-size: 0.92rem; text-decoration: none;
    white-space: nowrap; user-select: none; cursor: pointer; border: none;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s, border-color 0.35s;
}
.btn::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: -75%; width: 50%; z-index: -1;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-20deg); pointer-events: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { left: 130%; transition: left 0.7s ease; }
.btn:active { transform: scale(0.97); }

.btn-gold {
    color: #0a0800;
    background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, #e6b800);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 24px -6px var(--gold-glow);
}
.btn-gold:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 14px 34px -6px rgba(255, 212, 0, 0.55); }

.btn-telegram {
    color: #fff;
    background: linear-gradient(180deg, var(--telegram-hover), var(--telegram));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 24px -8px rgba(34, 158, 217, 0.6);
}
.btn-telegram:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 14px 32px -8px rgba(34, 158, 217, 0.8); }

.btn-glass {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-strong);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover { border-color: var(--line-gold); color: var(--gold); background: rgba(255, 212, 0, 0.06); }
