/* Uplift AI Labs — Home page (product-first layout) */

body.home {
  background: #fff;
}

/* ============================================
   Nav over the hero
   ============================================ */
.navbar-overlay {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}

.navbar-overlay.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--slate-200);
  backdrop-filter: blur(12px);
}

/* ============================================
   Panels
   ============================================ */
.panel {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.panel-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.panel-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 820px;
}

.panel-copy-top {
  margin-top: clamp(6.5rem, 14vh, 9.5rem);
}

.panel-copy-center {
  margin: auto 0;
  padding-top: 6rem;
  padding-bottom: 2rem;
}

.panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  margin: 0 0 0.9rem;
}

.panel-hero .panel-title {
  font-size: clamp(3rem, 7vw, 5.25rem);
  letter-spacing: -0.03em;
}

.panel-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--slate-700);
  margin: 0 auto;
  max-width: 640px;
}

.panel-text {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--slate-600);
  margin: 0 0 1.75rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-600);
  margin: 0 0 0.75rem;
}

.eyebrow-light {
  color: #7dd3fc;
}

/* Actions pinned toward the bottom of full-bleed panels */
.panel-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: auto;
  padding: 0 1.5rem 4.5rem;
}

.panel-actions-inline {
  margin-top: 0;
  padding: 0;
  justify-content: flex-start;
}

.panel-copy-center .panel-actions-inline {
  justify-content: center;
  margin-top: 2rem;
}

/* Buttons */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 0.8rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), color var(--transition-base);
}

.pill:hover {
  transform: translateY(-1px);
}

.pill-primary {
  background: var(--primary-600);
  color: #fff;
}

.pill-primary:hover {
  background: var(--primary-700);
  box-shadow: var(--shadow-lg);
}

.pill-light {
  background: rgba(255, 255, 255, 0.78);
  color: var(--slate-900);
  backdrop-filter: blur(8px);
}

.pill-light:hover {
  background: #fff;
}

.pill-dark {
  background: var(--slate-900);
  color: #fff;
}

.pill-dark:hover {
  background: var(--slate-800);
}

.pill-outline {
  border: 1.5px solid var(--slate-300);
  color: var(--slate-800);
  background: transparent;
}

.pill-outline:hover {
  border-color: var(--slate-900);
}

.pill-outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}

.pill-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Scroll chevron */
.panel-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: chevron-bob 2.2s ease-in-out infinite;
}

.panel-scroll-chevron {
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--slate-700);
  border-bottom: 2px solid var(--slate-700);
  transform: rotate(45deg);
}

@keyframes chevron-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ============================================
   Hero
   ============================================ */
.panel-hero .panel-media {
  object-position: 62% center;
}

/* On wide screens the robot sits right of center in the photo; keep the copy over the open space on the left. */
@media (min-width: 901px) {
  .panel-hero .panel-copy,
  .panel-hero .panel-actions {
    transform: translateX(-19vw);
  }
}

.panel-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.35) 100%);
  pointer-events: none;
}

/* ============================================
   Split panels (photo + copy)
   ============================================ */
.panel-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  background: var(--slate-50);
}

.split-media {
  position: relative;
  min-height: 60vh;
}

.split-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.split-media-head img {
  object-position: center 30%;
}

.split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 6rem);
}

.split-copy .panel-title {
  text-align: left;
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
}

.panel-split-reverse .split-media {
  order: 2;
}

.panel-split-reverse .split-copy {
  order: 1;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.spec-list li {
  display: flex;
  flex-direction: column;
  padding-left: 1rem;
  border-left: 3px solid var(--primary-600);
}

.spec-list strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--slate-900);
}

.spec-list span {
  color: var(--slate-600);
  font-size: 0.95rem;
}

/* ============================================
   App panel
   ============================================ */
.panel-app {
  background: radial-gradient(circle at 50% 0%, #1e3a8a 0%, #0f172a 55%, #020617 100%);
  color: #fff;
  padding-bottom: 1rem;
}

.panel-app .panel-title,
.panel-launch .panel-title {
  color: #fff;
}

.panel-app .panel-lead,
.panel-launch .panel-lead {
  color: #cbd5e1;
}

/* Supported platforms */
.platform-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.platform-list li {
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 600;
}

.platform-list sup,
.platform-note sup {
  font-size: 0.7em;
  color: #7dd3fc;
}

.platform-note {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

/* Desktop-app window frame around screenshots */
.win-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #f5f5f7;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.35), 0 40px 80px -30px rgba(0, 0, 0, 0.75);
}

.win-frame-light {
  box-shadow: 0 0 0 1px var(--slate-200), 0 30px 60px -28px rgba(15, 23, 42, 0.35);
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 13px;
  background: #ececee;
  border-bottom: 1px solid #d9d9de;
}

.win-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.win-bar span:nth-child(2) { background: #febc2e; }
.win-bar span:nth-child(3) { background: #28c840; }

.win-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Featured screenshot */
.app-feature {
  position: relative;
  z-index: 1;
  width: min(960px, 100% - 3rem);
  margin: 2.5rem auto 0;
  text-align: center;
}

.app-feature figcaption {
  max-width: 640px;
  margin: 1.75rem auto 0;
}

.app-feature h3,
.app-step h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
  color: #fff;
}

.app-feature p,
.app-step p {
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0;
}

.app-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  width: min(1180px, 100% - 3rem);
  margin: 4.5rem auto 3.5rem;
}

.app-step {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}

.app-step figcaption {
  margin-top: 1.25rem;
  padding: 0 0.25rem;
}

.app-step h3 {
  font-size: 1.2rem;
}

.app-step p {
  font-size: 0.93rem;
}

.step-index {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: #7dd3fc;
  margin-bottom: 0.35rem;
}

/* ============================================
   Training and Inference
   ============================================ */
.panel-compute {
  min-height: 0;
  background: var(--slate-50);
  padding: clamp(4rem, 8vw, 7rem) 1.5rem;
}

.panel-compute .panel-copy-center {
  padding-top: 0;
  padding-bottom: 0;
  margin: 0 0 3rem;
}

.compute-grid {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.compute-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--slate-200);
}

.compute-card-featured {
  background: linear-gradient(160deg, #1e3a8a 0%, #0f172a 100%);
  border-color: transparent;
  color: #fff;
}

.compute-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-600);
  margin: 0 0 0.6rem;
}

.compute-card-featured .compute-kicker {
  color: #7dd3fc;
}

.compute-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.6rem;
  color: var(--slate-900);
}

.compute-card p {
  margin: 0 0 1.25rem;
  color: var(--slate-600);
  line-height: 1.6;
}

.compute-card-featured h3 {
  color: #fff;
}

.compute-card-featured p {
  color: #cbd5e1;
}

.compute-card ul {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: grid;
  gap: 0.55rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--slate-200);
}

.compute-card-featured ul {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.compute-card li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  color: var(--slate-700);
  line-height: 1.5;
}

.compute-card-featured li {
  color: #e2e8f0;
}

.compute-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-600);
}

.compute-card-featured li::before {
  background: #7dd3fc;
}

/* ============================================
   Skills band (copy + library screenshot)
   ============================================ */
.panel-skills {
  min-height: 0;
  background: #fff;
  padding: clamp(4rem, 8vw, 7rem) 1.5rem;
}

.skills-layout {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.skills-copy .panel-title {
  text-align: left;
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 1.1rem;
}

.feature-list li {
  display: flex;
  flex-direction: column;
  padding-left: 1rem;
  border-left: 3px solid var(--primary-600);
}

.feature-list strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--slate-900);
}

.feature-list span {
  color: var(--slate-600);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ============================================
   Launch panel
   ============================================ */
.panel-launch {
  min-height: 72vh;
  background: var(--gradient-hero);
  color: #fff;
  justify-content: center;
}

/* ============================================
   Nav wordmark and CTA
   ============================================ */
.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--slate-900);
  text-decoration: none;
}

.nav-link.nav-link-cta {
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  background: var(--primary-600);
}

.nav-link.nav-link-cta:hover {
  background: var(--primary-700);
  transform: none;
  box-shadow: none;
}

/* ============================================
   Waitlist overlay
   ============================================ */
.wl-dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(560px, calc(100vw - 2rem));
  width: 100%;
  margin: auto;
}

.wl-dialog::backdrop {
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(6px);
}

.wl-dialog-inner {
  position: relative;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2.25rem 2.25rem 2rem;
  box-shadow: 0 40px 80px -30px rgba(2, 6, 23, 0.6);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.wl-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.wl-close:hover {
  background: var(--slate-200);
}

.wl-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--slate-900);
  margin: 0 0 0.4rem;
}

.wl-intro {
  color: var(--slate-600);
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

.wl-dialog .form-submit .btn-primary {
  background: var(--primary-600);
  color: #fff;
  border-radius: 6px;
  box-shadow: none;
}

.wl-dialog .form-submit .btn-primary:hover {
  background: var(--primary-700);
  transform: none;
  box-shadow: var(--shadow-md);
}

.wl-dialog .form-footnote a {
  color: var(--primary-600);
}

body.wl-open {
  overflow: hidden;
}

/* Footer columns sit directly in the .footer-content grid */
body.home .footer-links {
  display: contents;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .panel-split {
    grid-template-columns: 1fr;
  }

  .split-media {
    min-height: 56vh;
  }

  .panel-split-reverse .split-media {
    order: 1;
  }

  .panel-split-reverse .split-copy {
    order: 2;
  }

  .app-steps,
  .skills-layout,
  .compute-grid {
    grid-template-columns: 1fr;
  }

  .app-steps {
    width: min(560px, 100% - 3rem);
    gap: 2.5rem;
    margin-top: 3rem;
  }

  .skills-media {
    order: -1;
  }
}

@media (max-width: 640px) {
  .pill {
    min-width: 0;
    width: 100%;
  }

  .panel-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-bottom: 4rem;
  }

  .panel-actions-inline {
    width: auto;
    padding: 0;
  }

  .panel-hero .panel-media {
    object-position: 72% center;
  }

  .panel-hero::after {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.55) 28%, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.4) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel-scroll {
    animation: none;
  }
}
