/* ============================================
   BASE STYLES
   ============================================ */

body {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--gray-800);
    background: var(--white);
}

::selection {
    background: var(--blue);
    color: white;
}

/* ---- Typography ---- */

.large-text {
    font-size: var(--text-lg);
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: var(--space-md);
    font-weight: 400;
}

p {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--gray-400);
}

em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gray-800);
}

.section-dark em {
    color: white;
}

/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: var(--border-radius-pill);
    transition: all var(--duration-base) var(--ease-out);
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.btn-primary {
    padding: 0.85rem 2rem;
    background: var(--blue);
    color: white;
}

.btn-primary:hover {
    background: var(--blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 113, 227, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    padding: 0.85rem 2rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--gray-200);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ---- Tags ---- */

.tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    padding: 0.3rem 0.75rem;
    border-radius: var(--border-radius-pill);
    background: var(--off-white);
    color: var(--gray-400);
    white-space: nowrap;
}

.section-dark .tag,
.section-alt .tag {
    background: rgba(255, 255, 255, 0.06);
    color: var(--gray-300);
}

/* ---- Scroll Progress ---- */

.scroll-progress {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    height: 2px;
    background: var(--gradient-brand);
    z-index: 1001;
    width: 0%;
    pointer-events: none;
}

/* ---- Sections ---- */

.section {
    padding: var(--space-3xl) var(--space-lg);
    position: relative;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-dark {
    background: var(--black);
    color: white;
}

.section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    pointer-events: none;
}

.section-alt {
    background: var(--off-white);
}

/* Section Headers */

.section-header {
    margin-bottom: var(--space-xl);
}

.section-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-300);
    margin-bottom: var(--space-sm);
    display: block;
}

.section-dark .section-label {
    color: var(--gray-400);
}

.section-title {
    font-size: clamp(var(--text-3xl), 4.5vw, var(--text-4xl));
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: var(--gray-800);
}

.section-dark .section-title {
    color: white;
}

.title-accent {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: var(--text-md);
    font-weight: 400;
    color: var(--gray-400);
    max-width: 520px;
    line-height: 1.65;
    margin-top: var(--space-sm);
}

.section-dark .section-subtitle {
    color: var(--gray-300);
}

/* ---- Scroll Reveal ---- */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-reveal) var(--ease-out),
                transform var(--duration-reveal) var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
