@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --lime: #A7E82F;
  --lime-soft: rgba(167, 232, 47, .35);
  --ink: #0a0c0a;
  --ink-deep: #0d1408;
  --paper: #EAF2E2;
  --muted: #AEB9A3;
  --muted-2: #8E9A83;
  --muted-3: #7E8B72;
  --line: #22301a;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  overflow: hidden;
  height: 100%;
}

* { box-sizing: border-box; }

body {
  position: fixed;
  inset: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--paper);
}

a { color: var(--lime); text-decoration: none; }
a:hover { color: #d6ff86; }
::selection { background: var(--lime); color: var(--ink); }

button { font-family: inherit; }

.gf-scroll::-webkit-scrollbar { width: 6px; }
.gf-scroll::-webkit-scrollbar-thumb { background: var(--lime); }

/* ---------- node labels (injected by three.js layer) ---------- */
.gf-label {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  text-align: center;
  font-family: 'Chakra Petch', sans-serif;
  color: var(--paper);
  white-space: nowrap;
  transition: color .2s;
}
.gf-label:hover { color: var(--lime); }
.gf-label b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  text-shadow: 0 0 18px rgba(10, 12, 10, .95);
  text-transform: uppercase;
}
.gf-label i {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-style: normal;
  font-size: 10px;
  letter-spacing: .28em;
  color: var(--lime);
  opacity: .85;
}

/* ---------- keyframes ---------- */
@keyframes gfpulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes gfrise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes gfglitch {
  0%, 86%, 100% { text-shadow: 0 0 60px rgba(10, 12, 10, .9); transform: none; }
  87% { text-shadow: 4px 0 var(--lime), -4px 0 rgba(255, 255, 255, .55), 0 0 60px rgba(10, 12, 10, .9); transform: translateX(-2px); }
  89% { text-shadow: -6px 0 var(--lime), 3px 0 rgba(255, 255, 255, .4), 0 0 60px rgba(10, 12, 10, .9); transform: translateX(3px) skewX(-1.2deg); }
  91% { text-shadow: 2px 0 var(--lime), -2px 0 rgba(255, 255, 255, .3), 0 0 60px rgba(10, 12, 10, .9); transform: none; }
  93% { text-shadow: 8px 0 var(--lime), -5px 0 rgba(255, 255, 255, .5), 0 0 60px rgba(10, 12, 10, .9); transform: translateX(-4px); }
}
@keyframes gfslice {
  0%, 100% { opacity: 0; } 4% { opacity: .5; } 7% { opacity: 0; }
  52% { opacity: 0; } 55% { opacity: .35; } 58% { opacity: 0; }
}
@keyframes gfblink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes gfstamp { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(-6deg) translateY(-2px); } }

/* ---------- app shell ---------- */
#app { position: fixed; inset: 0; overflow: hidden; }

#scene-host, #label-layer { position: absolute; inset: 0; }
#label-layer { z-index: 5; pointer-events: none; }

.overlay { position: absolute; inset: 0; pointer-events: none; }
.overlay--front { z-index: 6; }

#vignette-wide {
  background: radial-gradient(120% 90% at 50% 45%, rgba(10, 12, 10, 0) 35%, rgba(6, 8, 6, .8) 100%);
}
#vignette-hero {
  background: radial-gradient(52% 40% at 46% 50%, rgba(8, 10, 8, .95) 0%, rgba(8, 10, 8, .85) 55%, rgba(8, 10, 8, 0) 100%);
  transition: opacity .5s ease;
}
#scanlines {
  opacity: .16;
  background: repeating-linear-gradient(to bottom, rgba(167, 232, 47, .22) 0 1px, transparent 1px 4px);
}
#dot-overlay {
  opacity: .3;
  mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 0.6px, transparent 0.7px);
  background-size: 4px 4px;
}
#noise-overlay {
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
#diagonal-slice {
  background: repeating-linear-gradient(108deg, rgba(167, 232, 47, .14) 0 2px, transparent 2px 26px);
  animation: gfslice 9s infinite steps(1, end);
}
#top-slice-line {
  left: 0; right: 0; top: 34%; height: 3px;
  background: var(--lime); opacity: .5;
  animation: gfslice 7.5s infinite;
}

/* ---------- header ---------- */
#site-header {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: min(1440px, 100% - 48px);
  z-index: 45;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--paper); }
.brand-mark { display: block; width: 44px; height: 33px; overflow: hidden; flex: none; }
.brand-mark img { display: block; width: 110px; height: 110px; margin-left: -33px; margin-top: -29px; mix-blend-mode: screen; }
.brand-text { display: block; line-height: 1; }
.brand-name { display: block; font-family: 'Chakra Petch', sans-serif; font-size: 19px; font-weight: 700; letter-spacing: .01em; }
.brand-sub { display: block; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .2em; color: var(--muted-2); margin-top: 3px; }

.site-nav { display: flex; align-items: center; gap: 10px; }
.nav-btn {
  font: 500 11px 'JetBrains Mono', monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #C3CDB8;
  background: none;
  border: 1px solid var(--line);
  padding: 11px 13px;
  cursor: pointer;
  border-radius: 0;
  transition: border-color .2s, color .2s;
}
.nav-btn:hover { border-color: var(--lime); color: var(--paper); }
.cta-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 0;
  background: var(--lime);
  color: var(--ink-deep);
  font: 700 12px 'Chakra Petch', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 0 28px rgba(167, 232, 47, .35), 6px 6px 0 rgba(234, 242, 226, .16);
}

/* ---------- hero ---------- */
#hero {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(1440px, 100% - 48px);
  top: 96px;
  bottom: 112px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: center;
  text-align: center;
  pointer-events: none;
  transition: opacity .5s ease;
}
#hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 7px 12px;
  border: 1px solid var(--lime-soft);
  background: rgba(167, 232, 47, .08);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--lime);
}
.dot-blink { display: block; width: 7px; height: 7px; background: var(--lime); animation: gfblink 1.1s infinite steps(1, end); }
#hero-title {
  margin: 0;
  max-width: 16em;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 5.4vw, 74px);
  line-height: .98;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-wrap: balance;
  animation: gfglitch 6s infinite steps(1, end);
}
#hero-tarja {
  margin-top: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .22em;
  background: var(--lime);
  color: var(--ink-deep);
  padding: 5px 10px;
  font-weight: 500;
}
#hero-sub {
  margin: 20px 0 0;
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}
#hero-hint {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted-3);
}
.dot-pulse { display: block; width: 6px; height: 6px; border-radius: 99px; background: var(--lime); animation: gfpulse 1.6s infinite; }

/* ---------- bottom rail ---------- */
#rail {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(1440px, 100% - 48px);
  bottom: 22px;
  z-index: 16;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 24px;
  row-gap: 16px;
  transition: padding-right .55s cubic-bezier(.2, .8, .2, 1);
}
#dock { grid-column: 1 / -1; order: 3; display: flex; justify-content: center; }
#dock-list { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 100%; }
.dock-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: rgba(12, 16, 11, .6);
  color: var(--paper);
  cursor: pointer;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.dock-btn:hover { border-color: var(--lime); box-shadow: 4px 4px 0 rgba(167, 232, 47, .25); }
.dock-btn.is-active { border-color: var(--lime); background: rgba(167, 232, 47, .12); }
.dock-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-deep);
  background: var(--lime);
  padding: 2px 5px;
}

#terminal {
  grid-column: 1;
  order: 1;
  justify-self: start;
  pointer-events: none;
  width: min(420px, 100%);
  border: 1px solid var(--line);
  background: rgba(6, 9, 6, .72);
  padding: 0 0 8px;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .24em;
  color: var(--lime);
}
.terminal-dot { display: block; width: 6px; height: 6px; background: var(--lime); }
.terminal-body {
  padding: 10px 12px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  line-height: 1.9;
  color: var(--muted-3);
}
.terminal-cmd { color: #5E6B54; }
.terminal-cursor {
  display: inline-block;
  width: 7px; height: 11px;
  background: var(--lime);
  margin-left: 5px;
  vertical-align: -1px;
  animation: gfblink 1s infinite steps(1, end);
}

#cmd {
  grid-column: 2;
  order: 2;
  justify-self: end;
  width: 300px;
  border: 1px solid var(--lime);
  background: #060806;
  box-shadow: 8px 8px 0 rgba(167, 232, 47, .14);
  transition: box-shadow .15s ease;
}
#cmd.is-live { box-shadow: 8px 8px 0 rgba(167, 232, 47, .14), 0 0 0 2px var(--lime); }
.cmd-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 8px;
  background: var(--lime);
  color: var(--ink-deep);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .14em;
}
.cmd-titlebar-dots { display: flex; gap: 4px; }
.cmd-titlebar-dots span { display: block; width: 8px; height: 8px; border: 1px solid var(--ink-deep); }
#cmd-canvas-host { height: 150px; background: #060806; overflow: hidden; }
#cmd-canvas-host canvas { display: block; }
#cmd-hud {
  padding: 7px 9px 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  line-height: 1.8;
  letter-spacing: .08em;
  color: var(--muted-3);
  border-top: 1px solid #1b2615;
}

/* ---------- trust stamp ---------- */
#stamp {
  position: absolute;
  left: calc(50% - min(720px, 50% - 24px));
  top: 104px;
  z-index: 15;
  pointer-events: none;
  transition: opacity .5s ease;
  animation: gfstamp 5s ease-in-out infinite;
  border: 2px solid var(--paper);
  padding: 10px 14px;
  text-align: center;
  background: rgba(8, 11, 7, .6);
}
.stamp-line {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--paper);
  line-height: 1;
}
.stamp-line--accent { color: var(--lime); }
.stamp-sub {
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: .3em;
  color: var(--muted-2);
}

/* ---------- side panel ---------- */
#panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  z-index: 30;
  width: min(520px, 100vw);
  background: #080b07;
  border-left: 2px solid var(--lime);
  overflow-y: auto;
  padding: 122px 40px 56px;
  transform: translateX(100%);
  opacity: 0;
  transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .4s ease;
}
.panel-slice {
  position: absolute; top: 0; left: 0; right: 0; height: 74px;
  pointer-events: none;
  background: repeating-linear-gradient(108deg, rgba(167, 232, 47, .16) 0 3px, transparent 3px 14px);
}
#panel-close {
  position: absolute;
  top: 84px; left: 40px;
  width: 34px; height: 34px;
  border-radius: 0;
  border: 1px solid var(--lime);
  background: rgba(167, 232, 47, .08);
  color: var(--lime);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: background .15s, color .15s;
}
#panel-close:hover { background: var(--lime); color: var(--ink-deep); }
#panel-kicker {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--ink-deep);
  background: var(--lime);
  padding: 4px 8px;
}
#panel-title {
  margin: 14px 0 0;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.06;
  letter-spacing: 0;
  text-transform: uppercase;
}
#panel-body {
  margin: 14px 0 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}
#panel-image {
  display: none;
  width: 100%;
  height: auto;
  margin-top: 26px;
  border-radius: 0;
  border: 1px solid var(--line);
  filter: grayscale(.25) contrast(1.1);
}
#panel-groups { display: flex; flex-direction: column; gap: 30px; margin-top: 36px; }
.panel-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1e2a17;
}
.panel-group-dot { display: block; width: 5px; height: 5px; background: var(--lime); flex: none; }
.panel-group-label {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper);
}
.panel-group-items {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.panel-group-items li {
  padding: 7px 11px;
  border-radius: 0;
  background: rgba(167, 232, 47, .055);
  border: 1px solid rgba(167, 232, 47, .18);
  font: 500 12px 'JetBrains Mono', monospace;
  letter-spacing: .02em;
  color: #C9D4BE;
}
.panel-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  padding: 18px 22px;
  border-radius: 0;
  background: var(--lime);
  color: var(--ink-deep);
  box-shadow: 7px 7px 0 rgba(234, 242, 226, .18);
}
.panel-cta-title { display: block; font-family: 'Chakra Petch', sans-serif; font-size: 15px; font-weight: 700; }
.panel-cta-sub { display: block; font-family: 'JetBrains Mono', monospace; font-size: 11px; margin-top: 4px; opacity: .75; }
.panel-cta-arrow { font-size: 18px; }

.noscript-notice {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  font-family: sans-serif;
  text-align: center;
  padding: 24px;
}

/* ---------- no-js / no-webgl fallback ---------- */
#fallback-notice {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 60;
  max-width: 360px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(6, 9, 6, .85);
}
#fallback-notice a { display: inline-block; margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  #hero-title, #diagonal-slice, #top-slice-line, #stamp, .dot-blink, .dot-pulse, .terminal-cursor {
    animation: none !important;
  }
}
