/* ═══════════════════════════════════════════════════════════
   Base Reset & Global Styles
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, textarea {
    font: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

::selection {
    background: var(--color-accent);
    color: #fff;
}

/* ─── Container ─── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* ─── Section common ─── */
.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-accent-light);
    margin-bottom: var(--space-4);
    opacity: 0.8;
}

.section-title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: var(--space-4);
}

.section-desc {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    transition: all var(--duration-base) var(--ease-out);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px var(--color-accent-glow);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--ghost {
    color: var(--color-text);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    backdrop-filter: blur(8px);
}

.btn--ghost:hover {
    border-color: var(--color-accent-light);
    color: var(--color-accent-light);
    background: rgba(99, 102, 241, 0.06);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

.btn__arrow {
    transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover .btn__arrow {
    transform: translateX(4px);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}
