@import url('https://fonts.googleapis.com/css2?family=Anonymous+Pro:wght@400;700&family=Kode+Mono:wght@400;700&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  --color-bg: #000000;
  --color-text-primary: #ffffff;
  --color-text-secondary: #a2a2a2;
  --color-accent-red: #ff0000;
  --color-accent-green: #19e65a;
  --color-border: #262626;
  --font-mono: 'Space Mono', 'Kode Mono', 'Anonymous Pro', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: crosshair;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  overflow-x: hidden;
  position: relative;
  text-transform: uppercase;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: #000;
}
::-webkit-scrollbar-thumb {
  background: var(--color-accent-red);
}

/* Scaling Layout Wrapper (Inspired by gobold.live) */
#page {
  position: relative;
  width: 1024px;
  margin: 0 auto;
  transform-origin: top center;
  background: var(--color-bg);
  overflow: visible;
}

/* Background overlay lines & CRT Glitch Filter */
.crt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 3px, 6px 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.45;
}

.pixel-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 12px 12px;
  z-index: 1;
  pointer-events: none;
}

/* Preloader styles */
#siteLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: var(--font-mono);
  color: var(--color-accent-red);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#siteLoader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-terminal {
  width: 450px;
  text-align: left;
  border: 1px solid var(--color-border);
  padding: 20px;
  background: #050505;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.1);
}
.loader-line {
  margin-bottom: 8px;
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid transparent;
}
.loader-progress-bar {
  width: 100%;
  height: 6px;
  background: #111;
  margin-top: 15px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.loader-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--color-accent-red);
  box-shadow: 0 0 10px var(--color-accent-red);
}

/* Fixed Header Layer */
#fixedLayer2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none;
}
.header-container {
  width: 1024px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  pointer-events: auto;
}
.header-left {
  display: flex;
  gap: 20px;
  font-size: 11px;
}
.header-left a {
  color: var(--color-accent-red);
  text-decoration: none;
  font-weight: bold;
}
.header-left button {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
}
.header-left button:hover {
  color: var(--color-text-primary);
}
.brand-logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -1px;
  color: var(--color-text-primary);
  text-decoration: none;
}
.brand-logo span {
  color: var(--color-accent-red);
}
.header-right {
  display: flex;
  gap: 25px;
  font-size: 12px;
}
.header-right a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
}
.header-right a:hover {
  color: var(--color-accent-red);
  border-bottom: 1px solid var(--color-accent-red);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 900px;
  padding-top: 150px;
  border-bottom: 1px solid var(--color-border);
}
.giant-title-container {
  padding: 0 30px;
  z-index: 2;
  position: relative;
  pointer-events: none;
}
.giant-title-line {
  font-size: 96px;
  line-height: 85px;
  font-weight: 700;
  letter-spacing: -5px;
  pointer-events: auto;
  transition: color 0.1s;
}
.giant-title-line:hover {
  color: var(--color-accent-red);
}
.hero-tagline {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: 25px;
  letter-spacing: 2px;
  padding: 0 30px;
}

/* 3D Canvas Port */
#scene3d {
  position: absolute;
  top: 0;
  left: 0;
  width: 1024px;
  height: 900px;
  z-index: 1;
  pointer-events: none;
}

/* Floating Glitch Info Box */
#gBoxWrap {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 999;
  pointer-events: none;
  display: none;
}
#gBoxWrap.on {
  display: block;
}
#gBox {
  width: 320px;
  background: rgba(5, 5, 5, 0.95);
  border: 1px solid var(--color-accent-red);
  padding: 20px;
  pointer-events: auto;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.3);
  position: relative;
}
#gBox.gx {
  animation: glitchBoxIn 0.3s steps(2) forwards;
}
#gBox.gxo {
  animation: glitchBoxOut 0.3s steps(2) forwards;
}
.gb-x {
  position: absolute;
  top: 10px;
  right: 15px;
  color: var(--color-accent-red);
  font-size: 12px;
  cursor: pointer;
}
.gb-t {
  font-size: 14px;
  color: var(--color-accent-red);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 5px;
}
.gb-d {
  font-size: 12px;
  color: var(--color-text-primary);
  line-height: 18px;
}

/* Section Header styling */
.section-header {
  font-size: 24px;
  color: var(--color-text-primary);
  padding: 50px 30px 20px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-header span {
  font-size: 12px;
  color: var(--color-accent-red);
}

/* Products Showcase (replaces Services Grid) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  border-bottom: 1px solid var(--color-border);
}
.product-card {
  height: 520px;
  border-right: 1px solid var(--color-border);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.product-card:last-child {
  border-right: none;
}
.product-card:hover {
  background: rgba(255, 0, 0, 0.02);
}
.prod-id {
  font-size: 11px;
  color: var(--color-accent-red);
}
.prod-visual {
  width: 100%;
  height: 240px;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #020202;
}
.prod-visual canvas {
  width: 100%;
  height: 100%;
}
.prod-visual-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 80%, rgba(255, 0, 0, 0.15) 100%);
  pointer-events: none;
}
.laser-scanner {
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--color-accent-red);
  box-shadow: 0 0 8px var(--color-accent-red);
  left: 0;
  animation: scanLoop 4s linear infinite;
  opacity: 0.7;
}
.prod-title {
  font-size: 22px;
  font-weight: 700;
  margin-top: 15px;
  letter-spacing: -1px;
}
.prod-desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 18px;
  margin-top: 10px;
}
.prod-meta {
  margin-top: 20px;
  border-top: 1px solid var(--color-border);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.prod-status {
  font-size: 10px;
  background: rgba(25, 230, 90, 0.1);
  color: var(--color-accent-green);
  padding: 3px 8px;
  border: 1px solid var(--color-accent-green);
}
.prod-status.sold-out {
  background: rgba(255, 0, 0, 0.1);
  color: var(--color-accent-red);
  border: 1px solid var(--color-accent-red);
}
.prod-price {
  font-size: 14px;
  font-weight: 700;
}

/* Philosophy Accordions */
.faq-section {
  width: 100%;
  border-bottom: 1px solid var(--color-border);
}
.faq-item {
  border-top: 1px solid var(--color-border);
}
.faq-item:first-child {
  border-top: none;
}
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  font-size: 16px;
  text-align: left;
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-q:hover {
  background: rgba(255, 0, 0, 0.02);
  color: var(--color-accent-red);
}
.faq-q span {
  font-size: 14px;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 22px;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
}
.faq-item.open .faq-a {
  padding-bottom: 25px;
  max-height: 200px;
}

/* Custom Mini Game Section (Eden Run style) */
#snakeBand {
  border-bottom: 1px solid var(--color-border);
  width: 100%;
  background: #020202;
  overflow: hidden;
}
.sb-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  border-bottom: 1px solid var(--color-border);
}
.sb-title {
  font-weight: 700;
  color: var(--color-accent-red);
  letter-spacing: 2px;
}
.sb-score {
  font-size: 11px;
}
.sb-stage {
  position: relative;
  width: 1024px;
  height: 380px;
  display: flex;
  justify-content: center;
  align-items: center;
}
#sbCanvas {
  background: #000;
  border: 1px solid var(--color-border);
}
.sb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  z-index: 5;
}
.sb-overlay button {
  background: transparent;
  border: 1px solid var(--color-accent-red);
  color: var(--color-accent-red);
  font-family: var(--font-mono);
  padding: 10px 25px;
  margin-top: 15px;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(255,0,0,0.1);
  transition: all 0.2s;
}
.sb-overlay button:hover {
  background: var(--color-accent-red);
  color: #000;
  box-shadow: 0 0 15px var(--color-accent-red);
}
.sb-info {
  margin-top: 10px;
  font-size: 10px;
  color: var(--color-text-secondary);
}

/* Multi-step Drop Intake Form */
#intakeSection {
  padding: 80px 30px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
}
.intake-left {
  width: 450px;
}
.intake-left h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 20px;
  line-height: 40px;
}
.intake-left p {
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 22px;
}
.intake-right {
  width: 420px;
  border: 1px solid var(--color-border);
  background: #020202;
  padding: 30px;
  position: relative;
}
.ik-bar {
  font-size: 11px;
  color: var(--color-accent-red);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
}
.ik-prompt {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 15px;
}
.ik-step {
  display: none;
}
.ik-step.is-on {
  display: block;
}
.ik-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 15px;
}
.ik-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  padding: 12px;
  font-size: 11px;
  text-align: left;
  transition: all 0.2s;
}
.ik-btn:hover {
  border-color: var(--color-accent-red);
  color: var(--color-accent-red);
}
.ik-btn.selected {
  border-color: var(--color-accent-red);
  background: rgba(255, 0, 0, 0.05);
  color: var(--color-text-primary);
}
.ik-email-input {
  width: 100%;
  background: #000;
  border: 1px solid var(--color-border);
  color: #fff;
  font-family: var(--font-mono);
  padding: 12px;
  font-size: 12px;
  margin-top: 15px;
  text-transform: uppercase;
}
.ik-email-input:focus {
  outline: none;
  border-color: var(--color-accent-red);
}
.ik-submit-btn {
  width: 100%;
  background: transparent;
  border: 1px solid var(--color-accent-red);
  color: var(--color-accent-red);
  font-family: var(--font-mono);
  padding: 12px;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.2s;
}
.ik-submit-btn:hover {
  background: var(--color-accent-red);
  color: #000;
}
.ik-dots {
  display: flex;
  gap: 8px;
  margin-top: 25px;
}
.ik-dot {
  width: 6px;
  height: 6px;
  background: var(--color-border);
}
.ik-dot.active {
  background: var(--color-accent-red);
}

/* Contact / Email reveal footer */
#endcap {
  padding: 100px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}
.ec-meta {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-bottom: 15px;
  letter-spacing: 2px;
}
.ec-head {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
  letter-spacing: -2px;
  transition: color 0.1s;
}
.ec-head:hover {
  color: var(--color-accent-red);
  text-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

/* Footer Copyright bar */
.footer-bar {
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--color-text-secondary);
}

/* Animations */
@keyframes scanLoop {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

@keyframes glitchBoxIn {
  0% { transform: translate(-50%, -50%) skewX(10deg); opacity: 0.3; }
  50% { transform: translate(-50%, -52%) skewX(-5deg); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) skewX(0); opacity: 1; }
}

@keyframes glitchBoxOut {
  0% { transform: translate(-50%, -50%) skewX(0); opacity: 1; }
  50% { transform: translate(-50%, -48%) skewX(-15deg); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) skewX(0); opacity: 0; display: none; }
}

/* Invert layout class triggers */
.inverted {
  filter: invert(1) hue-rotate(180deg);
}

/* Mobile responsive styles specifically for fallback layouts */
@media (max-width: 768px) {
  /* Layout handled by scaling engine primarily, but standard overrides for fluid viewports are listed below if needed */
}
