/* 
 * NULL // TOOLS - NOTHING OS STYLED MONOCHROME DESIGN SYSTEM
 * Pure Dark Minimalist Aesthetic with Dot-Matrix Accents, High Contrast & Tactile Micro-Interactions
 */

:root {
  /* Color Palette */
  --bg-primary: #050505;
  --bg-secondary: #0d0d0d;
  --bg-card: #141414;
  --bg-card-hover: #1c1c1c;
  --bg-active: #242424;
  
  --border-dim: #1f1f1f;
  --border-medium: #333333;
  --border-bright: #555555;
  
  --text-main: #f5f5f5;
  --text-muted: #888888;
  --text-dim: #555555;
  
  --accent-dot: #e63946;
  --accent-mono: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.15);
  
  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', Courier, monospace;
  
  /* Radii & Shadows */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 9999px;
  
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(255, 255, 255, 0.08);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Nothing OS Dot Matrix Background Grid */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 0;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.dot-accent {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: var(--accent-dot);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 8px var(--accent-dot);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Container & Grid Structure */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px 80px 24px;
}

/* Header & Navigation Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dim);
  padding: 16px 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-logo span.highlight {
  color: var(--text-main);
  border: 1px solid var(--text-main);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  font-size: 12px;
}

.nav-search {
  position: relative;
  width: 380px;
}

.nav-search input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  transition: var(--transition-fast);
}

.nav-search input:focus {
  border-color: var(--accent-mono);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.nav-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  fill: none;
}

.shortcut-kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-header {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-header:hover {
  background: var(--text-main);
  color: var(--bg-primary);
}

/* Hero Section */
.hero-section {
  padding: 60px 0 40px 0;
  text-align: center;
}

.hero-title {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.hero-title span.glow {
  background: linear-gradient(180deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto 32px auto;
  font-weight: 400;
}

/* Category Pill Tabs */
.category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.tab-pill {
  padding: 10px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-pill:hover {
  border-color: var(--border-bright);
  color: var(--text-main);
}

.tab-pill.active {
  background: var(--text-main);
  color: var(--bg-primary);
  border-color: var(--text-main);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}
