/* 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%);
}

.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;
}

@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__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);
}

.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;
}

.lp-window {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #334155;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background: #0f172a;
}

.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; }

/* 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 {
  padding: clamp(3rem, 8vw, 4.5rem) 0;
}

/* Mobile */
@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);
}
