:root {
  --primary: #111217;
  --accent-red: #ff1744;
  --accent-yellow: #ffea00;
  --accent-blue: #2979ff;
  --neutral-light: #f5f6f8;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica", "Arial", sans-serif;
  background: var(--white);
  color: var(--primary);
}

.text-primary {
  color: var(--primary);
}

.text-accent-red {
  color: var(--accent-red);
}

.text-accent-yellow {
  color: var(--accent-yellow);
}

.text-accent-blue {
  color: var(--accent-blue);
}

.text-neutral-light {
  color: var(--neutral-light);
}

.bg-primary {
  background-color: var(--primary);
}

.bg-accent-red {
  background-color: var(--accent-red);
}

.bg-accent-yellow {
  background-color: var(--accent-yellow);
}

.bg-accent-blue {
  background-color: var(--accent-blue);
}

.bg-neutral-light {
  background-color: var(--neutral-light);
}

.comic-border-bottom {
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 3px 0 0 var(--primary);
}

.comic-border-top {
  border-top: 3px solid var(--accent-yellow);
  box-shadow: 0 -3px 0 0 var(--accent-yellow);
}

.comic-text-shadow {
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
}

.comic-text-shadow-white {
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.comic-button {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 900;
  border: 3px solid var(--primary);
  border-radius: 8px;
  box-shadow: 4px 4px 0 0 var(--primary);
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.comic-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--primary);
}

.comic-button:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 0 var(--primary);
}

.comic-button-outline {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 900;
  border: 3px solid var(--primary);
  border-radius: 8px;
  background: transparent;
  color: var(--primary);
  box-shadow: 4px 4px 0 0 var(--primary);
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.comic-button-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--primary);
}

.comic-button-submit {
  width: 100%;
  padding: 16px 32px;
  font-weight: 900;
  font-size: 18px;
  background: var(--accent-red);
  color: var(--white);
  border: 3px solid var(--primary);
  border-radius: 12px;
  box-shadow: 6px 6px 0 0 var(--primary);
  transition: all 0.2s ease;
  cursor: pointer;
}

.comic-button-submit:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 0 var(--primary);
}

.comic-button-submit:active {
  transform: translate(6px, 6px);
  box-shadow: 0 0 0 0 var(--primary);
}

.comic-frame {
  border: 3px solid var(--primary);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.comic-frame:hover {
  transform: scale(1.02);
}

.comic-frame-skewed {
  border: 3px solid var(--primary);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 0.1);
  transform: rotate(-1deg);
  transition: transform 0.3s ease;
}

.comic-frame-skewed:hover {
  transform: rotate(0deg) scale(1.02);
}

.comic-image-frame {
  border: 3px solid var(--primary);
  border-bottom: none;
}

.halftone-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, var(--primary) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.08;
  pointer-events: none;
}

.starburst-badge {
  position: relative;
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent-yellow);
  color: var(--primary);
  font-weight: 900;
  border: 3px solid var(--primary);
  border-radius: 50%;
  box-shadow: 4px 4px 0 0 var(--primary);
  transform: rotate(-5deg);
}

.comic-badge {
  display: inline-block;
  padding: 8px 20px;
  border: 3px solid var(--primary);
  border-radius: 20px;
  font-weight: 900;
  box-shadow: 3px 3px 0 0 var(--primary);
}

.comic-fact-box {
  padding: 16px 20px;
  border: 3px solid var(--primary);
  border-radius: 12px;
  box-shadow: 4px 4px 0 0 var(--primary);
}

.comic-checkmark {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: var(--accent-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  flex-shrink: 0;
}

.comic-checkmark-white {
  width: 32px;
  height: 32px;
  background: var(--white);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  flex-shrink: 0;
}

.speed-lines-decoration {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 100px;
  background: linear-gradient(
    45deg,
    transparent 40%,
    var(--accent-blue) 40%,
    var(--accent-blue) 42%,
    transparent 42%,
    transparent 48%,
    var(--accent-blue) 48%,
    var(--accent-blue) 50%,
    transparent 50%
  );
  opacity: 0.1;
  pointer-events: none;
}

.speed-lines-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 300px;
  height: 100px;
  background: linear-gradient(
    -45deg,
    transparent 40%,
    var(--accent-red) 40%,
    var(--accent-red) 42%,
    transparent 42%,
    transparent 48%,
    var(--accent-red) 48%,
    var(--accent-red) 50%,
    transparent 50%
  );
  opacity: 0.1;
  pointer-events: none;
}

.zigzag-divider {
  height: 20px;
  background: linear-gradient(135deg, var(--neutral-light) 25%, transparent 25%),
    linear-gradient(225deg, var(--neutral-light) 25%, transparent 25%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 0;
}

.halftone-divider {
  height: 60px;
  background-image: radial-gradient(circle, var(--primary) 2px, transparent 2px);
  background-size: 30px 30px;
  opacity: 0.12;
}

.boom-card {
  position: relative;
  background: var(--white);
  border: 3px solid var(--primary);
  border-radius: 18px;
  box-shadow: 6px 6px 0 0 var(--primary);
  overflow: hidden;
  transition: all 0.3s ease;
}

.boom-card:hover {
  transform: scale(1.01) translateY(-4px);
  box-shadow: 8px 8px 0 0 var(--accent-yellow);
}

.starburst-corner {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 60px;
  height: 60px;
  background: var(--accent-red);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  z-index: 10;
  border: 2px solid var(--primary);
}

.comic-zigzag-separator {
  height: 8px;
  background: linear-gradient(135deg, var(--primary) 25%, transparent 25%),
    linear-gradient(225deg, var(--primary) 25%, transparent 25%);
  background-size: 10px 10px;
  background-position: 0 0, 5px 0;
  opacity: 0.2;
  margin: 12px 0;
}

.comic-tag {
  display: inline-block;
  padding: 6px 14px;
  border: 2px solid var(--primary);
  border-radius: 20px;
  font-weight: 900;
  font-size: 12px;
}

.story-panel {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 3px solid var(--primary);
  border-radius: 12px;
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 0.1);
  position: relative;
}

.story-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--primary) 1px, transparent 1px);
  background-size: 15px 15px;
  opacity: 0.04;
  pointer-events: none;
  border-radius: 12px;
}

.panel-number {
  width: 48px;
  height: 48px;
  background: var(--accent-yellow);
  color: var(--primary);
  border: 3px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-box {
  padding: 24px;
  border: 3px solid var(--primary);
  border-radius: 12px;
  box-shadow: 4px 4px 0 0 var(--primary);
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-4px);
}

.hero-card {
  position: relative;
  background: var(--white);
  border: 3px solid var(--primary);
  border-radius: 16px;
  box-shadow: 6px 6px 0 0 var(--primary);
  overflow: hidden;
  transition: all 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-6px) rotate(0deg) !important;
  box-shadow: 8px 8px 0 0 var(--accent-yellow);
}

.color-rip {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
}

.hero-avatar-wrapper {
  position: relative;
  display: inline-block;
}

.hero-avatar {
  width: 120px;
  height: 120px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  box-shadow: 4px 4px 0 0 var(--primary);
}

.starburst-behind {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background: var(--accent-yellow);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-card:hover .starburst-behind {
  opacity: 1;
}

.join-team-panel {
  background: var(--primary);
  border: 3px solid var(--primary);
  border-radius: 16px;
  padding: 48px;
  box-shadow: 8px 8px 0 0 var(--accent-yellow);
  position: relative;
  overflow: hidden;
}

.join-team-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--accent-yellow) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.08;
  pointer-events: none;
}

.benefit-item {
  display: flex;
  gap: 16px;
  align-items: start;
}

.benefit-check {
  width: 40px;
  height: 40px;
  background: var(--accent-yellow);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 24px;
  flex-shrink: 0;
  border: 2px solid var(--accent-yellow);
}

.speech-bubble-form {
  position: relative;
  background: var(--white);
  border: 3px solid var(--primary);
  border-radius: 22px;
  padding: 40px;
  box-shadow: 6px 6px 0 0 var(--primary);
}

.speech-bubble-tail {
  position: absolute;
  bottom: -20px;
  left: 60px;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid var(--white);
}

.speech-bubble-tail::before {
  content: "";
  position: absolute;
  bottom: 3px;
  left: -23px;
  width: 0;
  height: 0;
  border-left: 23px solid transparent;
  border-right: 23px solid transparent;
  border-top: 23px solid var(--primary);
}

.comic-input {
  width: 100%;
  padding: 14px 18px;
  border: 3px solid var(--primary);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  background: var(--white);
}

.comic-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(41, 121, 255, 0.2), 4px 4px 0 0 var(--accent-yellow);
}

.comic-input:hover {
  border-color: var(--accent-blue);
}

.contact-info-panel {
  background: var(--white);
  border: 3px solid var(--primary);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 6px 6px 0 0 var(--primary);
}

.work-step {
  display: flex;
  gap: 16px;
  align-items: start;
  padding: 16px;
  background: var(--neutral-light);
  border: 2px solid var(--primary);
  border-radius: 12px;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--accent-red);
  color: var(--white);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: start;
}

.map-frame {
  border: 3px solid var(--primary);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 6px 6px 0 0 var(--primary);
}

.footer-link {
  color: var(--neutral-light);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.footer-link:hover {
  color: var(--accent-yellow);
}

.footer-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-yellow);
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 24px;
  border-top: 3px solid var(--primary);
  box-shadow: 0 -6px 0 0 var(--primary), 0 -10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1000;
}

.cookie-notice.show {
  transform: translateY(0);
}

.reveal-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-element.revealed {
  opacity: 1;
  transform: translateY(0);
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 1024px) {
  .comic-button,
  .comic-button-outline {
    padding: 10px 20px;
    font-size: 14px;
  }

  .boom-card {
    box-shadow: 4px 4px 0 0 var(--primary);
  }

  .hero-card {
    transform: rotate(0deg) !important;
  }
}

@media (max-width: 768px) {
  .comic-frame,
  .comic-frame-skewed {
    box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 0.1);
  }

  .speech-bubble-form {
    padding: 24px;
  }

  .join-team-panel {
    padding: 32px 24px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
