/* ==============================================
   base.css — Variables CSS, reset, tipografia
   ============================================== */

/* --- Variables: Dark Mode (default) --- */
:root {
  --bg-primary:    #010409;
  --bg-secondary:  #0d1117;
  --bg-card:       #0d1117;
  --bg-elevated:   #21262d;
  --border:        #21262d;
  --border-subtle: #30363d;
  --text-primary:  #e6edf3;
  --text-muted:    #8b949e;
  --text-faint:    #6e7681;
  --accent-green:  #3fb950;
  --accent-blue:   #58a6ff;
  --accent-orange: #ffa657;
  --accent-red:    #f85149;
  --green-bg:      rgba(63, 185, 80, 0.1);
  --green-border:  rgba(63, 185, 80, 0.3);
  --red-bg:        rgba(248, 81, 73, 0.15);
  --red-border:    rgba(248, 81, 73, 0.3);
  --blue-bg:       rgba(88, 166, 255, 0.15);
  --blue-border:   rgba(88, 166, 255, 0.3);
  --nav-bg: rgba(1, 4, 9, 0.95);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 400;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- Tipografia --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.15s;
}

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

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

ul {
  list-style: none;
}

/* --- Utilidades --- */
.mono {
  font-family: 'Courier New', Consolas, monospace;
}

.section-padding {
  padding: 72px 0;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-family: 'Courier New', Consolas, monospace;
  font-size: 11px;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-title span {
  color: var(--accent-green);
}

.section-hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0 40px;
}

/* --- Preloader --- */
#tt-preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#pre-status {
  font-family: monospace;
  color: var(--accent-green);
  font-size: 13px;
}

/* --- Scroll Up Button --- */
.scroll-up {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s;
}

.scroll-up.visible {
  opacity: 1;
}

.scroll-up a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--accent-green);
  font-size: 14px;
}

/* --- Fade-in animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
