@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap");

:root {
  --color-green: #22c55e;
  --color-green-light: #4ade80;
  --color-discord: #5865F2;
  --color-red: #dc2626;
  --color-red-soft: #ef4444;
  --color-bg: #050505;
  --color-surface: #18181b;
  --color-surface-hover: #27272a;
  --color-border: #27272a;
  --color-border-soft: rgba(255,255,255,0.08);
  --color-text: #f5f5f5;
  --color-text-muted: #a1a1aa;
  --color-text-faint: #71717a;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --max-width: 72rem;
  --max-width-mid: 56rem;
  --radius-full: 999px;
}

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

html {
  scroll-behavior: smooth;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}

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

::selection {
  background-color: rgba(34, 197, 94, 0.25);
}

img, video, canvas, iframe {
  display: block;
  max-width: 100%;
}

svg {
  display: inline-block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

ol, ul {
  list-style: none;
}

.icon {
  display: inline-block;
  flex-shrink: 0;
}

.hero-sub-badge .icon,
.btn-subscribe .icon,
.btn-drawings .icon,
.view-all-link .icon,
.view-all-mobile .icon  { width: 16px; height: 16px; }

.btn-discord .icon,
.hero-scroll-hint .icon,
.social-link .icon,
#back-to-top .icon      { width: 20px; height: 20px; }

.modal-close .icon,
.modal-nav .icon        { width: 24px; height: 24px; }

.video-card-play-btn img { width: 28px; height: 28px; }

.drawing-placeholder-icon { width: 32px; height: 32px; opacity: 0.2; }

@media (min-width: 640px) {
  .modal-nav .icon { width: 32px; height: 32px; }
}

@media (pointer: fine) {
  body {
    cursor: none;
  }

  a, button, [role="button"] {
    cursor: none !important;
  }

  body.modal-open {
    cursor: auto !important;
  }

  body.modal-open a,
  body.modal-open button,
  body.modal-open [role="button"] {
    cursor: pointer !important;
  }

  body.modal-open #cursor-dot,
  body.modal-open #cursor-ring {
    display: none !important;
  }
}

#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--color-green-light);
  border-radius: var(--radius-full);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 150ms;
}

#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-green-light);
  border-radius: var(--radius-full);
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 300ms, background-color 200ms;
}

.page-container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1rem;
}

.page-container--mid {
  max-width: var(--max-width-mid);
  margin-inline: auto;
  padding-inline: 1rem;
}

#parallax-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -20;
  overflow: hidden;
  background: #000;
}

.parallax-radial {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 150vh;
  background: radial-gradient(ellipse at center, rgba(34,197,94,0.08) 0%, #000 60%);
  opacity: 0.8;
}

.parallax-glow {
  position: absolute;
  border-radius: var(--radius-full);
  will-change: transform;
}

#parallax-glow-1 {
  top: 50vh;
  left: 5%;
  width: min(40vw, 500px);
  height: min(40vw, 500px);
  background: rgba(34, 197, 94, 0.05);
  filter: blur(60px);
}

#parallax-glow-2 {
  top: 120vh;
  right: -5%;
  width: min(30vw, 400px);
  height: min(30vw, 400px);
  background: rgba(168, 85, 247, 0.05);
  filter: blur(60px);
}

#parallax-glow-3 {
  top: 200vh;
  left: -10%;
  width: min(50vw, 600px);
  height: min(50vw, 600px);
  background: rgba(16, 185, 129, 0.05);
  filter: blur(80px);
}

#parallax-glow-4 {
  top: 300vh;
  right: 10%;
  width: min(40vw, 500px);
  height: min(40vw, 500px);
  background: rgba(59, 130, 246, 0.05);
  filter: blur(60px);
}

#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  padding-block: 1.5rem;
  border-bottom: 1px solid transparent;
  transition: padding 300ms, background-color 300ms, border-color 300ms, backdrop-filter 300ms;
}

#navbar.scrolled {
  padding-block: 1rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  position: relative;
  z-index: 10;
}

.navbar-logo-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-green);
  overflow: hidden;
  flex-shrink: 0;
}

.navbar-logo-avatar img,
.hero-avatar img,
.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.navbar-logo-text {
  color: var(--color-text);
  transition: color 150ms;
}

.navbar-logo:hover .navbar-logo-text {
  color: var(--color-green-light);
}

.navbar-links {
  display: flex;
  align-items: center;
  background: rgba(10, 10, 10, 0.85);
  border-radius: var(--radius-full);
  padding: 0.25rem;
  border: 1px solid var(--color-border-soft);
  position: relative;
  z-index: 10;
}

.nav-item {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 150ms, background-color 150ms;
}

.nav-item:hover {
  color: var(--color-text);
}

.nav-item.active {
  background: var(--color-surface-hover);
  color: var(--color-text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#home {
  position: relative;
  min-height: 100svh;
  padding-block: 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 16rem;
  z-index: 0;
  overflow: hidden;
  opacity: 0.3;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
  display: none;
}

.hero-banner.visible {
  display: block;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, #09090b);
  z-index: 10;
}

#hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: 1rem;
  margin-top: 5rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 10;
  opacity: 0;
  transition: opacity 1000ms ease-out;
  will-change: transform;
}

#hero-content.visible {
  opacity: 1;
}

.hero-animated-item {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 700ms ease-out, transform 700ms ease-out, scale 700ms ease-out;
}

.hero-animated-item.visible {
  opacity: 1;
  transform: translateY(0);
  scale: 1;
}

.hero-avatar {
  width: 6rem;
  height: 6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(34, 197, 94, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 24, 27, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 50px -12px rgba(34, 197, 94, 0.3);
  overflow: hidden;
  scale: 0.95;
  transition-delay: 100ms;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  margin-bottom: 1rem;
  transition-delay: 200ms;
}

.hero-sub-badge {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition-delay: 300ms;
}

#subscriber-count {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 32rem;
  margin-bottom: 3rem;
  font-weight: 300;
  transition-delay: 400ms;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  transition-delay: 500ms;
}

.hero-buttons-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateX(-50%) translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-faint);
  animation: bounce 1s infinite;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: transform 150ms, background-color 150ms, border-color 150ms, opacity 150ms;
  white-space: nowrap;
}

.btn:active {
  scale: 0.95;
}

.btn-subscribe {
  padding: 1rem 2.5rem;
  background: var(--color-red);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  gap: 0.75rem;
  overflow: hidden;
  box-shadow: 0 0 40px -10px rgba(220, 38, 38, 0.6);
  width: 100%;
}

.btn-subscribe:hover {
  scale: 1.05;
}

.btn-drawings {
  padding: 0.75rem 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  gap: 0.5rem;
}

.btn-drawings:hover {
  background: var(--color-surface-hover);
  border-color: #3f3f46;
}

.btn-discord {
  padding: 0.75rem 2rem;
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.3);
  color: var(--color-discord);
  gap: 0.5rem;
  width: 100%;
  overflow: hidden;
}

.btn-discord:hover {
  background: rgba(88, 101, 242, 0.2);
}

#video-scroll {
  padding-block: 8rem;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
}

.video-scroll-heading {
  margin-bottom: 4rem;
}

.video-scroll-heading h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.video-scroll-heading h2 span {
  color: var(--color-text-faint);
}

#video-scroll-container {
  position: relative;
  display: flex;
  white-space: nowrap;
  width: 100%;
  overflow: hidden;
}

#video-track {
  display: flex;
  gap: 1.5rem;
  padding-inline: 1rem;
  width: max-content;
  will-change: transform;
}

.video-card {
  position: relative;
  text-align: left;
  width: 300px;
  aspect-ratio: 16 / 9;
  border-radius: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 150ms;
}

.video-card:hover {
  border-color: #3f3f46;
}

.video-card-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 500ms;
}

.video-card:hover .video-card-thumbnail {
  opacity: 0.4;
}

.video-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card-play-btn {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 300ms, background-color 300ms, border-color 300ms;
}

.video-card:hover .video-card-play-btn {
  transform: scale(1.1);
  background: var(--color-green);
  border-color: rgba(255, 255, 255, 0.2);
}

.video-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4), transparent);
}

.video-card-title {
  color: var(--color-text);
  font-weight: 500;
  font-size: 1.125rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  transition: color 150ms;
}

.video-card:hover .video-card-title {
  color: var(--color-green-light);
}

.video-card-meta {
  color: #d4d4d8;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.video-card-dot {
  width: 4px;
  height: 4px;
  background: var(--color-text-faint);
  border-radius: var(--radius-full);
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--color-text-faint);
}

.section-subtitle {
  color: var(--color-text-muted);
  max-width: 36rem;
  font-size: 1.125rem;
  font-weight: 300;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 700ms, transform 700ms;
}

.section-header.visible {
  opacity: 1;
  transform: translateY(0);
}

#drawings-preview {
  padding-block: 6rem;
  padding-inline: 1rem;
  border-top: 1px solid var(--color-border);
  position: relative;
}

.view-all-link {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-weight: 500;
  transition: color 150ms;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.view-all-link:hover {
  color: var(--color-text);
}

.view-all-mobile {
  margin-top: 3rem;
  text-align: center;
}

.view-all-mobile a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-weight: 500;
  transition: color 150ms;
}

.view-all-mobile a:hover {
  color: var(--color-text);
}

#drawings-preview-grid {
  columns: 2;
  gap: 1rem;
}

#drawings-preview-grid .drawing-card {
  margin-bottom: 1rem;
}

.drawing-card {
  width: 100%;
  position: relative;
  border-radius: 1rem;
  background: #09090b;
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: block;
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 700ms, transform 700ms;
  break-inside: avoid;
}

.drawing-card img {
  width: 100%;
  height: auto;
  display: block;
}

.drawing-card.visible {
  opacity: 1;
  transform: translateY(0);
}

#socials {
  padding-block: 6rem;
  padding-inline: 1rem;
  border-top: 1px solid var(--color-border);
}

.socials-inner {
  text-align: center;
}

#socials-header {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 700ms, transform 700ms;
}

#socials-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.socials-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.socials-subtitle {
  color: var(--color-text-faint);
  margin-bottom: 3rem;
}

#socials-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  background: rgba(24, 24, 27, 0.5);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-weight: 500;
  transition: color 500ms, border-color 500ms, background-color 500ms, opacity 500ms, scale 500ms;
  opacity: 0;
  scale: 0.9;
}

.social-link.visible {
  opacity: 1;
  scale: 1;
}

.social-link--youtube:hover {
  color: var(--color-red-soft);
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
}

.social-link--discord:hover {
  color: var(--color-discord);
  border-color: rgba(88, 101, 242, 0.3);
  background: rgba(88, 101, 242, 0.05);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1rem;
  opacity: 0;
  transition: opacity 300ms;
}

.modal-overlay.hidden {
  display: none;
}

.modal-overlay.open {
  opacity: 1;
}

#video-modal-content {
  width: 100%;
  max-width: 64rem;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--color-border);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  transition: scale 300ms;
  scale: 0.95;
}

#video-modal-content.open {
  scale: 1;
}

#video-modal-content.short {
  max-width: 28rem;
  aspect-ratio: 9 / 16;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 0.5rem;
  color: #fff;
  transition: background-color 150ms;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 0.5rem;
  color: #fff;
  transition: background-color 150ms, scale 150ms;
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  scale: 1.1;
}

.modal-nav:active {
  scale: 0.95;
}

#video-prev { left: 0.5rem; }
#video-next { right: 0.5rem; }

#video-iframe {
  width: 100%;
  height: 100%;
}

#back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  padding: 0.75rem;
  border-radius: var(--radius-full);
  background: var(--color-green);
  color: #000;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
  transition: background-color 150ms, opacity 300ms, transform 300ms;
}

#back-to-top:hover {
  background: var(--color-green-light);
}

#back-to-top:focus-visible {
  outline: 2px solid var(--color-green-light);
  outline-offset: 2px;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#drawings {
  padding-top: 8rem;
  padding-bottom: 6rem;
  padding-inline: 1rem;
  position: relative;
  min-height: 100vh;
}

#drawings-header {
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 700ms, transform 700ms;
}

#drawings-header.visible {
  opacity: 1;
  transform: translateY(0);
}

#drawings-grid {
  columns: 1;
  gap: 1.5rem;
}

#drawings-grid .drawing-card {
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .btn-subscribe,
  .btn-discord,
  .btn-drawings {
    width: auto;
  }

  .hero-buttons-row {
    flex-direction: row;
    width: auto;
  }

  .hero-actions {
    width: auto;
  }

  .view-all-link {
    display: inline-flex;
  }

  .view-all-mobile {
    display: none;
  }

  #video-prev { left: 1rem; padding: 0.75rem; }
  #video-next { right: 1rem; padding: 0.75rem; }

  #back-to-top {
    bottom: 3rem;
    right: 3rem;
    padding: 1rem;
  }

  #back-to-top .icon {
    width: 24px;
    height: 24px;
  }

  #drawings-grid {
    columns: 2;
  }
}

@media (min-width: 768px) {
  .hero-avatar {
    width: 8rem;
    height: 8rem;
  }

  .hero-title {
    font-size: 4.5rem;
  }

  .hero-description {
    font-size: 1.25rem;
  }

  .hero-banner {
    height: 20rem;
  }

  .section-title {
    font-size: 3rem;
  }

  #drawings-preview-grid {
    columns: 4;
  }

  #drawings-grid {
    columns: 3;
  }

  #drawings-header {
    flex-direction: row;
    align-items: flex-end;
  }

  .video-card {
    width: 400px;
  }
}
