/* ============================================================
   splatbasset.dev — pure HTML + CSS build
   Colors: navy #0a1628 | white #ffffff | green #00ff88
   ============================================================ */

:root {
  --navy: #0a1628;
  --navy-panel: #0d1f35;
  --navy-line: #24344d;
  --green: #00ff88;
  --white: #ffffff;
  --radius: 0.75rem;
  --max: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--navy);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: 'JetBrains Mono', ui-monospace, 'Courier New', monospace; }

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ------------------------------------------------------------
   NAVBAR
   ------------------------------------------------------------ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--navy-line);
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
}
.navbar .container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.25rem;
}
.logo svg { color: var(--green); width: 28px; height: 28px; transition: transform 0.15s ease; }
.logo:hover svg { transform: rotate(12deg); }
.logo .accent { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.15s ease;
}
.nav-links a:hover { color: var(--white); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active { color: var(--green); background: rgba(0, 255, 136, 0.1); }

/* mobile menu (checkbox hack, no JS) */
.nav-toggle { display: none; }
.nav-burger {
  display: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.5rem;
}
.nav-burger svg { width: 24px; height: 24px; }
.nav-burger .icon-close { display: none; }
.nav-mobile {
  display: none;
  border-top: 1px solid var(--navy-line);
  background: var(--navy);
}
.nav-mobile a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}
.nav-mobile a.active { color: var(--green); background: rgba(0, 255, 136, 0.1); }

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary {
  background: var(--green);
  color: var(--navy);
}
.btn-primary:hover {
  background: rgba(0, 255, 136, 0.9);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.35);
  transform: translateY(-2px);
}
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  background: transparent;
}
.btn-ghost:hover {
  border-color: rgba(0, 255, 136, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

/* ------------------------------------------------------------
   SHARED SECTION HELPERS
   ------------------------------------------------------------ */
section { position: relative; }
.sec-navy { background: var(--navy); }
.sec-white { background: var(--white); }
.py { padding: 5rem 0; }
@media (min-width: 640px) { .py { padding: 7rem 0; } }

.eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--green);
  background: rgba(0, 255, 136, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}
.sec-head { text-align: center; margin-bottom: 4rem; }
.sec-head h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.sec-head p { margin-top: 1rem; font-size: 1.125rem; max-width: 42rem; margin-left: auto; margin-right: auto; }
.on-navy h2, .on-navy h1 { color: var(--white); }
.on-navy .sec-head p { color: rgba(255, 255, 255, 0.5); }
.on-white h2, .on-white h1 { color: var(--navy); }
.on-white .sec-head p { color: rgba(10, 22, 40, 0.6); }

.grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image:
    linear-gradient(var(--green) 1px, transparent 1px),
    linear-gradient(90deg, var(--green) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
  padding-top: 64px;
}
.hero-grid {
  position: absolute; inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(var(--green) 1px, transparent 1px),
    linear-gradient(90deg, var(--green) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(0, 255, 136, 0.06) 0%, transparent 60%);
}
.hero .container { position: relative; z-index: 10; }
.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr 1fr; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 255, 136, 0.2);
  background: rgba(0, 255, 136, 0.05);
  margin-bottom: 2rem;
}
.hero-badge svg { width: 16px; height: 16px; color: var(--green); }
.hero-badge span { font-family: 'JetBrains Mono', monospace; font-size: 0.875rem; color: var(--green); }
.hero h1 {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero h1 .accent { color: var(--green); }
.hero-sub {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 32rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* code window */
.code-window {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--navy-panel);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.dot { width: 12px; height: 12px; border-radius: 9999px; }
.dot.red { background: rgba(239, 68, 68, 0.7); }
.dot.yellow { background: rgba(234, 179, 8, 0.7); }
.dot.green { background: rgba(34, 197, 94, 0.7); }
.code-file { margin-left: 0.75rem; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: rgba(255, 255, 255, 0.3); }
.code-body { padding: 1.5rem; font-family: 'JetBrains Mono', monospace; font-size: 0.875rem; line-height: 1.75; }
.code-line { display: flex; }
.code-num { width: 2rem; text-align: right; margin-right: 1.5rem; color: rgba(255, 255, 255, 0.2); user-select: none; }
.code-green { color: var(--green); }
.code-dim { color: rgba(255, 255, 255, 0.8); }
.code-dimmer { color: rgba(255, 255, 255, 0.6); }
.cursor { height: 20px; width: 8px; background: var(--green); animation: blink 1s step-end infinite; }
.code-window-wrap { display: none; }
@media (min-width: 1024px) { .code-window-wrap { display: block; } }

@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* ------------------------------------------------------------
   LANGUAGE GRID (home)
   ------------------------------------------------------------ */
.lang-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .lang-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lang-grid { grid-template-columns: repeat(4, 1fr); } }
.lang-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(10, 22, 40, 0.1);
  background: var(--white);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.25s ease;
}
.lang-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 255, 136, 0.4);
  transform: translateY(-4px);
}
.lang-icon {
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  width: 80px;
  border-radius: var(--radius);
  transition: transform 0.25s ease;
}
.lang-card:hover .lang-icon { transform: scale(1.1); }
.lang-icon svg { width: 40px; height: 40px; }
.lang-card h3 { font-family: 'JetBrains Mono', monospace; font-size: 1.25rem; font-weight: 700; color: var(--navy); }

/* ------------------------------------------------------------
   VALUE PROPS (home)
   ------------------------------------------------------------ */
.why-deco { position: absolute; inset: 0; opacity: 0.05; pointer-events: none; }
.why-deco span { position: absolute; font-family: 'JetBrains Mono', monospace; color: var(--green); }
.why-deco .b1 { top: 2.5rem; left: 2.5rem; font-size: 3.75rem; }
.why-deco .b2 { bottom: 2.5rem; right: 2.5rem; font-size: 3.75rem; }
.why-deco .b3 { top: 50%; left: 25%; font-size: 2.25rem; }
.why-deco .b4 { top: 33%; right: 25%; font-size: 2.25rem; }
.props-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  z-index: 10;
}
@media (min-width: 768px) { .props-grid { grid-template-columns: repeat(3, 1fr); } }
.prop-card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  padding: 2rem;
  transition: all 0.25s ease;
}
.prop-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 255, 136, 0.3);
  transform: translateY(-4px);
}
.prop-card .p-icon { color: var(--green); margin-bottom: 1.25rem; }
.prop-card .p-icon svg { width: 32px; height: 32px; }
.prop-card h3 { font-family: 'JetBrains Mono', monospace; font-size: 1.25rem; font-weight: 700; color: var(--white); margin-bottom: 0.75rem; }
.prop-card p { color: rgba(255, 255, 255, 0.6); line-height: 1.6; }

/* ------------------------------------------------------------
   CTA
   ------------------------------------------------------------ */
.cta-wrap { text-align: center; }
.cta-wrap h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.cta-wrap p { font-size: 1.125rem; color: rgba(10, 22, 40, 0.6); max-width: 36rem; margin: 0 auto 2.5rem; }

/* ------------------------------------------------------------
   COURSES PAGE
   ------------------------------------------------------------ */
.page-top { padding-top: 64px; }
.courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .courses-grid { grid-template-columns: repeat(2, 1fr); } }
.course-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(10, 22, 40, 0.1);
  background: var(--white);
  padding: 2rem;
  transition: all 0.25s ease;
}
.course-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 255, 136, 0.3);
  transform: translateY(-4px);
}
.course-accent { position: absolute; top: 0; left: 0; right: 0; height: 4px; transition: height 0.25s ease; }
.course-card:hover .course-accent { height: 6px; }
.course-inner { display: flex; align-items: flex-start; gap: 1.5rem; }
.course-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  width: 80px;
  border-radius: var(--radius);
  transition: transform 0.25s ease;
}
.course-card:hover .course-icon { transform: scale(1.1); }
.course-icon svg { width: 48px; height: 48px; }
.course-content { flex: 1; min-width: 0; }
.course-title-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.25rem; flex-wrap: wrap; }
.course-title-row h3 { font-family: 'JetBrains Mono', monospace; font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.course-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: rgba(10, 22, 40, 0.05);
  color: rgba(10, 22, 40, 0.6);
}
.course-tagline { font-family: 'JetBrains Mono', monospace; font-size: 0.875rem; color: rgba(10, 22, 40, 0.5); margin-bottom: 0.75rem; }
.course-desc { color: rgba(10, 22, 40, 0.6); line-height: 1.6; margin-bottom: 1.25rem; }
.course-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(10, 22, 40, 0.5);
}
.course-link svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------
   ABOUT PAGE
   ------------------------------------------------------------ */
.about-narrow { max-width: 800px; margin: 0 auto; }
.terminal {
  border-radius: var(--radius);
  border: 1px solid rgba(10, 22, 40, 0.1);
  background: var(--navy);
  padding: 1.5rem;
  overflow: hidden;
  margin-bottom: 2rem;
}
.terminal-body { font-family: 'JetBrains Mono', monospace; font-size: 0.875rem; color: rgba(255, 255, 255, 0.8); }
.terminal-body p { margin-bottom: 0.5rem; }
.terminal-body .prompt { color: var(--green); }
.terminal-body .out { color: rgba(255, 255, 255, 0.5); padding-left: 1rem; }
.terminal-body .gap { margin-top: 1rem; }
.about-prose p { color: rgba(10, 22, 40, 0.7); line-height: 1.7; font-size: 1.125rem; margin-bottom: 1.5rem; }
.about-prose strong { color: var(--navy); }
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }
.value-card {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
}
.value-card:hover { transform: translateY(-4px); border-color: rgba(0, 255, 136, 0.3); }
.value-card svg { width: 40px; height: 40px; color: var(--green); margin: 0 auto 1.25rem; }
.value-card h3 { font-family: 'JetBrains Mono', monospace; font-size: 1.25rem; font-weight: 700; color: var(--white); margin-bottom: 0.75rem; }
.value-card p { color: rgba(255, 255, 255, 0.5); }

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.footer {
  border-top: 1px solid var(--navy-line);
  background: var(--navy);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
@media (min-width: 768px) { .footer-inner { flex-direction: row; } }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; color: var(--white); font-family: 'JetBrains Mono', monospace; font-size: 1.125rem; font-weight: 700; }
.footer-brand svg { width: 20px; height: 20px; color: var(--green); }
.footer-brand .accent { color: var(--green); }
.footer-links { display: flex; align-items: center; gap: 1.5rem; }
.footer-links a { font-family: 'JetBrains Mono', monospace; font-size: 0.875rem; color: rgba(255, 255, 255, 0.5); transition: color 0.15s ease; }
.footer-links a:hover { color: var(--green); }
.footer-copy { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: rgba(255, 255, 255, 0.3); }

/* ------------------------------------------------------------
   ENTRANCE ANIMATIONS (pure CSS, on load)
   ------------------------------------------------------------ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.anim { opacity: 0; animation: fadeUp 0.6s ease forwards; }
.anim-left { opacity: 0; animation: fadeInLeft 0.7s ease forwards; }
.anim-right { opacity: 0; animation: fadeInRight 0.7s ease forwards; }
.anim-fade { opacity: 0; animation: fadeIn 0.7s ease forwards; }

.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.3s; }
.d4 { animation-delay: 0.4s; }
.d5 { animation-delay: 0.5s; }
.d6 { animation-delay: 0.6s; }
.d7 { animation-delay: 0.7s; }
.d8 { animation-delay: 0.8s; }

@media (prefers-reduced-motion: reduce) {
  .anim, .anim-left, .anim-right, .anim-fade { animation: none; opacity: 1; }
  .cursor { animation: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------
   MOBILE NAV TOGGLE BEHAVIOR
   ------------------------------------------------------------ */
@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-toggle:checked ~ .nav-mobile { display: block; }
  .nav-toggle:checked ~ .container .nav-burger .icon-open { display: none; }
  .nav-toggle:checked ~ .container .nav-burger .icon-close { display: block; }
}
