/*
 * NOC & Control — final product-site polish layer
 * Loaded after styles.css, overrides.css and bento-grid.css.
 */

:root {
  --site-shell: min(1280px, calc(100vw - 48px));
  --site-header: min(1240px, calc(100vw - 24px));
}

html {
  color-scheme: dark;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: fixed;
  z-index: 2147483647;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #06100f;
  background: var(--bento-cyan);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

body.bento-shell .site-header {
  position: sticky;
  top: 10px;
  z-index: 1000;
  width: var(--site-header);
  min-height: 58px;
  margin: 10px auto 0;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(7, 13, 18, 0.76);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

body.bento-shell .brand {
  flex: 0 0 auto;
  font-size: 15px;
}

body.bento-shell .nav-links {
  position: static;
  left: auto;
  right: auto;
  transform: none;
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0 auto;
}

body.bento-shell .nav-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 9px;
  border-radius: 9px;
  color: rgba(244, 248, 250, 0.72);
  font: 600 10px/1 var(--display);
  letter-spacing: 0;
  white-space: nowrap;
}

body.bento-shell .nav-links a:hover,
body.bento-shell .nav-links a[aria-current="page"] {
  color: #fff;
  background: rgba(83, 233, 218, 0.1);
}

body.bento-shell .header-cta {
  flex: 0 0 auto;
  min-height: 34px;
  border-radius: 999px;
}

body.bento-shell .nav-toggle {
  display: none;
  flex: 0 0 auto;
  margin-left: auto;
  border: 1px solid rgba(83, 233, 218, 0.25);
  border-radius: 999px;
  background: rgba(83, 233, 218, 0.07);
  color: #dffcf8;
}

body.bento-shell .bento-page-heading {
  min-height: clamp(330px, 34vw, 455px);
}

body.bento-shell .bento-section {
  scroll-margin-top: 92px;
}

body.bento-shell :is(a, button, summary, [role="button"]):focus-visible {
  outline: 2px solid var(--bento-cyan);
  outline-offset: 3px;
}

body.bento-shell .bento-media img,
body.bento-shell .bento-wide img,
body.bento-shell .home-proof-shot img,
body.bento-shell .companion-card__visual img {
  cursor: zoom-in;
}

body.bento-shell .bento-media,
body.bento-shell .bento-wide {
  min-width: 0;
}

/* Homepage hero */
.home-hero-bento {
  width: var(--site-shell);
  margin: 0 auto;
  padding-top: clamp(54px, 7vw, 104px);
}

.home-hero-bento-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(380px, .76fr);
  gap: var(--bento-gap);
  align-items: stretch;
}

.home-hero-card,
.home-monitor-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--bento-line);
  border-radius: var(--bento-radius-xl);
  background:
    radial-gradient(circle at 92% 4%, rgba(83, 233, 218, .14), transparent 26rem),
    linear-gradient(145deg, rgba(255, 255, 255, .035), transparent 42%),
    var(--bento-panel);
  box-shadow: var(--bento-shadow-soft);
}

.home-hero-card {
  min-height: 680px;
  display: flex;
  flex-direction: column;
}

.home-monitor-card {
  min-height: 680px;
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.home-hero-copy,
.home-monitor-copy {
  padding: clamp(28px, 3vw, 44px) clamp(26px, 3.3vw, 48px) 0;
}

.home-hero-eyebrow,
.home-monitor-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(83, 233, 218, .2);
  border-radius: 999px;
  color: var(--bento-cyan);
  background: rgba(83, 233, 218, .08);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .095em;
  text-transform: uppercase;
}

body.bento-shell .home-hero-title {
  max-width: 12ch;
  margin: 22px 0 18px;
  font-size: clamp(2.8rem, 5.2vw, 5.6rem);
  line-height: .96;
  letter-spacing: -.05em;
}

.home-hero-text,
.home-monitor-text {
  max-width: 62ch;
  margin: 0;
  color: var(--bento-muted);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.68;
}

.home-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px clamp(26px, 3.3vw, 48px) 0;
}

.home-hero-chip {
  padding: 8px 11px;
  border: 1px solid rgba(83, 233, 218, .17);
  border-radius: 999px;
  color: #dffcf8;
  background: rgba(83, 233, 218, .06);
  font-size: .78rem;
  line-height: 1;
}

.home-hero-image-wrap {
  flex: 1;
  min-height: 0;
  margin-top: 24px;
  padding: 0 12px 12px;
}

.home-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: calc(var(--bento-radius-xl) - 10px);
  object-fit: cover;
  background: #050b10;
}

.home-monitor-image-wrap {
  padding: 22px 12px 0;
}

.home-monitor-image {
  display: block;
  width: 100%;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: calc(var(--bento-radius-xl) - 10px);
  object-fit: cover;
  object-position: top;
  background: #050b10;
}

.home-monitor-points {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0 clamp(26px, 3.3vw, 48px) 36px;
  list-style: none;
}

.home-monitor-points li {
  position: relative;
  padding-left: 21px;
  color: var(--bento-muted);
  font-size: .9rem;
  line-height: 1.5;
}

.home-monitor-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--bento-cyan);
  box-shadow: 0 0 0 5px rgba(83, 233, 218, .08);
}

/* Platform modules */
.platform-modules .bento-card {
  min-height: 270px;
}

.module-status {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(115, 226, 167, .25);
  border-radius: 999px;
  color: var(--bento-green);
  background: rgba(115, 226, 167, .08);
  font-size: .7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.module-status.optional {
  color: var(--bento-amber);
  border-color: rgba(246, 196, 95, .25);
  background: rgba(246, 196, 95, .08);
}

/* Monitor context */
.monitor-context-grid .bento-media {
  display: flex;
  flex-direction: column;
}

.monitor-context-grid .bento-media img {
  flex: 1;
  max-height: 660px;
}

/* Demo proof */
.demo-proof-grid .bento-media {
  display: flex;
  flex-direction: column;
}

.demo-proof-grid .bento-media img {
  flex: 1;
  max-height: 560px;
}

/* Better ordered-list presentation */
body.bento-shell ol.feature-list {
  counter-reset: control-step;
}

body.bento-shell ol.feature-list li {
  padding-left: 54px;
}

body.bento-shell ol.feature-list li::before {
  counter-increment: control-step;
  content: counter(control-step);
  top: 50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #06100f;
  background: var(--bento-cyan);
  box-shadow: none;
  font-size: .72rem;
  font-weight: 900;
  transform: translateY(-50%);
}

/* Footer */
body.bento-shell .site-footer {
  width: var(--site-shell);
  min-height: 96px;
  margin-inline: auto;
  padding: 28px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--bento-muted);
  font: 11px/1.5 var(--display);
}

body.bento-shell .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

body.bento-shell .site-footer a {
  color: rgba(244, 248, 250, .72);
}

body.bento-shell .site-footer a:hover {
  color: #fff;
}

/* Lightbox usability */
body.bento-shell .lightbox {
  padding: 5vh 3vw !important;
}

body.bento-shell .lightbox button {
  min-height: 42px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 750;
}

body.bento-shell .lightbox p {
  bottom: 16px;
  max-width: min(900px, 88vw);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(4, 10, 14, .74);
}

@media (max-width: 1180px) {
  body.bento-shell .header-cta {
    display: none;
  }

  body.bento-shell .nav-toggle {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
  }

  body.bento-shell .nav-links {
    position: absolute;
    top: 64px;
    right: 0;
    left: auto;
    width: min(320px, calc(100vw - 24px));
    padding: 10px;
    display: none;
    align-items: stretch;
    border: 1px solid var(--bento-line);
    border-radius: 16px;
    background: rgba(7, 13, 18, .96);
    box-shadow: var(--bento-shadow);
    transform: none;
  }

  body.bento-shell .nav-links.is-open {
    display: grid;
    gap: 3px;
  }

  body.bento-shell .nav-links a {
    width: 100%;
    justify-content: flex-start;
    padding-inline: 12px;
  }

  .home-hero-bento-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-card,
  .home-monitor-card {
    min-height: auto;
  }

  .home-hero-image {
    min-height: 360px;
  }
}

@media (max-width: 760px) {
  :root {
    --site-shell: calc(100vw - 20px);
    --site-header: calc(100vw - 12px);
  }

  body.bento-shell .site-header {
    top: 6px;
    min-height: 54px;
    margin-top: 6px;
    border-radius: 15px;
  }

  body.bento-shell .bento-page-heading {
    min-height: 330px;
  }

  .home-hero-bento {
    padding-top: 36px;
  }

  body.bento-shell .home-hero-title {
    max-width: 13ch;
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .home-hero-copy,
  .home-monitor-copy {
    padding-inline: 24px;
  }

  .home-hero-chips,
  .home-monitor-points {
    padding-inline: 24px;
  }

  .home-hero-image {
    min-height: 260px;
  }

  .home-monitor-image {
    height: auto;
    max-height: 420px;
  }

  body.bento-shell .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  body.bento-shell .site-footer > * {
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-card,
  .home-monitor-card {
    transition: none;
  }
}

/* BEGIN APPLE FIXED NAV */
body.bento-shell {
  padding-top: 78px;
}

body.bento-shell .site-header {
  position: fixed !important;
  top: 10px !important;
  left: 50% !important;
  right: auto !important;
  z-index: 100000 !important;
  width: var(--site-header) !important;
  margin: 0 !important;
  transform: translateX(-50%);
  transition:
    width 220ms cubic-bezier(.2,.7,.2,1),
    top 220ms cubic-bezier(.2,.7,.2,1),
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    backdrop-filter 220ms ease;
  will-change: transform;
}

body.bento-shell .site-header.is-scrolled {
  top: 6px !important;
  width: min(1160px, calc(100vw - 20px)) !important;
  border-color: rgba(83, 233, 218, 0.18);
  background: rgba(5, 10, 14, 0.86);
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.035) inset;
  backdrop-filter: blur(28px) saturate(165%);
  -webkit-backdrop-filter: blur(28px) saturate(165%);
}

body.bento-shell .site-header::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -1px;
  left: 24px;
  height: 1px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(83, 233, 218, 0.4),
    transparent
  );
  transition: opacity 220ms ease;
}

body.bento-shell .site-header.is-scrolled::after {
  opacity: 0.7;
}

body.bento-shell .site-header .brand,
body.bento-shell .site-header .nav-links a,
body.bento-shell .site-header .header-cta,
body.bento-shell .site-header .nav-toggle {
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

body.bento-shell.nav-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  body.bento-shell {
    padding-top: 72px;
  }

  body.bento-shell .site-header,
  body.bento-shell .site-header.is-scrolled {
    top: 6px !important;
    width: calc(100vw - 12px) !important;
  }

  body.bento-shell .nav-links {
    position: fixed !important;
    top: 70px !important;
    right: 6px !important;
    left: auto !important;
    max-height: calc(100vh - 82px);
    overflow-y: auto;
  }
}

@media (max-width: 760px) {
  body.bento-shell {
    padding-top: 66px;
  }

  body.bento-shell .site-header,
  body.bento-shell .site-header.is-scrolled {
    top: 5px !important;
    width: calc(100vw - 10px) !important;
  }

  body.bento-shell .nav-links {
    top: 64px !important;
    right: 5px !important;
    width: calc(100vw - 10px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.bento-shell .site-header {
    transition: none;
  }
}
/* END APPLE FIXED NAV */

/* BEGIN LEGAL DOCUMENT TYPOGRAPHY */
body.legal-document .bento-page-heading {
  min-height: auto;
  padding: clamp(48px, 6vw, 76px) 0 clamp(30px, 4vw, 44px);
}

body.legal-document .page-heading h1 {
  max-width: 18ch;
  font-size: clamp(2rem, 3.7vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}

body.legal-document .page-heading > p:last-child {
  max-width: 720px;
  margin-top: 16px;
  font-size: .95rem;
  line-height: 1.65;
}

body.legal-document .bento-section {
  padding: clamp(34px, 5vw, 64px) 0;
}

body.legal-document .legal-page {
  width: 100%;
  max-width: 920px;
  padding: clamp(24px, 3.5vw, 42px);
}

body.legal-document .legal-page h2 {
  margin: 2.15rem 0 .7rem;
  font-size: clamp(1.08rem, 1.55vw, 1.35rem);
  line-height: 1.28;
  letter-spacing: -.02em;
}

body.legal-document .legal-page h2:first-child {
  margin-top: 0;
}

body.legal-document .legal-page p {
  max-width: 78ch;
  margin: 0 0 1.05rem;
  font-size: .96rem;
  line-height: 1.72;
}

@media (max-width: 760px) {
  body.legal-document .bento-page-heading {
    min-height: auto;
    padding: 38px 0 28px;
  }

  body.legal-document .page-heading h1 {
    max-width: none;
    font-size: clamp(1.85rem, 9vw, 2.5rem);
  }

  body.legal-document .legal-page {
    padding: 22px 18px;
  }

  body.legal-document .legal-page h2 {
    margin-top: 1.8rem;
    font-size: 1.08rem;
  }
}
/* END LEGAL DOCUMENT TYPOGRAPHY */

/* BEGIN MEILLEUR BRAND SYSTEM */
body.bento-shell .brand-lockup {
  display: inline-flex;
  min-width: 142px;
  align-items: center;
  gap: 9px;
  color: #fff;
  letter-spacing: 0;
}

body.bento-shell .brand-lockup .brand-mark {
  display: block;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  filter: drop-shadow(0 6px 12px rgba(73, 74, 255, .22));
}

body.bento-shell .brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1;
}

body.bento-shell .brand-copy strong {
  color: #f7f9ff;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.025em;
}

body.bento-shell .brand-copy small {
  color: #58d9f7;
  font: 700 8px/1 var(--display);
  letter-spacing: .16em;
  text-transform: uppercase;
}

body.bento-shell .home-brand-signature {
  display: flex;
  width: min(100%, 470px);
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
}

body.bento-shell .home-brand-signature img {
  width: min(360px, 78%);
  height: auto;
  max-height: 102px;
  object-fit: contain;
  object-position: left center;
  cursor: default;
}

body.bento-shell .home-brand-signature span {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(85, 193, 255, .27);
  border-radius: 999px;
  color: #dff9ff;
  background: rgba(40, 138, 255, .08);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.bento-shell .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

body.bento-shell .footer-brand img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  filter: drop-shadow(0 5px 10px rgba(52, 111, 255, .18));
}

@media (max-width: 1180px) {
  body.bento-shell .brand-lockup { min-width: 0; }
  body.bento-shell .brand-copy small { display: none; }
}

@media (max-width: 760px) {
  body.bento-shell .brand-lockup .brand-mark {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
  }
  body.bento-shell .brand-copy strong { font-size: 13px; }
  body.bento-shell .home-brand-signature {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
  }
  body.bento-shell .home-brand-signature img { width: min(340px, 100%); }
  body.bento-shell .footer-brand {
    justify-content: center;
    white-space: normal;
  }
}
/* END MEILLEUR BRAND SYSTEM */
