:root {
  --void: #0e0e0e;
  --ink: #f4f0e8;
  --muted: #908b82;
  --red: #a61a1a;
  --blue: #16324f;
  --blue-hot: #23527d;
  --panel: rgba(14, 14, 14, .78);
  --line: rgba(244, 240, 232, .16);
  --font-display: "Space Grotesk", sans-serif;
  --font-mono: "Share Tech Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--void);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  background:
    linear-gradient(115deg, rgba(166, 26, 26, .24), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(22, 50, 79, .55), transparent 28%),
    linear-gradient(180deg, #161616 0%, var(--void) 42%, #070707 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(166, 26, 26, .18) 48% 49%, transparent 49% 100%),
    repeating-linear-gradient(100deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 82px);
  transform: skewY(-8deg) scale(1.1);
}

.noise,
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.noise {
  z-index: 5;
  opacity: .13;
  background-image:
    repeating-radial-gradient(circle at 12% 44%, rgba(255, 255, 255, .48) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
  animation: noise-shift .42s steps(2, end) infinite;
}

.scanlines {
  z-index: 6;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .045), rgba(255, 255, 255, .045) 1px, transparent 1px, transparent 4px);
  opacity: .48;
}

.signal-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 22px 24px;
}

.transmission {
  width: min(1040px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.signal-tag,
.signal-copy,
.transmission-meta,
.countdown-grid,
.email-form label,
.form-message,
.admin-panel label,
.admin-panel input,
.admin-panel textarea,
.admin-panel select,
.admin-panel button,
.ghost-button,
.subscriber-row span {
  font-family: var(--font-mono);
}

.signal-tag {
  margin: 0 0 8px;
  color: var(--red);
  font-size: clamp(.82rem, 1.6vw, 1rem);
  letter-spacing: 0;
  text-transform: lowercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.glitch {
  position: relative;
  display: inline-block;
  margin: 0;
  color: var(--ink);
  font-size: clamp(4.7rem, 17vw, 15rem);
  font-weight: 700;
  line-height: .78;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: -4px 0 var(--red), 5px 0 var(--blue);
  animation: signal-break 5s steps(1, end) infinite;
}

.logo-glitch {
  width: min(340px, 64vw);
  min-height: clamp(100px, 20vw, 240px);
  font-size: 0;
  line-height: 0;
  isolation: isolate;
}

.brand-mark,
.brand-mark::before,
.brand-mark::after {
  position: absolute;
  inset: 0;
  background-image: url("Z_glitch_final.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  mix-blend-mode: screen;
}

.brand-mark {
  display: block;
  filter:
    drop-shadow(-13px 0 0 rgba(166, 26, 26, .46))
    drop-shadow(13px 0 0 rgba(22, 50, 79, .54))
    drop-shadow(0 0 32px rgba(244, 240, 232, .2));
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  z-index: -1;
  opacity: .72;
}

.brand-mark::before {
  transform: translate(-18px, -4px);
  filter: sepia(1) saturate(7) hue-rotate(314deg);
  clip-path: inset(0 0 54% 0);
}

.brand-mark::after {
  transform: translate(16px, 7px);
  filter: sepia(1) saturate(6) hue-rotate(170deg);
  clip-path: inset(44% 0 0 0);
}

.glitch::before,
.glitch::after,
.glitch-small::before,
.glitch-small::after {
  position: absolute;
  inset: 0;
  content: attr(data-text);
  overflow: hidden;
  pointer-events: none;
}

.logo-glitch::before,
.logo-glitch::after {
  content: none;
}

.glitch::before,
.glitch-small::before {
  color: var(--red);
  transform: translate(-8px, -2px);
  clip-path: inset(0 0 58% 0);
}

.glitch::after,
.glitch-small::after {
  color: var(--blue-hot);
  transform: translate(7px, 3px);
  clip-path: inset(46% 0 0 0);
}

.signal-copy {
  max-width: 720px;
  margin: 6px auto 18px;
  color: rgba(244, 240, 232, .78);
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.transmission-meta {
  display: flex;
  width: min(720px, 100%);
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: rgba(244, 240, 232, .86);
}

.countdown-grid {
  display: grid;
  width: min(720px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, .32);
  box-shadow: 0 0 46px rgba(166, 26, 26, .16), inset 0 0 42px rgba(22, 50, 79, .2);
}

.countdown-grid div {
  min-width: 0;
  padding: 10px 10px;
  border-right: 1px solid var(--line);
}

.countdown-grid div:last-child {
  border-right: 0;
}

.countdown-grid strong {
  display: block;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 1;
}

.countdown-grid span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .85rem;
}

.email-form {
  width: min(720px, 100%);
  margin: 16px auto 0;
}

.email-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

.input-line {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid rgba(166, 26, 26, .65);
  background: rgba(14, 14, 14, .82);
  box-shadow: 12px 12px 0 rgba(22, 50, 79, .42);
}

input,
textarea,
select,
button {
  border-radius: 0;
  font: inherit;
}

.email-form input,
.admin-panel input,
.admin-panel textarea,
.admin-panel select {
  width: 100%;
  border: 1px solid var(--line);
  outline: 0;
  color: var(--ink);
  background: rgba(0, 0, 0, .42);
}

.email-form input {
  min-width: 0;
  padding: 13px 16px;
  border: 0;
  font-family: var(--font-mono);
}

.email-form button,
.admin-panel button,
.ghost-button {
  border: 1px solid var(--red);
  color: var(--ink);
  background: var(--red);
  cursor: pointer;
  text-transform: lowercase;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.email-form button {
  padding: 0 24px;
  white-space: nowrap;
}

.email-form button:hover,
.admin-panel button:hover,
.ghost-button:hover {
  transform: translate(-2px, -2px);
  background: var(--blue);
}

.form-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--muted);
}

.form-message.success {
  color: #d8ddd8;
}

.form-message.error,
.alert.error {
  color: #ff8585;
}

.page-admin {
  min-height: 100vh;
}

.admin-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 34px 22px 72px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 38px;
}

.admin-brand {
  position: relative;
  color: var(--ink);
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 24px;
}

.admin-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: clamp(22px, 4vw, 38px);
  box-shadow: 12px 12px 0 rgba(22, 50, 79, .36);
}

.admin-panel.compact {
  max-width: 460px;
  margin: 12vh auto 0;
}

.admin-panel h1,
.admin-panel h2 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: .95;
}

.stack-form {
  display: grid;
  gap: 12px;
}

.admin-panel input,
.admin-panel textarea,
.admin-panel select {
  padding: 13px 14px;
}

.admin-panel textarea {
  resize: vertical;
}

.admin-panel button,
.ghost-button {
  justify-self: start;
  padding: 13px 22px;
}

.ghost-button {
  background: transparent;
}

.alert {
  margin: 0 0 12px;
  font-family: var(--font-mono);
}

.alert.success {
  color: #bce2c0;
}

.subscriber-list {
  display: grid;
  max-height: 520px;
  gap: 10px;
  overflow: auto;
  padding-right: 6px;
}

.subscriber-row {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.subscriber-row strong {
  overflow-wrap: anywhere;
}

.subscriber-row span,
.muted {
  color: var(--muted);
}

@keyframes noise-shift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-2%, 1%); }
  100% { transform: translate(1%, -2%); }
}

@keyframes signal-break {
  0%, 91%, 100% { transform: translate(0, 0) skewX(0); filter: none; }
  92% { transform: translate(8px, -3px) skewX(7deg); filter: contrast(1.6); }
  93% { transform: translate(-10px, 2px) skewX(-9deg); }
  94% { transform: translate(2px, 0) skewX(0); }
}

@media (max-width: 760px) {
  .signal-shell {
    place-items: center;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .transmission-meta,
  .input-line {
    grid-template-columns: 1fr;
  }

  .transmission-meta {
    display: grid;
  }

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

  .countdown-grid div:nth-child(2) {
    border-right: 0;
  }

  .countdown-grid div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .email-form button {
    min-height: 46px;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-header {
    align-items: flex-start;
    gap: 18px;
  }
}

@media (max-height: 760px) {
  .logo-glitch {
    width: min(280px, 55vw);
    min-height: clamp(80px, 16vw, 200px);
  }

  .signal-copy {
    margin-bottom: 12px;
  }

  .countdown-grid strong {
    font-size: clamp(1.55rem, 4vw, 2.9rem);
  }

  .form-message {
    margin-top: 8px;
  }
}

/* Custom Content Wrapper & New Sections */
.content-wrapper {
  width: min(1040px, 100%);
  display: flex;
  flex-direction: column;
  gap: 90px;
  align-items: center;
  margin-bottom: 60px;
}

.manifesto-section,
.store-section,
.music-section {
  width: min(720px, 100%);
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 50px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 24px;
  letter-spacing: 1px;
  text-shadow: -2px 0 var(--red), 3px 0 var(--blue);
}

/* Manifesto Styling */
.manifesto-content {
  text-align: justify;
  line-height: 1.7;
  color: rgba(244, 240, 232, 0.9);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.manifesto-content p {
  margin-bottom: 20px;
}

.manifesto-highlight {
  margin-top: 30px;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(166, 26, 26, 0.05);
  box-shadow: inset 0 0 15px rgba(166, 26, 26, 0.1);
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.6;
  position: relative;
}

.manifesto-highlight::before {
  content: "DECODE_SIGNAL_";
  position: absolute;
  top: -10px;
  left: 15px;
  background: var(--void);
  padding: 0 8px;
  font-size: 0.75rem;
  color: var(--red);
}

.manifesto-highlight p {
  margin: 0 0 10px;
}

.manifesto-highlight p:last-child {
  margin-bottom: 0;
  color: var(--red);
  font-weight: bold;
}

/* Store Styling */
.store-card {
  border: 1px solid var(--line);
  background: rgba(14, 14, 14, 0.8);
  box-shadow: 12px 12px 0 rgba(166, 26, 26, 0.25);
  padding: 30px;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

@media (min-width: 600px) {
  .store-card {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

.store-info h3 {
  font-size: 1.5rem;
  margin: 0 0 10px;
  color: var(--ink);
}

.store-info p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 20px;
}

.store-btn {
  display: inline-block;
  font-family: var(--font-mono);
  border: 1px solid var(--red);
  color: var(--ink);
  background: var(--red);
  padding: 12px 24px;
  text-decoration: none;
  text-transform: lowercase;
  font-weight: bold;
  text-align: center;
  transition: transform 0.18s ease, background 0.18s ease;
}

.store-btn:hover {
  transform: translate(-2px, -2px);
  background: var(--blue);
}

.store-mockup {
  border: 1px solid var(--line);
  padding: 15px;
  background: rgba(0, 0, 0, 0.4);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.store-mockup::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(22, 50, 79, 0.1) 50%);
  background-size: 100% 4px;
  pointer-events: none;
}

.store-mockup-tag {
  color: var(--red);
  font-weight: bold;
}

.store-mockup-item {
  color: var(--ink);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 5px;
  display: flex;
  justify-content: space-between;
}

/* Music Styling */
.music-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 20px;
}

.music-card {
  border: 1px solid var(--line);
  background: rgba(14, 14, 14, 0.85);
  box-shadow: 8px 8px 0 rgba(22, 50, 79, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.music-card-header {
  padding: 10px 15px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
}

.music-card-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
  margin: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-card-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--red);
}

.music-card-body {
  padding: 10px;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 152px;
}

.music-card-body iframe {
  border: 0;
  width: 100%;
  display: block;
}

.music-card-footer {
  padding: 10px 15px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}

.music-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--blue-hot);
  text-decoration: none;
}

.music-link:hover {
  text-decoration: underline;
  color: var(--ink);
}

/* Signal Analyzer Styling */
.signal-analyzer {
  width: min(720px, 100%);
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, .45);
  box-shadow: 0 0 46px rgba(166, 26, 26, .12), inset 0 0 42px rgba(22, 50, 79, .15);
  padding: 20px;
  margin: 24px auto 0;
  text-align: left;
}

.analyzer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.status-indicator {
  color: var(--red);
}

.status-indicator.blinking {
  animation: blink-status 1s infinite alternate;
}

@keyframes blink-status {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

.status-text {
  color: var(--ink);
  letter-spacing: 1px;
}

.analyzer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 16px;
  text-align: center;
}

@media (max-width: 500px) {
  .analyzer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

.analyzer-grid div {
  min-width: 0;
  border-right: 1px solid var(--line);
}

.analyzer-grid div:last-child {
  border-right: 0;
}

@media (max-width: 500px) {
  .analyzer-grid div:nth-child(2) {
    border-right: 0;
  }
  .analyzer-grid div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
  }
  .analyzer-grid div:nth-child(n + 3) {
    padding-top: 10px;
  }
}

.analyzer-grid strong {
  display: block;
  font-family: var(--font-mono);
  color: var(--ink);
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  line-height: 1;
}

.analyzer-grid span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .8rem;
  text-transform: lowercase;
}

.analyzer-terminal {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  min-height: 70px;
  line-height: 1.5;
  background: rgba(0,0,0,0.3);
  padding: 10px 14px;
  border: 1px solid rgba(244, 240, 232, 0.05);
}

/* Scroll Indicator */
.scroll-indicator {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: lowercase;
  opacity: 0.7;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-arrow {
  font-size: 1.2rem;
  color: var(--red);
  animation: bounce-arrow 1.6s infinite ease-in-out;
}

@keyframes bounce-arrow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* Navigation Bar Styles */
html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 80px;
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(14, 14, 14, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(244, 240, 232, 0.08);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.header-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  font-family: var(--font-mono);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.22s ease;
  position: relative;
}

.header-logo:hover {
  color: var(--red);
  text-shadow: -1px 0 rgba(166, 26, 26, 0.8), 2px 0 rgba(22, 50, 79, 0.8);
}

.logo-status {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-mono);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: all 0.22s ease;
  cursor: pointer;
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.22s ease;
  box-shadow: 0 0 6px var(--red);
}

.nav-link:hover {
  color: var(--ink);
  text-shadow: 0 0 8px rgba(244, 240, 232, 0.5);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--red);
  font-weight: bold;
  text-shadow: 0 0 8px rgba(166, 26, 26, 0.6);
}

.nav-link.active::after {
  width: 100%;
  background: var(--red);
}

@media (max-width: 600px) {
  .header-container {
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
    text-align: center;
  }
  
  .nav-links {
    gap: 16px;
    justify-content: center;
    width: 100%;
  }
  
  .nav-link {
    font-size: 0.8rem;
  }
  
  section[id] {
    scroll-margin-top: 120px;
  }
}



