/* ═══════════════════════════════════════════════
   tobot Base — Reset, Typography, Utilities
   ═══════════════════════════════════════════════ */

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

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

body {
    font-family: var(--tb-font-body);
    background: var(--tb-white);
    color: var(--tb-gray-700);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

ul, ol { list-style: none; }

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    outline: none;
}

button { cursor: pointer; border: none; background: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--tb-font-display);
    color: var(--tb-gray-900);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem);  font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem);     font-weight: 700; }
h4 { font-size: 1.125rem;                          font-weight: 600; }

.tb-lead {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.7;
    color: var(--tb-gray-600);
}

.tb-eyebrow {
    font-family: var(--tb-font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tb-gray-500);
    display: block;
    margin-bottom: var(--tb-space-3);
}

.tb-eyebrow-blue { color: var(--tb-blue); }

/* ── Utilities ── */
.tb-wrap {
    max-width: var(--tb-max-w);
    margin: 0 auto;
    padding: 0 var(--tb-pad);
    position: relative;
}

.tb-section {
    padding: var(--tb-space-24) 0;
    position: relative;
}

.tb-section-sm {
    padding: var(--tb-space-16) 0;
    position: relative;
}

.tb-text-center { text-align: center; }
.tb-text-blue   { color: var(--tb-blue); }
.tb-text-muted  { color: var(--tb-gray-500); }

/* ── Scroll animations ── */
.tb-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--tb-ease), transform 0.5s var(--tb-ease);
}

.tb-reveal.vis {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .tb-reveal { opacity: 1; transform: none; transition: none; }
    * { animation-duration: 0.01ms !important; }
}

/* ── Selection ── */
::selection {
    background: var(--tb-blue-pale);
    color: var(--tb-blue);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--tb-gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--tb-gray-400); }
