/* ============================================
   CREATOR TOOLS — MODERN DESIGN SYSTEM 2026
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

:root {
  /* Brand Palette */
  --bg:              #090A0F;
  --bg-subtle:       #0F111A;
  --surface:         #141724;
  --surface-hover:   #1C2033;
  --surface-active:  #242942;
  --surface-glass:   rgba(20, 23, 36, 0.75);
  
  --border:          rgba(255, 255, 255, 0.08);
  --border-hover:    rgba(255, 255, 255, 0.18);
  --border-focus:    rgba(239, 68, 68, 0.5);

  /* Typography */
  --text-primary:    #FFFFFF;
  --text-secondary:  #94A3B8;
  --text-muted:      #64748B;
  --text-dim:        #475569;

  /* Accents */
  --yt-red:          #FF0033;
  --yt-red-hover:    #E6002E;
  --yt-red-glow:     rgba(255, 0, 51, 0.25);
  --yt-red-soft:     rgba(255, 0, 51, 0.1);

  --indigo:          #6366F1;
  --indigo-soft:     rgba(99, 102, 241, 0.12);
  --emerald:         #10B981;
  --emerald-soft:    rgba(16, 185, 129, 0.12);
  --amber:           #F59E0B;
  --amber-soft:      rgba(245, 158, 11, 0.12);

  --font-sans:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:       'JetBrains Mono', monospace;

  /* Radii */
  --radius-sm:       6px;
  --radius-md:       10px;
  --radius-lg:       16px;
  --radius-xl:       24px;
  --radius-full:     9999px;

  /* Shadows */
  --shadow-sm:       0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md:       0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg:       0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow:     0 0 30px var(--yt-red-glow);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

/* Atmospheric Background Mesh */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  max-width: 100vw;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 0, 51, 0.12) 0%, rgba(99, 102, 241, 0.08) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.container--sm { max-width: 760px; }
.container--md { max-width: 900px; }

/* Headings */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  word-break: break-word;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
  word-break: break-word;
}

/* Selection */
::selection {
  background-color: var(--yt-red);
  color: #FFFFFF;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--surface-hover);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  .container { padding: 0 14px; }
}
