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

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

:root {
  --bg: #0a0a0d;
  --bg-1: #0f0f14;
  --bg-2: #141419;
  --bg-3: #1a1a22;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: #eeeef2;
  --text-2: #7e7e8f;
  --text-3: #44444f;
  --accent: #7c6af7;
  --accent-dim: rgba(124,106,247,0.1);
  --green: #34d399;
  --green-dim: rgba(52,211,153,0.1);
  --yellow: #fbbf24;
  --yellow-dim: rgba(251,191,36,0.1);
  --orange: #fb923c;
  --orange-dim: rgba(251,146,60,0.1);
  --red: #f87171;
  --red-dim: rgba(248,113,113,0.1);
  --pink: #f472b6;
  --pink-dim: rgba(244,114,182,0.1);
  --purple: #a78bfa;
  --purple-dim: rgba(167,139,250,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 5px;
}

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ─── Nav ─── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,13,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 32px;
  height: 32px;
  background: var(--accent-dim);
  border: 1px solid rgba(124,106,247,0.2);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.nav-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 150ms, background 150ms;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

/* ─── Nav Action Buttons Group ─── */
.nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important; /* Kept close together */
  margin-left: auto !important; /* Push everything to the right side of the navbar */
}

/* ─── WhatsApp CTA button ─── */
.nav-wa-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  height: 34px !important;
  padding: 0 14px !important;
  margin-left: 0 !important; /* Margin replaced by flexbox gap */
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #fff !important;
  background: #25d366 !important;
  border-radius: var(--radius-sm) !important;
  text-decoration: none !important;
  letter-spacing: -0.01em !important;
  flex-shrink: 0 !important;
  transition: background 150ms, transform 100ms, box-shadow 150ms !important;
  box-shadow: 0 0 0 0 rgba(37,211,102,0) !important;
}

.nav-wa-btn:hover {
  background: #1ebe58 !important;
  box-shadow: 0 0 18px rgba(37,211,102,0.35) !important;
  color: #fff !important;
}

.nav-wa-btn:active {
  transform: scale(0.97) !important;
}

/* ─── Download Curriculum button ─── */
.nav-curriculum-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 34px !important;
  padding: 0 14px !important;
  margin-left: 0 !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--accent) !important;
  background: var(--accent-dim) !important;
  border: 1px solid rgba(124,106,247,0.25) !important;
  border-radius: var(--radius-sm) !important;
  text-decoration: none !important;
  letter-spacing: -0.01em !important;
  flex-shrink: 0 !important;
  transition: background 150ms, border-color 150ms, transform 100ms, box-shadow 150ms !important;
}

.nav-curriculum-btn:hover {
  background: rgba(124,106,247,0.18) !important;
  border-color: rgba(124,106,247,0.5) !important;
  box-shadow: 0 0 16px rgba(124,106,247,0.2) !important;
  color: var(--accent) !important;
}

.nav-curriculum-btn:active {
  transform: scale(0.97) !important;
}

/* ─── Hero ─── */

.hero {
  padding: 88px 28px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(124,106,247,0.11) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  background: var(--bg-1);
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 22px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms, transform 100ms;
  letter-spacing: -0.01em;
}

.btn-primary:hover { background: #9080ff; }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: color 150ms, border-color 150ms, background 150ms;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.03);
}

/* ─── Stats Strip ─── */

.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
}

.stat {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: center;
}

.stat-num {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.stat-lbl {
  font-size: 12.5px;
  color: var(--text-2);
}

.stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── Labs Section ─── */

.labs-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 28px 100px;
}

.labs-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.labs-header-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

.labs-header-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 2px 9px;
  border-radius: 999px;
}

/* ─── Category Block ─── */

.cat-block {
  margin-bottom: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-1);
}

.cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.cat-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cat-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.cat-sub {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

.cat-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ─── Lab Row ─── */

.lab-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 120ms;
  min-height: 68px;
  position: relative;
}

.lab-row:last-child {
  border-bottom: none;
}

.lab-row:hover {
  background: rgba(255,255,255,0.025);
}

.lab-row:hover .row-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* Difficulty pill */
.row-diff {
  min-width: 88px;
  flex-shrink: 0;
  padding-right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.diff-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.diff-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Difficulty colors */
.d-beginner .diff-dot  { background: var(--green); box-shadow: 0 0 6px var(--green); }
.d-beginner .diff-label { color: var(--green); }

.d-concept .diff-dot   { background: var(--text-3); }
.d-concept .diff-label  { color: var(--text-3); }

.d-medium .diff-dot    { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
.d-medium .diff-label   { color: var(--yellow); }

.d-intermediate .diff-dot  { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
.d-intermediate .diff-label { color: var(--yellow); }

.d-hard .diff-dot      { background: var(--orange); box-shadow: 0 0 6px var(--orange); }
.d-hard .diff-label     { color: var(--orange); }

.d-advanced .diff-dot  { background: var(--orange); box-shadow: 0 0 6px var(--orange); }
.d-advanced .diff-label { color: var(--orange); }

.d-critical .diff-dot  { background: var(--red); box-shadow: 0 0 6px var(--red); }
.d-critical .diff-label { color: var(--red); }

.d-capstone .diff-dot  { background: var(--purple); box-shadow: 0 0 6px var(--purple); }
.d-capstone .diff-label { color: var(--purple); }

/* Divider line */
.row-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
  margin-right: 20px;
}

/* Lab body */
.row-body {
  flex: 1;
  min-width: 0;
  padding: 14px 0;
}

.row-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-desc {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
  max-width: 560px;
}

/* Tags */
.row-tags {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
  padding: 0 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 260px;
}

.skill-chip {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Arrow */
.row-arrow {
  color: var(--text-3);
  flex-shrink: 0;
  transition: color 150ms, transform 150ms;
  display: flex;
  align-items: center;
}

/* ─── Footer ─── */

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 28px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
}

.footer-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent-dim);
  border: 1px solid rgba(124,106,247,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.footer-note {
  font-size: 12px;
  color: var(--text-3);
}

/* ─── Responsive ─── */

@media (max-width: 768px) {
  .nav-inner { padding: 0 16px !important; }
  .row-tags { display: none; }
  .row-desc { max-width: 260px; }
  .labs-wrap { padding: 40px 16px 80px; }
  /* Hide ONLY 'by instacks.co' and keep 'CiotX' name visible */
  .nav-brand > span:not(.nav-name) { display: none !important; }
  /* Compact both buttons but keep text visible */
  .nav-wa-btn { font-size: 12px !important; padding: 0 10px !important; height: 32px !important; gap: 5px !important; }
  .nav-wa-btn svg { width: 14px !important; height: 14px !important; flex-shrink: 0 !important; }
  .nav-curriculum-btn { font-size: 12px !important; padding: 0 10px !important; height: 32px !important; gap: 5px !important; }
  .nav-curriculum-btn svg { width: 13px !important; height: 13px !important; flex-shrink: 0 !important; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 10px !important; gap: 6px !important; }
  .hero { padding: 60px 20px 48px; }
  /* Both buttons always visible — icon-only on small phones */
  .nav-wa-btn { font-size: 0 !important; padding: 0 9px !important; height: 32px !important; gap: 0 !important; margin-left: 0 !important; }
  .nav-wa-btn svg { width: 18px !important; height: 18px !important; flex-shrink: 0 !important; }
  .nav-curriculum-btn { font-size: 0 !important; padding: 0 9px !important; height: 32px !important; gap: 0 !important; }
  .nav-curriculum-btn svg { width: 16px !important; height: 16px !important; flex-shrink: 0 !important; }
  .stats-inner { height: auto; padding: 18px 20px; flex-direction: column; gap: 14px; }
  .stat { justify-content: flex-start; }
  .stat-divider { display: none; }
  .row-diff { min-width: 72px; }
}

