:root {
  --bg: #000000;
  --near: #0a0a0a;
  --surf: #111111;
  --bdr: #1f1f1f;
  --bdr2: #2a2a2a;
  --txt: #f0f0f0;
  --muted: #555555;
  --lime: #b6ff00;
  --cyan: #00cfff;
  --pink: #ff3cac;
  --r: 6px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--txt);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

/* CURSOR */
#cur {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--lime);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
  mix-blend-mode: difference;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bdr);
}

.ni {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--lime);
}

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

.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--lime);
}

/* LAYOUT */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* HERO */
#hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--bdr) 1px, transparent 1px),
    linear-gradient(90deg, var(--bdr) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  padding: 80px 0 100px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.hero-grid>div {
  min-width: 0;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--lime);
  border: 1px solid rgba(182, 255, 0, 0.22);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  animation: fadeIn 0.5s ease both;
}

.tag-dot {
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  animation: blink 1.8s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.2
  }
}

.hero-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  /* Reduced from clamp to fit within viewport perfectly without breaks */
  font-size: clamp(1.5rem, 8.5vw, 5.2rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
  animation: slideUp 0.6s 0.1s ease both;
  /* Ensure heading stays within container */
  max-width: 100%;
}

.hero-name .lime {
  color: var(--lime);
}

.hero-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.75rem, 1.4vw, 1rem);
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: slideUp 0.6s 0.2s ease both;
}

.hero-bio {
  max-width: 500px;
  font-size: 1.05rem;
  color: #777;
  margin-bottom: 40px;
  animation: slideUp 0.6s 0.3s ease both;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: slideUp 0.6s 0.4s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--r);
  transition: all 0.2s;
  cursor: pointer;
}

.btn-lime {
  background: var(--lime);
  color: #000;
  border: 2px solid var(--lime);
}

.btn-lime:hover {
  background: #ccff33;
  border-color: #ccff33;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--txt);
  border: 2px solid var(--bdr2);
}

.btn-ghost:hover {
  border-color: var(--muted);
  transform: translateY(-2px);
}

.hero-socials {
  display: flex;
  gap: 10px;
  margin-top: 36px;
  animation: slideUp 0.6s 0.5s ease both;
}

.sl {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bdr2);
  border-radius: var(--r);
  color: var(--muted);
  transition: all 0.2s;
}

.sl:hover {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-3px);
}

.sl svg {
  width: 17px;
  height: 17px;
}

/* STATS */
.hero-stats {
  display: flex;
  flex-direction: column;
  height: 290px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(transparent, black 10%, black 90%, transparent);
  animation: fadeIn 0.8s 0.5s ease both;
}

.stats-track {
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: scroll-v 30s linear infinite;
}

.stats-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-v {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(calc(-50% - 1px));
  }
}

.sbox {
  background: var(--surf);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 20px 24px;
  min-width: 160px;
  position: relative;
  overflow: hidden;
}

.sbox::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
}

.sbox.l::before {
  background: var(--lime);
}

.sbox.c::before {
  background: var(--cyan);
}

.sbox.p::before {
  background: var(--pink);
}

.snum {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.sbox.l .snum {
  color: var(--lime);
}

.sbox.c .snum {
  color: var(--cyan);
}

.sbox.p .snum {
  color: var(--pink);
}

.slbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

/* SECTIONS */
section {
  padding: 110px 0;
}

.sec-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 14px;
}

.sec-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 60px;
}

.hr {
  height: 1px;
  background: var(--bdr);
}

/* COURSES */
#courses {
  background: var(--near);
}

.cg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px;
}

.cc {
  background: var(--bg);
  border: 1px solid var(--bdr);
  padding: 28px;
  transition: all 0.22s;
  position: relative;
  overflow: hidden;
}

.cc::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transition: transform 0.25s;
  transform-origin: left;
}

.cc:hover {
  background: var(--surf);
}

.cc:hover::after {
  transform: scaleX(1);
}

.cbadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.18);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.ctitle {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.25;
}

.cmeta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.clink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lime);
  transition: gap 0.15s;
}

.clink:hover {
  gap: 10px;
}

.clink svg {
  width: 13px;
  height: 13px;
}

/* CONNECT */
#connect {
  background: var(--near);
}

.cong {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2px;
}

.cocard {
  background: var(--bg);
  border: 1px solid var(--bdr);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
}

.cocard:hover {
  background: var(--surf);
  border-color: var(--bdr2);
}

.cocard:hover .coname {
  color: var(--lime);
}

.coico {
  width: 42px;
  height: 42px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.coico svg {
  width: 20px;
  height: 20px;
}

.coname {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
  transition: color 0.2s;
}

.cohandle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
}

/* FOOTER */
.foot {
  border-top: 1px solid var(--bdr);
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.flogo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.flogo span {
  color: var(--lime);
}

.fcopy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ANIMATIONS */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.d1 {
  transition-delay: 0.1s
}

.d2 {
  transition-delay: 0.2s
}

/* RESPONSIVE */
@media(max-width:700px) {

  .wrap,
  .ni {
    padding: 0 20px;
  }

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

  .hero-stats {
    height: auto;
    width: 100%;
    margin-top: 10px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  }

  .stats-track {
    display: flex;
    flex-direction: row;
    gap: 2px;
    width: max-content;
    animation: scroll-h 30s linear infinite;
  }

  @keyframes scroll-h {
    from {
      transform: translateX(0);
    }

    to {
      transform: translateX(calc(-50% - 1px));
    }
  }

  .sbox {
    flex: 0 0 auto;
    min-width: 200px;
  }

  .nav-links {
    display: none
  }

  .foot {
    flex-direction: column;
    gap: 10px;
    text-align: center
  }

  .exp-item {
    grid-template-columns: 1fr
  }

  .yt-banner {
    flex-wrap: wrap
  }

  .yt-sub-btn {
    margin-left: 0
  }
}