/* CombatRy — Inter (okunabilir UI) + IBM Plex Mono (terminal / HUD) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --neon-p: rgba(167, 85, 255, 1);
  --neon-p-dim: rgba(167, 85, 255, 0.35);
  --neon-r: rgba(255, 55, 90, 1);
  --neon-r-dim: rgba(255, 55, 90, 0.4);
  --neon-b: rgba(45, 200, 255, 1);
  --neon-b-dim: rgba(45, 200, 255, 0.35);
  --glass: rgba(12, 8, 24, 0.55);
  --hud-line: rgba(255, 255, 255, 0.12);
}

html.lenis,
html.lenis body {
  height: auto;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  background: radial-gradient(ellipse 120% 80% at 50% 0%, #0a0712 0%, #020207 42%, #010105 100%);
  color: #e8e4ff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.font-hud {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  letter-spacing: 0.02em;
}

.font-display {
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

#three-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#mouse-particles {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

#cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  background: radial-gradient(
    circle,
    rgba(167, 85, 255, 0.14) 0%,
    rgba(255, 55, 90, 0.07) 40%,
    transparent 72%
  );
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  transition: opacity 0.35s ease;
}

.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 40px rgba(0, 0, 0, 0.45);
}

.hud-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(167, 85, 255, 0.55);
}

.hud-tl {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.hud-tr {
  top: -1px;
  right: -1px;
  border-top: 2px solid;
  border-right: 2px solid;
  border-color: rgba(255, 55, 90, 0.55);
}

.hud-bl {
  bottom: -1px;
  left: -1px;
  border-bottom: 2px solid;
  border-left: 2px solid;
  border-color: rgba(45, 200, 255, 0.45);
}

.hud-br {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

.neon-underline {
  background: linear-gradient(90deg, var(--neon-p), var(--neon-r), var(--neon-b));
  height: 3px;
  border-radius: 2px;
  filter: blur(1px);
  opacity: 0.85;
}

.neon-border {
  border: 1px solid transparent;
  background:
    linear-gradient(#0a0814, #0a0814) padding-box,
    linear-gradient(120deg, var(--neon-p), var(--neon-r), var(--neon-b)) border-box;
}

.neon-border-hover {
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.neon-border-hover:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(167, 85, 255, 0.4),
    0 0 30px rgba(167, 85, 255, 0.25),
    0 0 50px rgba(255, 55, 90, 0.15),
    inset 0 0 30px rgba(45, 200, 255, 0.06);
}

.flicker {
  animation: flicker-neon 3.8s infinite alternate;
}

@keyframes flicker-neon {
  0%,
  18%,
  22%,
  62%,
  64%,
  80% {
    opacity: 1;
    text-shadow:
      0 0 8px var(--neon-p-dim),
      0 0 24px rgba(167, 85, 255, 0.4);
  }
  19%,
  63% {
    opacity: 0.86;
    text-shadow: none;
  }
  91% {
    opacity: 0.72;
    text-shadow: 0 0 4px rgba(255, 55, 90, 0.5);
  }
}

.glitch-text {
  position: relative;
  animation: glitch-skew 2.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@keyframes glitch-skew {
  0%,
  94% {
    transform: skew(0deg);
    filter: hue-rotate(0deg);
  }
  2% {
    transform: skew(-0.55deg);
  }
  4% {
    transform: skew(0.4deg);
    filter: hue-rotate(8deg);
  }
  6% {
    transform: skew(0deg);
  }
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}

.glitch-text::before {
  color: var(--neon-b);
  animation: glitch-top 2.2s linear infinite;
  opacity: 0.8;
}

.glitch-text::after {
  color: var(--neon-r);
  animation: glitch-bot 2.6s linear infinite;
  opacity: 0.75;
}

@keyframes glitch-top {
  0%,
  100% {
    clip-path: inset(0 0 95% 0);
    transform: translate(-2px, -1px);
  }
  25% {
    clip-path: inset(30% 0 40% 0);
    transform: translate(2px, 0);
  }
  50% {
    clip-path: inset(10% 0 70% 0);
    transform: translate(-1px, 1px);
  }
}

@keyframes glitch-bot {
  0%,
  100% {
    clip-path: inset(85% 0 0 0);
    transform: translate(2px, 1px);
  }
  40% {
    clip-path: inset(50% 0 20% 0);
    transform: translate(-2px, -1px);
  }
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 20%, #0a1810 0%, #030806 45%, #000 100%);
}

.intro-screen.hidden-intro {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s;
}

#intro-warp {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  perspective: 520px;
}

.intro-warp-ring {
  width: min(160vmin, 900px);
  height: min(160vmin, 900px);
  border-radius: 50%;
  transform: scale(0);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 52%),
    radial-gradient(circle at 50% 50%, transparent 28%, rgba(45, 200, 255, 0.22) 42%, transparent 58%),
    radial-gradient(circle at 50% 50%, transparent 46%, rgba(167, 85, 255, 0.2) 62%, transparent 78%),
    radial-gradient(circle at 50% 48%, rgba(255, 55, 90, 0.12) 0%, transparent 55%);
  box-shadow:
    inset 0 0 100px rgba(6, 182, 212, 0.25),
    0 0 100px rgba(167, 85, 255, 0.2),
    0 0 160px rgba(0, 0, 0, 0.85);
  filter: blur(0.5px);
  will-change: transform, opacity;
}

.intro-warp-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 20%, rgba(0, 0, 0, 0.85) 75%);
  pointer-events: none;
}

.intro-terminal-outer {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 36rem;
  padding: 0 1rem;
}

.intro-terminal-shell {
  box-shadow: inset 0 1px 0 rgba(74, 222, 128, 0.06);
}

.intro-terminal-inner {
  position: relative;
  overflow: hidden;
  will-change: transform, opacity, filter;
}

.intro-terminal-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 3px
  );
  opacity: 0.35;
}

body.is-booting #page-wrap {
  transform: scale(1.07);
  filter: blur(10px);
  opacity: 0.92;
}

#page-wrap {
  transform-origin: 50% 40%;
  will-change: transform, filter;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(48px);
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent,
    var(--neon-p) 10%,
    var(--neon-r) 50%,
    var(--neon-b) 90%,
    transparent
  );
  opacity: 0.35;
}

@media (max-width: 768px) {
  .timeline-line {
    left: 12px;
  }
}

.video-card .embed-wrap {
  display: none;
}

.video-card.is-hover .thumb-wrap {
  opacity: 0;
  pointer-events: none;
}

.video-card.is-hover .embed-wrap {
  display: block;
}

.thumb-wrap {
  transition: opacity 0.25s ease;
}

.chat-panel {
  position: fixed;
  bottom: 88px;
  right: 20px;
  width: min(380px, calc(100vw - 40px));
  z-index: 90;
  max-height: 52vh;
  display: flex;
  flex-direction: column;
}

.chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 91;
}

.hud-stats {
  position: relative;
  z-index: 10;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-shadow:
    0 0 0 1px rgba(167, 85, 255, 0.14),
    0 0 60px rgba(45, 200, 255, 0.06),
    0 16px 48px rgba(0, 0, 0, 0.55);
}

.hud-stats-title {
  text-shadow: 0 0 24px rgba(167, 85, 255, 0.25);
}

.hud-live {
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.55);
  animation: hud-live-pulse 2.2s ease-in-out infinite;
}

@keyframes hud-live-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.92);
  }
}

.hud-stat-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0.55rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.hud-stat-cell:hover {
  border-color: rgba(167, 85, 255, 0.22);
  background: rgba(0, 0, 0, 0.52);
}

.hud-stat-wide {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hud-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  opacity: 0.92;
}

.hud-stat-value {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.cb-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
}

.cb-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cta-shine {
  position: relative;
  overflow: hidden;
}

.cta-shine::after {
  content: '';
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    55deg,
    transparent 35%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 65%
  );
  transform: translateX(-120%) rotate(12deg);
  animation: shine-sweep 4.2s ease-in-out infinite;
}

@keyframes shine-sweep {
  0% {
    transform: translateX(-120%) rotate(12deg);
  }
  40% {
    transform: translateX(120%) rotate(12deg);
  }
  100% {
    transform: translateX(120%) rotate(12deg);
  }
}
