/* ==========================================================================
   NEVERUS INTERACTIVE - FLASH BRUTALISM DESIGN SYSTEM (v1.4)
   ========================================================================== */

:root {
  --pure-void: #000000;
  --blank-white: #ffffff;
  --hazard-accent: #ffff00;
  --emergency-accent: #ff0000;

  /* Backward compatibility aliases */
  --black: var(--pure-void);
  --white: var(--blank-white);
  --yellow: var(--hazard-accent);
}

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

body {
  background-color: var(--pure-void);
  color: var(--blank-white);
  font-family: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Core Kinetic Signature: PS1 Stepped Keyframe Jitter
   -------------------------------------------------------------------------- */
@keyframes ps1-btn-jitter {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-1.5px, 1px); }
  50%  { transform: translate(1px, -1.5px); }
  75%  { transform: translate(-1px, -1px); }
  100% { transform: translate(1.5px, 1px); }
}

/* --------------------------------------------------------------------------
   Layout Containers & Structural Cards
   -------------------------------------------------------------------------- */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.card {
  background: var(--pure-void);
  border: 2px solid var(--blank-white);
  box-shadow: 6px 6px 0px var(--blank-white);
  padding: 28px;
  position: relative;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-align: center;
  color: var(--blank-white);
  border-bottom: 2px solid var(--blank-white);
  padding-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Tactile UI: Standard Neo-Brutalist Buttons (.btn-brutal / .btn-major)
   -------------------------------------------------------------------------- */
.btn-brutal,
.btn-major {
  color: var(--blank-white);
  text-decoration: none;
  background: var(--pure-void);
  border: 2px solid var(--blank-white);
  padding: 8px 20px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 4px 4px 0px var(--blank-white);
  display: inline-block;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.1s ease, color 0.1s ease;
  user-select: none;
}

.btn-brutal:hover,
.btn-major:hover {
  background: var(--hazard-accent);
  color: var(--pure-void);
  border-color: var(--hazard-accent);
  box-shadow: 4px 4px 0px var(--blank-white);
  animation: ps1-btn-jitter 0.16s steps(2) infinite;
}

.btn-brutal:active,
.btn-major:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--blank-white);
  animation: none;
}

/* --------------------------------------------------------------------------
   Tactile UI: Conversion Actions (.btn-brutal-cta / .btn-cta)
   -------------------------------------------------------------------------- */
.btn-brutal-cta,
.btn-cta {
  display: inline-block;
  background: var(--hazard-accent);
  color: var(--pure-void);
  border: 2px solid var(--blank-white);
  box-shadow: 6px 6px 0px var(--blank-white);
  padding: 14px 34px;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  user-select: none;
  transition: background 0.1s ease, color 0.1s ease;
}

.btn-brutal-cta:hover,
.btn-cta:hover {
  background: var(--blank-white);
  color: var(--pure-void);
  border-color: var(--hazard-accent);
  box-shadow: 6px 6px 0px var(--hazard-accent);
  animation: ps1-btn-jitter 0.16s steps(2) infinite;
}

.btn-brutal-cta:active,
.btn-cta:active {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0px var(--hazard-accent);
  animation: none;
}

/* Hero CTA Button Stacking & Unified Width */
.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 290px;
  margin: 0 auto;
}

.hero-cta-group .btn-cta {
  width: 100%;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Tactile UI: Destructive Triggers (.btn-danger)
   -------------------------------------------------------------------------- */
.btn-danger {
  background: var(--pure-void);
  color: var(--blank-white);
  border: 2px solid var(--emergency-accent);
  font-family: inherit;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 3px 3px 0px var(--emergency-accent);
  display: inline-block;
  user-select: none;
}

.btn-danger:hover {
  background: var(--emergency-accent);
  color: var(--pure-void);
  border-color: var(--emergency-accent);
  box-shadow: 
    3px 3px 0px 0px var(--pure-void),
    4px 4px 0px 0px var(--emergency-accent),
    4px 2px 0px 0px var(--emergency-accent),
    2px 4px 0px 0px var(--emergency-accent);
  animation: ps1-btn-jitter 0.16s steps(2) infinite;
}

.btn-danger:active {
  transform: translate(2px, 2px);
  box-shadow: 
    1px 1px 0px 0px var(--pure-void),
    2px 2px 0px 0px var(--emergency-accent);
  animation: none;
}

/* --------------------------------------------------------------------------
   Tactile UI: Icon Buttons (.icon-btn & .icon-btn-danger)
   -------------------------------------------------------------------------- */
.icon-btn {
  background: var(--pure-void);
  border: 2px solid var(--blank-white);
  color: var(--blank-white);
  padding: 2px 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 2px 2px 0px var(--blank-white);
  transition: background 0.1s ease, color 0.1s ease, border-color 0.1s ease;
  font-family: inherit;
  display: inline-block;
}

.icon-btn:hover {
  background: var(--hazard-accent);
  color: var(--pure-void);
  border-color: var(--hazard-accent);
  box-shadow: 2px 2px 0px var(--blank-white);
  animation: ps1-btn-jitter 0.16s steps(2) infinite;
}

.icon-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--blank-white);
  animation: none;
}

.icon-btn.icon-btn-danger {
  border-color: var(--emergency-accent);
  box-shadow: 2px 2px 0px var(--emergency-accent);
}

.icon-btn.icon-btn-danger:hover {
  background: var(--emergency-accent);
  color: var(--pure-void);
  border-color: var(--emergency-accent);
  box-shadow: 
    2px 2px 0px 0px var(--pure-void),
    3px 3px 0px 0px var(--emergency-accent),
    3px 1px 0px 0px var(--emergency-accent),
    1px 3px 0px 0px var(--emergency-accent);
  animation: ps1-btn-jitter 0.16s steps(2) infinite;
}

.icon-btn.icon-btn-danger:active {
  transform: translate(1px, 1px);
  box-shadow: 
    1px 1px 0px 0px var(--pure-void),
    1px 1px 0px 0px var(--emergency-accent);
  animation: none;
}

/* --------------------------------------------------------------------------
   Tactile UI: Utility Standard (.btn-utility)
   -------------------------------------------------------------------------- */
.btn-utility {
  background: var(--pure-void);
  color: var(--blank-white);
  border: 1px solid var(--blank-white);
  box-shadow: none;
  padding: 6px 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1px;
  cursor: pointer;
  user-select: none;
  transition: background 0.1s ease, color 0.1s ease, border-color 0.1s ease;
}

.btn-utility:hover {
  background: var(--blank-white);
  color: var(--pure-void);
}

.btn-utility.is-active {
  background: var(--hazard-accent);
  color: var(--pure-void);
  border-color: var(--hazard-accent);
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Form Controls (Inputs, Selects, Toggles)
   -------------------------------------------------------------------------- */
select,
input[type="file"] {
  background: var(--pure-void);
  color: var(--blank-white);
  font-family: inherit;
  border: 2px solid var(--blank-white);
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 3px 3px 0px var(--blank-white);
  outline: none;
}

select:focus {
  border-color: var(--hazard-accent);
}

input[type="range"] {
  width: 100%;
  cursor: pointer;
  accent-color: var(--hazard-accent);
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-square {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--pure-void);
  border: 2px solid var(--blank-white);
  transition: 0.15s ease;
  box-shadow: 2px 2px 0px var(--blank-white);
}

.slider-square:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 4px;
  background-color: var(--blank-white);
  transition: 0.15s ease;
}

.switch input:checked + .slider-square {
  background-color: var(--hazard-accent);
  border-color: var(--blank-white);
}

.switch input:checked + .slider-square:before {
  transform: translateX(20px);
  background-color: var(--pure-void);
}

/* --------------------------------------------------------------------------
   Marquee Announcements
   -------------------------------------------------------------------------- */
.ticker-container {
  background: var(--hazard-accent);
  color: var(--pure-void);
  border-bottom: 2px solid var(--blank-white);
  overflow: hidden;
  display: flex;
  user-select: none;
  width: 100%;
  position: relative;
  z-index: 2;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-seamless 20s linear infinite;
}

.ticker-segment {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
}

.ticker-item {
  color: var(--pure-void);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 0;
  white-space: nowrap;
}

.ticker-item em {
  font-style: italic;
  text-decoration: underline;
}

.ticker-item span.sep {
  padding: 0 16px;
}

@keyframes ticker-seamless {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Suppress EXE Download Section inside Desktop App
   -------------------------------------------------------------------------- */
.is-desktop-app #exeDownloadSection {
  display: none !important;
}
