/* ============================================================================
   TECHPEEPZ.HTML — shared stylesheet
   Palette: near-black w/ green undertow, gold accents, phosphor-green signals.
   Voice: Chakra Petch (display) + IBM Plex Mono (labels, silkscreen style).
   Chamfered panels only — no rounded corners anywhere on the board.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg-top: #071009;
  --bg-bot: #030503;

  --panel-a: #0a150e;
  --panel-b: #060d09;
  --panel-chip: #081109;

  --gold: #e8c874;
  --gold-hi: #ffe9a8;
  --gold-border: rgba(232, 200, 116, 0.40);
  --gold-border-hi: rgba(232, 200, 116, 0.78);
  --gold-dim-text: rgba(232, 200, 116, 0.62);

  --green: #45e07c;
  --green-hi: #8effb8;
  --green-border: rgba(69, 224, 124, 0.34);
  --green-border-hi: rgba(69, 224, 124, 0.85);
  --green-dim-text: rgba(69, 224, 124, 0.58);

  --warm-white: #f2ecd9;
  --muted: rgba(222, 230, 214, 0.62);
  --ghost: rgba(220, 228, 210, 0.34);

  --font-display: 'Chakra Petch', 'Bahnschrift', 'Avenir Next Condensed',
    system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', ui-monospace, Menlo, Consolas,
    monospace;

  /* 12px cut for large plates, 8px cut for chips */
  --ch12: polygon(
    12px 0, calc(100% - 12px) 0,
    100% 12px, 100% calc(100% - 12px),
    calc(100% - 12px) 100%, 12px 100%,
    0 calc(100% - 12px), 0 12px
  );
  --ch8: polygon(
    8px 0, calc(100% - 8px) 0,
    100% 8px, 100% calc(100% - 8px),
    calc(100% - 8px) 100%, 8px 100%,
    0 calc(100% - 8px), 0 8px
  );
}

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

html {
  background: var(--bg-bot);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bot) 100%);
  background-attachment: fixed;
  color: var(--warm-white);
  font-family: var(--font-display);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(69, 224, 124, 0.35);
  color: #031005;
}

img {
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Layer stack: canvas < scrim < content
   -------------------------------------------------------------------------- */
#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* soft dark vignette: 55% opacity at center, gone by 70% */
  background: radial-gradient(
    circle at 50% 46%,
    rgba(3, 5, 3, 0.55) 0%,
    rgba(3, 5, 3, 0.55) 38%,
    rgba(3, 5, 3, 0) 70%
  );
}

/* --------------------------------------------------------------------------
   Chamfer plates (dual-layer: 1px colored jacket clipped, dark core clipped)
   -------------------------------------------------------------------------- */
.plate {
  position: relative;
  display: block;
  background: var(--gold-border);
  padding: 1px;
  -webkit-clip-path: var(--ch12);
  clip-path: var(--ch12);
  transition: background-color 0.25s ease-out, transform 0.25s ease-out,
    filter 0.25s ease-out;
}

.plate-inner {
  display: block;
  background: linear-gradient(180deg, var(--panel-a) 0%, var(--panel-b) 100%);
  -webkit-clip-path: var(--ch12);
  clip-path: var(--ch12);
}

/* Chips: 8px cuts, dim-green jacket */
.chip {
  background: var(--green-border);
  padding: 1px;
  -webkit-clip-path: var(--ch8);
  clip-path: var(--ch8);
  transition: background-color 0.25s ease-out, filter 0.25s ease-out;
}

.chip-inner {
  -webkit-clip-path: var(--ch8);
  clip-path: var(--ch8);
}

/* --------------------------------------------------------------------------
   Page 1 — HUD
   -------------------------------------------------------------------------- */
.hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hud-co {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(232, 200, 116, 0.25);
}

.hud-sys {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-hi);
  text-shadow: 0 0 10px rgba(69, 224, 124, 0.35);
}

.led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  animation: led-blink 1.6s infinite;
}

@keyframes led-blink {
  0%, 62% {
    opacity: 1;
    box-shadow: 0 0 9px rgba(69, 224, 124, 0.95);
  }
  68%, 88% {
    opacity: 0.22;
    box-shadow: none;
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 9px rgba(69, 224, 124, 0.95);
  }
}

/* --------------------------------------------------------------------------
   Page 1 — stage: logo, tagline, product card, contact pads
   -------------------------------------------------------------------------- */
.stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 104px 20px 56px;
}

.logo {
  width: clamp(300px, 46vw, 640px);
  height: auto;
  margin-bottom: 30px;
  opacity: 0;
  animation: logo-power-on 0.9s steps(1, end) 0.05s both;
}

/* 8-step flicker: black -> faint -> rise -> dip -> bright -> dip -> full ->
   settle with a soft 24px gold halo. steps(1,end) keeps each state crisp. */
@keyframes logo-power-on {
  0% {
    opacity: 0.02;
    filter: brightness(0.2);
  }
  11% {
    opacity: 0.1;
    filter: brightness(0.7) drop-shadow(0 0 6px rgba(255, 233, 168, 0.25));
  }
  22% {
    opacity: 0.5;
    filter: brightness(1.05) drop-shadow(0 0 10px rgba(255, 233, 168, 0.35));
  }
  33% {
    opacity: 0.15;
    filter: brightness(0.75);
  }
  46% {
    opacity: 1;
    filter: brightness(1.15) drop-shadow(0 0 16px rgba(255, 233, 168, 0.5));
  }
  58% {
    opacity: 0.4;
    filter: brightness(0.85);
  }
  72% {
    opacity: 1;
    filter: brightness(1.05) drop-shadow(0 0 20px rgba(255, 233, 168, 0.45));
  }
  86%, 100% {
    opacity: 1;
    filter: brightness(1) drop-shadow(0 0 24px rgba(255, 233, 168, 0.5));
  }
}

.tagline {
  font-family: var(--font-mono);
  color: var(--warm-white);
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: clamp(13px, 2.4vw, 19px);
  line-height: 1.8;
  min-height: 1.8em;
  margin-bottom: 54px;
  text-shadow: 0 0 14px rgba(69, 224, 124, 0.32), 0 0 3px rgba(242, 236, 217, 0.4);
}

.settled {
  text-shadow: 0 0 18px rgba(69, 224, 124, 0.4), 0 0 4px rgba(242, 236, 217, 0.45);
}

/* Product card ------------------------------------------------------------- */
.product-card {
  text-decoration: none;
  color: #e8c874; /* kill UA link-blue bleed-through */
  width: min(560px, 94vw);
  will-change: transform;
}

.product-card:hover {
  background-color: var(--gold);
  transform: perspective(800px) translateY(-4px) rotateX(2deg);
  filter: drop-shadow(0 0 30px rgba(232, 200, 116, 0.3));
}

.product-card:focus-visible {
  outline: 2px solid #ffe9a8;
  outline-offset: 4px;
  background-color: var(--gold-hi);
  filter: drop-shadow(0 0 14px rgba(255, 233, 168, 0.6))
    drop-shadow(0 0 2px rgba(255, 233, 168, 0.9));
}

.card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 34px 44px 30px;
  text-align: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dim-text);
}

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 5vw, 36px);
  letter-spacing: 0.04em;
  color: var(--gold-hi);
  text-shadow: 0 0 22px rgba(232, 200, 116, 0.3), 0 2px 4px rgba(0, 0, 0, 0.8);
}

.card-desc {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
}

.cta {
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--green);
  transition: color 0.2s ease-out, text-shadow 0.2s ease-out;
}

.cta-arrow {
  display: inline-block;
  transition: transform 0.2s ease-out;
}

.product-card:hover .cta {
  color: var(--green-hi);
  text-shadow: 0 0 12px rgba(142, 255, 184, 0.5);
}

.product-card:hover .cta-arrow {
  transform: translateX(5px);
}

/* Contact pads ---------------------------------------------------------------*/
.pads {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 920px;
}

.pad {
  text-decoration: none;
}

.pad:hover,
.pad:focus-visible {
  background-color: var(--green);
  filter: drop-shadow(0 0 16px rgba(69, 224, 124, 0.45));
}

.pad:focus-visible {
  outline: 2px solid var(--green-hi);
  outline-offset: 3px;
}

.pad-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 176px;
  padding: 12px 20px 11px;
  background: var(--panel-chip);
  text-align: left;
}

.pad-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green-dim-text);
}

.pad-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--warm-white);
  transition: color 0.2s ease-out;
}

.pad:hover .pad-value,
.pad:focus-visible .pad-value {
  color: var(--green-hi);
}

/* Colophon -------------------------------------------------------------------*/
.colophon {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px 16px 30px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ghost);
}

/* --------------------------------------------------------------------------
   Page 2 — Fight Puncher 7
   -------------------------------------------------------------------------- */
.back-link {
  position: absolute;
  top: 24px;
  left: 28px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s ease-out, text-shadow 0.2s ease-out;
}

.back-link:hover {
  color: var(--gold);
  text-shadow: 0 0 14px rgba(232, 200, 116, 0.5);
}

.back-link:focus-visible {
  outline: 2px solid #ffe9a8;
  outline-offset: 4px;
}

.fp7 {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 112px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fp7-hero {
  text-align: center;
  margin-bottom: 68px;
}

#fp7-title {
  font-weight: 700;
  font-size: clamp(42px, 9.2vw, 96px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  color: var(--gold-hi);
  text-shadow: 0 0 34px rgba(255, 233, 168, 0.35),
    0 0 90px rgba(232, 200, 116, 0.18), 0 6px 22px rgba(0, 0, 0, 0.95);
}

.plaque {
  margin-top: 28px;
  display: inline-block;
  background: var(--gold-border);
  padding: 1px;
  -webkit-clip-path: var(--ch8);
  clip-path: var(--ch8);
  transition: background-color 0.25s ease-out, filter 0.25s ease-out;
}

.plaque:hover {
  background-color: var(--gold-border-hi);
  filter: drop-shadow(0 0 18px rgba(232, 200, 116, 0.35));
}

.plaque-inner {
  display: inline-block;
  background: var(--panel-a);
  padding: 10px 22px 9px;
  -webkit-clip-path: var(--ch8);
  clip-path: var(--ch8);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.doctrine {
  margin-top: 50px;
  font-weight: 600;
  font-size: clamp(20px, 3.4vw, 26px);
  letter-spacing: 0.1em;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(232, 200, 116, 0.25);
}

.doctrine-sub {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* Roster ----------------------------------------------------------------------*/
.roster {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.fighter {
  display: flex;
}

.fighter:hover {
  background-color: var(--gold-border-hi);
  filter: drop-shadow(0 0 22px rgba(232, 200, 116, 0.25));
}

.fighter-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0;
  background: var(--panel-chip);
}

.sil {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: repeating-linear-gradient(
      135deg,
      rgba(69, 224, 124, 0.07) 0px,
      rgba(69, 224, 124, 0.07) 2px,
      transparent 2px,
      transparent 12px
    ),
    linear-gradient(180deg, #050b06 0%, #081108 100%);
}

.sil-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 76px;
  line-height: 1;
  color: rgba(69, 224, 124, 0.26);
  text-shadow: 0 0 18px rgba(69, 224, 124, 0.16);
  user-select: none;
}

.fighter-name {
  margin: 16px 18px 6px;
  font-weight: 700;
  font-size: clamp(19px, 2vw, 23px);
  letter-spacing: 0.06em;
  color: var(--gold-hi);
  text-shadow: 0 0 16px rgba(232, 200, 116, 0.22);
}

.fighter-flavor {
  margin: 0 18px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.fighter-encrypted {
  margin: auto 18px 16px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(69, 224, 124, 0.18);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-align: center;
  color: var(--green-dim-text);
}

/* Closing ----------------------------------------------------------------------*/
.closing {
  text-align: center;
  margin: 72px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing-line {
  font-weight: 600;
  font-size: clamp(15px, 2.4vw, 20px);
  letter-spacing: 0.18em;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(232, 200, 116, 0.2), 0 2px 10px rgba(0, 0, 0, 0.8);
}

.closing .back-link-inline {
  position: static;
  margin-top: 22px;
}

.back-link-inline {
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s ease-out, text-shadow 0.2s ease-out;
}

.back-link-inline:hover {
  color: var(--gold);
  text-shadow: 0 0 14px rgba(232, 200, 116, 0.5);
}

.back-link-inline:focus-visible {
  outline: 2px solid #ffe9a8;
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 660px;
  }
}

@media (max-width: 560px) {
  .roster {
    grid-template-columns: 1fr;
    max-width: 430px;
  }

  .hud {
    padding: 16px 18px;
    font-size: 10px;
  }

  .back-link {
    top: 18px;
    left: 18px;
    font-size: 11px;
  }

  .stage {
    padding-top: 92px;
  }

  .card-inner {
    padding: 26px 24px 24px;
  }

  .tagline {
    letter-spacing: 0.3em;
  }
}

@media (max-width: 360px) {
  .pads {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .pad-inner {
    align-items: center;
    text-align: center;
    min-width: 0;
  }
}

/* Reduced motion: respect it quietly */
@media (prefers-reduced-motion: reduce) {
  .logo {
    animation: none;
    opacity: 1;
    filter: brightness(1) drop-shadow(0 0 24px rgba(255, 233, 168, 0.5));
  }

  .led {
    animation: none;
  }
}
