/* ===========================================================
   YouTube AI Launchpad — standalone stylesheet
   Replaces the Tailwind CDN with hand-written utility classes
   covering exactly what this page uses. Fully offline-safe.
   =========================================================== */

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: #0A0E0F;
  color: #E8ECEC;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
svg { display: block; }
img { max-width: 100%; display: block; }

/* ---------- Design tokens ---------- */
:root {
  --base: #0A0E0F;
  --panel: #11161A;
  --card: #151B1F;
  --edge: #1C2428;
  --signal: #39FF6A;
  --ink: #E8ECEC;
  --mute: #7C8A8E;
}

::selection { background: var(--signal); color: var(--base); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--base); }
::-webkit-scrollbar-thumb { background: var(--edge); border-radius: 6px; }

/* ---------- Fonts ---------- */
.font-display { font-family: 'Space Grotesk', sans-serif; }
.font-body { font-family: 'Inter', sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }
.antialiased { -webkit-font-smoothing: antialiased; }

/* ---------- Color: text ---------- */
.text-base { color: var(--base); }
.text-ink { color: var(--ink); }
.text-ink\/90 { color: rgba(232,236,236,0.9); }
.text-mute { color: var(--mute); }
.text-signal { color: var(--signal); }

/* ---------- Color: background ---------- */
.bg-base { background-color: var(--base); }
.bg-base\/80 { background-color: rgba(10,14,15,0.8); }
.bg-base\/95 { background-color: rgba(10,14,15,0.95); }
.bg-panel { background-color: var(--panel); }
.bg-panel\/40 { background-color: rgba(17,22,26,0.4); }
.bg-panel\/80 { background-color: rgba(17,22,26,0.8); }
.bg-card { background-color: var(--card); }
.bg-edge { background-color: var(--edge); }
.bg-signal { background-color: var(--signal); }
.bg-signal\/10 { background-color: rgba(57,255,106,0.10); }
.bg-signal\/15 { background-color: rgba(57,255,106,0.15); }
.bg-signal\/40 { background-color: rgba(57,255,106,0.40); }
.bg-signal\/60 { background-color: rgba(57,255,106,0.60); }
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-from, transparent), var(--tw-to, transparent)); }
.from-signal\/10 { --tw-from: rgba(57,255,106,0.10); }
.to-transparent { --tw-to: transparent; }

/* ---------- Borders ---------- */
.border { border: 1px solid var(--edge); }
.border-t { border-top: 1px solid var(--edge); }
.border-b { border-bottom: 1px solid var(--edge); }
.border-edge { border-color: var(--edge); }
.border-signal\/25 { border-color: rgba(57,255,106,0.25); }
.border-signal\/30 { border-color: rgba(57,255,106,0.30); }
.hover\:border-signal:hover { border-color: var(--signal); }
.hover\:border-signal\/40:hover { border-color: rgba(57,255,106,0.40); }

/* ---------- Radius ---------- */
.rounded { border-radius: 4px; }
.rounded-sm { border-radius: 2px; }
.rounded-md { border-radius: 6px; }
.rounded-lg { border-radius: 8px; }
.rounded-xl { border-radius: 12px; }
.rounded-2xl { border-radius: 16px; }
.rounded-full { border-radius: 9999px; }

/* ---------- Layout: display ---------- */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

/* ---------- Flex ---------- */
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.shrink-0 { flex-shrink: 0; }

/* ---------- Grid ---------- */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Gap ---------- */
.gap-1\.5 { gap: .375rem; }
.gap-2 { gap: .5rem; }
.gap-2\.5 { gap: .625rem; }
.gap-3 { gap: .75rem; }
.gap-3\.5 { gap: .875rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-14 { gap: 3.5rem; }

/* ---------- Position ---------- */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-x-0 { left: 0; right: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.-top-5 { top: -1.25rem; }
.-left-5 { left: -1.25rem; }
.-bottom-5 { bottom: -1.25rem; }
.z-50 { z-index: 50; }

/* ---------- Sizing ---------- */
.w-1 { width: .25rem; }
.w-1\.5 { width: .375rem; }
.w-2 { width: .5rem; }
.w-2\.5 { width: .625rem; }
.w-3\.5 { width: .875rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-9 { width: 2.25rem; }
.w-full { width: 100%; }
.h-1 { height: .25rem; }
.h-1\.5 { height: .375rem; }
.h-2 { height: .5rem; }
.h-2\.5 { height: .625rem; }
.h-3\.5 { height: .875rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-full { height: 100%; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-xs { max-width: 20rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Spacing: margin ---------- */
.mt-0\.5 { margin-top: .125rem; }
.mt-1 { margin-top: .25rem; }
.mt-1\.5 { margin-top: .375rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-9 { margin-top: 2.25rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-auto { margin-top: auto; }
.mb-1\.5 { margin-bottom: .375rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-7 { margin-bottom: 1.75rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-1 { margin-left: .25rem; }
.ml-2 { margin-left: .5rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }

/* ---------- Spacing: padding ---------- */
.p-3 { padding: .75rem; }
.p-3\.5 { padding: .875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-2\.5 { padding-left: .625rem; padding-right: .625rem; }
.px-3\.5 { padding-left: .875rem; padding-right: .875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.px-9 { padding-left: 2.25rem; padding-right: 2.25rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-1\.5 { padding-top: .375rem; padding-bottom: .375rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-2\.5 { padding-top: .625rem; padding-bottom: .625rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-3 { padding-top: .75rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-32 { padding-top: 8rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-20 { padding-bottom: 5rem; }

/* ---------- Spacing: stack (space-y) ---------- */
.space-y-2 > * + * { margin-top: .5rem; }
.space-y-2\.5 > * + * { margin-top: .625rem; }
.space-y-3 > * + * { margin-top: .75rem; }
.space-y-3\.5 > * + * { margin-top: .875rem; }

/* ---------- Typography ---------- */
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1.05; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[15px\] { font-size: 15px; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-\[1\.05\] { line-height: 1.05; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.line-through { text-decoration: line-through; }
.text-glow { text-shadow: 0 0 24px rgba(57,255,106,0.35); }

/* ---------- Effects ---------- */
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); }
.signal-glow { box-shadow: 0 0 0 1px rgba(57,255,106,0.25), 0 0 40px -10px rgba(57,255,106,0.35); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }

/* ---------- Transitions ---------- */
.transition { transition: all .2s ease; }
.transition-colors { transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.transition-shadow { transition: box-shadow .2s ease; }
.hover\:brightness-110:hover { filter: brightness(1.1); }
.hover\:bg-panel:hover { background-color: var(--panel); }
.hover\:text-ink:hover { color: var(--ink); }
.group:hover .group-hover\:shadow-\[0_0_12px_2px_rgba\(57\,255\,106\,0\.6\)\] {
  box-shadow: 0 0 12px 2px rgba(57,255,106,0.6);
}

/* ---------- Focus ---------- */
.focus-ring:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* ---------- Component-specific animations ---------- */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
.blink { animation: blink 1.6s ease-in-out infinite; }

@keyframes scanline { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }
.scanline { animation: scanline 3.5s linear infinite; }

@keyframes barpulse { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.35); } }

.grid-fade {
  background-image:
    linear-gradient(rgba(57,255,106,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,255,106,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 75%);
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation: none !important; }
}

/* ---------- Accordion ---------- */
.accordion-content { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.accordion-item.open .accordion-content { max-height: 320px; }
.accordion-item.open .chevron { transform: rotate(45deg); }
.chevron { transition: transform .25s ease; display: inline-block; }

/* ---------- Selection helpers (used as inline classes on body) ---------- */
.selection\:bg-signal, .selection\:text-base { /* handled by ::selection above */ }

/* ===========================================================
   Responsive: sm (>=640px), md (>=768px), lg (>=1024px)
   =========================================================== */
@media (min-width: 640px) {
  .sm\:flex { display: flex; }
  .sm\:hidden { display: none; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .sm\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .sm\:p-10 { padding: 2.5rem; }
  .sm\:pt-40 { padding-top: 10rem; }
  .sm\:pb-28 { padding-bottom: 7rem; }
  .sm\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
  .sm\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1.05; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0,1fr)); }
  .lg\:gap-10 { gap: 2.5rem; }
  .lg\:text-\[3\.4rem\] { font-size: 3.4rem; }
}