:root {
  --bg: #000000;
  --surface: #0D0D0D;
  --text: #F2F2F2;
  --muted: #666666;
  --primary: #CCFF00;
  --secondary: #1A1A1A;
  --accent: #32CD32;
  --border: rgba(204, 255, 0, 0.15);
  --cut-paper-shadow: 4px 8px 16px rgba(0, 0, 0, 0.5);
  --layered-depth: 0 4px 12px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  --paper-craft-texture: linear-gradient(135deg, rgba(204, 255, 0, 0.02) 0%, transparent 60%);
  --tactile-radius: 6px;
  --handmade-tilt: -1deg;
  --collage-gap: 12px;
  --shadow-sm: 2px 4px 8px rgba(0, 0, 0, 0.45);
  --shadow-md: var(--cut-paper-shadow);
  --shadow-lg: 6px 12px 20px rgba(0, 0, 0, 0.55);
  --radius: var(--tactile-radius);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(204, 255, 0, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #000000 0%, #0a0a0a 40%, #000000 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(204, 255, 0, 0.01) 40px,
      rgba(204, 255, 0, 0.01) 41px
    );
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.disclosure {
  width: 100%;
  background: rgba(242, 242, 242, 0.06);
  border-top: 1px dotted var(--muted);
  border-bottom: 1px dotted var(--muted);
  padding: 8px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar-marquee {
  height: 20px;
  overflow: hidden;
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.marquee-track span {
  font-size: 10px;
  color: var(--muted);
  padding: 0 40px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes cut-paper {
  from { opacity: 1; }
  to { opacity: 1; }
}

@keyframes layered {
  from { opacity: 1; }
  to { opacity: 1; }
}

@keyframes paper-craft {
  from { opacity: 1; }
  to { opacity: 1; }
}

@keyframes tactile {
  from { opacity: 1; }
  to { opacity: 1; }
}

@keyframes handmade {
  from { opacity: 1; }
  to { opacity: 1; }
}

@keyframes collage {
  from { opacity: 1; }
  to { opacity: 1; }
}

.navbar-main {
  height: 56px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo img {
  height: 36px;
  width: auto;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.navbar-links a {
  color: var(--text);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.navbar-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  z-index: 99;
  padding: 24px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer a {
  display: block;
  color: var(--text);
  font-size: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--secondary);
  text-decoration: none;
}

.mobile-drawer a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding: 48px 16px 32px;
  flex-shrink: 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 32px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  max-width: 280px;
}

.footer-links h3 {
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-badges {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-badges img {
  height: 48px;
  width: auto;
}

.footer-copy {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.paper-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--layered-depth);
  padding: 24px;
  position: relative;
  background-image: var(--paper-craft-texture);
}

.paper-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 8px;
  right: 8px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
}

.paper-layer {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  position: relative;
}

.paper-torn {
  clip-path: polygon(0 4%, 3% 0, 7% 3%, 12% 0, 18% 2%, 24% 0, 30% 3%, 36% 0, 42% 2%, 48% 0, 54% 3%, 60% 0, 66% 2%, 72% 0, 78% 3%, 84% 0, 90% 2%, 96% 0, 100% 4%, 100% 100%, 0 100%);
}

.cut-paper,
.layered,
.paper-craft,
.tactile,
.handmade,
.collage {
  position: relative;
}

.cut-paper::after,
.layered::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--border);
  pointer-events: none;
}

.paper-craft {
  background-image: linear-gradient(135deg, rgba(204, 255, 0, 0.02) 0%, transparent 60%);
}

.tactile {
  transition: transform 0.2s, box-shadow 0.2s;
}

.handmade {
  transform: rotate(var(--hand-rot, 0deg));
}

.collage {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 16px;
}

.page-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--primary);
  margin-bottom: 24px;
  font-weight: 600;
}

.page-content h2 {
  font-size: 1.25rem;
  color: var(--text);
  margin: 28px 0 12px;
  font-weight: 600;
}

.page-content h3 {
  font-size: 1.05rem;
  margin: 20px 0 8px;
  font-weight: 600;
}

.page-content p {
  margin-bottom: 14px;
  color: var(--text);
}

.page-content ul,
.page-content ol {
  margin: 12px 0 16px 24px;
  color: var(--text);
}

.page-content li {
  margin-bottom: 6px;
}

.legal-paper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px 32px;
  transform: rotate(var(--handmade-tilt));
  max-width: 860px;
  margin: 0 auto;
  gap: var(--collage-gap);
}

.contact-form {
  margin-top: 32px;
  padding: 28px;
  background: var(--secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  color: #ff6b6b;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.form-error.visible {
  display: block;
}

.btn-submit {
  background: var(--primary);
  color: var(--bg);
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.form-success {
  display: none;
  padding: 32px;
  text-align: center;
  background: var(--secondary);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  margin-top: 32px;
}

.form-success.visible {
  display: block;
}

.form-success h3 {
  color: var(--accent);
  margin-bottom: 8px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.overlay.hidden {
  display: none;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  transform: rotate(1deg);
}

.modal h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.modal p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-btn {
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

.modal-btn-accept {
  background: var(--primary);
  color: var(--bg);
}

.modal-btn-decline {
  background: var(--secondary);
  color: var(--text);
  border: 1px solid var(--border);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.5);
  padding: 16px 20px;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  font-size: 13px;
  color: var(--muted);
  max-width: 600px;
}

.cookie-banner .modal-buttons {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .navbar-marquee {
    display: none;
  }

  .burger {
    display: flex;
  }

  .navbar-links {
    display: none;
  }

  .mobile-drawer {
    display: block;
  }

  .mobile-drawer.open {
    top: 56px;
  }

  .legal-paper {
    padding: 24px 18px;
    transform: none;
  }
}
