:root {
  --bg: #030711;
  --paper: #071423;
  --paper-2: #0b1e33;
  --ink: #d9fbff;
  --muted: #85bdc4;
  --accent: #39ffe1;
  --accent-dark: #20c7b2;
  --line: #39ffe133;
  --shadow: 0 18px 40px #00000080;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Share Tech Mono", monospace;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

.bg-canvas,
.site-bg,
.scan-sweep,
.cursor-glow,
.glitch-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-canvas { z-index: 0; width: 100%; height: 100%; display: block; mix-blend-mode: screen; opacity: 0.95; }

.scan-sweep {
  z-index: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(57,255,225,.12) 48%, rgba(57,255,225,.24) 50%, rgba(57,255,225,.12) 52%, transparent 100%);
  mix-blend-mode: screen;
  opacity: .42;
  animation: sweepDown 6s linear infinite;
}

.cursor-glow {
  left: 50%; top: 50%; width: 460px; height: 460px; transform: translate(-50%, -50%);
  z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(57,255,225,.32) 0%, rgba(57,255,225,.12) 30%, transparent 72%);
  filter: blur(16px); opacity: .72; transition: transform 180ms ease-out, opacity 220ms ease-out;
}

.glitch-overlay {
  z-index: 12; opacity: 0; mix-blend-mode: screen;
  background:
    linear-gradient(90deg, rgba(255,0,98,0), rgba(255,0,98,.18), rgba(0,229,255,.18), rgba(255,0,98,0)),
    repeating-linear-gradient(180deg, rgba(255,255,255,.05) 0, rgba(255,255,255,.05) 1px, rgba(0,0,0,0) 1px, rgba(0,0,0,0) 8px);
  filter: contrast(1.2) saturate(1.3);
}

.glitch-overlay.active { opacity: 1; animation: glitchFlash 260ms steps(2, end) 1; }
.glitch-overlay.active::before,
.glitch-overlay.active::after {
  content: ""; position: absolute; inset: 0; background: inherit; mix-blend-mode: screen; opacity: .75;
}
.glitch-overlay.active::before { transform: translateX(-6px); filter: hue-rotate(12deg); }
.glitch-overlay.active::after { transform: translateX(6px); filter: hue-rotate(-16deg); }

@keyframes glitchFlash {
  0% { opacity: 0; clip-path: inset(0 0 100% 0); }
  10% { opacity: 1; clip-path: inset(12% 0 68% 0); }
  25% { opacity: .85; clip-path: inset(0 0 45% 0); }
  45% { opacity: 1; clip-path: inset(35% 0 26% 0); }
  70% { opacity: .8; clip-path: inset(64% 0 10% 0); }
  100% { opacity: 0; clip-path: inset(0 0 100% 0); }
}

@keyframes sweepDown { 0% { transform: translateY(-120%); } 100% { transform: translateY(120%); } }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 50;
  background: linear-gradient(90deg, #39ffe1, #7d7bff, #39ffe1);
  box-shadow: 0 0 14px #39ffe1cc;
}

.site-bg {
  z-index: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(57,255,225,.25) 0%, rgba(57,255,225,0) 34%),
    radial-gradient(circle at 84% 18%, rgba(101,168,255,.32) 0%, rgba(101,168,255,0) 38%),
    radial-gradient(circle at 70% 84%, rgba(75,240,255,.2) 0%, rgba(75,240,255,0) 32%),
    linear-gradient(145deg, #040916 0%, #02040a 54%, #030711 100%);
}

.orb {
  position: absolute; border-radius: 50%; filter: blur(12px); opacity: .88; animation: float 8s ease-in-out infinite;
}
.orb-1 { width: 340px; height: 340px; top: -40px; left: -80px; background: radial-gradient(circle, #39ffe186 0%, #39ffe100 72%); animation-delay: 0s; }
.orb-2 { width: 300px; height: 300px; top: 16%; right: -90px; background: radial-gradient(circle, #7d7bff66 0%, #7d7bff00 72%); animation-delay: -3s; }
.orb-3 { width: 260px; height: 260px; bottom: 8%; left: 28%; background: radial-gradient(circle, #4bf0ff61 0%, #4bf0ff00 72%); animation-delay: -6s; }

.site-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(57,255,225,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,255,225,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 88%);
  opacity: .62;
  animation: gridDrift 28s linear infinite;
}

.site-bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, #c4f8ff07 0, #c4f8ff07 1px, transparent 1px, transparent 5px);
}

@keyframes gridDrift { from { transform: translate3d(0,0,0); } to { transform: translate3d(60px,60px,0); } }
@keyframes float { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(0,-18px,0) scale(1.04); } }

.site-bg .orb, .bg-canvas, .site-bg::before, .site-bg::after { will-change: transform, opacity; }

main, footer { position: relative; z-index: 1; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem clamp(1rem, 3vw, 3rem);
  background: rgba(4,16,34,.85);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; flex-direction: column; }
.brand-main { font-family: "Orbitron", sans-serif; letter-spacing: .08em; font-size: 1.5rem; line-height: 1; color: var(--accent); text-shadow: 0 0 16px #39ffe17d; }
.brand-sub { font-size: .78rem; opacity: .88; color: var(--muted); }

nav { display: flex; gap: 1rem; }
nav a { color: var(--ink); text-decoration: none; font-weight: 500; transition: color 180ms ease, text-shadow 180ms ease; }
nav a:hover, nav a.active { color: var(--accent); text-shadow: 0 0 10px #39ffe19d; }
nav a.active { position: relative; }
nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.35rem; height: 2px; border-radius: 999px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }

.menu-toggle { display: none; }

main { width: min(1180px, 92%); margin: 1.2rem auto 3rem; display: grid; gap: 1.25rem; }
.hero, .panel { background: linear-gradient(180deg, rgba(10,22,39,.80) 0%, rgba(7,20,35,.87) 100%); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }

.hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.4rem; align-items: center; padding: clamp(1.2rem, 2.4vw, 2rem); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(57,255,225,.06), transparent 40%, rgba(125,123,255,.10) 65%, transparent 100%); pointer-events: none; }

.hero h1 { font-family: "Orbitron", sans-serif; letter-spacing: .06em; font-size: clamp(2.8rem, 8vw, 5.8rem); margin: 0; line-height: .92; color: var(--accent); text-shadow: 0 0 24px #39ffe166; }
.hero h2 { margin: .2rem 0 .8rem; font-size: clamp(1rem, 2.2vw, 1.4rem); color: #b7edf6; }

.typing-line { display: flex; align-items: center; gap: .45rem; margin: .25rem 0 .6rem; color: #a9fbf5; }
.typing-label { color: var(--muted); }
#typedRole { color: var(--accent); }
.cursor { display: inline-block; width: 9px; height: 1.05em; background: var(--accent); box-shadow: 0 0 10px #39ffe1cc; animation: blink .9s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero p { max-width: 65ch; color: var(--muted); }
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.2rem; }
.hero-tags span { border: 1px solid var(--line); border-radius: 999px; padding: .26rem .8rem; font-size: .9rem; background: #0a1b2e; }

.hero-photo-wrap { position: relative; }
.photo-frame { position: absolute; inset: -10px; border-radius: 24px; background: linear-gradient(135deg, rgba(57,255,225,.18), rgba(125,123,255,.14), rgba(57,255,225,.06)); filter: blur(2px); animation: pulseGlow 6s ease-in-out infinite; }
@keyframes pulseGlow { 0%,100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.015); } }
.hero-photo { width: 100%; border-radius: 18px; object-fit: cover; border: 1px solid var(--line); box-shadow: 0 0 0 1px #39ffe12b, 0 0 28px #39ffe136; position: relative; z-index: 1; }

.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0 1.1rem; }
.stats-grid article { padding: .85rem; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(10,25,43,.8), rgba(8,20,39,.8)); box-shadow: inset 0 1px 0 #ffffff08; }
.stats-grid strong { display: block; font-family: "Orbitron", sans-serif; font-size: 1.2rem; color: var(--accent); }
.stats-grid span { color: var(--muted); font-size: .88rem; }

.panel { padding: clamp(1rem, 2.2vw, 1.8rem); }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: #7fd8d4; font-weight: 700; }
h3 { margin: .35rem 0 .7rem; font-size: clamp(1.4rem, 3.2vw, 2rem); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.cards article { border: 1px solid var(--line); border-radius: 16px; padding: .9rem; background: #081427; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.cards article:hover { transform: translateY(-4px); border-color: #39ffe15c; box-shadow: 0 14px 30px #0000004d; }
.cards h4 { margin: .1rem 0 .4rem; }
.cards-advanced article { position: relative; overflow: hidden; }
.cards-advanced article::after { content: ""; position: absolute; inset: auto -20% -40% auto; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(57,255,225,.12) 0%, transparent 70%); pointer-events: none; }

.partners-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .65rem; }
.partners-list li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; border: 1px solid var(--line); padding: .7rem .35rem; border-radius: 12px; background: #081427; font-weight: 600; transition: transform 180ms ease, border-color 180ms ease; }
.partners-list li:hover { transform: translateY(-3px); border-color: #39ffe15c; }
.company-logo { width: 38px; height: 38px; object-fit: contain; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: #0a192b; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.gallery-grid img { width: 100%; border-radius: 14px; border: 1px solid var(--line); aspect-ratio: 4 / 5; object-fit: cover; transition: transform 220ms ease, filter 220ms ease; }
.gallery-grid img:hover { transform: scale(1.02); filter: saturate(1.12) contrast(1.05); }

.cta { display: inline-block; text-decoration: none; border-radius: 999px; padding: .62rem 1.2rem; background: var(--accent); color: #01201e; font-weight: 700; border: 1px solid #4ffff74f; transition: transform 180ms ease, background 180ms ease; box-shadow: 0 0 18px #39ffe14a; }
.cta:hover { transform: translateY(-2px); background: var(--accent-dark); }

footer { width: min(1080px, 92%); margin: 0 auto 2rem; text-align: center; opacity: .9; color: var(--muted); position: relative; z-index: 1; }

.back-to-top { position: fixed; right: 1rem; bottom: 1rem; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #081427d9; color: var(--ink); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease; z-index: 30; }
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { border-color: #39ffe15c; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

.cyber-game-panel {
  position: relative;
  overflow: hidden;
}

.cyber-game-panel::after {
  content: "";
  position: absolute;
  inset: auto -6rem -6rem auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 255, 225, 0.2) 0%, rgba(57, 255, 225, 0) 70%);
  pointer-events: none;
}

.game-hud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.game-hud > div {
  border: 1px solid var(--line);
  background: #07192d;
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
}

.hud-label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.1;
}

.game-hud strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--accent);
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
}

.game-arena {
  position: relative;
  margin-top: 0.8rem;
  height: 320px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 20%, rgba(57, 255, 225, 0.14) 0%, transparent 38%),
    linear-gradient(150deg, rgba(3, 10, 20, 0.9), rgba(4, 14, 26, 0.94));
  overflow: hidden;
}

.game-arena::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(57, 255, 225, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 225, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.threat {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(57, 255, 225, 0.65);
  background: radial-gradient(circle, rgba(57, 255, 225, 0.84) 0%, rgba(3, 11, 19, 0.95) 72%);
  box-shadow: 0 0 16px rgba(57, 255, 225, 0.45);
  cursor: crosshair;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.threat:hover {
  transform: scale(1.08);
  box-shadow: 0 0 24px rgba(57, 255, 225, 0.8);
}

.threat::after {
  content: "!";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #dffdf9;
  font-weight: 700;
  font-size: 1rem;
}

.game-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.9rem;
}

.game-btn {
  border: 1px solid rgba(57, 255, 225, 0.5);
  border-radius: 999px;
  background: rgba(57, 255, 225, 0.16);
  color: var(--ink);
  padding: 0.45rem 0.95rem;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 130ms ease, border-color 130ms ease, background 130ms ease;
}

.game-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(57, 255, 225, 0.9);
  background: rgba(57, 255, 225, 0.26);
}

.game-btn-ghost {
  background: transparent;
}

.game-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.games-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.game-tab {
  flex: 1 1 160px;
  border: 1px solid rgba(57, 255, 225, 0.4);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: rgba(3, 10, 20, 0.6);
  cursor: pointer;
  text-align: center;
  transition: all 140ms ease;
}

.game-tab h4 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.game-tab.active {
  border-color: rgba(57, 255, 225, 0.9);
  background: rgba(57, 255, 225, 0.12);
  box-shadow: 0 0 14px rgba(57, 255, 225, 0.25);
}

.game-tab.active h4 {
  color: var(--accent);
}

.game-tab:hover {
  border-color: rgba(57, 255, 225, 0.65);
  background: rgba(57, 255, 225, 0.08);
}

.game-mission {
  display: none;
}

.game-mission.active {
  display: block;
}

.ports-arena,
.code-arena {
  position: relative;
  margin-top: 0.8rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 20%, rgba(57, 255, 225, 0.14) 0%, transparent 38%),
    linear-gradient(150deg, rgba(3, 10, 20, 0.9), rgba(4, 14, 26, 0.94));
  overflow: hidden;
}

.ports-arena {
  min-height: 340px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 1rem;
}

.code-arena {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.8rem;
  overflow-y: auto;
}

.port-tile {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid rgba(57, 255, 225, 0.5);
  background: linear-gradient(135deg, rgba(3, 10, 20, 0.9), rgba(8, 20, 39, 0.95));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  transition: transform 100ms ease, border-color 100ms ease, box-shadow 100ms ease;
  user-select: none;
  touch-action: manipulation;
}

.port-tile:hover {
  transform: scale(1.06);
  border-color: rgba(57, 255, 225, 0.8);
  box-shadow: 0 0 12px rgba(57, 255, 225, 0.3);
}

.port-tile.open {
  border-color: rgba(76, 240, 255, 0.9);
  background: linear-gradient(135deg, rgba(57, 255, 225, 0.3), rgba(75, 240, 255, 0.2));
  box-shadow: 0 0 16px rgba(75, 240, 255, 0.4);
}

.port-tile.closed {
  border-color: rgba(255, 100, 100, 0.6);
  background: linear-gradient(135deg, rgba(255, 100, 100, 0.15), rgba(200, 50, 50, 0.1));
}

.code-snippet {
  background: linear-gradient(135deg, rgba(3, 10, 20, 0.88), rgba(8, 20, 39, 0.92));
  border: 1px solid rgba(57, 255, 225, 0.35);
  border-radius: 10px;
  padding: 0.75rem;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.85rem;
  color: #d9fbff;
  line-height: 1.4;
  position: relative;
  cursor: pointer;
  transition: all 120ms ease;
}

.code-snippet::before {
  content: attr(data-line);
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  font-size: 0.7rem;
  color: var(--muted);
  opacity: 0.6;
}

.code-snippet:hover {
  border-color: rgba(57, 255, 225, 0.65);
  box-shadow: inset 0 0 8px rgba(57, 255, 225, 0.1);
}

.code-snippet.vulnerable {
  border-color: rgba(255, 100, 100, 0.7);
  background: linear-gradient(135deg, rgba(255, 100, 100, 0.2), rgba(200, 50, 50, 0.15));
  box-shadow: 0 0 12px rgba(255, 100, 100, 0.3);
}

.code-snippet.found {
  border-color: rgba(76, 240, 255, 0.9);
  background: linear-gradient(135deg, rgba(57, 255, 225, 0.3), rgba(75, 240, 255, 0.2));
  box-shadow: 0 0 14px rgba(75, 240, 255, 0.4);
}

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .partners-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .game-hud { grid-template-columns: 1fr 1fr; }
  .ports-arena { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .topbar { flex-wrap: wrap; }
  .menu-toggle { display: inline-block; border: 1px solid var(--line); background: #081427; color: var(--ink); border-radius: 999px; padding: .32rem .75rem; font-family: inherit; }
  nav { width: 100%; display: none; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: .7rem; }
  nav.open { display: flex; }
  .partners-list { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .back-to-top { right: .75rem; bottom: .75rem; }
  .game-arena { height: 280px; }
  .ports-arena { grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 300px; gap: .4rem; padding: .8rem; }
  .code-arena { min-height: 280px; }
  .games-container { flex-direction: column; }
  .game-tab { width: 100%; flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .bg-canvas, .scan-sweep, .cursor-glow, .glitch-overlay { display: none; }
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.4rem;
  align-items: center;
  padding: clamp(1.2rem, 2.4vw, 2rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #39ffe10d, transparent 40%, #7d7bff12 65%, transparent 100%);
  pointer-events: none;
}

.hero h1 {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.06em;
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  margin: 0;
  line-height: 0.92;
  color: var(--accent);
  text-shadow: 0 0 24px #39ffe166;
}

.hero h2 {
  margin: 0.2rem 0 0.8rem;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  color: #b7edf6;
}

.typing-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.25rem 0 0.6rem;
  color: #a9fbf5;
}

.typing-label {
  color: var(--muted);
}

#typedRole {
  color: var(--accent);
}

.cursor {
  display: inline-block;
  width: 9px;
  height: 1.05em;
  background: var(--accent);
  box-shadow: 0 0 10px #39ffe1cc;
  animation: blink 0.9s step-end infinite;
}

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

.hero p {
  max-width: 65ch;
  color: var(--muted);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.2rem;
}

.hero-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.26rem 0.8rem;
  font-size: 0.9rem;
  background: #0a1b2e;
}

.hero-photo-wrap {
  position: relative;
}

.photo-frame {
  position: absolute;
  inset: -10px;
  border-radius: 24px;
  background: linear-gradient(135deg, #39ffe12e, #7d7bff1e, #39ffe10b);
  filter: blur(2px);
  animation: pulseGlow 6s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.015); }
}

.hero-photo {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px #39ffe12b, 0 0 28px #39ffe136;
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.1rem;
}

.stats-grid article {
  padding: 0.85rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0a192bcc, #081427cc);
  box-shadow: inset 0 1px 0 #ffffff08;
}

.stats-grid strong {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 1.2rem;
  color: var(--accent);
}

.stats-grid span {
  color: var(--muted);
  font-size: 0.88rem;
}

.panel {
  padding: clamp(1rem, 2.2vw, 1.8rem);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: #7fd8d4;
  font-weight: 700;
}

h3 {
  margin: 0.35rem 0 0.7rem;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.cards-advanced article {
  position: relative;
  overflow: hidden;
}

.cards-advanced article::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, #39ffe11f 0%, transparent 70%);
  pointer-events: none;
}

.cards article {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem;
  background: #081427;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.cards article:hover {
  transform: translateY(-4px);
  border-color: #39ffe15c;
  box-shadow: 0 14px 30px #0000004d;
}

.cards h4 {
  margin: 0.1rem 0 0.4rem;
}

.partners-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.partners-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  padding: 0.7rem 0.35rem;
  border-radius: 12px;
  background: #081427;
  font-weight: 600;
  transition: transform 180ms ease, border-color 180ms ease;
}

.partners-list li:hover {
  transform: translateY(-3px);
  border-color: #39ffe15c;
}

.company-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0a192b;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.gallery-grid img {
  transition: transform 220ms ease, filter 220ms ease;
}

.gallery-grid img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gallery-grid img:hover {
  transform: scale(1.02);
  filter: saturate(1.12) contrast(1.05);
}

.cta {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.62rem 1.2rem;
  background: var(--accent);
  color: #01201e;
  font-weight: 700;
  border: 1px solid #4ffff74f;
  transition: transform 180ms ease, background 180ms ease;
  box-shadow: 0 0 18px #39ffe14a;
}

.cta:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
}

footer {
  width: min(1080px, 92%);
  margin: 0 auto 2rem;
  text-align: center;
  opacity: 0.9;
  color: var(--muted);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #081427d9;
  color: var(--ink);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
  z-index: 30;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: #39ffe15c;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-of-type(2) { transition-delay: 70ms; }
.reveal:nth-of-type(3) { transition-delay: 120ms; }
.reveal:nth-of-type(4) { transition-delay: 160ms; }
.reveal:nth-of-type(5) { transition-delay: 200ms; }
.reveal:nth-of-type(6) { transition-delay: 240ms; }

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

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .partners-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-block;
    border: 1px solid var(--line);
    background: #081427;
    color: var(--ink);
    border-radius: 999px;
    padding: 0.32rem 0.75rem;
    font-family: inherit;
  }

  nav {
    width: 100%;
    display: none;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: 0.7rem;
  }

  nav.open {
    display: flex;
  }

  .partners-list {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

  /* Mobile and touch hardening overrides */
  nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .menu-toggle,
  .cta,
  .game-btn,
  .back-to-top {
    min-height: 44px;
  }

  .game-arena,
  .game-btn,
  .threat,
  .menu-toggle,
  .back-to-top {
    touch-action: manipulation;
  }

  @media (max-width: 680px) {
    body {
      font-size: 15px;
    }

    main {
      width: min(94%, 680px);
      gap: 1rem;
    }

    .topbar {
      padding-top: max(0.9rem, env(safe-area-inset-top));
    }

    nav {
      gap: 0.2rem;
    }

    nav a {
      width: 100%;
      padding: 0.45rem 0.25rem;
    }

    .hero h1 {
      font-size: clamp(2.2rem, 13vw, 3.5rem);
    }

    .hero h2 {
      font-size: 1rem;
    }

    .hero-tags {
      gap: 0.4rem;
    }

    .hero-tags span {
      font-size: 0.8rem;
      padding: 0.24rem 0.65rem;
    }

    .game-controls {
      align-items: stretch;
    }

    .game-btn {
      flex: 1 1 140px;
    }

    .game-status {
      width: 100%;
    }
  }

  @media (max-width: 480px) {
    .partners-list {
      grid-template-columns: 1fr;
    }

    .game-hud {
      grid-template-columns: 1fr;
    }

    .game-arena {
      height: 250px;
    }

    .threat {
      min-width: 50px;
      min-height: 50px;
    }
  }

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

    .threat {
      box-shadow: 0 0 20px rgba(57, 255, 225, 0.65);
    }
  }

  @media (max-width: 900px) {
    .topbar {
      flex-wrap: wrap;
    }

    .menu-toggle {
      display: inline-block;
      border: 1px solid var(--line);
      background: #081427;
      color: var(--ink);
      border-radius: 999px;
      padding: 0.45rem 0.9rem;
      font-family: inherit;
      font-weight: 700;
    }

    nav {
      width: 100%;
      display: none;
      flex-direction: column;
      border-top: 1px solid var(--line);
      padding-top: 0.65rem;
    }

    nav.open {
      display: flex;
    }

    nav a {
      width: 100%;
    }
  }
