:root {
  color-scheme: dark;
  --bg: #050709;
  --ink: #f6fbff;
  --muted: #aab8c6;
  --cyan: #23e8ff;
  --green: #7dff68;
  --magenta: #ff39d4;
  --amber: #ffd36e;
  --panel: rgba(8, 14, 18, 0.72);
  --line: rgba(179, 244, 255, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(5, 7, 9, 0.88), rgba(5, 7, 9, 0.98)),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(rgba(35, 232, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 255, 104, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 6px
    );
  opacity: 0.26;
  mix-blend-mode: screen;
}

a {
  color: inherit;
  text-decoration: none;
}

#signal-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.7;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 9, 0.68);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.hero-readout,
.ticker,
.contact {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.brand-mark {
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(35, 232, 255, 0.62);
  background:
    linear-gradient(135deg, rgba(35, 232, 255, 0.2), rgba(255, 57, 212, 0.1)),
    rgba(3, 8, 10, 0.82);
  box-shadow: 0 0 22px rgba(35, 232, 255, 0.28);
  clip-path: polygon(16% 0, 100% 0, 100% 84%, 84% 100%, 0 100%, 0 16%);
}

.site-nav {
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(84svh, 860px);
  padding: clamp(64px, 10vw, 128px) clamp(18px, 6vw, 86px);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -4;
  background-image: url("assets/anukah-awp-hero.png");
  background-repeat: no-repeat;
  background-position: 63% center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 67% 42%, rgba(255, 57, 212, 0.24), transparent 28%),
    linear-gradient(90deg, rgba(5, 7, 9, 0.93) 0%, rgba(5, 7, 9, 0.62) 38%, rgba(5, 7, 9, 0.12) 70%),
    linear-gradient(180deg, rgba(5, 7, 9, 0.12), rgba(5, 7, 9, 0.95));
}

.hero-content {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: clamp(0.72rem, 1.6vw, 0.88rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  max-width: 100%;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(4.2rem, 13vw, 8.8rem);
  line-height: 0.82;
  font-weight: 1000;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow:
    0 0 18px rgba(35, 232, 255, 0.38),
    8px 0 0 rgba(255, 57, 212, 0.18);
}

h1::before,
h1::after {
  position: absolute;
  inset: 0;
  content: attr(data-text);
  pointer-events: none;
}

h1::before {
  color: var(--cyan);
  transform: translate(3px, -2px);
  clip-path: inset(0 0 62% 0);
  opacity: 0.7;
}

h1::after {
  color: var(--magenta);
  transform: translate(-4px, 2px);
  clip-path: inset(68% 0 0 0);
  opacity: 0.62;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 28px;
  color: #d9e7f0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(246, 251, 255, 0.2);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action:hover,
.action:focus-visible {
  transform: translateY(-2px);
}

.action.primary {
  border-color: rgba(35, 232, 255, 0.72);
  background: linear-gradient(135deg, rgba(35, 232, 255, 0.24), rgba(125, 255, 104, 0.1));
  box-shadow: 0 0 30px rgba(35, 232, 255, 0.24);
}

.action.ghost {
  background: rgba(5, 7, 9, 0.58);
}

.hero-readout {
  position: absolute;
  right: clamp(18px, 4vw, 58px);
  bottom: 24px;
  left: clamp(18px, 4vw, 58px);
  justify-content: space-between;
  gap: 12px;
  color: rgba(246, 251, 255, 0.72);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.68rem, 1.5vw, 0.78rem);
  text-transform: uppercase;
}

.hero-readout span {
  padding: 8px 10px;
  border: 1px solid rgba(125, 255, 104, 0.18);
  background: rgba(5, 7, 9, 0.34);
  backdrop-filter: blur(10px);
}

.ticker {
  min-height: 56px;
  padding: 0 clamp(18px, 4vw, 56px);
  gap: clamp(18px, 5vw, 58px);
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(35, 232, 255, 0.1), rgba(255, 57, 212, 0.08));
  color: rgba(246, 251, 255, 0.78);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
}

.ticker span::before {
  color: var(--green);
  content: "// ";
}

.section-grid,
.loadout,
.contact {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 1fr);
  gap: 18px;
  padding: clamp(56px, 8vw, 92px) 0 28px;
}

.section-heading {
  align-self: start;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 0.95;
  font-weight: 950;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
}

.panel {
  position: relative;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 36%),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 92px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta));
}

.panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.panel-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(18px, 4vw, 36px);
}

.stats {
  display: grid;
  gap: 12px;
  min-width: 146px;
  margin: 0;
}

.stats div {
  padding: 14px;
  border: 1px solid rgba(35, 232, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

.stats dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stats dd {
  margin: 4px 0 0;
  color: var(--green);
  font-size: 2rem;
  line-height: 1;
  font-weight: 950;
}

.quote-panel {
  grid-column: 2;
  border-color: rgba(255, 57, 212, 0.28);
}

.quote-panel p {
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.6rem);
  line-height: 1.08;
  font-weight: 900;
}

.loadout {
  padding: 34px 0 clamp(58px, 8vw, 96px);
}

.loadout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.meter {
  height: 8px;
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.meter span {
  display: block;
  width: var(--value);
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 0 22px rgba(125, 255, 104, 0.44);
}

.meter.accent span {
  background: linear-gradient(90deg, var(--amber), var(--cyan));
}

.meter.hot span {
  background: linear-gradient(90deg, var(--magenta), var(--amber));
}

.contact {
  justify-content: space-between;
  gap: 22px;
  padding: clamp(28px, 5vw, 44px);
  margin-bottom: 32px;
  border: 1px solid rgba(35, 232, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(35, 232, 255, 0.12), rgba(255, 57, 212, 0.1)),
    rgba(5, 7, 9, 0.82);
}

.contact h2 {
  font-size: clamp(1.8rem, 4vw, 3.8rem);
}

@media (max-width: 840px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 82svh;
    padding-top: 54px;
  }

  .hero-media {
    background-position: 66% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(5, 7, 9, 0.96) 0%, rgba(5, 7, 9, 0.72) 56%, rgba(5, 7, 9, 0.36)),
      linear-gradient(180deg, rgba(5, 7, 9, 0.1), rgba(5, 7, 9, 0.97));
  }

  .hero-readout {
    position: static;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 34px;
  }

  .section-grid,
  .loadout-grid,
  .profile-panel,
  .contact {
    grid-template-columns: 1fr;
  }

  .quote-panel {
    grid-column: auto;
  }

  .contact {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .site-nav {
    gap: 8px;
    font-size: 0.74rem;
  }

  h1 {
    font-size: clamp(3.4rem, 17vw, 5.2rem);
  }

  .action {
    width: 100%;
  }

  .ticker {
    gap: 24px;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  #signal-canvas {
    display: none;
  }
}
