/* Landing — WEB / bots / SEO */

.page-landing .site-main {
  background-color: transparent;
}

/* Hero */
.lp-hero {
  position: relative;
  padding: clamp(3rem, 10vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.lp-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lp-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 10%, transparent 70%);
  animation: lpGridDrift 28s linear infinite;
}

@keyframes lpGridDrift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 48px 48px, 48px 48px; }
}

.lp-hero__scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(56, 189, 248, 0.015) 2px,
    rgba(56, 189, 248, 0.015) 4px
  );
  pointer-events: none;
  opacity: 0.6;
}

.lp-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.lp-hero__glow--1 {
  width: 50vw;
  max-width: 480px;
  height: 50vw;
  max-height: 480px;
  background: rgba(37, 99, 235, 0.35);
  top: -20%;
  right: -10%;
  animation: lpFloat 12s ease-in-out infinite;
}

.lp-hero__glow--2 {
  width: 40vw;
  max-width: 360px;
  height: 40vw;
  max-height: 360px;
  background: rgba(124, 58, 237, 0.28);
  bottom: -15%;
  left: -10%;
  animation: lpFloat 14s ease-in-out infinite reverse;
}

.lp-hero__glow--3 {
  width: 28vw;
  max-width: 220px;
  height: 28vw;
  max-height: 220px;
  background: rgba(34, 211, 238, 0.2);
  top: 35%;
  left: 40%;
  animation: lpFloat 10s ease-in-out infinite;
  animation-delay: -3s;
}

@keyframes lpFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12px, -16px); }
}

.lp-hero__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .lp-hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.lp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1rem;
  border-radius: 2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.lp-hero__title {
  font-size: clamp(1.85rem, 5.5vw, 3.25rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.lp-hero__title-sub {
  font-size: 0.72em;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: -0.01em;
}

.lp-hero__lead {
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.lp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.lp-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 22rem;
}

.lp-stat {
  padding: 0.85rem 0.5rem;
  text-align: center;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.lp-stat:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.lp-stat__val {
  display: block;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 800;
  line-height: 1.1;
}

.lp-stat__lbl {
  display: block;
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.25;
}

/* Hero visual */
.lp-hero__visual {
  position: relative;
  min-height: 280px;
  perspective: 900px;
}

.lp-orbit {
  position: absolute;
  inset: -8%;
  border: 1px dashed rgba(56, 189, 248, 0.15);
  border-radius: 50%;
  animation: lpOrbitSpin 40s linear infinite;
  pointer-events: none;
}

@keyframes lpOrbitSpin {
  to { transform: rotate(360deg); }
}

.lp-window {
  position: relative;
  z-index: 2;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #334155;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background: #0f172a;
  transition: transform 0.35s ease;
  transform-style: preserve-3d;
}

.lp-window__bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

.lp-window__bar span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
}

.lp-window__bar span:nth-child(1) { background: #ff5f57; }
.lp-window__bar span:nth-child(2) { background: #febc2e; }
.lp-window__bar span:nth-child(3) { background: #28c840; }

.lp-window__bar code {
  margin-left: auto;
  font-size: 0.68rem;
  color: #94a3b8;
}

.lp-window__code {
  margin: 0;
  padding: 1rem 1.1rem;
  font-size: 0.72rem;
  line-height: 1.6;
  color: #e2e8f0;
  overflow-x: auto;
}

.lp-window__code .c-kw { color: #c792ea; }
.lp-window__code .c-var { color: #82aaff; }
.lp-window__code .c-str { color: #c3e88d; }
.lp-window__code .c-fn { color: #ffcb6b; }
.lp-window__code .c-cm { color: #546e7a; }
.lp-window__code .c-ok { color: #4ade80; }

.lp-cursor {
  display: inline-block;
  width: 0.45rem;
  height: 1em;
  background: #22d3ee;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: lpBlink 1s step-end infinite;
}

@keyframes lpBlink {
  50% { opacity: 0; }
}

.lp-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 2rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  color: #e2e8f0;
  box-shadow: var(--shadow-sm);
  animation: lpFloat 8s ease-in-out infinite;
}

.lp-float--1 { top: 8%; right: 0; animation-delay: 0s; }
.lp-float--2 { bottom: 18%; left: -4%; animation-delay: -2s; }
.lp-float--3 { top: 42%; right: -8%; animation-delay: -4s; }
.lp-float--4 { bottom: 6%; right: 12%; animation-delay: -6s; color: #86efac; border-color: rgba(74, 222, 128, 0.35); }

/* Marquee */
.lp-marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.6);
  padding: 0.65rem 0;
}

.lp-marquee__inner {
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.lp-marquee__track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: lpMarquee 32s linear infinite;
}

.lp-marquee:hover .lp-marquee__track {
  animation-play-state: paused;
}

@keyframes lpMarquee {
  to { transform: translateX(-50%); }
}

.lp-marquee__item {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lp-marquee__item::after {
  content: "·";
  margin-left: 2rem;
  color: rgba(56, 189, 248, 0.4);
}

/* Trust bar */
.lp-trust {
  padding: 1rem 0;
}

.lp-trust__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.25rem;
}

.lp-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.lp-trust__item i {
  color: var(--brand-primary);
}

/* Why cards */
.lp-why-card {
  padding: 1.35rem;
  text-align: left;
}

.lp-why-card__icon {
  font-size: 1.75rem;
  color: var(--brand-primary);
  display: block;
  margin-bottom: 0.75rem;
}

.lp-step {
  padding: 1.25rem;
  text-align: left;
}

.lp-step__n {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  margin-bottom: 0.65rem;
}

/* Tech stack */
.lp-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 48rem;
  margin: 0 auto;
}

.lp-stack__chip {
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 2rem;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.lp-stack__chip:hover {
  border-color: rgba(56, 189, 248, 0.5);
  color: #7dd3fc;
  transform: translateY(-2px);
}

/* Compare */
.lp-compare__card {
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* Service cards on landing */
.page-landing .service-card--featured {
  transform: scale(1);
}

@media (min-width: 992px) {
  .page-landing .service-card--featured {
    box-shadow: 0 20px 48px rgba(37, 99, 235, 0.2);
  }
}

/* Education — secondary zone */
.lp-education {
  border-top: 1px dashed var(--border);
}

.lp-secondary {
  opacity: 0.92;
}

.lp-secondary .course-card-sm {
  border-style: dashed;
}

.lp-cta {
  position: relative;
  padding: clamp(3rem, 8vw, 4.5rem) 0;
  overflow: hidden;
}

.lp-cta .container {
  position: relative;
  z-index: 1;
}

.lp-cta__glow {
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.35) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Bento grid */
.lp-bento-section {
  border-top: 1px solid var(--border-subtle);
}

.lp-bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .lp-bento {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(8rem, auto);
  }

  .lp-bento__card--wide {
    grid-column: span 2;
  }

  .lp-bento__card--tall {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
  }
}

.lp-bento__card {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.lp-bento__card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.lp-bento__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.85rem;
  border-radius: 0.65rem;
  font-size: 1.15rem;
  color: var(--brand-primary);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.lp-bento__icon--purple {
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.3);
}

.lp-bento__icon--cyan {
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.28);
}

.lp-bento__icon--gold {
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.28);
}

/* Format cards enhanced */
.lp-format-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.lp-format-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(56, 189, 248, 0.35);
}

.lp-format-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lp-format-card__list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.35rem;
}

.lp-format-card__list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--brand-primary);
  font-weight: 700;
}

/* Timeline */
.lp-timeline {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  position: relative;
}

@media (min-width: 768px) {
  .lp-timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .lp-timeline::before {
    content: "";
    position: absolute;
    top: 1.75rem;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), rgba(167, 139, 250, 0.4), transparent);
    z-index: 0;
  }
}

.lp-timeline__step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 0.5rem;
}

.lp-timeline__node {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: var(--code-panel);
  border: 2px solid rgba(56, 189, 248, 0.45);
  font-size: 1.25rem;
  color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.9);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lp-timeline__step:hover .lp-timeline__node {
  transform: scale(1.08);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.25), 0 0 0 4px rgba(15, 23, 42, 0.9);
}

.lp-timeline__num {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
  background: var(--gradient);
  border-radius: 50%;
  border: 2px solid var(--code-panel);
}

/* Certificate mockup */
.lp-cert-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lp-cert-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.5rem;
}

.lp-cert-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4ade80;
  font-weight: 700;
}

.lp-cert-mock {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.lp-cert-mock__sheet {
  position: relative;
  width: min(100%, 22rem);
  aspect-ratio: 297 / 210;
  padding: 1.25rem 1.5rem;
  border-radius: 0.5rem;
  background: linear-gradient(145deg, #0a1628 0%, #0f172a 50%, #111827 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    inset 0 0 60px rgba(56, 189, 248, 0.04);
  overflow: hidden;
  animation: lpCertFloat 6s ease-in-out infinite;
}

@keyframes lpCertFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

.lp-cert-mock__sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(56, 189, 248, 0.03) 8px,
      rgba(56, 189, 248, 0.03) 9px
    );
  pointer-events: none;
}

.lp-cert-mock__ribbon {
  position: absolute;
  top: 1rem;
  right: -2rem;
  padding: 0.2rem 2.5rem;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0f172a;
  background: linear-gradient(90deg, #38bdf8, #a78bfa);
  transform: rotate(35deg);
}

.lp-cert-mock__brand {
  font-size: 0.55rem;
  font-weight: 700;
  color: #64748b;
  margin: 0 0 0.5rem;
  font-family: ui-monospace, monospace;
}

.lp-cert-mock__title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 0.75rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-cert-mock__name {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.lp-cert-mock__course {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.lp-cert-mock__qr {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid #00ff41;
  background:
    linear-gradient(90deg, #00ff41 50%, transparent 50%) 0 0 / 4px 4px,
    linear-gradient(#00ff41 50%, transparent 50%) 0 0 / 4px 4px;
  opacity: 0.85;
}

/* Course cards v2 */
.lp-courses-section {
  border-top: 1px solid var(--border-subtle);
}

.lp-course-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.lp-course-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.2);
}

.lp-course-card__head {
  position: relative;
  padding: 1.35rem 1.35rem 1rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(124, 58, 237, 0.2) 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.lp-course-card__level {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7dd3fc;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 2rem;
  font-family: ui-monospace, monospace;
}

.lp-course-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
}

.lp-course-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.35rem 1.35rem;
}

.lp-course-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.75rem;
  flex: 1;
}

.lp-course-card__meta {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.85rem;
  font-family: ui-monospace, monospace;
}

.lp-course-card__meta i {
  color: var(--brand-primary);
  margin-right: 0.25rem;
}

.lp-course-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: none;
  transition: gap 0.25s ease, color 0.25s ease;
}

.lp-course-card__link:hover {
  gap: 0.6rem;
  color: #7dd3fc;
}

.lp-course-card__link i {
  transition: transform 0.25s ease;
}

.lp-course-card:hover .lp-course-card__link i {
  transform: translateX(4px);
}

/* Mobile */
@media (prefers-reduced-motion: reduce) {
  .lp-hero__grid,
  .lp-marquee__track,
  .lp-orbit,
  .lp-cert-mock__sheet,
  .lp-hero__glow {
    animation: none !important;
  }
}

@media (max-width: 991.98px) {
  .lp-hero__actions .btn-lg {
    flex: 1 1 100%;
    justify-content: center;
  }

  .lp-hero__visual {
    min-height: 240px;
    max-width: 22rem;
    margin: 0 auto;
  }

  .lp-float {
    display: none;
  }

  .lp-hero__stats {
    max-width: none;
  }
}

@media (max-width: 575.98px) {
  .lp-stat__lbl {
    font-size: 0.58rem;
  }

  .lp-trust__row {
    gap: 0.5rem;
  }

  .lp-trust__item {
    font-size: 0.72rem;
  }
}

.page-landing .reveal.is-visible,
.page-landing .reveal-stagger.is-visible > .reveal-child {
  opacity: 1;
  transform: translateY(0);
}
