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

:root {
  --background: #06060a;
  --white: #fff;
  --cream: #f5f0e8;
  --purple-glow: #9333ea;
  --purple-bright: #b478ff;
  --purple-soft: #785ab4;
  --dim-text: #5a5550;
  --accent-line: #281e32;
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted: #5a5550;
  --accent: #9333ea;
  --accent-soft: #b478ff;
  --border: #2a2a35;
  --link: #a0a0a0;
  --link-hover: #9333ea;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 18px;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-line);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--purple-soft);
}

/* Selection */
::-moz-selection {
  background-color: rgba(147, 51, 234, 0.3);
  color: var(--white);
}

::selection {
  background-color: rgba(147, 51, 234, 0.3);
  color: var(--white);
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  padding: 80px 0 60px;
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.header-content {
  position: relative;
  z-index: 2;
  flex: 1;
}

/* Header Image - Left side */
.header-image-container {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 1s ease;
}

.header-image-container.loaded {
  opacity: 1;
}

.header-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  transform: scale(1);
  filter: blur(0px);
  transition: filter 3s ease, transform 3s ease;
}

.header-image-container.loaded .header-image {
  filter: blur(0px);
  transform: scale(1);
}

/* Pixel scatter effect - starts blurred and pixelated */
.pixel-effect {
  filter: blur(30px) brightness(0.3);
  transform: scale(1.5);
  transition: filter 3s ease-out, transform 3s ease-out;
  image-rendering: pixelated;
}

.pixel-effect.revealed {
  filter: blur(0px) brightness(1);
  transform: scale(1);
  image-rendering: auto;
}

/* Responsive - stack on mobile */
@media (max-width: 600px) {
  header {
    flex-direction: column-reverse;
    text-align: center;
    gap: 24px;
  }
  
  .header-image-container {
    width: 150px;
    height: 150px;
  }
}

header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

header .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  font-weight: 400;
}

/* Sections */
section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

section:last-of-type {
  border-bottom: none;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--link-hover);
}

/* Lists */
.offering-list {
  list-style: none;
  padding: 0;
  display: block;
}

.offering-list li {
  display: block;
  padding: 12px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

.offering-list li:last-child {
  border-bottom: none;
}

.offering-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-soft);
  transition: transform 0.2s ease;
}

.offering-list li:hover {
  padding-left: 32px;
  color: var(--text-primary);
}

.offering-list li:hover::before {
  transform: translateX(4px);
  color: var(--purple-bright);
}

/* Receipts - Ordered List */
.receipts {
  counter-reset: receipt;
  list-style: none;
  padding: 0;
}

.receipts li {
  counter-increment: receipt;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out, border-color 0.3s ease;
}

.receipts li.visible {
  opacity: 1;
  transform: translateY(0);
}

.receipts li:last-child {
  border-bottom: none;
}

.receipts li::before {
  content: counter(receipt);
  position: absolute;
  left: 0;
  top: 28px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  min-width: 32px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.receipts li:hover {
  border-color: var(--purple-soft);
}

.receipts li:hover::before {
  color: var(--purple-bright);
  transform: scale(1.1);
}

.receipt-year {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.receipt-observation {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.receipt-action {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.receipt-outcome {
  margin-top: 8px;
  color: var(--accent-soft);
  font-weight: 500;
  transition: color 0.3s ease;
}

.receipts li:hover .receipt-outcome {
  color: var(--purple-bright);
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: 14px 28px;
  border: 2px solid var(--text-primary);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  margin-top: 16px;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.2), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  background-color: var(--text-primary);
  color: var(--background);
  box-shadow: 0 0 30px rgba(147, 51, 234, 0.3);
}

/* Footer */
footer {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.social-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.social-links a {
  color: var(--text-secondary);
  font-size: 1rem;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.social-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--purple-bright);
  transition: width 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-soft);
}

.social-links a:hover::after {
  width: 100%;
}

/* Scroll Indicator */
.scroll-indicator {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  background: var(--background);
  z-index: 100;
}

.scroll-indicator.visible {
  opacity: 0.6;
}

.scroll-indicator:hover {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
}

/* Ticker Animation */
.ticker-wrapper {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker-glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent 0, rgba(147, 51, 234, 0.4) 30%, rgba(180, 120, 255, 0.6) 50%, rgba(147, 51, 234, 0.4) 70%, transparent);
}

/* Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.1);
  }
  50% {
    box-shadow: 0 0 40px rgba(147, 51, 234, 0.25);
  }
}

/* Glow effects */
.glow-hover {
  transition: box-shadow 0.3s ease;
}

.glow-hover:hover {
  box-shadow: 0 0 60px rgba(147, 51, 234, 0.2);
}

/* Decorative background elements */
.bg-gradient-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse at top, rgba(147, 51, 234, 0.05) 0%, transparent 50%),
              radial-gradient(ellipse at bottom right, rgba(40, 30, 50, 0.3) 0%, transparent 50%);
}

/* Mobile */
@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }

  header {
    padding: 60px 0 40px;
  }

  section {
    padding: 32px 0;
  }

  .receipts li {
    padding-left: 40px;
  }

  .receipts li::before {
    font-size: 1rem;
    top: 26px;
  }

  .scroll-indicator {
    bottom: 16px;
    right: 16px;
  }
}

/* Staggered animation delays for receipts */
.receipts li:nth-child(1) { transition-delay: 0s; }
.receipts li:nth-child(2) { transition-delay: 0.1s; }
.receipts li:nth-child(3) { transition-delay: 0.2s; }
.receipts li:nth-child(4) { transition-delay: 0.3s; }
.receipts li:nth-child(5) { transition-delay: 0.4s; }
.receipts li:nth-child(6) { transition-delay: 0.5s; }
.receipts li:nth-child(7) { transition-delay: 0.6s; }
.receipts li:nth-child(8) { transition-delay: 0.7s; }
.receipts li:nth-child(9) { transition-delay: 0.8s; }
.receipts li:nth-child(10) { transition-delay: 0.9s; }

/* Text Gravity Effect - Always On */
.text-gravity {
  will-change: transform;
  display: inline-block;
  transition: text-shadow 0.3s ease;
}

.text-gravity-active {
  text-shadow: 0 0 15px rgba(147, 51, 234, 0.4), 0 0 30px rgba(120, 90, 180, 0.2);
}

/* Matrix Canvas - Always On */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
