:root {
  --bg-1: #120c08;
  --bg-2: #22140d;
  --bg-3: #2b1b10;
  --panel: rgba(33, 20, 13, 0.78);
  --panel-strong: rgba(45, 27, 16, 0.92);
  --border: rgba(255, 211, 122, 0.22);
  --border-strong: rgba(255, 220, 150, 0.4);
  --text: #fff5df;
  --muted: #dbc9af;
  --gold: #ffcf66;
  --gold-strong: #ffb300;
  --green: #84ff73;
  --pink: #ff6fe2;
  --purple: #a76cff;
  --brown-glow: rgba(132, 72, 24, 0.45);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1200px;
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(167, 108, 255, 0.2), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(255, 111, 226, 0.15), transparent 26%),
    radial-gradient(circle at 50% 70%, rgba(132, 255, 115, 0.1), transparent 34%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 179, 0, 0.08), transparent 24%),
    radial-gradient(circle at 80% 75%, rgba(255, 111, 226, 0.08), transparent 26%);
  pointer-events: none;
  z-index: -3;
}

body::after {
  content: "";
  position: fixed;
  inset: -20%;
  background:
    linear-gradient(
      120deg,
      transparent 0%,
      rgba(255, 255, 255, 0.018) 30%,
      transparent 55%
    );
  animation: backgroundSweep 18s linear infinite;
  pointer-events: none;
  z-index: -2;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.05) 0.7px, transparent 0.7px);
  background-size: 8px 8px;
  opacity: 0.08;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 100;
}

.cursor-trail-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 120;
  overflow: hidden;
}

.hero,
.section,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 56px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 207, 102, 0.12), transparent 28%),
    radial-gradient(circle at 50% 58%, rgba(167, 108, 255, 0.1), transparent 34%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 207, 102, 0.18) 0%, rgba(255, 207, 102, 0.08) 35%, transparent 68%);
  filter: blur(8px);
  animation: pulseHalo 5s ease-in-out infinite;
  pointer-events: none;
}

.hero-inner {
  width: min(100%, 980px);
  text-align: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 207, 102, 0.08);
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(255, 179, 0, 0.08);
}

.main-logo {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.04em;
  font-size: clamp(2.6rem, 9vw, 6.8rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff2cc;
  text-shadow:
    0 0 10px rgba(255, 207, 102, 0.2),
    0 0 24px rgba(255, 111, 226, 0.16),
    0 6px 0 rgba(70, 35, 8, 0.75),
    0 12px 30px rgba(0, 0, 0, 0.45);
}

.main-logo span {
  display: inline-block;
  animation: logoBob 2.8s ease-in-out infinite;
  transform-origin: center bottom;
  will-change: transform;
}

.main-logo span:nth-child(3n) {
  animation-duration: 2.2s;
}

.main-logo span:nth-child(4n) {
  animation-duration: 3.3s;
}

.main-logo .gap {
  width: 0.42em;
  animation: none;
}

.tagline {
  max-width: 700px;
  margin: 22px auto 0;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  line-height: 1.6;
  color: var(--muted);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.big-button,
.ghost-button,
.action-button {
  position: relative;
  border: 0;
  border-radius: 999px;
  padding: 15px 24px;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    filter var(--transition),
    background var(--transition);
}

.big-button,
.action-button {
  background: linear-gradient(135deg, #ffd768, #ffb300);
  color: #2d1807;
  font-weight: 900;
  box-shadow:
    0 16px 30px rgba(255, 179, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.big-button:hover,
.action-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 20px 36px rgba(255, 179, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  filter: saturate(1.08);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ghost-button:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-badges {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.hero-badges span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(23, 14, 10, 0.62);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.floating-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
}

.floating-icons::before,
.floating-icons::after {
  position: absolute;
  font-size: clamp(1.4rem, 2vw, 2.1rem);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
  animation: driftFloat 11s ease-in-out infinite;
}

.floating-icons-a::before {
  content: "💩 💌 💩 📧";
  left: 8%;
  top: 16%;
  letter-spacing: 18px;
}

.floating-icons-a::after {
  content: "📧 💩 📬 💩";
  right: 10%;
  bottom: 18%;
  letter-spacing: 18px;
  animation-duration: 14s;
}

.floating-icons-b::before {
  content: "💩 💩 📧";
  right: 16%;
  top: 14%;
  letter-spacing: 20px;
  animation-duration: 13s;
}

.floating-icons-b::after {
  content: "📨 💩 📧";
  left: 14%;
  bottom: 12%;
  letter-spacing: 16px;
  animation-duration: 12s;
}

main {
  display: block;
}

.section {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 32px 20px 28px;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  color: #fff0c2;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.34);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.card-grid,
.action-grid {
  display: grid;
  gap: 20px;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fun-card,
.action-panel,
.terminal-window,
.quote-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.fun-card,
.action-panel {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.fun-card h3,
.action-panel h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: #fff0bf;
}

.fun-card p,
.action-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.card-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 16px;
  font-size: 1.8rem;
  background: linear-gradient(135deg, rgba(255, 207, 102, 0.18), rgba(255, 111, 226, 0.12));
  border: 1px solid rgba(255, 207, 102, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.marquee-wrap {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
}

.quote-card {
  flex: 0 0 auto;
  width: min(360px, 82vw);
  border-radius: 22px;
  padding: 20px 22px;
  color: var(--text);
  line-height: 1.6;
}

.terminal-window {
  border-radius: 26px;
  overflow: hidden;
}

.terminal-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(9, 8, 7, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #cfc2aa;
  font-size: 0.94rem;
}

.terminal-topbar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff8a65;
}

.terminal-topbar span:nth-child(2) {
  background: #ffd54f;
}

.terminal-topbar span:nth-child(3) {
  background: #81c784;
}

.terminal-topbar strong {
  margin-left: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.terminal-body {
  min-height: 280px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(3, 15, 4, 0.92), rgba(9, 24, 10, 0.96));
  color: #84ff73;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.98rem;
  line-height: 1.7;
}

.output-box {
  margin-top: 16px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 18px;
  background: rgba(13, 10, 8, 0.75);
  border: 1px dashed rgba(255, 207, 102, 0.22);
  color: #fff0c2;
  text-align: center;
  line-height: 1.5;
}

.small-box {
  min-height: 72px;
}

.site-footer {
  padding: 40px 20px 70px;
  text-align: center;
  color: var(--muted);
}

.site-footer p,
.site-footer small {
  margin: 8px 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(18px);
  min-width: min(90vw, 320px);
  max-width: 90vw;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(16, 11, 9, 0.92);
  border: 1px solid rgba(255, 207, 102, 0.28);
  color: #fff0c2;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  z-index: 200;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 980px) {
  .card-grid,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 40px;
  }

  .main-logo {
    font-size: clamp(2.2rem, 11vw, 4.6rem);
  }
}

@media (max-width: 640px) {
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .fun-card,
  .action-panel {
    padding: 20px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .big-button,
  .ghost-button {
    width: 100%;
  }

  .hero-badges span {
    width: 100%;
  }

  .terminal-body {
    min-height: 240px;
    font-size: 0.92rem;
  }
}

@keyframes backgroundSweep {
  0% {
    transform: translate3d(-8%, -5%, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(8%, 5%, 0) rotate(6deg);
  }
  100% {
    transform: translate3d(-8%, -5%, 0) rotate(0deg);
  }
}

@keyframes pulseHalo {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0.75;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 1;
  }
}

@keyframes logoBob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-6px) rotate(-2deg);
  }
  50% {
    transform: translateY(0) rotate(1.5deg);
  }
  75% {
    transform: translateY(-4px) rotate(2deg);
  }
}

@keyframes driftFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-2deg);
  }
  50% {
    transform: translate3d(0, -14px, 0) rotate(3deg);
  }
}
.intro-section .fun-card,
.interact-section .action-panel {
  transform-style: preserve-3d;
}

.fun-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.fun-card::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -20%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 207, 102, 0.18), transparent 70%);
  filter: blur(8px);
  opacity: 0.7;
  pointer-events: none;
}

.fun-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 108, 255, 0.16), transparent 70%);
  filter: blur(12px);
  opacity: 0.75;
  pointer-events: none;
}

.fun-card:hover {
  transform: translateY(-8px) rotate(-0.8deg) scale(1.015);
  border-color: rgba(255, 207, 102, 0.4);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(255, 179, 0, 0.12);
}

.fun-card:nth-child(2):hover {
  transform: translateY(-10px) rotate(0.9deg) scale(1.015);
}

.fun-card:nth-child(3):hover {
  transform: translateY(-9px) rotate(-1.1deg) scale(1.015);
}

.fun-card:nth-child(2n) {
  animation: cardIdleFloat 5.8s ease-in-out infinite;
}

.fun-card:nth-child(2n + 1) {
  animation: cardIdleFloat 6.6s ease-in-out infinite;
}

.fun-card h3,
.fun-card p,
.card-icon {
  position: relative;
  z-index: 1;
}

.testimonials-section {
  overflow: hidden;
}

.marquee-track {
  animation: marqueeScroll 42s linear infinite;
}

.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

.quote-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
}

.quote-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      115deg,
      transparent 0%,
      rgba(255, 255, 255, 0.04) 40%,
      transparent 65%
    );
  transform: translateX(-110%);
  transition: transform 500ms ease;
  pointer-events: none;
}

.quote-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  border-color: rgba(255, 207, 102, 0.38);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.36),
    0 0 20px rgba(255, 111, 226, 0.08);
  filter: saturate(1.04);
}

.quote-card:hover::before {
  transform: translateX(110%);
}

.terminal-section .terminal-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(132, 255, 115, 0.18);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.42),
    0 0 30px rgba(132, 255, 115, 0.08);
}

.terminal-section .terminal-window::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.025) 0%,
      transparent 12%,
      transparent 88%,
      rgba(255, 255, 255, 0.02) 100%
    );
  pointer-events: none;
  z-index: 1;
}

.terminal-section .terminal-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.025) 0px,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 2px,
      transparent 4px
    );
  opacity: 0.16;
  pointer-events: none;
  z-index: 1;
}

.terminal-body {
  position: relative;
  z-index: 0;
  text-shadow: 0 0 8px rgba(132, 255, 115, 0.22);
}

.terminal-body div {
  animation: terminalLineIn 340ms ease both;
}

.interact-section .action-panel {
  position: relative;
  overflow: hidden;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.interact-section .action-panel::before {
  content: "";
  position: absolute;
  inset: auto auto -60px -50px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 111, 226, 0.14), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.interact-section .action-panel::after {
  content: "";
  position: absolute;
  inset: -50px -45px auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 207, 102, 0.14), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

.interact-section .action-panel:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 207, 102, 0.36);
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(255, 207, 102, 0.08);
}

.action-panel > * {
  position: relative;
  z-index: 1;
}

.action-button {
  min-width: 150px;
}

.action-button:active,
.big-button:active,
.ghost-button:active {
  transform: translateY(0) scale(0.98);
}

.big-button::after,
.action-button::after,
.ghost-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      120deg,
      transparent 0%,
      rgba(255, 255, 255, 0.28) 45%,
      transparent 75%
    );
  transform: translateX(-120%);
  pointer-events: none;
}

.big-button:hover::after,
.action-button:hover::after,
.ghost-button:hover::after {
  animation: buttonSheen 650ms ease;
}

.output-box {
  position: relative;
  overflow: hidden;
  transition:
    border-color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.output-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      120deg,
      transparent 0%,
      rgba(255, 255, 255, 0.045) 48%,
      transparent 78%
    );
  transform: translateX(-120%);
  pointer-events: none;
}

.output-box:hover {
  border-color: rgba(255, 207, 102, 0.38);
  background: rgba(19, 14, 11, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 207, 102, 0.06);
}

.output-box:hover::before {
  animation: buttonSheen 850ms ease;
}

.lore-panel p {
  min-height: 132px;
}

.site-footer {
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(720px, 90vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 207, 102, 0.28),
    transparent
  );
}

.hero-badges span:nth-child(1) {
  animation: badgeFloat 5s ease-in-out infinite;
}

.hero-badges span:nth-child(2) {
  animation: badgeFloat 5.8s ease-in-out infinite;
}

.hero-badges span:nth-child(3) {
  animation: badgeFloat 6.4s ease-in-out infinite;
}

.main-logo span:nth-child(1) {
  animation-delay: 0.02s;
}
.main-logo span:nth-child(2) {
  animation-delay: 0.08s;
}
.main-logo span:nth-child(3) {
  animation-delay: 0.14s;
}
.main-logo span:nth-child(4) {
  animation-delay: 0.2s;
}
.main-logo span:nth-child(5) {
  animation-delay: 0.26s;
}
.main-logo span:nth-child(6) {
  animation-delay: 0.32s;
}
.main-logo span:nth-child(7) {
  animation-delay: 0.38s;
}
.main-logo span:nth-child(9) {
  animation-delay: 0.1s;
}
.main-logo span:nth-child(10) {
  animation-delay: 0.16s;
}
.main-logo span:nth-child(11) {
  animation-delay: 0.22s;
}
.main-logo span:nth-child(12) {
  animation-delay: 0.28s;
}
.main-logo span:nth-child(13) {
  animation-delay: 0.34s;
}
.main-logo span:nth-child(14) {
  animation-delay: 0.4s;
}
.main-logo span:nth-child(15) {
  animation-delay: 0.46s;
}
.main-logo span:nth-child(16) {
  animation-delay: 0.52s;
}
.main-logo span:nth-child(18) {
  animation-delay: 0.12s;
}
.main-logo span:nth-child(19) {
  animation-delay: 0.18s;
}
.main-logo span:nth-child(20) {
  animation-delay: 0.24s;
}

body.chaos-mode {
  animation: chaosBody 1.2s ease-in-out;
}

body.chaos-mode .hero,
body.chaos-mode main,
body.chaos-mode .site-footer {
  animation: chaosTilt 1.2s ease-in-out;
}

body.chaos-mode .main-logo span {
  animation-duration: 0.48s;
}

body.chaos-mode .marquee-track {
  animation-duration: 10s;
}

body.chaos-mode .floating-icons::before,
body.chaos-mode .floating-icons::after {
  animation-duration: 2.2s;
}

body.doom-flip {
  transform: rotate(180deg);
  transition: transform 700ms ease;
}

@media (max-width: 980px) {
  .lore-panel p {
    min-height: 0;
  }

  .marquee-track {
    animation-duration: 34s;
  }
}

@media (max-width: 640px) {
  .fun-card:hover,
  .interact-section .action-panel:hover,
  .quote-card:hover {
    transform: translateY(-4px);
  }

  .marquee-track {
    animation-duration: 28s;
  }
}

@keyframes cardIdleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 9px));
  }
}

@keyframes terminalLineIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes buttonSheen {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(130%);
  }
}

@keyframes badgeFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes chaosBody {
  0%,
  100% {
    filter: hue-rotate(0deg) saturate(1);
  }
  20% {
    filter: hue-rotate(25deg) saturate(1.2);
  }
  50% {
    filter: hue-rotate(-20deg) saturate(1.35);
  }
  80% {
    filter: hue-rotate(18deg) saturate(1.15);
  }
}

@keyframes chaosTilt {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  20% {
    transform: translateX(-4px) rotate(-1.3deg);
  }
  40% {
    transform: translateX(5px) rotate(1.2deg);
  }
  60% {
    transform: translateX(-3px) rotate(-0.9deg);
  }
  80% {
    transform: translateX(2px) rotate(0.6deg);
  }
}
main {
  position: relative;
}

main::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 40px;
  bottom: 40px;
  width: min(1100px, calc(100% - 40px));
  transform: translateX(-50%);
  border-radius: 40px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.015),
      rgba(255, 255, 255, 0.005)
    );
  border: 1px solid rgba(255, 207, 102, 0.06);
  pointer-events: none;
  z-index: 0;
}

.section + .section {
  margin-top: 10px;
}

.section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(780px, 85%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 207, 102, 0.2),
    rgba(255, 111, 226, 0.14),
    transparent
  );
  opacity: 0.9;
}

.section:first-of-type::before {
  display: none;
}

.hero-inner::after {
  content: "Totally professional.";
  position: absolute;
  right: 2%;
  top: 8%;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 10, 8, 0.82);
  border: 1px solid rgba(255, 207, 102, 0.2);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  transform: rotate(8deg);
  animation: stickerBob 5.8s ease-in-out infinite;
}

.hero-inner::before {
  content: "Spam-grade excellence";
  position: absolute;
  left: 3%;
  bottom: 6%;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(23, 15, 11, 0.85);
  border: 1px solid rgba(255, 111, 226, 0.18);
  color: #ffd9f7;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
  transform: rotate(-7deg);
  animation: stickerBob 6.6s ease-in-out infinite;
}

.intro-section,
.testimonials-section,
.terminal-section,
.interact-section {
  position: relative;
}

.intro-section::after,
.testimonials-section::after,
.terminal-section::after,
.interact-section::after {
  content: "";
  position: absolute;
  inset: 20px -10px auto;
  height: calc(100% - 40px);
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(255, 207, 102, 0.04), transparent 28%),
    radial-gradient(circle at bottom right, rgba(167, 108, 255, 0.05), transparent 24%);
  pointer-events: none;
  z-index: -1;
}

.card-grid .fun-card:nth-child(1) .card-icon {
  animation: iconBoop 3.6s ease-in-out infinite;
}

.card-grid .fun-card:nth-child(2) .card-icon {
  animation: iconBoop 4.1s ease-in-out infinite;
}

.card-grid .fun-card:nth-child(3) .card-icon {
  animation: iconBoop 3.8s ease-in-out infinite;
}

.terminal-window .terminal-topbar strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-body::before {
  content: "LIVE";
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(132, 255, 115, 0.12);
  border: 1px solid rgba(132, 255, 115, 0.24);
  color: #b7ffac;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  animation: liveBlink 1.8s ease-in-out infinite;
}

.terminal-body::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(132, 255, 115, 0.05), transparent 40%);
  pointer-events: none;
}

.action-grid .action-panel:nth-child(1) {
  transform: rotate(-0.4deg);
}

.action-grid .action-panel:nth-child(2) {
  transform: rotate(0.5deg);
}

.action-grid .action-panel:nth-child(3) {
  transform: rotate(-0.35deg);
}

.action-grid .action-panel:nth-child(1):hover,
.action-grid .action-panel:nth-child(2):hover,
.action-grid .action-panel:nth-child(3):hover {
  transform: translateY(-8px) rotate(0deg);
}

.output-box,
.quote-card,
.fun-card,
.action-panel,
.terminal-window,
.hero-badges span,
.eyebrow {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cursor-poop {
  position: absolute;
  font-size: 14px;
  line-height: 1;
  opacity: 0.9;
  transform: translate(-50%, -50%);
  animation: cursorPop 900ms ease forwards;
  user-select: none;
}

.toast.critical {
  border-color: rgba(255, 111, 226, 0.34);
  color: #ffe5fa;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    0 0 26px rgba(255, 111, 226, 0.12);
}

.toast.success {
  border-color: rgba(132, 255, 115, 0.34);
  color: #deffd9;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    0 0 26px rgba(132, 255, 115, 0.14);
}

.site-footer small {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 207, 102, 0.12);
}

body.is-spinning .hero,
body.is-spinning main,
body.is-spinning .site-footer {
  animation: slowSpinWobble 1.4s ease-in-out;
}

body.glitch-mode .main-logo,
body.glitch-mode .section-head h2 {
  animation: glitchFlicker 420ms steps(2, end) 4;
}

body.glitch-mode .noise {
  opacity: 0.16;
}

@media (max-width: 980px) {
  main::before {
    width: calc(100% - 28px);
  }

  .hero-inner::after {
    right: 0;
    top: auto;
    bottom: -12px;
    transform: rotate(4deg);
  }

  .hero-inner::before {
    left: 0;
    bottom: -56px;
    transform: rotate(-4deg);
  }

  .action-grid .action-panel:nth-child(1),
  .action-grid .action-panel:nth-child(2),
  .action-grid .action-panel:nth-child(3) {
    transform: none;
  }
}

@media (max-width: 640px) {
  main::before {
    display: none;
  }

  .hero-inner::after,
  .hero-inner::before {
    position: static;
    display: inline-flex;
    margin: 14px 6px 0;
    transform: none;
    animation: none;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .section-head h2 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .quote-card {
    width: 84vw;
  }

  .terminal-topbar {
    padding: 12px 14px;
  }

  .terminal-topbar strong {
    font-size: 0.78rem;
  }

  .terminal-body::before {
    top: 10px;
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .marquee-track {
    animation: none !important;
  }
}

@keyframes stickerBob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-3px) rotate(4deg);
  }
  50% {
    transform: translateY(1px) rotate(-3deg);
  }
  75% {
    transform: translateY(-2px) rotate(2deg);
  }
}

@keyframes iconBoop {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  15% {
    transform: scale(1.08) rotate(-4deg);
  }
  30% {
    transform: scale(0.98) rotate(4deg);
  }
  45% {
    transform: scale(1.04) rotate(-2deg);
  }
}

@keyframes liveBlink {
  0%,
  100% {
    opacity: 0.8;
    box-shadow: 0 0 0 rgba(132, 255, 115, 0);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 18px rgba(132, 255, 115, 0.16);
  }
}

@keyframes cursorPop {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.7) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -85%) scale(1.2) rotate(18deg);
  }
}

@keyframes slowSpinWobble {
  0% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(3deg) scale(1.01);
  }
  50% {
    transform: rotate(-3deg) scale(1.02);
  }
  75% {
    transform: rotate(2deg) scale(1.01);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

@keyframes glitchFlicker {
  0% {
    transform: translate(0, 0);
    text-shadow:
      2px 0 rgba(255, 111, 226, 0.35),
      -2px 0 rgba(132, 255, 115, 0.25);
  }
  25% {
    transform: translate(-2px, 1px);
    text-shadow:
      -2px 0 rgba(255, 111, 226, 0.4),
      2px 0 rgba(132, 255, 115, 0.25);
  }
  50% {
    transform: translate(2px, -1px);
    text-shadow:
      3px 0 rgba(255, 111, 226, 0.32),
      -3px 0 rgba(132, 255, 115, 0.2);
  }
  75% {
    transform: translate(-1px, 2px);
    text-shadow:
      -3px 0 rgba(255, 111, 226, 0.38),
      3px 0 rgba(132, 255, 115, 0.2);
  }
  100% {
    transform: translate(0, 0);
    text-shadow:
      2px 0 rgba(255, 111, 226, 0.35),
      -2px 0 rgba(132, 255, 115, 0.25);
  }
}
.main-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-line {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
}

.main-logo span {
  display: inline-block;
}

/* spacing between words */
.space {
  width: 0.4em;
}
