/* ============================================
   main.css — Design Tokens, Reset & Base Styles
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Backgrounds */
  --bg-primary: #0a0f1c;
  --bg-secondary: #111827;
  --card-surface: #1e293b;
  --inset: #0f172a;

  /* Accents */
  --accent-primary: #06b6d4;
  --accent-secondary: #3b82f6;
  --accent-gradient: linear-gradient(135deg, #06b6d4, #3b82f6);

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-muted: #475569;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(12px);

  /* Fonts */
  --font-body: 'Inter', sans-serif;
  --font-accent: 'JetBrains Mono', monospace;
}

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

/* --- HTML & Body --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

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

/* --- Selection Highlight --- */
::selection {
  background-color: var(--accent-primary);
  color: var(--bg-primary);
}

::-moz-selection {
  background-color: var(--accent-primary);
  color: var(--bg-primary);
}

/* --- Custom Scrollbar (WebKit) --- */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}

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

/* Section Header Pattern */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  color: #ffffff;
  margin: 8px 0 16px;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--accent-gradient);
  margin: 0 auto;
  border-radius: 2px;
  border: none;
}

/* --- Glass Card --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  line-height: 1;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
}

.btn-outline:hover {
  background: rgba(6, 182, 212, 0.1);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 13px;
}

/* --- Skip to Content --- */
.skip-to-content {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--accent-primary);
  color: var(--bg-primary);
  font-weight: 600;
  font-size: 14px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 0;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* --- Utility: 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;
}

/* --- Links base --- */
a {
  color: inherit;
  text-decoration: none;
}

/* --- Images base --- */
img {
  max-width: 100%;
  display: block;
}

/* --- Lists base --- */
ul {
  list-style: none;
}
