/* =============================================
   CREATORS — Cody's App Academy
   style.css — Full Revamp
   ============================================= */

/* ===================== CSS VARIABLES ===================== */
:root {
  /* Brand Colors */
  --white: #ffffff;
  --gray: #f7f7f7;
  --yellow: #fece48;
  --yellow-light: #fff9c4;
  --blue: #6bb0ff;
  --blue-light: #c4f2ff;
  --purple: #e1bee7;
  --orange: #ff4800;
  --orange-soft: #ff8a00;
  --cyan: #00f0ff;
  --red-neon: #ff003c;

  /* Dark Theme (hero & accents) */
  --dark: #0a0a14;
  --dark-card: #111120;
  --dark-border: rgba(107, 176, 255, 0.2);

  /* Typography */
  --font-display: 'pbio', sans-serif;
  --font-body: 'petita-medium', sans-serif;
  --font-light: 'petita-light', sans-serif;
  --font-bold: 'petita-bold', sans-serif;

  /* Spacing */
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 24px rgba(107, 176, 255, 0.35);
}

/* ===================== FONTS ===================== */
@font-face {
  font-family: 'pbio';
  src: url('assets/fonts/pbio-bold.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'petita-light';
  src: url('assets/fonts/PetitaLight.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: 'petita-medium';
  src: url('assets/fonts/PetitaMedium.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: 'petita-bold';
  src: url('assets/fonts/PetitaBold.ttf') format('truetype');
  font-weight: 400;
}

/* ===================== RESET & BASE ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: #222;
  background: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===================== ANIMATIONS ===================== */

@keyframes glitch-shadow {
  0%   { filter: drop-shadow(0 4px 12px rgba(107,176,255,0.4)); }
  24%  { filter: drop-shadow(0 4px 12px rgba(107,176,255,0.4)); }
  25%  { filter: drop-shadow(0 4px 12px var(--red-neon)); }
  26%  { filter: drop-shadow(0 4px 12px rgba(107,176,255,0.4)); }
  44%  { filter: drop-shadow(0 4px 12px rgba(107,176,255,0.4)); }
  45%  { filter: drop-shadow(0 4px 12px var(--cyan)); }
  46%  { filter: drop-shadow(0 4px 12px rgba(107,176,255,0.4)); }
  100% { filter: drop-shadow(0 4px 12px rgba(107,176,255,0.4)); }
}

@keyframes glitch-text {
  0%   { text-shadow: 2px 0 var(--red-neon), -2px 0 var(--cyan); transform: translate(0); }
  20%  { text-shadow: -2px 0 var(--red-neon), 2px 0 var(--cyan); transform: translate(-1px, 1px); }
  40%  { text-shadow: 2px -1px var(--blue), -2px 1px #fff; transform: translate(1px, -1px); }
  60%  { text-shadow: -2px 0 var(--orange), 2px 0 var(--cyan); transform: translate(-1px, 0); }
  80%  { text-shadow: 1px 1px var(--red-neon), -1px -1px var(--cyan); transform: translate(0, 1px); }
  100% { text-shadow: 2px 0 var(--red-neon), -2px 0 var(--cyan); transform: translate(0); }
}

@keyframes neon-pulse {
  0%, 100% { filter: drop-shadow(0 0 6px var(--blue)) drop-shadow(0 0 14px var(--blue)); }
  50%       { filter: drop-shadow(0 0 12px var(--cyan)) drop-shadow(0 0 28px var(--cyan)); }
}

@keyframes neon-flicker-logo {
  0%   { filter: drop-shadow(0 0 5px var(--orange)); transform: perspective(400px) rotateX(4deg) rotateY(-4deg); }
  30%  { filter: drop-shadow(0 0 10px #ff00ff); }
  60%  { filter: drop-shadow(0 0 8px var(--cyan)); transform: perspective(400px) rotateX(-4deg) rotateY(6deg); }
  80%  { filter: drop-shadow(0 0 10px var(--red-neon)); }
  100% { filter: drop-shadow(0 0 5px var(--orange)); transform: perspective(400px) rotateX(4deg) rotateY(-4deg); }
}

@keyframes neon-flickerCARD {
  0%   { filter: drop-shadow(0 0 4px var(--orange)); transform: perspective(300px) rotateX(1deg) rotateY(-2deg); }
  30%  { filter: drop-shadow(0 0 8px #ff00ff); }
  60%  { filter: drop-shadow(0 0 8px var(--cyan)); transform: perspective(300px) rotateX(-1deg) rotateY(2deg); }
  80%  { filter: drop-shadow(0 0 8px var(--red-neon)); }
  100% { filter: drop-shadow(0 0 4px var(--orange)); transform: perspective(300px) rotateX(1deg) rotateY(-2deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

@keyframes float-mascot {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50%       { transform: translateY(-18px) rotate(1deg); }
}

@keyframes move-line {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes move-line-fast {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes badge-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,240,255,0.7); }
  50%       { box-shadow: 0 0 0 6px rgba(0,240,255,0); }
}

@keyframes particle-rise {
  0%   { transform: translateY(0) scale(1); opacity: 0.6; }
  100% { transform: translateY(-120vh) scale(0.3); opacity: 0; }
}

@keyframes scanline {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes glow-border {
  0%, 100% { box-shadow: 0 0 8px var(--blue), inset 0 0 8px rgba(107,176,255,0.1); }
  50%       { box-shadow: 0 0 20px var(--cyan), inset 0 0 16px rgba(0,240,255,0.15); }
}

@keyframes pixel-shimmer {
  0%   { filter: brightness(1); }
  50%  { filter: brightness(1.2) saturate(1.3); }
  100% { filter: brightness(1); }
}

/* ===================== CYBER LINES ===================== */
.cyber-line {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--red-neon), var(--cyan), red, green, transparent);
  background-size: 200% 100%;
  animation: move-line 3s linear infinite;
  box-shadow: 0 0 6px rgba(255, 0, 60, 0.4);
}

.cyber-line-fast {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--yellow), var(--cyan), #ba8cff, #ffbaba, transparent);
  background-size: 200% 100%;
  animation: move-line-fast 1.8s linear infinite;
}

/* ===================== NAVBAR ===================== */
.navbar {
  background: rgba(10, 10, 20, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--dark-border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
  animation: glitch-shadow 12s infinite alternate;
}

.navbar.scrolled {
  background: rgba(10, 10, 20, 0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.nav-logo { display: flex; align-items: center; }

.logo {
  height: 38px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: block;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-family: var(--font-bold);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.03em;
}

.nav-link:hover,
.nav-link.active {
  color: var(--yellow);
  background: rgba(254, 206, 72, 0.08);
}

.nav-special {
  color: var(--cyan) !important;
  border: 1px solid rgba(0,240,255,0.3);
}
.nav-special:hover {
  background: rgba(0,240,255,0.1) !important;
  color: var(--cyan) !important;
}

.nav-login {
  background: var(--yellow);
  color: var(--dark) !important;
  font-family: var(--font-bold);
  border-radius: 8px;
  padding: 0.45rem 1rem;
  margin-left: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-login:hover {
  background: var(--yellow) !important;
  color: var(--dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(254,206,72,0.4);
}

.login-icon { margin-right: 4px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 92vh;
  background: var(--dark);
  background-image: url('assets/images/cover-creators.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6rem 2rem 8rem;
}

/* Dark overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,20,0.88) 0%,
    rgba(10,10,20,0.70) 50%,
    rgba(10,10,30,0.82) 100%
  );
  z-index: 1;
}

/* Scanlines */
.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
  z-index: 2;
  pointer-events: none;
  animation: scanline 8s linear infinite;
  opacity: 0.3;
}

/* Grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(107,176,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,176,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 2;
  pointer-events: none;
}

/* Particles */
.particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.6;
  animation: particle-rise linear infinite;
}
.particle:nth-child(1) { left: 8%;  animation-duration: 7s;  animation-delay: 0s;   width:3px; height:3px; background: var(--yellow); }
.particle:nth-child(2) { left: 18%; animation-duration: 9s;  animation-delay: 1.5s; background: var(--cyan); }
.particle:nth-child(3) { left: 32%; animation-duration: 6s;  animation-delay: 0.8s; background: var(--red-neon); width:5px; height:5px; }
.particle:nth-child(4) { left: 50%; animation-duration: 11s; animation-delay: 2s;   background: var(--yellow); width:3px; }
.particle:nth-child(5) { left: 63%; animation-duration: 8s;  animation-delay: 0.3s; background: var(--blue); }
.particle:nth-child(6) { left: 74%; animation-duration: 10s; animation-delay: 1s;   background: var(--cyan); width:6px; height:6px; }
.particle:nth-child(7) { left: 85%; animation-duration: 7.5s;animation-delay: 3s;   background: var(--purple); }
.particle:nth-child(8) { left: 94%; animation-duration: 9.5s;animation-delay: 0.5s; background: var(--red-neon); width:3px; height:3px; }

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 620px;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(107,176,255,0.12);
  border: 1px solid rgba(107,176,255,0.3);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  color: var(--blue-light);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: badge-dot-pulse 2s infinite;
}

/* Hero logo image */
.hero-logo-img {
  max-height: 80px;
  width: auto;
  margin-bottom: 1.5rem;
  animation: neon-flicker-logo 6s infinite alternate;
}

/* Headline */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 0 rgba(0,0,0,0.4);
}

.highlight-text {
  color: var(--yellow);
  text-shadow: 0 0 16px rgba(254,206,72,0.5);
}

.glitch-text {
  color: var(--cyan);
  position: relative;
  display: inline-block;
  animation: glitch-text 3.5s infinite;
}

/* Sub */
.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-sub strong {
  color: var(--yellow-light);
}

/* CTA */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--dark);
  font-family: var(--font-bold);
  font-size: 1rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(254,206,72,0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(254,206,72,0.5);
}
.btn-primary.btn-large {
  font-size: 1.1rem;
  padding: 1rem 2.2rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-bold);
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover {
  border-color: var(--cyan);
  background: rgba(0,240,255,0.08);
  color: var(--cyan);
}

/* Mascot */
.hero-mascot {
  position: absolute;
  right: 5%;
  bottom: 25%;
  z-index: 10;
  pointer-events: none;
}
.mascot-img {
  width: clamp(220px, 25vw, 380px);
  height: auto;
  animation: float-mascot 4s ease-in-out infinite;
  filter: drop-shadow(0 10px 40px rgba(107,176,255,0.4));
}

/* Wave */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 5;
  line-height: 0;
}
.hero-wave svg {
  width: 100%;
  height: 80px;
}

/* ===================== STATS ===================== */
.stats-section {
  background: var(--dark);
  padding: 3rem 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.2rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
  animation: glow-border 4s ease-in-out infinite;
  opacity: 0;
}
.stat-card.revealed {
  animation: reveal-up 0.5s ease forwards, glow-border 4s ease-in-out infinite;
}
.stat-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--yellow);
  display: inline;
  text-shadow: 0 0 20px rgba(254,206,72,0.4);
}

.stat-plus {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--cyan);
  display: inline;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.4rem;
  letter-spacing: 0.05em;
}

/* ===================== SECTION HELPERS ===================== */
.section {
  padding: 5rem 2rem;
}

.section-badge {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  font-family: var(--font-bold);
}
.section-badge.center { display: block; text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.section-title.center { text-align: center; }

.section-desc {
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin-bottom: 2rem;
}
.section-desc.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.accent { color: var(--orange); text-shadow: 0 0 14px rgba(255,72,0,0.4); }
.accent-cyan { color: var(--cyan); text-shadow: 0 0 14px rgba(0,240,255,0.4); }

/* ===================== WELCOME SECTION ===================== */
.welcome-section {
  background: #0f0f1e;
  border-top: 1px solid var(--dark-border);
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.welcome-text { opacity: 0; }
.welcome-text.revealed { animation: reveal-up 0.6s ease forwards; }

.welcome-text p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.welcome-text strong { color: var(--yellow); }
.welcome-text em { color: var(--cyan); font-style: normal; }

.pill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.pill {
  background: rgba(107,176,255,0.1);
  border: 1px solid rgba(107,176,255,0.25);
  color: var(--blue-light);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  transition: background 0.2s, border-color 0.2s;
}
.pill:hover {
  background: rgba(107,176,255,0.2);
  border-color: var(--cyan);
}

/* Mascot frame */
.welcome-visual {
  display: flex;
  justify-content: center;
  opacity: 0;
}
.welcome-visual.revealed { animation: reveal-up 0.6s 0.2s ease forwards; }

.mascot-frame {
  position: relative;
  display: inline-block;
}
.mascot-pixel {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 2px solid var(--dark-border);
  animation: pixel-shimmer 4s ease-in-out infinite, glow-border 4s ease-in-out infinite;
}
.frame-label {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--dark);
  font-family: var(--font-bold);
  font-size: 0.78rem;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ===================== VISI SECTION ===================== */
.visi-section {
  background: var(--dark);
}

.visi-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.visi-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  opacity: 0;
}
.visi-card.revealed { animation: reveal-up 0.5s ease forwards; }
.visi-card:hover {
  transform: translateY(-8px);
  border-color: var(--yellow);
  box-shadow: 0 8px 32px rgba(254,206,72,0.15);
}
.visi-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.visi-card h3 {
  font-family: var(--font-display);
  color: var(--yellow);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.visi-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ===================== CATEGORIES GRID ===================== */
.materi-section {
  background: #0f0f1e;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--dark-border);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  opacity: 0;
  cursor: pointer;
}
.cat-card.revealed { animation: reveal-up 0.5s ease forwards; }
.cat-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--yellow);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.cat-card:hover .cat-bg {
  transform: scale(1.08);
}

.cat-featured {
  grid-column: span 2;
  min-height: 280px;
}

.cat-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,20,0.92) 0%,
    rgba(10,10,20,0.5) 50%,
    rgba(10,10,20,0.1) 100%
  );
}

.cat-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
}
.cat-icon {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}
.cat-content h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}
.cat-content p {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}
.cat-arrow {
  color: var(--yellow);
  font-size: 1.2rem;
  transition: transform 0.2s;
}
.cat-card:hover .cat-arrow {
  transform: translateX(4px);
}

.cat-badge-new,
.cat-badge-soon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-family: var(--font-bold);
  letter-spacing: 0.06em;
}
.cat-badge-new {
  background: var(--yellow);
  color: var(--dark);
}
.cat-badge-soon {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
}

/* ===================== CIXEL SECTION ===================== */
.cixel-section {
  background: linear-gradient(135deg, #080814 0%, #0d1020 50%, #0a1428 100%);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  padding: 5rem 2rem;
}

.cixel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cixel-text p {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cixel-text strong {
  color: var(--yellow);
}

.cixel-text kecil {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--yellow);
}

/* Mock screen */
.cixel-screen {
  background: #0d0d1a;
  border: 1px solid rgba(0,240,255,0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,240,255,0.12), 0 20px 60px rgba(0,0,0,0.5);
  animation: glow-border 3s ease-in-out infinite;
}
.cixel-screen-bar {
  background: rgba(255,255,255,0.05);
  padding: 0.6rem 1rem;
  display: flex;
  gap: 6px;
  align-items: center;
  border-bottom: 1px solid rgba(0,240,255,0.1);
}
.cixel-screen-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.cixel-screen-bar span:first-child { background: #ff5f57; }
.cixel-screen-bar span:nth-child(2) { background: #ffbd2e; }
.cixel-screen-bar span:nth-child(3) { background: #28ca41; }

.cixel-screen-body {
  padding: 1rem;
}

.pixel-grid-demo {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 2px;
}
.pcell {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.04);
  border-radius: 1px;
  transition: background 0.15s;
  cursor: crosshair;
}

/* ===================== SUBMIT SECTION ===================== */
.submit-section {
  background: var(--dark);
  text-align: center;
}

.submit-inner {
  max-width: 620px;
}

.submit-cta {
  margin-top: 2rem;
}

.submit-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ===================== FOOTER ===================== */
.footer {
  background: #07070f;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--dark-border);
}

.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--cyan), var(--blue), transparent);
  box-shadow: 0 0 30px var(--blue), 0 0 60px rgba(107,176,255,0.2);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
}
.footer-brand p {
  color: rgba(255,255,255,0.45);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.social-btn {
  display: inline-block;
  background: rgba(107,176,255,0.1);
  border: 1px solid var(--dark-border);
  color: var(--blue-light);
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  transition: background 0.2s, border-color 0.2s;
}
.social-btn:hover {
  background: rgba(107,176,255,0.2);
  border-color: var(--blue);
}

.footer-links h4 {
  font-family: var(--font-display);
  color: var(--yellow);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  color: rgba(255,255,255,0.45);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cyan); }

.footer-bottom {
  padding: 1.5rem 2rem;
  text-align: center;
}
.footer-bottom p {
  color: rgba(255,255,255,0.3);
  font-size: 0.82rem;
}
.footer-tagline {
  margin-top: 0.3rem;
  color: rgba(107,176,255,0.4) !important;
  font-size: 0.78rem !important;
}

/* ===================== SCROLL REVEAL ===================== */
.stat-card,
.visi-card,
.cat-card,
.welcome-text,
.welcome-visual {
  opacity: 0;
  transform: translateY(20px);
}
.revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .welcome-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .visi-cards { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .cat-featured { grid-column: span 2; }
  .cixel-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-mascot { opacity: 0.3; right: -5%; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,10,20,0.98);
    backdrop-filter: blur(14px);
    padding: 1.5rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--dark-border);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 0.7rem 1rem; border-radius: 8px; }
  .nav-login { margin-left: 0; text-align: center; }

  .hero {
    padding: 5rem 1.5rem 7rem;
    background-attachment: scroll;
    min-height: 80vh;
  }
  .hero-mascot { display: none; }

  .categories-grid { grid-template-columns: 1fr; }
  .cat-featured { grid-column: span 1; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.5rem; }

  .hero-cta-group { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .section { padding: 3.5rem 1.2rem; }
  .hero-headline { font-size: 2rem; }
}
