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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  background: radial-gradient(circle at center, #1b3a6b 0%, #0a1a33 60%, #050d1a 100%);
  color: #ffffff;
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: #84fab0;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #a18cd1;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(5, 13, 26, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .logo {
  font-size: 22px;
  font-weight: bold;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4, #fbc2eb, #a18cd1, #84fab0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav .nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

nav .nav-links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

nav .nav-links a:hover,
nav .nav-links a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Page Header */
.page-header {
  text-align: center;
  padding: 60px 24px 40px;
}

.page-header h1 {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4, #fbc2eb, #a18cd1, #84fab0, #8fd3f4);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shiftGradient 6s ease infinite;
}

.page-header p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  margin: 0 auto;
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #84fab0;
}

.card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: 'Trebuchet MS', sans-serif;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #7b2ff7, #9d4edd, #c77dff);
  background-size: 300% 300%;
  animation: purpleShift 5s ease infinite;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(157, 78, 221, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 0 32px rgba(157, 78, 221, 0.7);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

.btn-success {
  background: linear-gradient(135deg, #56ab2f, #4caf50, #81c784);
  background-size: 300% 300%;
  animation: greenShift 5s ease infinite;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
}

.btn-success:hover {
  box-shadow: 0 0 32px rgba(76, 175, 80, 0.7);
  transform: translateY(-2px);
}

/* Animations */
@keyframes shiftGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

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

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

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

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

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Sections */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #ffffff;
}

.section-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  margin-bottom: 32px;
}

/* Stats / Numbers */
.stat-number {
  font-size: 36px;
  font-weight: bold;
  background: linear-gradient(135deg, #ff9a9e, #a18cd1, #84fab0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 56px;
  font-weight: bold;
  margin-bottom: 16px;
  line-height: 1.2;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4, #fbc2eb, #a18cd1, #84fab0, #8fd3f4);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shiftGradient 8s ease infinite;
}

.hero p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero .hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Feature highlight boxes */
.highlight-box {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 24px;
  border-left: 4px solid;
}

.highlight-box.purple { border-color: #a18cd1; }
.highlight-box.green { border-color: #84fab0; }
.highlight-box.orange { border-color: #ffb74d; }

.highlight-box h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.highlight-box p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* Step list */
.steps {
  counter-reset: step;
}

.step-item {
  counter-increment: step;
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.step-item:last-child {
  border-bottom: none;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7b2ff7, #a18cd1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
}

.step-content h4 {
  font-size: 18px;
  margin-bottom: 6px;
}

.step-content p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* Game demo embed */
.game-demo {
  background: rgba(5, 13, 26, 0.5);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin: 32px 0;
}

.game-demo iframe {
  width: 100%;
  height: 600px;
  border: none;
}

/* Illustration / mockup */
.game-illustration {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(5, 13, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  margin: 20px 0;
}

/* Screenshot placeholder */
.screenshot {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin: 16px 0;
  background: rgba(5, 13, 26, 0.5);
}

.screenshot img {
  width: 100%;
  display: block;
}

.screenshot .screenshot-caption {
  padding: 12px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
}

/* Game UI Mockup */
.ui-mockup {
  background: radial-gradient(circle at center, #1b3a6b 0%, #0a1a33 60%, #050d1a 100%);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 16px 0;
  position: relative;
  overflow: hidden;
}

.ui-mockup .mockup-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  margin-bottom: 12px;
}

.ui-mockup .mockup-namebadge {
  padding: 8px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4, #fbc2eb);
  background-size: 300% 300%;
  animation: playfulShift 6s ease infinite;
  font-size: 12px;
  font-weight: bold;
  color: #ffffff;
  text-transform: uppercase;
}

.ui-mockup .mockup-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7b2ff7, #9d4edd);
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  color: #ffffff;
}

.ui-mockup .mockup-pill.green {
  background: linear-gradient(135deg, #56ab2f, #4caf50);
}

.ui-mockup .mockup-pill.orange {
  background: linear-gradient(135deg, #ff9800, #ffb74d);
  color: #6a1b9a;
}

.ui-mockup .mockup-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4, #fbc2eb, #a18cd1);
  background-size: 300% 300%;
  animation: playfulShift 6s ease infinite;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: bold;
  font-size: 16px;
  margin: 4px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

/* Inline code */
code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
  color: #84fab0;
}

/* Info boxes */
.info-box {
  background: rgba(132, 250, 176, 0.08);
  border: 1px solid rgba(132, 250, 176, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
}

.info-box strong {
  color: #84fab0;
}

.info-box.warning {
  background: rgba(255, 183, 77, 0.08);
  border-color: rgba(255, 183, 77, 0.2);
}

.info-box.warning strong {
  color: #ffb74d;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

thead th {
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 16px;
  text-align: left;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Footer */
footer {
  text-align: center;
  padding: 32px 24px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Skills tracker specific */
.skill-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin: 8px 0;
}

.skill-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7b2ff7, #a18cd1, #84fab0);
  transition: width 0.6s ease;
}

.tier-badge-display {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier-badge-display.shield {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Tag pills */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}

.tag.purple { background: rgba(161, 140, 209, 0.15); color: #a18cd1; }
.tag.green { background: rgba(132, 250, 176, 0.15); color: #84fab0; }
.tag.gold { background: rgba(255, 215, 0, 0.15); color: #ffd700; }
.tag.red { background: rgba(229, 57, 53, 0.15); color: #ef5350; }

/* Responsive */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 36px;
  }

  .page-header h1 {
    font-size: 30px;
  }

  nav {
    padding: 14px 16px;
  }

  nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(5, 13, 26, 0.95);
    backdrop-filter: blur(12px);
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  nav .nav-links.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

@media (min-width: 901px) {
  .mobile-menu-btn {
    display: none;
  }
}
