/* ═══════════════════════════════════════════════════════════════════════════
   SpeedyBOT Public Site — Base / Reset / Typography
   ═══════════════════════════════════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-base), color var(--transition-base);
    overflow-x: hidden;
}

/* ── Typography ───────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    line-height: 1.7;
}

a {
    color: var(--brand-500);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-400);
}

strong { font-weight: 700; color: var(--text-primary); }
em { font-style: italic; }

small { font-size: var(--text-sm); color: var(--text-tertiary); }

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--bg-tertiary);
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
    color: var(--brand-400);
}

/* ── Lists ────────────────────────────────────────────────────────────────── */

ul, ol {
    padding-left: var(--space-6);
    color: var(--text-secondary);
}

li { margin-bottom: var(--space-2); }

/* ── Images ───────────────────────────────────────────────────────────────── */

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

/* ── Selection ────────────────────────────────────────────────────────────── */

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

/* ── Scrollbar ────────────────────────────────────────────────────────────── */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: var(--radius-full);
}

/* ── Focus ────────────────────────────────────────────────────────────────── */

:focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 2px;
}

/* ── Utility ──────────────────────────────────────────────────────────────── */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--space-20) 0;
}

.section--sm {
    padding: var(--space-12) 0;
}

.text-center { text-align: center; }
.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.1);
    color: var(--brand-400);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-12);
}

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

.section-header p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

.section--alt {
    background: var(--bg-secondary);
}

.section-cta {
    text-align: center;
    margin-top: var(--space-12);
}

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

.badge--success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success, #22c55e);
    border-color: rgba(16, 185, 129, 0.2);
}

.form-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #22c55e;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    margin-top: var(--space-4);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

.module-hero-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 101, 242, 0.15);
    border-radius: var(--radius-2xl);
    font-size: 36px;
    color: var(--brand-primary, #5865F2);
    margin: 0 auto var(--space-6);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link:hover {
    border-color: var(--brand-500);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}
