/* ===== Just BLR Matrix — standalone WebGL landing ===== */

:root {
  --bg: #000000;
  --surface: #050505;
  --gold: #d5a642;
  --cyan: #46e7fe;
  --text: #ffffff;
  --text2: #a5b0c4;
  --border: rgba(255, 255, 255, 0.15);
  --glass: rgba(255, 255, 255, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; color: inherit; font: inherit; }

.font-display { font-family: "Anton", "Arial Narrow", Impact, sans-serif; letter-spacing: 0.01em; text-transform: uppercase; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10px; letter-spacing: 0.45em; text-transform: uppercase; }
.accent-gold { color: var(--gold); }
.accent-cyan { color: var(--cyan); }
.stroke-gold { color: transparent; -webkit-text-stroke: 1.5px var(--gold); }
.stroke-cyan { color: transparent; -webkit-text-stroke: 1.5px var(--cyan); }
.label { margin-bottom: 2.5rem; }
::selection { background: rgba(213, 166, 66, 0.85); color: #000; }

/* ---- preloader ---- */
#preloader {
  position: fixed; inset: 0; z-index: 100; background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.pre-brand { color: var(--text2); letter-spacing: 0.5em; }
.pre-count { font-size: clamp(5rem, 9vw, 9rem); line-height: 1; }
.pre-pct { font-size: 1.5rem; color: var(--gold); }
.pre-bar { width: 12rem; height: 1px; background: rgba(255,255,255,0.1); overflow: hidden; }
#pre-fill { height: 100%; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.pre-sub { color: rgba(165,176,196,0.6); letter-spacing: 0.4em; }

/* ---- cursor ---- */
#cursor-ring, #cursor-dot { position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; border-radius: 50%; opacity: 0; }
#cursor-ring { width: 36px; height: 36px; border: 1px solid rgba(213,166,66,0.7); mix-blend-mode: difference; }
#cursor-dot { width: 6px; height: 6px; background: var(--cyan); }
@media (pointer: coarse) { #cursor-ring, #cursor-dot { display: none; } }

/* ---- scene + overlays ---- */
#scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#scene canvas { position: absolute; inset: 0; }
.scene-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 40%, #0a0d14 0%, #000 70%); }
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.6s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0,0); } 25% { transform: translate(-3%,2%); }
  50% { transform: translate(2%,-3%); } 75% { transform: translate(-2%,-2%); } 100% { transform: translate(0,0); }
}
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 120% 100% at 50% 50%, transparent 55%, rgba(0,0,0,0.55) 100%); }

/* ---- nav ---- */
#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; }
#nav img { height: 44px; width: auto; }
.nav-cta { color: var(--gold); border: 1px solid rgba(213,166,66,0.5); padding: 0.7rem 1.2rem; letter-spacing: 0.3em; white-space: nowrap; transition: background 0.3s, color 0.3s; }
.nav-cta:hover { background: var(--gold); color: #000; }

/* ---- sections (each stacks above the fixed canvas on its own —
        never wrap them in one huge positioned layer: >16384 device px
        composited layers blank the GPU raster) ---- */
#content section, #content footer { position: relative; }

/* hero */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 7rem 1.5rem 4rem; }
.kicker { color: var(--text2); margin-bottom: 2rem; }
.hero h1 { font-size: clamp(3rem, 10.5vw, 11rem); line-height: 1; }
.line-mask { display: block; overflow: hidden; }
.hero-line { display: block; }
.hero-row { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 2.5rem; }
.hero-copy { max-width: 28rem; color: var(--text2); line-height: 1.7; font-size: 1.05rem; }
.hero-ctas { display: flex; align-items: center; gap: 1.5rem; }
.btn-outline { position: relative; padding: 1rem 2rem; border: 1px solid var(--gold); color: var(--gold);
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; transition: color 0.3s, background 0.3s; }
.btn-outline:hover { background: var(--gold); color: #000; }
.link-under { color: var(--text2); letter-spacing: 0.3em; white-space: nowrap;
  text-decoration: underline; text-underline-offset: 8px; text-decoration-color: rgba(255,255,255,0.2); transition: color 0.3s; }
.link-under:hover { color: var(--cyan); }
.scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem; color: rgba(165,176,196,0.6); }
.scroll-hint .mono { font-size: 9px; letter-spacing: 0.5em; }
.scroll-line { width: 1px; height: 2.5rem; background: linear-gradient(to bottom, var(--gold), transparent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

/* manifesto */
.manifesto { min-height: 80vh; display: flex; align-items: center; padding: 8rem 1.5rem; }
.manifesto-inner { max-width: 64rem; margin: 0 auto; }
.manifesto-text { font-size: clamp(1.8rem, 4vw, 3.6rem); font-weight: 500; line-height: 1.25; }

/* pillars */
.pillar { min-height: 100vh; display: flex; align-items: center; padding: 7rem 1.5rem; }
.pillar-inner { width: 100%; max-width: 36rem; position: relative; }
.pillar.align-right .pillar-inner { margin-left: auto; }
.pillar-num { position: absolute; top: -6rem; left: -1rem; font-size: clamp(9rem, 14vw, 13rem); line-height: 1;
  color: rgba(255,255,255,0.045); pointer-events: none; user-select: none; }
.pillar.align-right .pillar-num { left: auto; right: -1rem; }
.pillar h2 { font-size: clamp(3.75rem, 8vw, 6rem); line-height: 0.9; margin-bottom: 1rem; }
.pillar-tag { font-size: 1.15rem; margin-bottom: 1.5rem; }
.pillar-body { color: var(--text2); line-height: 1.7; margin-bottom: 2.5rem; }
.pillar-thumbs { display: flex; gap: 0.75rem; margin-bottom: 2.5rem; }
.pillar-thumbs a { position: relative; width: 6.5rem; height: 6.5rem; border: 1px solid var(--border);
  background: var(--glass); overflow: hidden; flex-shrink: 0; }
.pillar-thumbs img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: opacity 0.5s, transform 0.5s; }
.pillar-thumbs a:hover img { opacity: 1; transform: scale(1.1); }
.pillar-cta { display: inline-block; padding: 0.9rem 1.75rem; border: 1px solid; letter-spacing: 0.3em;
  font-size: 11px; transition: background 0.3s; }
.pillar-cta:hover { background: rgba(255,255,255,0.05); }
.pillar-cta.gold { border-color: var(--gold); color: var(--gold); }
.pillar-cta.cyan { border-color: var(--cyan); color: var(--cyan); }

/* gallery */
.gallery { overflow: hidden; }
.gallery-head { padding: 6rem 1.5rem 2.5rem; }
.gallery-head h2 { font-size: clamp(2.75rem, 6vw, 4.5rem); }
.gallery-head .accent-cyan { color: var(--cyan); }
.track { display: flex; gap: 1.5rem; padding: 0 1.5rem 6rem; width: max-content; }
.card { position: relative; width: 26rem; flex-shrink: 0; border: 1px solid var(--border);
  background: rgba(5,5,5,0.9); overflow: hidden; }
.card-idx { position: absolute; top: 1rem; left: 1rem; z-index: 2; font-size: 10px; letter-spacing: 0.3em; color: var(--text2); }
.card-cat { position: absolute; top: 1rem; right: 1rem; z-index: 2; font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(70,231,254,0.8); border: 1px solid rgba(70,231,254,0.3); padding: 0.25rem 0.5rem; }
.card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.4);
  transition: filter 0.7s, transform 0.7s; }
.card:hover .card-img img { filter: grayscale(0); transform: scale(1.05); }
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 50%); }
.card-meta { padding: 1.25rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.card-meta h3 { font-size: 1rem; font-weight: 500; line-height: 1.4; transition: color 0.3s; }
.card:hover .card-meta h3 { color: var(--gold); }
.card-price { font-family: "JetBrains Mono", monospace; font-size: 0.85rem; color: var(--gold); white-space: nowrap; }
.card-all { width: 20rem; min-height: 20rem; flex-shrink: 0; border: 1px solid rgba(213,166,66,0.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
.card-all .font-display { font-size: 2.25rem; color: var(--gold); transition: transform 0.5s; }
.card-all:hover .font-display { transform: scale(1.1); }
.card-all .mono { color: var(--text2); letter-spacing: 0.4em; }

/* plasma */
.plasma { padding: 8rem 1.5rem; display: flex; justify-content: center; }
.plasma-panel { position: relative; width: 100%; max-width: 64rem; border: 1px solid rgba(213,166,66,0.3);
  background: rgba(0,0,0,0.6); backdrop-filter: blur(12px); padding: 4rem 2rem; overflow: hidden; }
.plasma-heat { position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
  background: radial-gradient(ellipse 60% 50% at 50% 110%, rgba(213,166,66,0.35) 0%, transparent 70%); }
.plasma-panel h2 { font-size: clamp(3.75rem, 8vw, 6rem); line-height: 0.9; margin-bottom: 1.5rem; }
.plasma-copy { max-width: 36rem; color: var(--text2); line-height: 1.7; margin-bottom: 2.5rem; }
.plasma-row { display: flex; flex-direction: column; gap: 2rem; }
.plasma-price { display: flex; align-items: baseline; gap: 1rem; }
.plasma-price .font-display { font-size: clamp(2.75rem, 5vw, 3.75rem); }
.strike { font-size: 1.1rem; color: var(--text2); text-decoration: line-through; letter-spacing: 0.05em; }
.plasma-note { color: var(--text2); letter-spacing: 0.3em; margin-top: 0.5rem; }
.btn-solid { display: inline-block; padding: 1.25rem 2.5rem; background: var(--gold); color: #000;
  font-size: 11px; letter-spacing: 0.3em; transition: background 0.3s; }
.btn-solid:hover { background: var(--cyan); }

/* stats */
.stats { padding: 6rem 1.5rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); overflow: hidden; }
.marquee-wrap { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  overflow: hidden; pointer-events: none; user-select: none; }
.marquee { display: flex; white-space: nowrap; font-size: clamp(3rem, 6vw, 4.5rem); color: rgba(255,255,255,0.05);
  animation: marquee-scroll 45s linear infinite; }
.marquee span { flex-shrink: 0; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; max-width: 72rem; margin: 0 auto; }
.stat { text-align: center; }
.stat-val { font-family: "Anton", sans-serif; font-size: clamp(2.75rem, 5vw, 3.75rem); color: var(--gold); }
.stat-val .accent-cyan { color: var(--cyan); }
.stat-label { font-size: 10px; letter-spacing: 0.25em; color: var(--text2); margin-top: 0.75rem; }

/* finale */
.finale { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 8rem 1.5rem; }
.finale .label { color: var(--text2); }
.finale h2 { font-size: clamp(4rem, 9vw, 9rem); line-height: 0.88; }
.finale-copy { max-width: 28rem; color: var(--text2); line-height: 1.7; margin: 2rem 0 3rem; }
.btn-round { position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 12rem; height: 12rem; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold);
  font-size: 11px; letter-spacing: 0.35em; overflow: hidden; }
.btn-round-fill { position: absolute; inset: 0; border-radius: 50%; background: var(--gold);
  transform: scale(0); transition: transform 0.5s ease-out; }
.btn-round:hover .btn-round-fill { transform: scale(1); }
.btn-round-label { position: relative; transition: color 0.3s; }
.btn-round:hover .btn-round-label { color: #000; }

/* footer */
.foot { display: flex; justify-content: space-between; padding: 2rem 1.5rem; color: var(--text2);
  border-top: 1px solid var(--border); letter-spacing: 0.2em; font-size: 10px; }
.foot a:hover { color: var(--gold); }

.magnetic { display: inline-block; }

/* ---- responsive ---- */
@media (min-width: 768px) {
  #nav { padding: 1.25rem 4rem; }
  .hero, .pillar, .manifesto { padding-left: 4rem; padding-right: 4rem; }
  .gallery-head, .plasma, .stats { padding-left: 4rem; padding-right: 4rem; }
  .track { padding-left: 4rem; padding-right: 4rem; }
  .hero-row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .plasma-row { flex-direction: row; align-items: center; }
  .plasma-row .magnetic { margin-left: auto; }
  .plasma-panel { padding: 5rem 4rem; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .pillar-num { left: -2.5rem; }
  .pillar.align-right .pillar-num { left: auto; right: -2.5rem; }
  .btn-round { width: 13rem; height: 13rem; }
}
@media (max-width: 767px) {
  .track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; }
  .card { width: 72vw; scroll-snap-align: start; }
  .card-all { width: 60vw; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .marquee, .scroll-line { animation: none; }
}
