/* ============================================================
   LEXTRIB — Design System
   Inspired by: Linear, Vercel, Duolingo for Business
   Palette: Gold (#fbbe15), Dark Navy (#111827)
   ============================================================ */

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

:root {
  /* --- Brand (from Lextrib) --- */
  --red:    #0d1117;
  --orange: #fbbe15;
  --yellow: #fbbe15;
  --green:  #059669;
  --teal:   #fbbe15;
  --blue:   #111827;

  /* --- Lextrib Specific --- */
  --gold: #fbbe15;
  --gold-dark: #fbbe15;
  --gold-rgb: 251, 190, 21;
  --gold-glow: rgba(251, 190, 21, .3);
  --dark: #111827;
  --darker: #0d1117;
  --white: #fff;
  --bg: #F8F9FA;
  --border: #E5E7EB;
  --app-primary: #fbbe15;

  /* --- Neutrals --- */
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-900: #334155;

  /* --- Typography --- */
  --font: 'Inter', system-ui, sans-serif;

  /* --- Radius --- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* --- Spacing scale --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;
  --space-10: 64px;
  --space-12: 80px;

  /* --- Shadows (surgical, not chunky) --- */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.07);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.08);
}

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

html { scroll-behavior: smooth; }

/* Offset para el header sticky (60px) en todos los anchors */
section[id], div[id] {
  scroll-margin-top: 70px;
}


body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--gray-800);
  background-color: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

/* ==========================================================================
   UX Native Feel (Anti-Cloning / Anti-Selection)
   ========================================================================== */
body {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  -webkit-touch-callout: none; /* iOS Safari (disable long press context menu) */
}

input, textarea {
  -webkit-user-select: auto !important;
  user-select: auto !important;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ============================================================
   UTILITIES
   ============================================================ */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Fixed single-color per headline accent (blue → teal, like 'd' and 'i' in Lextrib) */
.grad {
  color: var(--blue);
  background: linear-gradient(135deg, var(--blue), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Space Mono', monospace;  /* code / terminal feel */
  font-weight: 700;
}

/* Typewriter wrapper keeps cursor inline with text */
.typed-wrap {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

/* Blinking block cursor — same blue as the typed text */
.cursor-blink {
  display: inline-block;
  color: var(--blue);
  font-family: 'Space Mono', monospace;
  font-size: .85em;
  line-height: 1;
  margin-left: 3px;
  animation: cursorBlink 1s step-end infinite;
  -webkit-text-fill-color: var(--blue); /* override grad clip */
}

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

/* Pill badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}


/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  padding-top: env(safe-area-inset-top);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo img {
  height: 42px;   /* bigger — more brand presence */
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .15s;
}

.nav-link:hover, .nav-item:hover .nav-link {
  color: var(--gray-900);
}

/* --- Dropdown Menus --- */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  width: 300px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item:hover .dropdown-menu,
.nav-item .dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Invisible bridge so hover doesn't drop */
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 20px;
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}

.dropdown-item:hover {
  background: var(--gray-50);
}

.di-icon {
  width: 40px;
  height: 40px;
  background: rgba(59,142,240,.08);
  color: var(--blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.di-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.di-text span {
  display: block;
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.4;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 38px;
  padding: 0 var(--space-5);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .12s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
}
.btn-ghost:hover { color: var(--gray-900); background: var(--gray-100); }

.btn-outline {
  background: #fff;
  color: var(--gray-900);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover { border-color: var(--gray-400); }

.btn-primary {
  background: var(--gray-900);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #18181b; box-shadow: var(--shadow-md); }

.btn-google {
  background: #fff;
  color: var(--gray-900);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xs);
  width: 100%;
  height: 42px;
}
.btn-google:hover { background: var(--gray-50); border-color: var(--gray-400); }

.btn-cta {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59,142,240,.3);
  height: 44px;
  padding: 0 var(--space-6);
  font-size: 15px;
}
.btn-cta:hover {
  background: var(--brand-blue-hover, #2563eb);
  box-shadow: 0 6px 20px rgba(59,142,240,.4);
  transform: translateY(-1px);
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: var(--space-4) 0 var(--space-4);
  background: #fff;
  position: relative;
  overflow: hidden;
}

/* ── Animated hero background system ─────────── */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Slowly shifting color wash on the bg */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg,
    rgba(240,83,74,.05),
    rgba(245,183,49,.05),
    rgba(67,198,126,.05),
    rgba(59,142,240,.06));
  background-size: 400% 400%;
  animation: gradientShift 18s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}

/* ─ Decorative rings (clear outlines, not blobs) ─ */
.h-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
}

.h-ring-1 {
  width: 420px; height: 420px;
  border-color: var(--gray-400);
  opacity: .18;
  top: -130px; left: -130px;
  animation: ringFloat 9s ease-in-out infinite alternate,
             spin 80s linear infinite;
}
.h-ring-2 {
  width: 300px; height: 300px;
  border-color: var(--gray-300);
  opacity: .14;
  top: -60px; right: -70px;
  animation: ringFloat 11s ease-in-out infinite alternate,
             spin 55s linear infinite reverse;
  animation-delay: -5s;
}
.h-ring-3 {
  width: 220px; height: 220px;
  border-color: var(--gold);
  opacity: .16;
  bottom: -70px; left: 40%;
  animation: ringFloat 7s ease-in-out infinite alternate;
  animation-delay: -3s;
}
.h-ring-4 {
  width: 140px; height: 140px;
  border-color: var(--dark);
  border-style: dashed;
  opacity: .1;
  top: 30%; left: 5%;
  animation: ringFloat 8s ease-in-out infinite alternate,
             spin 30s linear infinite;
  animation-delay: -2s;
}
.h-ring-5 {
  width: 100px; height: 100px;
  border-color: var(--blue);
  border-style: dashed;
  opacity: .15;
  bottom: 10%; right: 8%;
  animation: ringFloat 6s ease-in-out infinite alternate,
             spin 25s linear infinite reverse;
  animation-delay: -4s;
}

@keyframes ringFloat {
  0%   { transform: scale(1)    translateY(0px);   opacity: .14; }
  100% { transform: scale(1.07) translateY(-12px); opacity: .22; }
}

@keyframes spin {
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}

/* ─ Small colored dots scattered across hero ─ */
.h-dot {
  position: absolute;
  border-radius: 50%;
  animation: dotFloat ease-in-out infinite alternate;
}

.h-dot-1 { width:12px; height:12px; background:var(--gold);    opacity:.55; top:14%;  left:14%;  animation-duration:5s;   }
.h-dot-2 { width:16px; height:16px; background:var(--gray-300);   opacity:.45; top:9%;   left:44%;  animation-duration:7s;   animation-delay:-2s; }
.h-dot-3 { width: 9px; height: 9px; background:var(--dark);  opacity:.25; top:22%;  right:20%; animation-duration:6s;   animation-delay:-1s; }
.h-dot-4 { width:14px; height:14px; background:var(--blue);  opacity:.5;  bottom:22%; left:30%; animation-duration:8s;   animation-delay:-3s; }
.h-dot-5 { width:10px; height:10px; background:var(--gray-400);  opacity:.5;  bottom:18%; right:30%; animation-duration:5.5s; animation-delay:-1.5s; }
.h-dot-6 { width:12px; height:12px; background:var(--gold);   opacity:.45; top:50%;  left:7%;   animation-duration:7.5s; animation-delay:-4s; }
.h-dot-7 { width: 7px; height: 7px; background:var(--gray-300);    opacity:.4;  top:35%;  right:12%; animation-duration:4.5s; animation-delay:-0.5s; }
.h-dot-8 { width:11px; height:11px; background:var(--dark);   opacity:.2;  bottom:35%; right:45%; animation-duration:9s;   animation-delay:-6s; }

@keyframes dotFloat {
  0%   { transform: translateY(0px)   scale(1);    }
  100% { transform: translateY(-18px) scale(1.15); }
}

/* Keep content on top */
.hero-inner { position: relative; z-index: 1; }

/* Strictly 2-column: copy left, signup card right */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-10);
  align-items: start;
}

/* Mockup is never shown inside the hero */
.hero-card { display: none; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.hero-eyebrow {
  margin-bottom: var(--space-4);
}

/* Single-color badge — solid blue like the logo 'd' */
.badge-grad {
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  display: inline-block;
  margin-bottom: var(--space-4);
}

.hero h1 {
  font-family: 'Space Mono', monospace;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;   /* Mono fonts look better with tighter spacing */
  color: var(--gray-900);
  margin-bottom: var(--space-5);
}

.hero p.lead {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 540px;
  margin-bottom: var(--space-6);
}

/* Sign-up card inside hero */
.signup-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
  /* no max-width — fills its grid column */
  position: sticky;
  top: 80px;   /* stick under the navbar when scrolling */
}

.signup-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.sso-benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.sso-benefit {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
}

.sso-benefit svg {
  color: var(--green);
  flex-shrink: 0;
}

.sso-btn {
  height: 48px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--r-md);
  justify-content: center;
}

.signup-note {
  font-size: 11px;
  color: var(--gray-400);
  text-align: center;
  margin-top: var(--space-3);
}


/* ============================================================
   HERO RIGHT — CSS Product Mockup
   ============================================================ */

.hero-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform .4s ease;
}
.hero-card:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

/* Window chrome */
.wc-bar {
  height: 38px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 6px;
}
.wc-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.wc-dot.red    { background: #ff5f57; }
.wc-dot.yellow { background: #febc2e; }
.wc-dot.green  { background: #28c840; }

.wc-body { padding: var(--space-5); }

/* Progress tracker */
.progress-track {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.p-step {
  width: 32px; height: 5px;
  border-radius: 99px;
  background: var(--gray-200);
}
.p-step.done  { background: var(--green); }
.p-step.active { background: var(--blue); }

/* Question */
.q-module {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-2);
}
.q-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: var(--space-4);
}

.option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-sm);
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  cursor: default;
}
.option-key {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--gray-600);
}

.option.correct {
  border-color: var(--green);
  background: rgba(67,198,126,.06);
  color: #166534;
}
.option.correct .option-key {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* XP bar at bottom */
.xp-bar {
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-100);
}
.xp-bar span { font-size: 12px; font-weight: 600; color: var(--gray-400); flex-shrink: 0; }
.xp-track {
  flex: 1; height: 6px; background: var(--gray-100);
  border-radius: 99px; overflow: hidden;
}
.xp-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}


/* ============================================================
   CERTIFICATE VERIFICATION STRIP
   ============================================================ */

.cert-strip {
  background: var(--gray-900);
  padding: var(--space-6) 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
  z-index: 10;
}

.cert-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.cert-info {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex: 1;
  min-width: 300px;
}

.cert-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.05);
}

.cert-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.cert-info p {
  font-size: 14px;
  color: var(--gray-400);
  margin: 0;
  line-height: 1.5;
}

.cert-form {
  display: flex;
  gap: var(--space-3);
  width: 100%;
  max-width: 380px;
}

.cert-form input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 0 16px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.cert-form input:focus {
  border-color: var(--blue);
  background: rgba(255,255,255,0.1);
}

.cert-form input::placeholder {
  color: var(--gray-500);
}

.cert-form button {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .cert-inner { gap: var(--space-5); }
  .cert-form { max-width: 100%; }
}


/* ============================================================
   FEATURES GRID
   ============================================================ */

.features {
  padding: var(--space-12) 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--gray-900);
  line-height: 1.15;
  margin-bottom: var(--space-3);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 480px;
  margin-bottom: var(--space-8);
}

.tree-layout {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
}

.tree-spine {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: var(--gray-200);
  transform: translateX(-50%);
}

.tree-core {
  position: absolute;
  top: -24px; left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 10px 20px;
  border-radius: 99px;
  z-index: 3;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tree-core img {
  height: 24px;
  width: auto;
  display: block;
}

.tree-node {
  display: flex;
  align-items: center;
  position: relative;
  width: 50%;
  margin-bottom: 2.5rem;
  z-index: 2;
}

.node-left {
  justify-content: flex-end;
  padding-right: 2.5rem;
}

.node-right {
  justify-content: flex-start;
  padding-left: 2.5rem;
}

.node-dot {
  position: absolute;
  top: 50%;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--node-color);
  transform: translateY(-50%);
  z-index: 2;
  box-shadow: 0 0 0 4px var(--gray-50);
}
.node-left .node-dot { right: -8px; }
.node-right .node-dot { left: -8px; }

.node-connector {
  position: absolute;
  top: 50%;
  width: 2.5rem;
  height: 2px;
  background: var(--node-color);
  opacity: 0.2;
  z-index: 1;
}
.node-left .node-connector { right: 0; }
.node-right .node-connector { left: 0; }

.node-content {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.03);
  width: 100%;
  max-width: 380px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.node-content:hover {
  transform: translateY(-4px);
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}

.node-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--node-color);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.node-text {
  text-align: left;
}
.node-text h3 {
  font-size: 1rem;
  color: var(--gray-900);
  margin-bottom: 2px;
  font-weight: 700;
}
.node-text p {
  font-size: 13px;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .tree-layout { padding: 3rem 0 1rem; }
  .tree-spine { left: 24px; }
  .tree-core { left: 24px; transform: translateX(-50%); }
  
  .tree-node { width: 100%; padding-left: 60px !important; padding-right: 0 !important; justify-content: flex-start; margin-bottom: 1.5rem !important; }
  
  .node-dot { left: 16px !important; right: auto !important; }
  .node-connector { left: 24px !important; width: 36px !important; right: auto !important; }
  .node-content { max-width: 100%; }
}


/* ============================================================
   WHY LEXTRIB — 8 reasons list section
   ============================================================ */

.why-section {
  padding: var(--space-12) 0;
  background: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6) var(--space-10);
  margin-top: var(--space-10);
}

@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; }
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.why-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 5px;
}

.why-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--gray-600);
}


/* ============================================================
   DYNAMIC LEARNING SECTION
   ============================================================ */

.dynamic-section {
  padding: var(--space-12) 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  overflow: hidden;
}

.dynamic-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

@media (max-width: 900px) {
  .dynamic-inner { grid-template-columns: 1fr; }
  .phones-wrap { display: none; }
}

.dynamic-copy { max-width: 480px; }

.dynamic-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.dstep {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.dstep-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dstep-title { font-size: .95rem; font-weight: 700; color: var(--gray-900); margin-bottom: 3px; }
.dstep-desc  { font-size: 13px; color: var(--gray-600); line-height: 1.5; }

/* ── Phone mockups ── */
.phones-wrap {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  width: 210px;
  height: 420px;
  border-radius: 36px;
  border: 7px solid #1a1a1a;
  background: #fff;
  box-shadow: 0 30px 60px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.08);
  overflow: hidden;
  position: absolute;
  display: flex;
  flex-direction: column;
}

.phone-back {
  transform: rotate(-8deg) translateX(-70px) translateY(20px);
  z-index: 1;
  animation: phoneFloat 6s ease-in-out infinite alternate;
}

.phone-front {
  transform: rotate(4deg) translateX(50px);
  z-index: 2;
  animation: phoneFloat 5s ease-in-out infinite alternate;
  animation-delay: -2s;
}

@keyframes phoneFloat {
  0%   { transform: rotate(-8deg) translateX(-70px) translateY(20px); }
  100% { transform: rotate(-8deg) translateX(-70px) translateY(4px);  }
}

.phone-front { animation-name: phoneFrontFloat; }
@keyframes phoneFrontFloat {
  0%   { transform: rotate(4deg) translateX(50px) translateY(0px); }
  100% { transform: rotate(4deg) translateX(50px) translateY(-14px); }
}

.phone-notch {
  width: 70px; height: 18px;
  background: #1a1a1a;
  border-radius: 0 0 12px 12px;
  margin: 0 auto;
  flex-shrink: 0;
}

.phone-screen {
  flex: 1;
  padding: 10px 12px;
  overflow: hidden;
  font-size: 11px;
}

.ps-label  { font-weight: 700; font-size: 10px; margin-bottom: 8px; }
.ps-file   { display: flex; align-items: center; gap: 6px; background: var(--gray-50); border-radius: 8px; padding: 8px; margin-bottom: 8px; font-size: 10px; font-weight: 600; color: var(--gray-700); }
.ps-progress { height: 4px; background: var(--gray-200); border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.ps-progress-bar { height: 100%; width: 70%; background: var(--blue); border-radius: 99px; animation: loadBar 2.5s ease-in-out infinite alternate; }
@keyframes loadBar { 0% { width: 20%; } 100% { width: 90%; } }
.ps-status { font-size: 9px; color: var(--gray-400); margin-bottom: 8px; }
.ps-chips  { display: flex; flex-wrap: wrap; gap: 4px; }
.chip      { font-size: 9px; font-weight: 600; padding: 3px 6px; border-radius: 99px; }

.ps-header      { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ps-module      { font-size: 9px; font-weight: 700; }
.ps-xp          { font-size: 9px; font-weight: 700; color: var(--orange); }
.ps-progress-track { height: 4px; background: var(--gray-200); border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.ps-track-fill  { height: 100%; border-radius: 99px; }
.ps-question    { font-size: 10.5px; font-weight: 700; color: var(--gray-900); line-height: 1.4; margin-bottom: 8px; }
.ps-options     { display: flex; flex-direction: column; gap: 5px; margin-bottom: 8px; }
.ps-opt         { font-size: 9.5px; padding: 6px 8px; border: 1px solid var(--gray-200); border-radius: 7px; color: var(--gray-600); }
.ps-correct     { border-color: var(--green); background: rgba(67,198,126,.08); color: #166534; font-weight: 700; animation: correctPop .4s ease 1s both; }
@keyframes correctPop { 0% { transform: scale(1); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } }
.ps-feedback    { font-size: 9px; color: var(--green); font-weight: 600; background: rgba(67,198,126,.08); border-radius: 6px; padding: 5px 7px; }
.ps-xp-pop      { font-size: 11px; font-weight: 800; color: var(--orange); text-align: center; margin-top: 4px; animation: xpPop 1s ease 1.5s both; }
@keyframes xpPop { 0% { opacity: 0; transform: translateY(6px); } 60% { opacity: 1; transform: translateY(-4px); } 100% { opacity: 1; transform: translateY(0); } }


/* ============================================================
   CERTIFICATIONS SECTION
   ============================================================ */

.cert-section {
  padding: var(--space-12) 0;
  background: #fff;
  border-top: 1px solid var(--gray-200);
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

@media (max-width: 768px) { .cert-grid { grid-template-columns: 1fr; } }

.cert-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: var(--space-6);
}

.cert-mock {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-4);
}

.cert-logo-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.cert-title-text { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-400); margin-bottom: var(--space-2); }
.cert-name { font-size: 1.2rem; font-weight: 800; color: var(--gray-900); margin-bottom: 4px; }
.cert-course { font-size: 13px; color: var(--gray-600); margin-bottom: var(--space-3); }
.cert-meta { font-size: 11px; color: var(--gray-400); margin-bottom: var(--space-4); }



/* ============================================================
   CATALOG SECTION
   ============================================================ */

.catalog {
  background: var(--gray-900);
  padding: var(--space-12) 0;
}

.catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

@media (max-width: 768px) {
  .catalog-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.cat-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-4);
}

.cat-pill {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
  padding: var(--space-4);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.cat-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--pill-color, rgba(255, 255, 255, 0.2));
  transform: translateY(-2px);
}

.cat-pill-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.cat-pill-body {
  flex: 1;
}

.cat-pill-name {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.cat-pill-meta {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.cat-pill-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 99px;
}


/* ============================================================
   CREATOR ECONOMY CALLOUT
   ============================================================ */

.creator-strip {
  padding: var(--space-12) 0;
}

.creator-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

@media (max-width: 768px) {
  .creator-inner { grid-template-columns: 1fr; }
}

.creator-vis {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
}

.rev-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
}
.rev-row:last-child { border-bottom: none; }
.rev-name { font-weight: 500; color: var(--gray-600); }
.rev-amount { font-weight: 700; color: var(--gray-900); }
.rev-bar-wrap { width: 80px; height: 5px; background: var(--gray-200); border-radius: 99px; overflow: hidden; }
.rev-bar { height: 100%; border-radius: 99px; }

.creator-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.step {
  display: flex;
  gap: var(--space-4);
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-title { font-size: .95rem; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.step-desc  { font-size: 13px; color: var(--gray-600); line-height: 1.5; }


/* ============================================================
   PRICING SECTION
   ============================================================ */

.pricing {
  background: var(--gray-50);
  padding: var(--space-12) 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
  align-items: start;
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.price-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: var(--space-6);
  color: var(--gray-900);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  transition: transform 0.2s, box-shadow 0.2s;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.price-card.featured-pro {
  background: var(--gray-900);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15), 0 0 0 2px rgba(59,142,240,0.3);
  transform: scale(1.03);
  z-index: 2;
}

.price-card.featured-pro:hover {
  transform: scale(1.03) translateY(-4px);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(59,142,240,0.3);
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: var(--space-3) 0;
}
.price-tag .amount {
  font-size: 2.8rem;
  font-weight: 800;
  color: inherit;
  letter-spacing: -.04em;
}
.price-tag .period {
  font-size: 14px;
  color: inherit;
  opacity: .6;
  font-weight: 500;
}

.price-name {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: inherit;
  opacity: .9;
}

.price-desc {
  font-size: 14px;
  opacity: .7;
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

.price-features {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.pf {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  opacity: .85;
}

.pf svg { flex-shrink: 0; }


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: #fff;
  border-top: 1px solid var(--gray-200);
  padding: var(--space-10) 0 var(--space-5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 240px repeat(3, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-brand p {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: var(--space-3);
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-900);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: 14px;
  color: var(--gray-400);
  transition: color .15s;
}
.footer-col a:hover { color: var(--gray-900); }

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding-top: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray-400);
}
