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

:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #141414;
  --bg-card: #242424;
  --bg-card-hover: #2c2c2c;
  --accent-orange: #f97316;
  --accent-orange-dim: rgba(249, 115, 22, 0.15);
  --accent-blue: #3b82f6;
  --accent-blue-dim: rgba(59, 130, 246, 0.15);
  --text-primary: #f5f5f5;
  --text-secondary: #a3a3a3;
  --text-muted: #6b6b6b;
  --radius: 16px;
  --radius-sm: 12px;
  --glow-orange: 0 0 24px rgba(249, 115, 22, 0.25);
  --glow-blue: 0 0 24px rgba(59, 130, 246, 0.2);
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

#particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

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

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(6px);
  animation: logoIn 650ms cubic-bezier(.2,.9,.2,1) forwards;
}

@keyframes logoIn {
  to { opacity: 1; transform: translateY(0); }
}

.logo-symbol {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.logo-symbol svg {
  width: 100%;
  height: 100%;
}

.ringBase {
  stroke: url(#steelGrad);
  stroke-width: 16;
  fill: none;
  opacity: .92;
  stroke-linecap: round;
}

.ringFill {
  stroke: url(#fillGrad);
  stroke-width: 16;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: var(--dash) var(--gap);
  stroke-dashoffset: calc(var(--dash) + var(--gap));
  animation: ringFillUp 2400ms cubic-bezier(.18,.86,.2,1) forwards;
  animation-delay: 250ms;
}

@keyframes ringFillUp {
  to { stroke-dashoffset: 0; }
}

.dot {
  transform-origin: 56px 56px;
  animation: logoPulse 1800ms cubic-bezier(.33,0,.2,1) infinite;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: .92; }
}

.dotGlow {
  transform-origin: 56px 56px;
  animation: logoPulseGlow 1800ms cubic-bezier(.33,0,.2,1) infinite;
  opacity: .55;
}

@keyframes logoPulseGlow {
  0%, 100% { transform: scale(1); opacity: .40; }
  50% { transform: scale(1.22); opacity: .72; }
}

.logo-wordmark {
  display: flex;
  align-items: baseline;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -1.5px;
  font-weight: 600;
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.logo-wordmark .join {
  color: #f5f5f5;
}

.logo-wordmark .live {
  background: linear-gradient(90deg, #ffb24a 0%, #ff7a2f 45%, #ff4f2a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 650;
}

.logo-typewrap {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.logo-typed {
  display: inline-block;
  white-space: nowrap;
  clip-path: inset(-20px 100% -20px 0);
  animation: logoTyping 2200ms steps(var(--chars)) forwards;
  animation-delay: 900ms;
}

@keyframes logoTyping {
  to { clip-path: inset(-20px 0% -20px 0); }
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-btn {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  background: var(--accent-orange);
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.cta-btn:hover {
  transform: scale(1.04);
  box-shadow: var(--glow-orange);
}

#playground {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.category {
  margin-bottom: 4rem;
}

.category h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cat-icon {
  font-size: 1.3rem;
}

.cat-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.4rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  cursor: pointer;
}

.card:hover {
  transform: scale(1.02);
  background: var(--bg-card-hover);
  box-shadow: var(--glow-orange);
  border-color: rgba(249, 115, 22, 0.2);
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.2rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.progress-section {
  margin-top: 1.5rem;
  padding: 1.2rem 1.4rem;
  background: var(--bg-card);
  border-radius: var(--radius);
}

.progress-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: var(--bg-secondary);
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-blue));
  border-radius: 5px;
  transition: width 1s ease;
}

.progress-percent {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  text-align: right;
}

footer {
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid #2a2a2a;
}

.footer-credit {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.footer-brand {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.social-icons a {
  color: var(--text-secondary);
  transition: color var(--transition), transform var(--transition);
}

.social-icons a:hover {
  color: var(--accent-orange);
  transform: scale(1.15);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-logo {
    gap: 16px;
  }

  .logo-symbol {
    width: 68px;
    height: 68px;
  }

  .logo-wordmark {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

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

  #playground {
    padding: 3rem 1rem 4rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-logo {
    gap: 12px;
  }

  .logo-symbol {
    width: 52px;
    height: 52px;
  }

  .logo-wordmark {
    font-size: 28px;
  }

  .cta-btn {
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
  }
}
