/*
 * NEXT3LABS Website v3 — "Focused Home"
 * Vanilla-CSS port of the approved Stitch design (project 5147133236677246278).
 * Scoped to the v3 home via `body.v3` so it never touches the other pages' styling.
 * Tokens (from the Stitch tailwind config): primary #3F3FB3, secondary #5370C7,
 * accent #7BD3F0, surface #F6F7FB, gradient-start #E7F7FC.
 */

body.v3 {
  --v3-primary: #3f3fb3;
  --v3-secondary: #5370c7;
  --v3-accent: #7bd3f0;
  --v3-surface: #f6f7fb;
  --v3-gradient-start: #e7f7fc;
  --v3-ink: #1a1a2e;
  --v3-muted: #5b5b78;

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--v3-ink);
  background: #ffffff;
  margin: 0;
}

/* The v3 home hides the site's default header/footer and renders its own. */
body.v3 > header.site-header,
body.v3 > footer.site-footer {
  display: none;
}
body.v3 main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.v3-wrap {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.v3 h1,
.v3 h2,
.v3 h3 {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.v3 a {
  color: inherit;
  text-decoration: none;
}

/* ── Nav ──────────────────────────────────────────────────────────── */
.v3-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(63, 63, 179, 0.08);
}
.v3-nav .v3-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.v3-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--v3-primary);
}
.v3-nav__brand img {
  height: 28px;
  width: auto;
}
.v3-nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.v3-nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--v3-muted);
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* WCAG target size */
  padding: 0 0.25rem;
}
.v3-nav__links a:hover {
  color: var(--v3-primary);
}
.v3-nav__meta {
  text-align: right;
  font-size: 0.7rem;
  line-height: 1.3;
  color: var(--v3-muted);
}
.v3-nav__meta strong {
  color: var(--v3-primary);
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.v3-hero {
  position: relative;
  background: var(--v3-primary);
  color: #fff;
  overflow: hidden;
  padding: 5rem 0 6rem;
}
.v3-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.v3-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #d7f2fb; /* brighter cyan for AA contrast on the indigo hero */
  background: rgba(123, 211, 240, 0.18);
  border: 1px solid rgba(123, 211, 240, 0.45);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}
.v3-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.05;
  color: #fff;
}
.v3-hero h1 .accent {
  background: linear-gradient(90deg, #ffffff 0%, var(--v3-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--v3-accent);
}
.v3-hero__sub {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 32rem;
}
.v3-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Buttons */
.v3-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 9999px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  cursor: pointer;
  border: 1px solid transparent;
}
/* Color set with .v3 prefix so it beats `.v3 a { color: inherit }` (equal-then-more specific). */
.v3 .v3-btn--light {
  background: #fff;
  color: var(--v3-primary);
}
.v3-btn--light:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.v3 .v3-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.v3-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}
.v3 .v3-btn--primary {
  background: var(--v3-primary);
  color: #fff;
}
.v3-btn--primary:hover {
  background: var(--v3-secondary);
  transform: translateY(-1px);
}

/* Hero terminal card */
.v3-terminal {
  position: relative;
}
.v3-terminal__glow {
  position: absolute;
  inset: -0.25rem;
  background: linear-gradient(90deg, rgba(123, 211, 240, 0.3), rgba(255, 255, 255, 0.1));
  border-radius: 1.5rem;
  filter: blur(20px);
  opacity: 0.6;
}
.v3-terminal__body {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  padding: 1.5rem;
}
.v3-terminal__dots {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.v3-terminal__dots span {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
}
.v3-terminal__lines {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}
.v3-terminal__lines .num {
  color: rgba(255, 255, 255, 0.4);
  margin-right: 1rem;
}
.v3-terminal__lines .hl {
  color: var(--v3-accent);
}
.v3-cursor {
  display: inline-block;
  width: 0.5rem;
  height: 1.1rem;
  background: var(--v3-accent);
  vertical-align: text-bottom;
  animation: v3blink 1.1s steps(1) infinite;
}
@keyframes v3blink {
  50% {
    opacity: 0;
  }
}
.v3-terminal__badge {
  position: absolute;
  bottom: -1.25rem;
  right: -1.25rem;
  background: var(--v3-accent);
  color: var(--v3-primary);
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ── Ticker strip ─────────────────────────────────────────────────── */
.v3-strip {
  background: #fff;
  border-bottom: 1px solid rgba(63, 63, 179, 0.05);
  padding: 2.5rem 0;
}
.v3-strip p {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: #5b5b96; /* AA-contrast muted indigo on white */
  text-transform: uppercase;
  margin: 0;
}

/* ── Sections ─────────────────────────────────────────────────────── */
.v3-section {
  padding: 5rem 0;
}
.v3-section--surface {
  background: var(--v3-surface);
}
.v3-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f6d8f; /* deep teal — AA (>=4.5:1) on the light surface */
  margin-bottom: 0.5rem;
}
.v3-section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  color: var(--v3-primary);
}
.v3-section__lead {
  color: var(--v3-muted);
  margin-top: 0.5rem;
  font-size: 1rem;
}
.v3-section__head {
  margin-bottom: 3rem;
}

/* Principle / capability cards */
.v3-cards {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
.v3-cards--3 {
  grid-template-columns: 1fr;
}
.v3-cards--4 {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.v3-card {
  background: #fff;
  border: 1px solid rgba(63, 63, 179, 0.06);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}
.v3-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(63, 63, 179, 0.1);
}
.v3-card__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: #6a6ab0; /* AA-contrast on white card */
}
.v3-card h3 {
  font-size: 1.15rem;
  margin-top: 0.75rem;
  color: var(--v3-ink);
}
.v3-card p {
  color: var(--v3-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0.75rem;
}
.v3-card--cap {
  padding: 1.75rem;
  border-radius: 0.75rem;
}
.v3-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 0.6rem;
  background: rgba(123, 211, 240, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.v3-card__icon .material-symbols-outlined {
  color: var(--v3-primary);
  font-size: 24px;
}
.v3-card--cap h3 {
  font-size: 1rem;
  margin-top: 0;
}

/* ── Legacy / Evolution band ──────────────────────────────────────── */
.v3-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.v3-legacy {
  position: relative;
  overflow: hidden;
  background: var(--v3-primary);
  color: #fff;
  border-radius: 1rem;
  padding: 2rem;
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.v3-legacy__kicker {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v3-accent);
  margin-bottom: 0.75rem;
}
.v3-legacy h3 {
  font-size: 1.35rem;
  color: #fff;
  max-width: 20rem;
}
.v3-legacy__foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
}
.v3-legacy__ghost {
  position: absolute;
  right: 1rem;
  bottom: -1rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 7rem;
  line-height: 1;
  /* Decorative watermark (aria-hidden). Rendered via a border/no fill so it reads as
     a large outline, not body text — avoids a foreground/background contrast failure
     while staying subtle. */
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.14);
  pointer-events: none;
  user-select: none;
}

/* ── Final CTA ────────────────────────────────────────────────────── */
.v3-finalcta {
  padding: 4rem 0 5rem;
}
.v3-finalcta__box {
  background: var(--v3-primary);
  color: #fff;
  border-radius: 1.5rem;
  padding: 4rem 2rem;
  text-align: center;
}
.v3-finalcta h2 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 32rem;
  margin: 0 auto;
}
.v3-finalcta__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ── Footer ───────────────────────────────────────────────────────── */
.v3-footer {
  background: #fff;
  border-top: 1px solid rgba(63, 63, 179, 0.06);
  padding: 4rem 0 2rem;
}
.v3-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.v3-footer__brand strong {
  display: block;
  font-family: 'Manrope', sans-serif;
  color: var(--v3-primary);
  margin-bottom: 0.5rem;
}
.v3-footer__brand p,
.v3-footer__col a {
  color: var(--v3-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}
.v3-footer__coltitle {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--v3-primary);
  margin: 0 0 0.75rem;
}
.v3-footer__col a {
  display: block;
  padding: 0.35rem 0; /* taller tap target for footer links */
}
.v3-footer__col a:hover {
  color: var(--v3-primary);
}
.v3-status {
  border: 1px solid rgba(63, 63, 179, 0.1);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  color: var(--v3-muted);
}
.v3-status .label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5b5b96; /* AA-contrast muted indigo */
  display: block;
  margin-bottom: 0.35rem;
}
.v3-status .dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  background: var(--v3-accent); /* v3 fix: cyan, not green */
  margin-right: 0.4rem;
}
.v3-footer__legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(63, 63, 179, 0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--v3-muted);
}
.v3-footer__legal a {
  color: var(--v3-muted);
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .v3-cards--4 {
    grid-template-columns: 1fr 1fr;
  }
  .v3-band {
    grid-template-columns: 1fr 1fr;
  }
  .v3-footer__top {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}
@media (min-width: 768px) {
  .v3-cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .v3-hero__grid {
    grid-template-columns: 1fr 1fr;
  }
  .v3-cards--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 767px) {
  .v3-nav__links,
  .v3-nav__meta {
    display: none;
  }
}

/* Inline SVG icons (replaced the Material Symbols font for performance). */
.v3-ico { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.v3-legacy__foot .v3-ico,
.v3-terminal__badge .v3-ico,
.v3-finalcta .v3-ico { width: 16px; height: 16px; }
