:root {
  --bg: #0a0a0a;
  --bg-elev: #141414;
  --bg-card: #1a1a1a;
  --bg-side: #0f0f0f;
  --line: #232323;
  --line-strong: #2e2e2e;
  --brand: #10E593;
  --brand-glow: #1FFFB1;
  --ink-100: #f3f4f6;
  --ink-300: #c9cbd1;
  --ink-500: #8a8d96;
  --ink-700: #555861;
  --warn: #ff8a4c;
  --shadow-brand: 0 0 30px rgba(16, 229, 147, 0.25);
  --shadow-brand-lg: 0 0 50px rgba(16, 229, 147, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Heebo', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink-100);
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(16,229,147,0.05), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(16,229,147,0.03), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
::selection { background: var(--brand); color: #000; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 700px) { .container { padding: 0 16px; } }

em { font-style: normal; color: var(--brand); }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; color: var(--ink-100); line-height: 1.1; }

/* ========== KICKER ========== */
.kicker {
  font-family: 'Space Mono', monospace;
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand);
  margin-bottom: 16px;
}
.kicker::before {
  content: "";
  display: block;
  width: 28px; height: 1px;
  background: var(--brand);
}

/* ========== BUTTONS ========== */
.btn-primary, .btn-secondary, .btn-whatsapp {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px;
  font-family: inherit; font-size: 1rem; font-weight: 700;
  border-radius: 4px; border: 0; cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn-primary:hover, .btn-secondary:hover, .btn-whatsapp:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-glow));
  color: #000;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { box-shadow: var(--shadow-brand-lg); }
.btn-secondary {
  background: transparent;
  color: var(--ink-100);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); background: rgba(16,229,147,0.06); }
.btn-whatsapp {
  background: #25D366; color: #000;
}

/* ========== NAV ========== */
#navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  flex-direction: row-reverse; /* puts logo on the LEFT in RTL */
  padding: 14px 32px;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-weight: 900; font-size: 1.3rem; color: var(--ink-100);
  text-decoration: none; letter-spacing: -0.02em;
  direction: ltr; /* AI Lab then STARTER, left-to-right */
}
.nav-logo-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem; font-weight: 700;
  color: var(--brand);
  border: 1px solid var(--brand);
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.2em;
  line-height: 1;
}
.nav-links-desktop {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 28px;
  list-style: none;
}
.nav-links-desktop a {
  color: var(--ink-300); text-decoration: none;
  font-size: 0.92rem; font-weight: 500;
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-links-desktop a:hover { color: var(--ink-100); }
.nav-cta-group {
  display: flex; align-items: center; gap: 8px;
}
.nav-cta {
  padding: 9px 18px;
  font-size: 0.85rem; font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  white-space: nowrap;
  display: inline-block;
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-cta-green {
  background: linear-gradient(135deg, var(--brand), #00b894);
  color: #000;
  box-shadow: 0 4px 14px rgba(16,229,147,0.3);
}
.nav-cta-green:hover { box-shadow: 0 6px 20px rgba(16,229,147,0.5); }
.nav-cta-community {
  background: linear-gradient(135deg, #6C3CE1, #8B5CF6);
  color: #fff;
  box-shadow: 0 4px 14px rgba(108,60,225,0.3);
}
.nav-cta-community:hover { box-shadow: 0 6px 20px rgba(108,60,225,0.5); }
.nav-cta-portal {
  background: transparent;
  color: var(--ink-100);
  border: 1.5px solid rgba(255,255,255,0.28);
}
.nav-cta-portal:hover { border-color: var(--brand); color: var(--brand); }
.mobile-menu-btn {
  display: none;
  background: none; border: 0;
  color: var(--ink-100); font-size: 1.5rem;
  cursor: pointer; padding: 8px;
}
.mobile-cta-community {
  background: linear-gradient(135deg, #6C3CE1, #8B5CF6) !important;
  color: #fff !important;
  font-weight: 700 !important;
  text-align: center;
}
.mobile-cta-portal {
  background: transparent !important;
  border: 1.5px solid rgba(255,255,255,0.28) !important;
  font-weight: 700 !important;
  text-align: center;
}

.mobile-menu-panel {
  display: none;
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(320px, 80vw);
  background: var(--bg-elev);
  border-left: 1px solid var(--line);
  z-index: 200;
  padding: 24px;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu-panel.open { transform: translateX(0); }
.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.mobile-menu-logo {
  font-weight: 900; font-size: 1.2rem;
  display: inline-flex; align-items: baseline; gap: 8px;
}
.mobile-close-btn {
  background: none; border: 0; color: var(--ink-100);
  font-size: 1.8rem; cursor: pointer;
}
.mobile-menu-links {
  list-style: none;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu-links a {
  display: block;
  padding: 14px 16px;
  color: var(--ink-300);
  text-decoration: none;
  font-size: 1rem; font-weight: 500;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-links a:hover { background: var(--bg-card); color: var(--ink-100); }
.mobile-cta-row { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.mobile-cta-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-glow)) !important;
  color: #000 !important;
  font-weight: 700 !important;
  text-align: center;
}
.mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  z-index: 150;
}
.mobile-overlay.open { display: block; }
.mobile-menu-panel.open { display: flex; }

@media (max-width: 980px) {
  .nav-links-desktop { display: none; }
  .nav-cta-group { display: none; }
  .mobile-menu-btn { display: block; }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero-neural-canvas {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  opacity: 0.6;
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  opacity: 0.4;
  pointer-events: none;
}
.hero-blob {
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
  animation: heroFloat 18s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.hero-blob--a { top: -180px; right: -120px; background: radial-gradient(circle, rgba(16,229,147,0.35), transparent 70%); }
.hero-blob--b { bottom: -220px; left: -160px; background: radial-gradient(circle, rgba(16,229,147,0.18), transparent 70%); animation-delay: -7s; }
@keyframes heroFloat {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50%     { transform: translate3d(20px,-30px,0) scale(1.08); }
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px;
  background: rgba(16,229,147,0.08);
  border: 1px solid rgba(16,229,147,0.35);
  border-radius: 999px;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  color: var(--brand);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--brand);
  animation: heroPulse 2s ease-out infinite;
}
@keyframes heroPulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,229,147,0.6); }
  100% { box-shadow: 0 0 0 14px rgba(16,229,147,0); }
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.95;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}
.gradient-text {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-glow) 60%, #88ffd5 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-slogan {
  font-family: 'Space Mono', monospace;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--brand);
  margin-bottom: 22px;
  letter-spacing: 0.04em;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-300);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero-buttons {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex; justify-content: center; gap: 56px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero-stat .number {
  font-family: 'Space Mono', monospace;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat .label {
  font-size: 0.85rem;
  color: var(--ink-500);
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hero terminal */
.terminal {
  max-width: 720px;
  margin: 0 auto;
  background: #0d1117;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  text-align: right;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(16,229,147,0.12),
    0 0 60px rgba(16,229,147,0.18);
}
.terminal-header {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  background: #161b22;
  border-bottom: 1px solid var(--line);
  direction: ltr;
}
.terminal-dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-dot.red    { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green  { background: #27c93f; }
.terminal-title {
  margin-left: auto;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink-500);
  letter-spacing: 0.08em;
}
.terminal-body {
  padding: 22px 20px;
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.95;
  direction: ltr; text-align: left;
  min-height: 240px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(16,229,147,0.05), transparent 70%),
    #0d1117;
}
.t-line { display: block; opacity: 1; transition: opacity 0.3s ease, transform 0.3s ease; }
.t-line--hidden { opacity: 0; transform: translateY(4px); }
.t-line--visible { opacity: 1; transform: translateY(0); }
.t-prompt  { color: var(--brand); font-weight: 700; }
.t-sep     { color: var(--ink-500); }
.t-path    { color: #8ab4ff; }
.t-cmd     { color: var(--ink-100); }
.t-claude  { color: var(--brand-glow); font-weight: 700; margin-right: 6px; }
.t-out     { color: var(--ink-300); }
.t-out--dim{ color: var(--ink-500); }
.t-file    { color: #ffd479; }
.t-success { color: var(--brand); font-weight: 700; }
.t-caret {
  display: inline-block;
  width: 8px; height: 1.05em;
  background: var(--brand);
  vertical-align: text-bottom;
  margin-right: 1px;
  animation: heroBlink 0.95s steps(2) infinite;
  box-shadow: 0 0 8px rgba(16,229,147,0.7);
}
.t-caret--off { display: none; }
@keyframes heroBlink { 50% { opacity: 0; } }

.hero-scroll-indicator {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink-500);
  text-decoration: none;
  text-transform: uppercase;
}
.hero-scroll-indicator svg { color: var(--brand); animation: scrollBob 2s ease-in-out infinite; }
@keyframes scrollBob {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(6px); }
}

@media (max-width: 700px) {
  .hero { padding: 60px 0 80px; }
  .hero-buttons .btn-primary, .hero-buttons .btn-secondary { width: 100%; }
  .hero-stats { gap: 28px; }
  .terminal-body { font-size: 0.74rem; padding: 16px 12px; min-height: 200px; }
  .terminal-title { font-size: 0.62rem; }
  .hero-scroll-indicator { display: none; }
  .hero-blob { width: 380px; height: 380px; filter: blur(80px); }
}

/* ========== SECTION (shared) ========== */
section { padding: 80px 0; position: relative; }
.section-title { text-align: center; margin-bottom: 56px; }
.section-title .kicker { justify-content: center; }
.section-title h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}
.section-title p {
  color: var(--ink-300);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}
@media (max-width: 700px) {
  section { padding: 56px 0; }
  .section-title { margin-bottom: 36px; }
}

/* ========== PORTAL SHOWCASE ========== */
.portal-showcase { background: var(--bg-side); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.portal-hero {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 0 80px;
}

/* Orbit badges */
.orbit-badge {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 20px rgba(16,229,147,0.05);
  z-index: 3;
  animation: orbitFloat 6s ease-in-out infinite;
}
.orbit-badge .ob-emoji {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 4px rgba(16,229,147,0.4));
}
.orbit-badge .ob-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-100);
  line-height: 1.3;
}
.orbit-tl { top: 5%; right: 5%; animation-delay: 0s; }
.orbit-tr { top: 8%; left: 5%; animation-delay: -1.5s; }
.orbit-bl { bottom: 18%; right: 3%; animation-delay: -3s; }
.orbit-br { bottom: 12%; left: 6%; animation-delay: -4.5s; }
@keyframes orbitFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Mac mockup */
.portal-mac {
  width: 100%; max-width: 880px;
  background: #161b22;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 50px 120px rgba(0,0,0,0.6), 0 0 80px rgba(16,229,147,0.12);
  position: relative; z-index: 2;
}
.portal-mac-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  background: #1a1f27;
  border-bottom: 1px solid var(--line);
  direction: ltr;
}
.pm-dot { width: 11px; height: 11px; border-radius: 50%; }
.pm-dot--red { background: #ff5f56; }
.pm-dot--yellow { background: #ffbd2e; }
.pm-dot--green { background: #27c93f; }
.pm-url {
  margin: 0 auto;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink-500);
  background: var(--bg);
  padding: 4px 14px;
  border-radius: 4px;
}

.portal-mac-frame {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 460px;
  background: var(--bg);
}

/* Sidebar */
.pm-sidebar {
  background: var(--bg-side);
  border-left: 1px solid var(--line);
  padding: 16px 12px;
  font-size: 0.78rem;
}
.pm-side-user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 6px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.pm-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-glow));
  color: #000;
  display: grid; place-items: center;
  font-weight: 900; font-size: 0.9rem;
}
.pm-user-name { font-weight: 700; color: var(--ink-100); font-size: 0.82rem; line-height: 1.2; }
.pm-user-tag { font-size: 0.65rem; color: var(--ink-500); display: flex; gap: 4px; align-items: baseline; margin-top: 2px; }
.pm-user-tag span {
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem; color: var(--brand);
  border: 1px solid var(--brand); padding: 1px 4px;
  border-radius: 2px; letter-spacing: 0.15em;
}

.pm-side-cta {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-glow));
  color: #000;
  border-radius: 4px;
  font-weight: 700; font-size: 0.78rem;
  box-shadow: var(--shadow-brand);
  margin-bottom: 14px;
}
.pm-side-cta strong { display: block; font-size: 0.78rem; }
.pm-side-cta span:last-child { opacity: 0.65; font-size: 0.62rem; font-weight: 500; display: block; }
.pm-side-cta-play { margin-left: auto; font-size: 0.7rem; }
.pm-side-cta-dot {
  width: 6px; height: 6px;
  background: #000; border-radius: 50%;
  animation: heroBlink 1.2s steps(2) infinite;
}

.pm-side-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-700);
  padding: 12px 6px 6px;
}
.pm-side-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  font-size: 0.74rem;
  color: var(--ink-300);
  border-radius: 3px;
  margin-bottom: 1px;
}
.pm-side-item > span:first-child {
  color: var(--ink-500);
  font-size: 0.75rem;
  width: 16px; text-align: center;
}
.pm-side-item .num {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
}
.pm-side-item--active {
  background: rgba(16,229,147,0.08);
  border: 1px solid var(--brand);
  color: var(--brand);
}
.pm-side-item--active > span:first-child { color: var(--brand); }

/* Main */
.pm-main {
  padding: 28px;
  background:
    radial-gradient(ellipse 60% 40% at 30% 20%, rgba(16,229,147,0.04), transparent 60%),
    var(--bg);
}
.pm-kicker {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem; font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 8px;
}
.pm-greet {
  font-size: 2.2rem; font-weight: 900;
  line-height: 1; margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.pm-greet em { color: var(--brand); }
.pm-greet-sub {
  color: var(--ink-500); font-size: 0.84rem;
  margin-bottom: 24px;
}

.pm-hero-card {
  background: linear-gradient(135deg, rgba(16,229,147,0.08), rgba(16,229,147,0.02)), #101010;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px;
  position: relative;
  margin-bottom: 16px;
}
.pm-hero-card::before {
  content: ""; position: absolute;
  top: 0; right: 0; height: 100%; width: 3px;
  background: var(--brand);
}
.pm-hero-kicker {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem; font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 6px;
}
.pm-hero-card h3 {
  font-size: 1.15rem; font-weight: 800;
  color: var(--ink-100); margin-bottom: 6px;
}
.pm-hero-meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem; color: var(--ink-500);
  margin-bottom: 14px;
}
.pm-hero-btn {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-glow));
  color: #000;
  font-weight: 700; font-size: 0.75rem;
  border-radius: 3px;
  box-shadow: 0 0 20px rgba(16,229,147,0.4);
}

.pm-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.pm-tile {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px;
}
.pm-tile-num {
  font-family: 'Space Mono', monospace;
  font-size: 1.3rem; font-weight: 700;
  color: var(--ink-700); line-height: 1;
  margin-bottom: 8px;
}
.pm-tile-title { font-weight: 700; color: var(--ink-100); font-size: 0.85rem; margin-bottom: 2px; }
.pm-tile-sub { font-size: 0.7rem; color: var(--ink-500); }

@media (max-width: 980px) {
  .orbit-tl, .orbit-tr, .orbit-bl, .orbit-br { display: none; }
}
@media (max-width: 700px) {
  .portal-mac { transform: scale(0.95); }
  .portal-mac-frame { grid-template-columns: 1fr; min-height: auto; }
  .pm-sidebar { display: none; }
  .pm-main { padding: 18px; }
  .pm-greet { font-size: 1.6rem; }
  .pm-tiles { grid-template-columns: 1fr 1fr; }
}

/* ========== PROBLEM ========== */
.problem-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-bottom: 56px;
}
.problem-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px 28px;
  position: relative; overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.problem-card::before {
  content: ""; position: absolute;
  top: 0; right: 0; height: 3px; left: 0;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.problem-card:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(16,229,147,0.12);
}
.problem-card:hover::before { transform: scaleX(1); }
.problem-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.problem-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.problem-card p { color: var(--ink-300); line-height: 1.6; font-size: 0.98rem; }

/* sub-divider */
.section-sub-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 56px auto 32px;
  max-width: 600px;
}
.sub-divider-line { flex: 1; height: 1px; background: var(--line); }
.sub-divider-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem; font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.2em; text-transform: uppercase;
}
.section-subtitle { text-align: center; margin-bottom: 32px; }
.section-subtitle h3 { font-size: 1.6rem; margin-bottom: 8px; }
.section-subtitle p { color: var(--ink-500); }

.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.skill-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.skill-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.skill-card .skill-card-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--brand);
}
.skill-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.skill-card p { color: var(--ink-500); font-size: 0.88rem; line-height: 1.5; }
.skill-card--featured {
  grid-column: span 3;
  background: linear-gradient(135deg, rgba(16,229,147,0.08), rgba(16,229,147,0.02)), var(--bg-elev);
  border-color: var(--brand);
  padding: 32px;
  display: grid; grid-template-columns: 80px 1fr;
  gap: 24px; align-items: center;
}
.skill-card--featured h4 { font-size: 1.6rem; color: var(--brand); margin-bottom: 6px; }
.skill-card--featured p { font-size: 1rem; color: var(--ink-300); }

@media (max-width: 700px) {
  .problem-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-card--featured { grid-column: span 1; grid-template-columns: 1fr; text-align: center; padding: 24px; }
}

/* ========== SYLLABUS ========== */
.syllabus-list { display: flex; flex-direction: column; gap: 10px; }
.lesson-row {
  display: grid; grid-template-columns: 64px 1fr auto;
  gap: 20px; align-items: center;
  padding: 22px 26px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  position: relative; overflow: hidden;
}
.lesson-row::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,229,147,0.06), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.lesson-row:hover { border-color: var(--brand); transform: translateX(-4px); }
.lesson-row:hover::before { opacity: 1; }
.lesson-num {
  font-family: 'Space Mono', monospace;
  font-size: 2rem; font-weight: 700;
  color: var(--ink-700); line-height: 1;
  transition: color 0.2s;
  position: relative; z-index: 1;
}
.lesson-row:hover .lesson-num { color: var(--brand); }
.lesson-info { position: relative; z-index: 1; }
.lesson-info h4 { font-size: 1.15rem; margin-bottom: 4px; font-weight: 700; }
.lesson-info p { color: var(--ink-500); font-size: 0.92rem; line-height: 1.5; }
.lesson-toggle {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 1.1rem; font-weight: 700;
  color: var(--ink-500);
  transition: transform 0.25s, color 0.25s, border-color 0.25s, background 0.25s;
  position: relative; z-index: 1;
}
.lesson-row:hover .lesson-toggle { background: var(--brand); color: #000; border-color: var(--brand); }
.lesson-row.open .lesson-toggle { transform: rotate(45deg); background: var(--brand); color: #000; border-color: var(--brand); }
.lesson-detail {
  display: none;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  padding: 0 26px;
  margin-top: -10px;
}
.lesson-detail.open { display: block; }
.lesson-detail-inner {
  padding: 22px 0 24px;
  border-top: 1px dashed var(--line);
  color: var(--ink-300);
}
.lesson-detail-inner h5 {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand);
  margin-bottom: 14px;
}
.lesson-detail-inner ul { padding-right: 22px; }
.lesson-detail-inner li { margin-bottom: 8px; line-height: 1.6; }

.mid-cta { text-align: center; margin-top: 56px; }

@media (max-width: 700px) {
  .lesson-row { grid-template-columns: 44px 1fr auto; gap: 12px; padding: 16px 18px; }
  .lesson-num { font-size: 1.4rem; }
  .lesson-info h4 { font-size: 1rem; }
  .lesson-info p { font-size: 0.82rem; }
  .lesson-toggle { width: 30px; height: 30px; font-size: 1rem; }
  .lesson-detail { padding: 0 18px; }
}

/* ========== TESTIMONIALS ========== */
.testimonials-section { background: var(--bg-side); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tt-head { text-align: center; margin-bottom: 40px; }
.tt-badge {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brand);
  border: 1px solid var(--brand);
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 18px;
}
.tt-head h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 14px;
}
.tt-head p { color: var(--ink-300); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.testimonials {
  overflow: hidden;
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.testimonials-row {
  display: flex; gap: 16px;
  animation: scrollMarquee 50s linear infinite;
  width: max-content;
}
.testimonials-row.reverse { animation-direction: reverse; animation-duration: 60s; margin-top: 16px; }
.testimonials:hover .testimonials-row { animation-play-state: paused; }
@keyframes scrollMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}
.testimonial-card {
  width: 340px;
  flex-shrink: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.testimonial-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,0.4); }
.testimonial-stars { color: var(--brand); letter-spacing: 2px; margin-bottom: 12px; font-size: 0.95rem; }
.testimonial-card p { color: var(--ink-300); font-size: 0.95rem; line-height: 1.55; margin-bottom: 16px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-glow));
  color: #000;
  display: grid; place-items: center;
  font-weight: 900; font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-author-name { font-weight: 700; color: var(--ink-100); font-size: 0.9rem; line-height: 1.2; }
.testimonial-author-role { font-size: 0.78rem; color: var(--ink-500); }

/* ========== INSTRUCTOR ========== */
.instructor-card {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 40px; align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px;
  position: relative; overflow: hidden;
}
.instructor-card::before {
  content: ""; position: absolute;
  top: 0; right: 0; height: 100%; width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-glow));
}
.instructor-avatar {
  width: 180px; height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--brand);
  box-shadow: var(--shadow-brand);
}
.instructor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.instructor-info h3 { font-size: 1.9rem; margin-bottom: 6px; }
.instructor-info .title {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand);
  margin-bottom: 16px;
}
.instructor-info p { color: var(--ink-300); line-height: 1.7; font-size: 1.02rem; }
.instructor-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 18px;
}
.instructor-tags span {
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--ink-300);
}
@media (max-width: 700px) {
  .instructor-card { grid-template-columns: 1fr; gap: 24px; padding: 28px; text-align: right; }
  .instructor-avatar { width: 140px; height: 140px; margin: 0 0 8px 0; }
}

/* ========== FAQ ========== */
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--line-strong); }
.faq-item.open { border-color: var(--brand); }
.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none; border: 0;
  text-align: right;
  font-family: inherit; font-size: 1.05rem; font-weight: 600;
  color: var(--ink-100);
  cursor: pointer;
}
.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--brand);
  transition: transform 0.2s;
}
.faq-item.open .faq-question::after { content: "−"; }
.faq-answer {
  display: none;
  padding: 0 24px 22px;
  color: var(--ink-300);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }
@media (max-width: 700px) {
  .faq-question { padding: 16px 18px; font-size: 0.95rem; }
}

/* ========== CTA SECTION ========== */
.cta-section {
  padding: 100px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(16,229,147,0.1), transparent 70%);
  border-top: 1px solid var(--line);
}
.cta-section h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 16px; letter-spacing: -0.025em; }
.cta-sub {
  color: var(--ink-300); font-size: 1.15rem;
  max-width: 600px; margin: 0 auto 40px;
  line-height: 1.55;
}
.cta-form {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px;
  max-width: 500px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 14px;
}
.form-group { text-align: right; }
.form-group label {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-500);
  display: block; margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink-100);
  font-family: inherit; font-size: 1rem;
  transition: border-color 0.15s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(16,229,147,0.15);
}
.form-buttons { display: flex; gap: 10px; flex-direction: column; margin-top: 8px; }
.form-success {
  display: none;
  padding: 18px;
  background: rgba(16,229,147,0.08);
  border: 1px solid var(--brand);
  border-radius: 4px;
  color: var(--brand);
  text-align: center; font-weight: 600;
  margin-top: 8px;
}
.form-success.show { display: block; }
@media (max-width: 700px) {
  .cta-section { padding: 64px 0; }
  .cta-form { padding: 24px; }
}

/* ========== FOOTER ========== */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-side);
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}
.footer-col h4 { font-size: 0.95rem; margin-bottom: 14px; color: var(--ink-100); font-weight: 700; }
.footer-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem; font-weight: 700;
  color: var(--brand);
  border: 1px solid var(--brand);
  padding: 1px 5px;
  border-radius: 2px;
  letter-spacing: 0.2em;
  margin-right: 2px;
}
.footer-col p, .footer-col a {
  color: var(--ink-500); font-size: 0.9rem;
  text-decoration: none; display: block;
  margin-bottom: 8px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--brand); }

.footer-social {
  display: flex; gap: 12px;
  margin-top: 18px;
}
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-300);
  margin-bottom: 0;
  transition: color 0.15s, border-color 0.15s, transform 0.15s;
}
.footer-social a:hover {
  color: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
}

.footer-kids-cta {
  display: block !important;
  padding: 16px 18px !important;
  background: linear-gradient(135deg, rgba(108,60,225,0.12), rgba(16,229,147,0.08));
  border: 1px solid rgba(108,60,225,0.35);
  border-radius: 10px;
  text-decoration: none;
  margin-bottom: 0 !important;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.footer-kids-cta:hover {
  border-color: #8B5CF6;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108,60,225,0.25);
  color: var(--ink-100) !important;
}
.footer-kids-eyebrow {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem; font-weight: 700;
  color: #8B5CF6;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.footer-kids-title {
  display: block;
  font-size: 1.1rem; font-weight: 800;
  color: var(--ink-100);
  margin-bottom: 4px;
}
.footer-kids-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-500);
  line-height: 1.4;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink-700);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ========== REVEAL ========== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
