@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700;900&display=swap');

:root {
  --color-bg-1: #0a0a14;
  --color-bg-2: #16162a;
  --color-bg-3: #1a1a36;
  --color-primary: #00f2fe;
  --color-secondary: #4facfe;
  --color-accent: #ff0844;
  --color-text: #ffffff;
  --color-text-muted: #b0c4de;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
  font-family: 'Outfit', sans-serif;
  color: var(--color-text);
  background: linear-gradient(45deg, var(--color-bg-1), var(--color-bg-2), var(--color-bg-3));
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  overflow-x: hidden;
  line-height: 1.6;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

h1, h2, h3 { line-height: 1.2; }

.text-gradient {
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(10, 10, 20, 0.6);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: 2px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--color-primary);
  transition: 0.3s;
}

.nav-links a:hover::after { width: 100%; }

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.hero-content-wrapper {
  background: rgba(0, 0, 0, 0.4);
  padding: 60px;
  border-radius: 30px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.1);
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  animation: slideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero p {
  font-size: 1.5rem;
  color: #fff;
  max-width: 800px;
  margin-bottom: 40px;
  animation: slideUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-primary {
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(45deg, var(--color-accent), #ff758c);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(255, 8, 68, 0.4);
  transition: all 0.3s ease;
  display: inline-block;
  animation: slideUp 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(255, 8, 68, 0.6);
}

.services { padding: 100px 5%; }
.services-title { text-align: center; font-size: 3.5rem; margin-bottom: 50px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-15px);
  border-color: var(--color-primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.service-icon { font-size: 4rem; margin-bottom: 20px; text-shadow: 0 0 15px var(--color-primary); }
.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--color-primary); }


/* ═══════════════════════════════════════════════════════
   NEURAL BREAKER — Game Section
   ═══════════════════════════════════════════════════════ */

.game-section {
  padding: 100px 5% 80px;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(7,11,23,0.97) 100%);
  backdrop-filter: blur(10px);
  border-top:    1px solid rgba(0,242,254,0.12);
  border-bottom: 1px solid rgba(0,242,254,0.12);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Ambient top glow line */
.game-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, #00f2fe 50%, transparent 100%);
  opacity: 0.5;
}

/* Section header */
.nb-section-header { margin-bottom: 48px; }

.nb-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 6px;
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.75;
}

.nb-title {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: 5px;
  margin-bottom: 14px;
  line-height: 1;
}

.nb-desc {
  font-size: 1.0rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Layout ─────────────────────────────────────────── */
.nb-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

/* ── Side panels ─────────────────────────────────────── */
.nb-side-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 160px;
  flex-shrink: 0;
}

/* Stat card */
.nb-stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,242,254,0.12);
  border-radius: 14px;
  padding: 18px 16px 14px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s;
}
.nb-stat-card:hover { border-color: rgba(0,242,254,0.3); }

.nb-stat-label {
  font-size: 0.65rem;
  letter-spacing: 4px;
  color: var(--color-text-muted);
  font-weight: 700;
  margin-bottom: 6px;
}

.nb-stat-value {
  font-size: 2.0rem;
  font-weight: 900;
  line-height: 1;
  color: var(--color-primary);
  text-shadow: 0 0 14px rgba(0,242,254,0.55);
}
.nb-stat-best  { color: #ffd60a; text-shadow: 0 0 14px rgba(255,214,10,0.5); }
.nb-stat-level { color: #bf5af2; text-shadow: 0 0 14px rgba(191,90,242,0.5); }

/* Lives */
.nb-lives-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 1.4rem;
  margin-top: 4px;
}
.nb-life-on  { color: #ff0844; text-shadow: 0 0 10px #ff0844; transition: 0.3s; }
.nb-life-off { color: rgba(255,255,255,0.12); transition: 0.3s; }

/* Power-up legend */
.nb-powerup-legend {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: left;
}
.nb-legend-title {
  font-size: 0.6rem;
  letter-spacing: 4px;
  color: var(--color-text-muted);
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}
.nb-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 7px;
}
.nb-badge {
  border: 1px solid;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* Controls hint */
.nb-controls-hint {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 16px 14px;
}
.nb-hint-title {
  font-size: 0.6rem;
  letter-spacing: 4px;
  color: var(--color-text-muted);
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}
.nb-hint-row {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  text-align: center;
}
kbd {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.78rem;
  font-family: inherit;
  margin: 0 2px;
}

/* ── Canvas ─────────────────────────────────────────── */
.nb-canvas-wrap {
  flex: 1;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0  30px rgba(0,242,254,0.12),
    0 0  70px rgba(0,242,254,0.05),
    inset 0 0 0 1px rgba(0,242,254,0.18);
  max-width: 460px;
  width: 100%;
}

#neural-canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

/* ── Mobile D-pad ────────────────────────────────────── */
.nb-dpad {
  display: none;
  justify-content: center;
  gap: 50px;
  margin-top: 28px;
}

.nb-dpad-btn {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(0,242,254,0.08);
  border: 1px solid rgba(0,242,254,0.35);
  color: var(--color-primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: 0.15s;
  -webkit-tap-highlight-color: transparent;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(0,242,254,0.1);
}
.nb-dpad-btn:active {
  background: var(--color-primary);
  color: #000;
  transform: scale(0.9);
  box-shadow: 0 0 25px rgba(0,242,254,0.5);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .nb-layout {
    flex-direction: column;
    align-items: center;
  }
  .nb-side-panel { width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .nb-stat-card  { flex: 1 1 100px; min-width: 90px; }
  .nb-powerup-legend,
  .nb-controls-hint { display: none; }
  .nb-canvas-wrap { width: 100%; max-width: 400px; }
  .nb-dpad { display: flex; }
  .nb-title { font-size: 2.2rem; }
}


footer { padding: 50px; background: #050508; text-align: center; border-top: 1px solid var(--glass-border); }
footer p { color: var(--color-text-muted); margin-top: 20px; }

.floating { animation: floating 3s ease-in-out infinite; }
@keyframes floating { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }

@media (max-width: 768px) {
  .hero h1 { font-size: 3rem; }
  .nav-links { display: none; }
  .hero-content-wrapper { padding: 30px; }
}
