/* ==========================================================================
   SHREDDING THE STUDIO - UNDERGROUND NEO-BRUTALIST / CYBER-GRUNGE STYLES
   ========================================================================== */

:root {
  --bg-color: #08080a;
  --bg-card: #111115;
  --bg-card-hover: #16161b;
  --text-main: #f4f4f6;
  --text-muted: #8b8b99;
  
  /* Energetic Brand Accents */
  --shred-acid: #d8ff00;      /* Toxic neon lime/yellow */
  --shred-orange: #ff3c14;    /* Amplified overdrive orange */
  --shred-cyan: #00f0ff;      /* Electric cyan for glitch accents */
  --shred-white: #ffffff;
  --shred-border: #282832;

  --font-display: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-glitch: 'Rubik Glitch', monospace;

  --ease-snappy: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-mono);
  overflow-x: hidden;
  position: relative;
  cursor: default;
}

::selection {
  background: var(--shred-acid);
  color: #000;
}

/* ==========================================================================
   TEXTURES & ATMOSPHERE (GRAIN, SCANLINES, CRT)
   ========================================================================== */

.noise-texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 98;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.35) 50%
  );
  background-size: 100% 4px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

body.crt-disabled .scanlines {
  opacity: 0;
}

body.crt-overlay::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: radial-gradient(circle at center, transparent 60%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
  z-index: 97;
}

#shredCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--shred-acid);
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.15s ease, height 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  mix-blend-mode: difference;
}

.custom-cursor.active {
  width: 32px;
  height: 32px;
  background: rgba(216, 255, 0, 0.3);
  border-color: var(--shred-orange);
}

@media (pointer: coarse) {
  .custom-cursor {
    display: none;
  }
}

/* ==========================================================================
   TOP BAR / NAVIGATION
   ========================================================================== */

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  border-bottom: 2px solid var(--shred-border);
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand-code {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--shred-acid);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--shred-acid);
  animation: pulse-dot 1.4s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.85); }
}

.badge-pill {
  background: #1e1e26;
  border: 1px solid #323242;
  color: var(--text-muted);
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-controls {
  display: flex;
  gap: 0.75rem;
}

.sound-toggle-btn, .crt-toggle-btn {
  background: #14141a;
  border: 1px solid var(--shred-border);
  color: var(--text-main);
  padding: 0.45rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.sound-toggle-btn:hover, .crt-toggle-btn:hover {
  background: var(--shred-acid);
  color: #000;
  border-color: var(--shred-acid);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(216, 255, 0, 0.25);
}

.sound-toggle-btn.sound-on {
  border-color: var(--shred-acid);
  color: var(--shred-acid);
}
.sound-toggle-btn.sound-on:hover {
  color: #000;
}

/* ==========================================================================
   MARQUEE TICKER TAPE
   ========================================================================== */

.marquee-strip {
  background: var(--shred-acid);
  color: #000;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.5rem 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  border-bottom: 2px solid #000;
}

.marquee-track {
  display: inline-block;
  white-space: nowrap;
  animation: marquee-roll 25s linear infinite;
}

.marquee-track span {
  display: inline-block;
  padding: 0 1.5rem;
}

@keyframes marquee-roll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   DRAGGABLE STICKERS
   ========================================================================== */

.interactive-stickers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
}

.sticker {
  position: absolute;
  pointer-events: auto;
  user-select: none;
  cursor: grab;
  touch-action: none;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid #000;
  box-shadow: 4px 4px 0px rgba(0,0,0,0.8);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sticker:active {
  cursor: grabbing;
  box-shadow: 1px 1px 0px rgba(0,0,0,0.8);
}

.sticker-1 {
  top: 140px;
  right: 8%;
  background: var(--shred-orange);
  color: #fff;
  transform: rotate(8deg);
}

.sticker-2 {
  top: 360px;
  left: 4%;
  background: var(--shred-acid);
  color: #000;
  transform: rotate(-6deg);
}

.sticker-3 {
  top: 580px;
  right: 6%;
  background: #fff;
  color: #000;
  transform: rotate(4deg);
}

.sticker-4 {
  top: 750px;
  left: 7%;
  background: #000;
  color: var(--shred-acid);
  border-color: var(--shred-acid);
  transform: rotate(-3deg);
}

.barcode {
  font-family: monospace;
  letter-spacing: -2px;
  font-weight: 400;
}

@media (max-width: 900px) {
  .sticker-1 { top: 120px; right: 2%; transform: rotate(5deg) scale(0.85); }
  .sticker-2 { display: none; }
  .sticker-3 { display: none; }
  .sticker-4 { display: none; }
}

/* ==========================================================================
   HERO STAGE
   ========================================================================== */

.hero-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4.5rem 1.75rem 6rem;
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.glitch-stamp {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.stamp-box {
  background: rgba(255, 60, 20, 0.15);
  color: var(--shred-orange);
  border: 1px solid var(--shred-orange);
  padding: 0.35rem 0.8rem;
  text-transform: uppercase;
}

.stamp-loc {
  color: var(--text-muted);
}

/* Title Wrapper */
.title-wrapper {
  margin-bottom: 1.75rem;
  position: relative;
  user-select: none;
}

.shred-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 11vw, 8.5rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--shred-white);
  position: relative;
  display: inline-block;
  text-shadow: 
    3px 3px 0px #000,
    -1px -1px 0px rgba(255,255,255,0.2);
}

.title-sub-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  margin-top: 0.1em;
}

.the-tag {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 2.2rem);
  font-weight: 700;
  font-style: italic;
  background: var(--shred-acid);
  color: #000;
  padding: 0.15em 0.45em;
  transform: rotate(-7deg);
  border: 2px solid #000;
  box-shadow: 3px 3px 0px #000;
}

.title-studio {
  color: transparent;
  -webkit-text-stroke: 3px var(--shred-white);
  transition: all 0.3s ease;
}

.title-wrapper:hover .title-studio {
  color: var(--shred-acid);
  -webkit-text-stroke: 3px var(--shred-acid);
  text-shadow: 0 0 35px rgba(216, 255, 0, 0.4);
}

.accent-burst {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--shred-orange);
  font-weight: 900;
  vertical-align: super;
}

/* Manifest Text */
.manifest-text {
  max-width: 720px;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: #b5b5c4;
  margin-bottom: 2.75rem;
}

.manifest-text strong {
  color: var(--shred-acid);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ==========================================================================
   ACTION DOCK & INTERACTIVE AMP CONTROLS
   ========================================================================== */

.action-dock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.shred-action-btn {
  background: var(--shred-acid);
  color: #000;
  border: 3px solid #000;
  padding: 1.1rem 2.2rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 6px 6px 0px #000, 6px 6px 0px 3px var(--shred-orange);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.shred-action-btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0px #000, 9px 9px 0px 3px var(--shred-orange);
  background: #e6ff33;
}

.shred-action-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000;
}

.btn-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #333;
  margin-top: 0.2rem;
  letter-spacing: 0.08em;
}

/* Amp Dial Box */
.amp-dial-box {
  background: var(--bg-card);
  border: 2px solid var(--shred-border);
  padding: 0.8rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 4px 4px 0px #000;
}

.amp-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--shred-orange);
}

.dial-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.amp-slider {
  -webkit-appearance: none;
  width: 110px;
  height: 6px;
  background: #282835;
  outline: none;
  cursor: pointer;
}

.amp-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--shred-orange);
  border: 2px solid #000;
  cursor: pointer;
}

.dial-readout {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--shred-white);
  min-width: 65px;
}

.dial-readout span {
  color: var(--shred-acid);
  font-size: 0.9rem;
}

/* ==========================================================================
   BACKSTAGE PASS / VIP TICKET CARD
   ========================================================================== */

.ticket-card {
  width: 100%;
  max-width: 760px;
  background: var(--bg-card);
  border: 2px solid var(--shred-border);
  display: flex;
  position: relative;
  text-align: left;
  box-shadow: 10px 10px 0px rgba(0,0,0,0.85);
  margin-bottom: 4rem;
  overflow: hidden;
}

.ticket-stub-left {
  background: #181820;
  border-right: 2px dashed #343444;
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-width: 80px;
  position: relative;
}

.stub-vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--shred-acid);
}

.stub-code {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.ticket-main {
  padding: 2.25rem 2rem;
  flex: 1;
}

.ticket-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ticket-badge {
  background: var(--shred-orange);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 0.2rem 0.5rem;
  letter-spacing: 0.1em;
}

.ticket-alert {
  font-size: 0.7rem;
  color: var(--shred-acid);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.ticket-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.ticket-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

/* Signup Form */
.signup-form {
  position: relative;
}

.input-group {
  display: flex;
  background: #09090c;
  border: 2px solid var(--shred-border);
  transition: border-color 0.2s ease;
}

.input-group:focus-within {
  border-color: var(--shred-acid);
  box-shadow: 0 0 15px rgba(216, 255, 0, 0.15);
}

.input-prefix {
  padding: 0.9rem 0 0.9rem 1rem;
  color: var(--shred-acid);
  font-weight: 700;
  font-size: 1rem;
}

.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.9rem 1rem;
}

.input-group input::placeholder {
  color: #555566;
}

.submit-btn {
  background: var(--shred-white);
  color: #000;
  border: none;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 0.85rem;
  padding: 0 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.submit-btn:hover {
  background: var(--shred-acid);
  color: #000;
  transform: translateX(2px);
}

.form-feedback {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  min-height: 1.2rem;
  transition: all 0.2s ease;
}

.form-feedback.success {
  color: var(--shred-acid);
}

.form-feedback.error {
  color: var(--shred-orange);
}

/* Ticket Notches */
.ticket-punch-hole {
  position: absolute;
  top: -15px;
  left: 72px;
  width: 30px;
  height: 30px;
  background: var(--bg-color);
  border-radius: 50%;
  border-bottom: 2px solid var(--shred-border);
}

.ticket-card::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 72px;
  width: 30px;
  height: 30px;
  background: var(--bg-color);
  border-radius: 50%;
  border-top: 2px solid var(--shred-border);
}

@media (max-width: 640px) {
  .ticket-card {
    flex-direction: column;
  }
  .ticket-stub-left {
    border-right: none;
    border-bottom: 2px dashed #343444;
    flex-direction: row;
    padding: 0.8rem 1.25rem;
  }
  .stub-vertical {
    writing-mode: horizontal-tb;
    transform: none;
  }
  .input-group {
    flex-direction: column;
  }
  .submit-btn {
    padding: 0.9rem;
    justify-content: center;
  }
  .ticket-punch-hole, .ticket-card::after {
    display: none;
  }
}

/* ==========================================================================
   DEV LOG TERMINAL
   ========================================================================== */

.devlog-terminal {
  width: 100%;
  max-width: 760px;
  background: #0c0c10;
  border: 1px solid #22222e;
  border-radius: 4px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  font-size: 0.8rem;
}

.terminal-bar {
  background: #16161f;
  padding: 0.5rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #282838;
}

.dots {
  display: flex;
  gap: 0.35rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.terminal-net {
  color: #555566;
  font-size: 0.65rem;
}

.terminal-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  line-height: 1.6;
}

.term-dim {
  color: #525266;
}

.term-accent {
  color: var(--shred-orange);
  font-weight: 700;
}

.term-highlight {
  color: var(--shred-acid);
  font-weight: 700;
}

.cursor-blink {
  animation: blink-caret 0.9s infinite step-start;
  color: var(--shred-acid);
  font-weight: 900;
}

@keyframes blink-caret {
  50% { opacity: 0; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer-bar {
  border-top: 2px solid var(--shred-border);
  padding: 2.25rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  background: #08080a;
  position: relative;
  z-index: 20;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.footer-sub {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-btn {
  background: #14141a;
  border: 1px solid var(--shred-border);
  color: var(--text-main);
  padding: 0.55rem 1.1rem;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: var(--shred-white);
  color: #000;
  border-color: var(--shred-white);
  transform: translateY(-2px);
  box-shadow: 3px 3px 0px var(--shred-orange);
}

.social-btn.contact-btn:hover {
  background: var(--shred-acid);
  border-color: var(--shred-acid);
}

@media (max-width: 768px) {
  .top-nav {
    padding: 1rem 1.25rem;
  }
  .badge-pill {
    display: none;
  }
  .footer-bar {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }
  .social-links {
    justify-content: center;
  }
}
