:root {
  /* Chainsaw Man Palette */
  --bg-dark: #09090b;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.08);

  --color-accent: #ff7a18;
  /* Pochita Orange */
  --color-accent-dim: #cf6010;
  --color-accent-glow: rgba(255, 122, 24, 0.4);

  --color-text-main: #f4f4f5;
  --color-text-muted: #a1a1aa;

  --color-mint: #4ce1c6;
  /* Secondary accent */

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Chivo', system-ui, sans-serif;

  --radius-lg: 24px;
  --radius-md: 16px;

  --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
  margin: 0;
  background-color: var(--bg-dark);
  color: var(--color-text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Gradients */
.bg-gradient-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 50%, rgba(255, 122, 24, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(76, 225, 198, 0.05), transparent 25%);
  pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  font-weight: 700;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  /* Responsive Giant Text */
  line-height: 0.95;
  letter-spacing: -0.02em;
  background: linear-gradient(to bottom right, #fff, #ccc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-accent {
  color: var(--color-accent);
  background: linear-gradient(135deg, var(--color-accent), #ffac6e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout */
.container {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 2rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Glassmorphism Cards */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s var(--ease-elastic), background-color 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
  transform: translateY(-4px);
  background-color: var(--bg-card-hover);
  border-color: rgba(255, 122, 24, 0.2);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-block: 4rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.2fr 1fr;
    height: 80vh;
    min-height: 600px;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.hero-img {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
  animation: float 6s ease-in-out infinite;
  transition: transform 0.1s;
  /* For parallax tilt */
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-accent);
  color: #000;
  box-shadow: 0 0 0 0 var(--color-accent-glow);
}

.btn-primary:hover {
  background: var(--color-mint);
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--color-mint);
}

/* Grid Grid */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}

.feature-card {
  padding: 2rem;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

/* Interactions */
.chainsaw-mode .hero-img {
  animation: shake 0.1s linear infinite;
  filter: drop-shadow(0 0 50px var(--color-accent));
}

.hero-img {
  width: 100%;
  max-width: 500px;
  /* Blend mode fix for black background images */
  mix-blend-mode: screen;
  /* Reduce opacity slightly if the black isn't perfect, but usually screen does the job */
  animation: float 6s ease-in-out infinite;
  transition: transform 0.1s;
}

/* Narrative Section */
.section-narrative {
  padding-block: 6rem;
  text-align: center;
}

.prose {
  max-width: 65ch;
  margin-inline: auto;
  font-size: 1.25rem;
  color: var(--color-text-muted);
}

.prose p {
  margin-bottom: 1.5rem;
}

/* Abilities Section */
.section-abilities {
  padding-block: 6rem;
}

.ability-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 2rem;
  max-width: 800px;
  margin-inline: auto;
}

.ability-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
}

.ability-icon {
  font-size: 2rem;
  background: rgba(255, 122, 24, 0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-accent);
}

/* Gallery Section */
.section-gallery {
  padding-block: 6rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

@keyframes shake {
  0% {
    transform: translate(1px, 1px) rotate(0deg);
  }

  10% {
    transform: translate(-1px, -2px) rotate(-1deg);
  }

  20% {
    transform: translate(-3px, 0px) rotate(1deg);
  }

  30% {
    transform: translate(3px, 2px) rotate(0deg);
  }

  40% {
    transform: translate(1px, -1px) rotate(1deg);
  }

  50% {
    transform: translate(-1px, 2px) rotate(-1deg);
  }

  60% {
    transform: translate(-3px, 1px) rotate(0deg);
  }

  70% {
    transform: translate(3px, 1px) rotate(-1deg);
  }

  80% {
    transform: translate(-1px, -1px) rotate(1deg);
  }

  90% {
    transform: translate(1px, 2px) rotate(0deg);
  }

  100% {
    transform: translate(1px, -2px) rotate(-1deg);
  }
}

.blood-splatter {
  position: absolute;
  pointer-events: none;
  width: 20px;
  height: 20px;
  background: #d81e1e;
  border-radius: 50%;
  transform: scale(0);
  animation: splatter 0.6s ease-out forwards;
}

@keyframes splatter {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  100% {
    transform: scale(3);
    opacity: 0;
  }
}