/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--line-height);
    color: var(--gray-100);
    background-color: var(--dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-card);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-700);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--blue-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--green-light);
}

ul, ol {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
    margin-bottom: var(--space-sm);
}

p:last-child {
    margin-bottom: 0;
}

/* Section headings */
.section-title {
    font-size: var(--fs-h2);
    text-align: center;
    margin-bottom: var(--space-xs);
}

.section-title span {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-400);
    font-size: var(--fs-body);
    margin-bottom: var(--space-xl);
    max-width: var(--container-narrow);
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Section divider — gradient line between sections */
.section + .section::before,
.section + .section--alt::before,
.section--alt + .section::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(123, 47, 190, 0.2), rgba(37, 99, 235, 0.2), transparent);
    margin-bottom: 0;
}

/* Selection */
::selection {
    background: var(--purple);
    color: var(--white);
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--blue-light);
    outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
