@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../assets-v2v/fonts/inter-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets-v2v/fonts/jetbrainsmono-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets-v2v/fonts/pressstart2p-latin.woff2') format('woff2');
}

:root {
  /* Colors */
  --color-primary: #9a4100;
  --color-primary-container: #c25300;
  --color-on-primary: #ffffff;
  --color-on-primary-container: #fffbff;
  --color-secondary: #5d5f5f;
  --color-secondary-container: #dcdddd;
  --color-on-secondary: #ffffff;
  --color-on-secondary-container: #5f6161;
  --color-tertiary: #5a5c5c;
  --color-tertiary-container: #737575;
  --color-on-tertiary: #ffffff;
  --color-on-tertiary-container: #fcfcfc;
  --color-background: #fcf9f8;
  --color-on-background: #1b1c1c;
  --color-surface: #fcf9f8;
  --color-on-surface: #1b1c1c;
  --color-on-surface-variant: #584237;
  --color-surface-container: #f0eded;
  --color-surface-container-low: #f6f3f2;
  --color-surface-container-lowest: #ffffff;
  --color-surface-container-high: #eae7e7;
  --color-surface-container-highest: #e4e2e1;
  --color-inverse-surface: #303030;
  --color-inverse-on-surface: #f3f0f0;
  --color-outline: #8c7265;
  --color-outline-variant: #dfc0b2;
  --color-error: #ba1a1a;
  --color-error-container: #ffdad6;
  --color-on-error-container: #93000a;
  --color-primary-fixed: #ffdbcb;
  --color-primary-fixed-dim: #ffb691;
  --color-on-primary-fixed: #341100;
  --color-on-primary-fixed-variant: #793100;
  --color-secondary-fixed: #e2e2e2;
  --color-secondary-fixed-dim: #c6c6c7;
  --color-on-secondary-fixed: #1a1c1c;
  --color-on-secondary-fixed-variant: #454747;
  --color-tertiary-fixed: #e2e2e2;
  --color-tertiary-fixed-dim: #c6c6c7;
  --color-on-tertiary-fixed: #1a1c1c;
  --color-on-tertiary-fixed-variant: #454747;

  /* Spacing */
  --margin-mobile: 16px;
  --margin-desktop: 64px;
  --gutter: 24px;
  --unit: 8px;
  --max-width: 1280px;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-default: 1rem;
  --radius-md: 1.5rem;
  --radius-lg: 2rem;
  --radius-xl: 3rem;
  --radius-full: 9999px;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-background);
  font-family: 'Inter', sans-serif;
  color: var(--color-on-surface);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography styles */
.font-pixel {
  font-family: 'Press Start 2P', monospace;
}

.font-body-md {
  font-family: 'Inter', sans-serif;
}

.font-label-caps {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
}

.font-headline-lg {
  font-family: 'Anybody', sans-serif;
  font-weight: 800;
}

/* Utility layout styles */
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-4 { width: 1rem; }
.w-10 { width: 2.5rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }
.w-48 { width: 12rem; }
.w-80 { width: 20rem; }
.max-w-max-width { max-width: var(--max-width); width: 100%; margin-left: auto; margin-right: auto; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.h-1 { height: 4px; }
.h-4 { height: 1rem; }
.h-10 { height: 2.5rem; }
.h-36 { height: 9rem; }
.h-48 { height: 12rem; }
.h-80 { height: 20rem; }
.h-96 { height: 24rem; }
.min-h-screen { min-height: 100vh; }
.min-h-\[400px\] { min-height: 400px; }
.min-h-\[60vh\] { min-height: 60vh; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.inline-block { display: inline-block; }
.hidden { display: none; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.gap-0 { gap: 0; }
.gap-0\.5 { gap: 2px; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-20 { gap: 5rem; }
.gap-gutter { gap: var(--gutter); }
.gap-unit { gap: var(--unit); }

/* Spacing utilities */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }
.p-20 { padding: 5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-10 { padding-top: 2.5rem; }
.pt-20 { padding-top: 5rem; }
.pt-40 { padding-top: 10rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pb-20 { padding-bottom: 5rem; }

.px-margin-mobile { padding-left: var(--margin-mobile); padding-right: var(--margin-mobile); }
.py-margin-desktop { padding-top: var(--margin-desktop); padding-bottom: var(--margin-desktop); }
.pt-margin-desktop { padding-top: var(--margin-desktop); }

.m-0 { margin: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-20 { margin-top: 5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.ml-4 { margin-left: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.-mt-2 { margin-top: -0.5rem; }
.-translate-x-12 { transform: translateX(-3rem); }
.-translate-y-12 { transform: translateY(-3rem); }
.translate-x-12 { transform: translateX(3rem); }
.translate-y-12 { transform: translateY(3rem); }
.translate-y-8 { transform: translateY(2rem); }
.translate-y-16 { transform: translateY(4rem); }
.-top-8 { top: -2rem; }
.-top-20 { top: -5rem; }
.-left-20 { left: -5rem; }

/* Positional and layers */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-4 { top: 1rem; }
.top-10 { top: 2.5rem; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.right-4 { right: 1rem; }
.inset-0 { top: 0; left: 0; right: 0; bottom: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-\[60\] { z-index: 60; }
.-z-10 { z-index: -10; }

/* Image style */
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }
.opacity-0 { opacity: 0; }
.opacity-20 { opacity: 0.2; }
.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-hidden { overflow: hidden; }

/* Typography options */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-tighter { letter-spacing: -0.05em; }

.text-xs { font-size: 0.75rem; }
.text-\[10px\] { font-size: 10px; }
.text-sm { font-size: 0.875rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* Colors */
.bg-primary { background-color: var(--color-primary); }
.bg-primary-container { background-color: var(--color-primary-container); }
.bg-background { background-color: var(--color-background); }
.bg-white { background-color: #ffffff; }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.bg-white\/50 { background-color: rgba(255, 255, 255, 0.5); }
.bg-on-surface { background-color: var(--color-on-surface); }
.bg-surface-container { background-color: var(--color-surface-container); }
.bg-surface-container-low { background-color: var(--color-surface-container-low); }
.bg-\[\#F4F4F4\] { background-color: #f4f4f4; }
.bg-\[\#F0EDED\] { background-color: #f0eded; }

.text-primary { color: var(--color-primary); }
.text-on-primary { color: var(--color-on-primary); }
.text-on-primary-container { color: var(--color-on-primary-container); }
.text-on-surface { color: var(--color-on-surface); }
.text-on-surface-variant { color: var(--color-on-surface-variant); }
.text-on-primary-container\/80 { color: rgba(255, 251, 255, 0.8); }
.text-white { color: #ffffff; }
.text-white\/85 { color: rgba(255, 255, 255, 0.85); }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-error { color: var(--color-error); }

/* Borders */
.border { border: 1px solid rgba(0, 0, 0, 0.1); }
.border-white\/20 { border: 1px solid rgba(255, 255, 255, 0.2); }
.border-white\/30 { border: 1px solid rgba(255, 255, 255, 0.3); }
.border-white\/40 { border: 1px solid rgba(255, 255, 255, 0.4); }
.border-white\/50 { border: 2px solid rgba(255, 255, 255, 0.5); }
.border-b { border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.border-b-2 { border-bottom: 2px solid var(--color-primary); }
.border-on-surface\/10 { border-color: rgba(27, 28, 28, 0.1); }
.border-t { border-top: 1px solid rgba(0, 0, 0, 0.1); }
.border-t-2 { border-top: 2px solid var(--color-outline-variant); }
.border-t-0 { border-top-width: 0; }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-on-primary-container\/20 { border-color: rgba(255, 251, 255, 0.2); }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }
.border-outline\/30 { border-color: rgba(140, 114, 101, 0.3); }
.border-outline-variant { border-color: var(--color-outline-variant); }

/* Border Radius */
.rounded-full { border-radius: var(--radius-full); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-3xl { border-radius: var(--radius-xl); }

/* Transitions */
.transition-all { transition: all 0.3s ease; }
.transition-colors { transition: border-color 0.3s ease, background-color 0.3s ease; }
.duration-300 { transition-duration: 300ms; }

/* Interactive and Hover */
.cursor-pointer { cursor: pointer; }
.hover\:text-primary:hover { color: var(--color-primary); }
.hover\:translate-y-1:hover { transform: translateY(4px); }
.hover\:border-primary:hover { border-color: var(--color-primary); }
.focus\:border-primary:focus { border-color: var(--color-primary); outline: none; }
.focus\:ring-0:focus { box-shadow: none; outline: none; }

/* Custom components from DESIGN.md */
.pixel-pattern {
  background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 8px 8px;
}

.pixel-pattern-white {
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 8px 8px;
}

.hard-shadow {
  box-shadow: 8px 8px 0px 0px rgba(0, 0, 0, 1);
}

.hard-shadow-hover:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 1);
}

.glass-card {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-pill {
  background: rgba(93, 95, 95, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(93, 95, 95, 0.1);
}

.btn-interact:active {
  transform: scale(0.95);
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

.floating-delayed {
  animation: float 6s ease-in-out infinite;
  animation-delay: 1.5s;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hidden { display: none !important; }
  .md\:flex { display: none !important; }
  .md\:grid-cols-2 { grid-template-columns: 1fr !important; }
  .md\:grid-cols-3 { grid-template-columns: 1fr !important; }
  .md\:px-margin-desktop { padding-left: var(--margin-mobile) !important; padding-right: var(--margin-mobile) !important; }
  
  /* Reset Translate shifts on mobile to avoid layout breaking */
  .translate-y-8, .translate-y-16 { transform: translateY(0) !important; }
  .h-96 { height: auto !important; }
  .w-48 { width: 100% !important; max-width: 200px; }
  .w-32 { display: none; }
  .relative.h-96 { display: flex; flex-direction: row; gap: 1rem; height: auto !important; margin-bottom: 2rem; justify-content: center; }
  .relative.h-96 > div { position: relative !important; transform: none !important; margin: 0 !important; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-end { align-items: flex-end; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:px-margin-desktop { padding-left: var(--margin-desktop); padding-right: var(--margin-desktop); }
  .md\:p-20 { padding: 5rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-3xl { font-size: 1.875rem; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Modals & Forms styles */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--color-surface-container-lowest);
  border: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 90%;
  max-width: 500px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-on-surface-variant);
}

.modal-close:hover {
  color: var(--color-primary);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.875rem;
}

.form-input {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 9999px;
  border: 2px solid var(--color-outline-variant);
  background-color: var(--color-surface-container-low);
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: var(--color-primary);
  outline: none;
}

.form-textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 1.5rem;
  border: 2px solid var(--color-outline-variant);
  background-color: var(--color-surface-container-low);
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  resize: vertical;
}

.form-textarea:focus {
  border-color: var(--color-primary);
  outline: none;
}

/* Helper Class for Mobile Viewports <= 320px */
@media (max-width: 360px) {
  .text-3xl { font-size: 1.5rem; }
  .text-2xl { font-size: 1.25rem; }
  .px-margin-mobile { padding-left: 10px !important; padding-right: 10px !important; }
  .px-8 { padding-left: 1rem !important; padding-right: 1rem !important; }
  .px-6 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
  .p-8 { padding: 1rem !important; }
  .p-10 { padding: 1.25rem !important; }
  .p-12 { padding: 1.5rem !important; }
}

/* Policy Pages Layout */
.policy-container {
  padding-top: 10rem;
  padding-bottom: 5rem;
  padding-left: var(--margin-mobile);
  padding-right: var(--margin-mobile);
}

@media (min-width: 768px) {
  .policy-container {
    padding-left: var(--margin-desktop);
    padding-right: var(--margin-desktop);
  }
}

.policy-card {
  background-color: #ffffff;
  border: 4px solid var(--color-primary);
  box-shadow: 8px 8px 0px 0px rgba(0, 0, 0, 1);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .policy-card {
    padding: 1.5rem;
  }
}

.policy-h1 {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
  text-transform: uppercase;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .policy-h1 {
    font-size: 1.1rem;
  }
}

.policy-h2 {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.875rem;
  color: var(--color-on-surface);
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.policy-p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--color-on-surface-variant);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.policy-list {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.policy-list li {
  margin-bottom: 0.5rem;
  color: var(--color-on-surface-variant);
}

/* Custom 1130px Breakpoint for Nav */
.desktop-nav {
  display: flex;
}
.burger-menu-btn {
  display: none;
}
@media (max-width: 1129px) {
  .desktop-nav {
    display: none !important;
  }
  .burger-menu-btn {
    display: block !important;
  }
}

/* Mobile Menu Styles */
.mobile-nav-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--color-surface-container-lowest);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-nav-overlay.open {
  transform: translateX(0);
}
.mobile-nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 3rem;
  color: var(--color-on-surface-variant);
  cursor: pointer;
  margin-bottom: 2rem;
}
.mobile-nav-close:hover {
  color: var(--color-primary);
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}
.mobile-nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-on-surface-variant);
  text-decoration: none;
  font-size: 1.5rem;
}
.mobile-nav-links a:hover {
  color: var(--color-primary);
}
