:root {
  --bg-dark: #0a0a0c;
  --bg-panel: #111114;
  --emerald: #6eb883;
  --emerald-dim: rgba(110, 184, 131, 0.1);
  --emerald-border: rgba(110, 184, 131, 0.3);
  --text-main: #e4e4e7;
  --text-dim: #a1a1aa;
  --accent-orange: #f59e0b;
  --font-mono: 'JetBrains Mono', 'Space Mono', monospace;
  --font-sans: 'Inter', -apple-system, blinkmacsystemfont, sans-serif;
  --radius: 4px;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Effects */
.scanlines {
  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% 4px, 3px 100%;
  pointer-events: none;
  z-index: 100;
  opacity: 0.15;
}

.glow-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 50% 50%, rgba(110, 184, 131, 0.05) 0%, transparent 80%);
  pointer-events: none;
  z-index: -1;
}

/* Layout - The Soup Grid */
.websoup-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: min-content;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px;
}

/* Cinematic Banner Upgrade */
.title-header {
  grid-column: span 12;
  margin-bottom: 60px;
  position: relative;
  height: 480px;
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  padding: 0 60px;
}

.banner-asset-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  z-index: 1;
  animation: banner-float 20s infinite alternate ease-in-out;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(10, 10, 12, 0.95) 0%, rgba(10, 10, 12, 0.4) 50%, transparent 100%);
  z-index: 2;
}

.hero-text-wrap {
  position: relative;
  z-index: 10;
  max-width: 700px;
}

@keyframes banner-float {
  from { transform: scale(1.0) translate(0, 0); }
  to { transform: scale(1.1) translate(-2%, -2%); }
}

.hero-tag {
  font-family: var(--font-mono);
  color: var(--emerald);
  letter-spacing: 2px;
  font-size: 13px;
  margin-bottom: 16px;
  display: block;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -3px;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 28px;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.8));
}

.hero-title span {
  color: var(--emerald);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 600px;
  font-weight: 300;
}

/* Windows / Blocks */
.soup-block {
  background: var(--bg-panel);
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.soup-block:hover {
  border-color: var(--emerald);
}

.block-header {
  height: 28px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--emerald-border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.block-body {
  padding: 24px;
}

/* Specific Block Sizing */
.block-trio { grid-column: span 8; grid-row: span 2; }
.block-price { grid-column: span 4; grid-row: span 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;}
.block-trace { grid-column: span 4; grid-row: span 2; height: 100%;}
.block-provenance { grid-column: span 4; grid-row: span 1; }
.block-architecture { grid-column: span 12; }
.block-span-6 { grid-column: span 6; }
.block-span-12 { grid-column: span 12; }
.block-span-6 { grid-column: span 6; }
.block-span-4 { grid-column: span 4; }

/* Pricing Block Styling */
.price-tag {
  font-family: var(--font-mono);
  font-size: 100px;
  line-height: 1;
  font-weight: 900;
  color: var(--emerald);
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(110, 184, 131, 0.4);
}

.btn-buy {
  background: var(--emerald);
  color: var(--bg-dark);
  border: none;
  padding: 16px 40px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 1px;
  border-radius: 2px;
  transition: all 0.2s ease;
  font-size: 14px;
}

.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(110, 184, 131, 0.3);
  background: #fff;
}

/* Trio Diagram */
.trio-visual {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding-top: 20px;
}

.trio-node {
  width: 140px;
  text-align: center;
  position: relative;
  z-index: 5;
}

.node-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--emerald-border);
  background: var(--bg-dark);
  border-radius: 50%;
  color: var(--emerald);
}

.node-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #fff;
  margin-bottom: 8px;
}

.node-desc {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
}

.trio-line {
  position: absolute;
  top: 30px;
  left: 60px;
  right: 60px;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--emerald-border) 20%, 
    var(--emerald) 50%, 
    var(--emerald-border) 80%, 
    transparent 100%);
  z-index: 1;
}

/* Terminal Trace */
.trace-content {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-main);
  height: 280px;
  overflow-y: auto;
  line-height: 1.5;
}

.trace-line {
  margin-bottom: 2px;
  opacity: 0;
  animation: fadeIn 0.1s forwards;
}

.trace-line span {
  color: var(--emerald);
}

.trace-ts {
  color: var(--text-dim);
  margin-right: 12px;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: translateY(0); } }

/* Ledger Items */
.ledger-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
}

.ledger-item:last-child { border-bottom: none; }
.ledger-label { color: var(--text-dim); }
.ledger-value { color: var(--emerald); font-family: var(--font-mono); }

/* Glitch Utility */
.glitch { position: relative; }
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--bg-dark);
  clip: rect(0, 0, 0, 0);
  animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(10px, 9999px, 50px, 0); transform: skew(0.5deg); }
  20% { clip: rect(30px, 9999px, 10px, 0); transform: skew(-0.5deg); }
  40% { clip: rect(60px, 9999px, 40px, 0); transform: skew(1deg); }
  60% { clip: rect(20px, 9999px, 80px, 0); transform: skew(-1deg); }
  80% { clip: rect(40px, 9999px, 20px, 0); transform: skew(0.5deg); }
  100% { clip: rect(70px, 9999px, 60px, 0); transform: skew(-0.5deg); }
}

/* Grid Refinement for Depth Blocks */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 1024px) {
  .websoup-container { 
    grid-template-columns: 1fr; 
    padding: 40px 20px;
  }
  .block-trio, .block-price, .block-trace, .block-provenance, .block-architecture, .block-span-6, .block-span-4 { 
    grid-column: span 1; 
  }
  .grid-2-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .trio-visual { flex-direction: column; gap: 40px; }
  .trio-line { display: none; }
}
