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

:root {
  --bg-dark: #070709;
  --grid-line: rgba(245, 242, 235, 0.16);
  --grid-size: 88px;
  --brand-red: #a81717;
  --brand-red-glow: rgba(168, 23, 23, 0.45);
  --text-white: #ffffff;
  --navbar-bg: rgba(7, 7, 9, 0.75);
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-dark);
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Grid Pattern matching screenshot */
.grid-bg-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: var(--bg-dark);
  background-image: 
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-position: center top;
  pointer-events: none;
}

/* Subtle Vignette & Ambient Radial Glow - Balanced for Visible Off-White Grid */
.grid-ambient-glow {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    circle at 50% 38%, 
    rgba(168, 23, 23, 0.12) 0%, 
    rgba(15, 15, 22, 0.22) 45%, 
    rgba(7, 7, 9, 0.68) 85%
  );
  pointer-events: none;
}

/* Header Navigation Bar */
.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: var(--navbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 50;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(158, 21, 21, 0.5));
  transition: transform 0.2s ease;
}

.nav-brand:hover .brand-icon {
  transform: scale(1.08) rotate(-4deg);
}

.brand-name {
  color: #df2626;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* Center Navigation Links (Off-white plain text) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: #dfdedb; /* off-white plain text */
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
  letter-spacing: -0.01em;
}

.nav-link:hover {
  color: #ffffff;
}

/* Subtle line underneath when selected / hovered */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #f0ede6; /* clean off-white indicator line */
  transition: width 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 9999px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

/* Circle Discord & GitHub Buttons (Clean circular icons) */
.btn-discord,
.btn-github {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #151518;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-discord:hover,
.btn-github:hover {
  background: #1e1e24;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* White Download for Windows Pill */
.download-wrapper {
  position: relative;
}

.btn-download-white {
  height: 40px;
  padding: 0 18px 0 14px;
  border-radius: 9999px;
  background: #ffffff;
  color: #0b0b0e;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.btn-download-white:hover {
  background: #f1f1f5;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.12);
}

.download-sep {
  width: 1px;
  height: 18px;
  background: rgba(0, 0, 0, 0.15);
  margin: 0 2px;
}

.btn-download-white svg.chevron {
  transition: transform 0.2s ease;
}

.download-wrapper.active .btn-download-white svg.chevron {
  transform: rotate(180deg);
}

/* Download Dropdown */
.download-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  background: #121216;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 60;
}

.download-wrapper.active .download-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #e5e7eb;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.dropdown-item .badge-recommended {
  margin-left: auto;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 9999px;
  background: rgba(158, 21, 21, 0.2);
  color: #f87171;
  border: 1px solid rgba(158, 21, 21, 0.3);
}

/* Main Hero Stage */
.hero-stage {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 55px 20px 30px;
}

/* 3D Cat Canvas Area */
.canvas-wrapper {
  position: relative;
  width: 100%;
  max-width: 820px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.canvas-wrapper:active {
  cursor: grabbing;
}

#cat-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* 3D Cat Loading Spinner */
.model-loader {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.model-loader.hidden {
  opacity: 0;
}

.loader-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #df2626;
  animation: spin 0.8s linear infinite;
}

.loader-text {
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Center Hero Typography - Pulled Higher Up */
.hero-title-container {
  margin-top: -38px;
  text-align: center;
  user-select: none;
  position: relative;
  z-index: 20;
}

.hero-title {
  font-size: clamp(5.2rem, 17.5vw, 14rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* Interactive Individual Character Hover States */
.hero-title .char {
  display: inline-block;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
  transform-origin: center bottom;
}

.hero-title .char:hover {
  transform: translateY(-22px);
}

.hero-title .char:active {
  transform: translateY(-10px);
}

/* Character Color Variants - Consistent Clean Colors (No Hover Glow) */
.text-red {
  color: var(--brand-red);
}

.text-white {
  color: var(--text-white);
}

/* Toast message on download */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #16161b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  color: #df2626;
}

/* Subheading with Typewriter Animation */
.hero-subtitle-container {
  margin-top: 26px;
  text-align: center;
  z-index: 20;
  min-height: 44px;
}

.hero-typewriter {
  font-size: clamp(1.15rem, 2.4vw, 1.85rem);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.highlight-word {
  color: #df2626;
  font-weight: 700;
  text-shadow: 0 0 28px rgba(223, 38, 38, 0.45);
}

.typewriter-cursor {
  display: inline-block;
  margin-left: 5px;
  color: #df2626;
  font-weight: 400;
  animation: cursor-blink 0.8s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Content Sections */
.content-section {
  position: relative;
  z-index: 10;
  padding: 100px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-container {
  max-width: 1060px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 28px;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #df2626;
  background: rgba(223, 38, 38, 0.1);
  border: 1px solid rgba(223, 38, 38, 0.25);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.1;
}

.section-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.section-header-top .section-tag {
  margin-bottom: 0;
}

.video-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ff6b6b;
  background: rgba(223, 38, 38, 0.12);
  border: 1px solid rgba(223, 38, 38, 0.3);
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.pulse-red-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #df2626;
  box-shadow: 0 0 8px #df2626;
  animation: pulseDot 1.8s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}

.section-subtitle {
  font-size: 0.98rem;
  color: #9a9aa8;
  max-width: 680px;
  line-height: 1.55;
  margin-top: 10px;
}

/* YouTube Video Showcase Card */
.video-showcase-card {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.video-ambient-glow {
  position: absolute;
  top: 10%;
  left: 8%;
  right: 8%;
  bottom: 10%;
  background: radial-gradient(ellipse at center, rgba(223, 38, 38, 0.22) 0%, rgba(223, 38, 38, 0.04) 55%, transparent 75%);
  filter: blur(45px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

.video-frame-wrap {
  position: relative;
  z-index: 2;
  background: rgba(14, 14, 20, 0.9);
  border: 1px solid rgba(223, 38, 38, 0.28);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 24px 60px -12px rgba(0, 0, 0, 0.75),
    0 0 45px rgba(223, 38, 38, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.video-frame-wrap:hover {
  border-color: rgba(223, 38, 38, 0.45);
  box-shadow: 
    0 28px 70px -12px rgba(0, 0, 0, 0.85),
    0 0 55px rgba(223, 38, 38, 0.2);
}

.video-top-bar {
  height: 40px;
  background: rgba(22, 22, 30, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.video-bar-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.bar-dot.dot-red { background: #ff5f56; }
.bar-dot.dot-yellow { background: #ffbd2e; }
.bar-dot.dot-green { background: #27c93f; }

.video-bar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #d8d8e2;
  letter-spacing: 0.02em;
}

.video-bar-quality {
  font-size: 0.68rem;
  font-weight: 700;
  color: #9a9aa8;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.video-responsive-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-responsive-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption-strip {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(18, 18, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.caption-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 280px;
  flex-wrap: wrap;
}

.caption-author-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(223, 38, 38, 0.12);
  border: 1px solid rgba(223, 38, 38, 0.25);
  border-radius: 9999px;
}

.author-avatar-chip {
  font-size: 0.85rem;
}

.author-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #df2626;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.caption-text {
  font-size: 0.84rem;
  color: #9a9aa8;
  line-height: 1.45;
  margin: 0;
}

.caption-right {
  display: flex;
  align-items: center;
}

.caption-badge-info {
  font-size: 0.74rem;
  font-weight: 600;
  color: #8b8b98;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: 8px;
}

.section-placeholder-box {
  position: relative;
  min-height: 290px;
  background: rgba(16, 16, 22, 0.65);
  border: 1px dashed rgba(245, 242, 235, 0.2);
  border-radius: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.section-placeholder-box:hover {
  border-color: rgba(223, 38, 38, 0.45);
}

.placeholder-grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.placeholder-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
}

.placeholder-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(223, 38, 38, 0.12);
  border: 1px solid rgba(223, 38, 38, 0.25);
  color: #df2626;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.placeholder-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e0db;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.placeholder-text {
  font-size: 0.88rem;
  color: #8b8b94;
  max-width: 440px;
  line-height: 1.5;
}

/* Big Modern Developer Footer */
.big-footer {
  position: relative;
  z-index: 10;
  background: #060608;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 85px 28px 40px;
}

.footer-container {
  max-width: 1120px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(223, 38, 38, 0.45));
}

.footer-logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.footer-tagline {
  font-size: 0.88rem;
  color: #8f8f99;
  line-height: 1.6;
  max-width: 340px;
  margin-bottom: 24px;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 6px 14px;
  border-radius: 9999px;
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 1.8s infinite;
}

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

.footer-heading {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  color: #8f8f99;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-links-list a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.82rem;
  color: #6c6c75;
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #8f8f99;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-icon-btn:hover {
  background: #1f1f26;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .top-navbar {
    padding: 0 16px;
    height: 60px;
  }
  .nav-links {
    gap: 12px;
  }
  .nav-link {
    font-size: 0.76rem;
  }
  .btn-download-white span.text {
    display: none;
  }
  .download-sep {
    display: none;
  }
  .canvas-wrapper {
    height: 280px;
  }
  .hero-title-container {
    margin-top: -24px;
  }
  .hero-title {
    font-size: clamp(3.8rem, 18vw, 6.2rem);
  }
  .hero-title .char:hover {
    transform: translateY(-12px);
  }
  .hero-typewriter {
    font-size: 1.1rem;
  }
  .content-section {
    padding: 70px 18px;
  }
  .video-frame-wrap {
    border-radius: 14px;
  }
  .video-top-bar {
    height: 34px;
    padding: 0 12px;
  }
  .video-bar-title {
    font-size: 0.72rem;
  }
  .video-caption-strip {
    padding: 12px 14px;
    flex-direction: column;
    align-items: flex-start;
  }
  .caption-right {
    width: 100%;
    justify-content: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
