/* ═══════════════════════════════════════════════════════════
   Ryft Workout — Base & Reset Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Brand Font ──────────────────────────────────── */
@font-face {
    font-family: 'Evolution Workout';
    src: url('../fonts/EvolutionWorkout-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ── Modern Reset ────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
    line-height: var(--lh-body);
    color: var(--color-text-secondary);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-base) var(--ease-default);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-primary);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
}

/* ── Utility — Container ─────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

/* ── Utility — Section Spacing ───────────────────── */
.section {
    padding-block: var(--section-padding);
    position: relative;
}

/* ── Utility — Section Header ────────────────────── */
.section-label {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: var(--fs-h1);
    font-weight: var(--fw-extrabold);
    letter-spacing: var(--ls-tight);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: var(--fs-body-lg);
    color: var(--color-text-muted);
    max-width: 580px;
    line-height: var(--lh-relaxed);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header .section-subtitle {
    margin-inline: auto;
}

/* ── Utility — Gradient text ─────────────────────── */
.gradient-text {
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Utility — Glow Ring ─────────────────────────── */
.glow-ring {
    position: relative;
}

.glow-ring::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: var(--color-accent-gradient);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--duration-base) var(--ease-default);
    filter: blur(12px);
}

.glow-ring:hover::after {
    opacity: 0.4;
}

/* ── Selection ───────────────────────────────────── */
::selection {
    background: var(--color-accent);
    color: var(--color-bg-primary);
}

/* ── Scrollbar ───────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-bg-elevated);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-dark);
}