/* Dark opening and high-contrast navigation. Loaded after site.css. */
body:is([data-page="home"],[data-page="about"],[data-page="features"],[data-page="pricing"]) .site-header:not(.scrolled) {
  color: #fff;
}

body:is([data-page="home"],[data-page="about"],[data-page="features"],[data-page="pricing"]) .site-header:not(.scrolled) .desktop-nav a {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28);
}

body:is([data-page="home"],[data-page="about"],[data-page="features"],[data-page="pricing"]) .site-header:not(.scrolled) .desktop-nav a::after {
  background: #70a2ff;
}

body:is([data-page="home"],[data-page="about"],[data-page="features"],[data-page="pricing"]) .site-header:not(.scrolled) .nav-cta {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(12px);
}

body:is([data-page="home"],[data-page="about"],[data-page="features"],[data-page="pricing"]) .site-header:not(.scrolled) .menu-toggle {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(7, 19, 38, 0.38);
}

body:is([data-page="home"],[data-page="about"],[data-page="features"],[data-page="pricing"]) .site-header:not(.scrolled) .menu-toggle span {
  background: #fff;
}

.home-hero {
  background:
    radial-gradient(circle at 78% 35%, rgba(36, 104, 242, 0.18), transparent 34%),
    linear-gradient(120deg, #071326 0 54%, #0b1c35 100%);
  color: #fff;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000, transparent 76%);
  pointer-events: none;
}

.home-hero .mosaic { opacity: 0.78; }
.mosaic::after { display: none; }
.home-hero .hero-lead,
.home-hero .hero-signature p { color: #a9b7cb; }
.home-hero .hero-signature b { color: #fff; }
.home-hero .hero-signature strong,
.home-hero .hero-signature strong span { color: #000; }
.home-hero .hero-signature strong {
  padding: 8px 12px 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.7);
}
.home-hero .hero-signature i { background: rgba(255, 255, 255, 0.6); }
.home-hero .hero-actions .text-link { color: #fff; }
.home-hero .hero-aside { color: #7f91ad; }

/* Vertical company timeline */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  width: min(920px, 100%);
  margin-left: auto;
  border-top: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 172px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(36, 104, 242, 0.65) 8%, rgba(36, 104, 242, 0.25) 92%, transparent);
}

.timeline article {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  column-gap: 64px;
  padding: 34px 0 42px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}

.timeline article:last-child { border-bottom: 0; }

.timeline article::before {
  top: 39px;
  left: 167px;
  width: 11px;
  height: 11px;
  box-shadow: 0 0 0 7px #dbe7ff, 0 0 24px rgba(36, 104, 242, 0.3);
}

.timeline small {
  grid-column: 1;
  grid-row: 1 / 3;
  padding-top: 2px;
  text-align: right;
}

.timeline h3 {
  grid-column: 2;
  margin: 0 0 12px;
}

.timeline p { grid-column: 2; }

/* Feature photography */
.feature-visual {
  aspect-ratio: 8 / 5;
  min-height: 0;
  background: #071326;
  box-shadow: 0 24px 55px -30px rgba(7, 19, 38, 0.62);
}

.feature-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 19, 38, 0.08), rgba(7, 19, 38, 0.42));
  pointer-events: none;
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.feature-detail:hover .feature-visual img { transform: scale(1.035); }

.feature-visual strong {
  z-index: 2;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(7, 19, 38, 0.46);
  backdrop-filter: blur(10px);
}

/* Principles editorial block */
.principles-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 12%, rgba(36, 104, 242, 0.12), transparent 28%),
    linear-gradient(180deg, #f4f7fb, #fff);
}

.principles-section::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -250px;
  top: -280px;
  border: 1px solid rgba(36, 104, 242, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(36, 104, 242, 0.025), 0 0 0 140px rgba(36, 104, 242, 0.018);
  pointer-events: none;
}

.principles-section .section-heading {
  position: relative;
  z-index: 1;
}

.principles-section .section-heading h2 { max-width: 11ch; }

.principles-section .values-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  border: 0;
}

.principles-section .value-item {
  min-height: 285px;
  padding: clamp(28px, 3.2vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0, rgba(63, 123, 255, 0.3), transparent 36%),
    linear-gradient(145deg, #10213c, #071326);
  color: #fff;
  box-shadow: 0 26px 65px -44px rgba(7, 19, 38, 0.9);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.principles-section .value-item:nth-child(2),
.principles-section .value-item:nth-child(3) {
  background:
    radial-gradient(circle at 100% 0, rgba(32, 201, 151, 0.2), transparent 36%),
    linear-gradient(145deg, #10213c, #071326);
}

.principles-section .value-item:hover {
  transform: translateY(-6px);
  border-color: rgba(112, 162, 255, 0.45);
  box-shadow: 0 34px 74px -42px rgba(36, 104, 242, 0.46);
}

.value-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 44px;
}

.principles-section .value-item .value-meta span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-size: 24px;
  backdrop-filter: blur(12px);
}

.value-meta small {
  color: #7694c0;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.principles-section .value-item h3 {
  margin: 0 0 12px;
  font-size: clamp(25px, 2.5vw, 34px);
  letter-spacing: -0.04em;
}

.principles-section .value-item p {
  max-width: 48ch;
  color: #a9b7cb;
  font-size: 16px;
}

@media (min-width: 821px) {
  .nav-cta {
    min-height: 52px;
    padding-inline: 25px;
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 13px 30px -18px rgba(7, 19, 38, 0.75);
  }

  .button-primary {
    min-height: 54px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #2f76ff, #1859dd);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 34px -18px rgba(36, 104, 242, 0.9);
  }

  .home-hero .button-primary {
    box-shadow: 0 18px 42px -17px rgba(72, 133, 255, 0.92);
  }

  .closing-cta .button-light {
    min-height: 56px;
    padding-inline: 27px;
    box-shadow: 0 18px 38px -20px rgba(4, 13, 28, 0.72);
  }

  .nav-cta:hover,
  .button-primary:hover,
  .closing-cta .button-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px -18px rgba(36, 104, 242, 0.8);
  }
}

@media (max-width: 820px) {
  .home-hero::after { background: linear-gradient(180deg, rgba(7, 19, 38, 0.18), #071326 66%); }
  .home-hero::before { mask-image: linear-gradient(#000, transparent 78%); }
  .home-hero .mosaic { opacity: 0.42; }
  .closing-cta > div { width: 100%; max-width: 100%; }
  .principles-section .values-grid { grid-template-columns: 1fr; }
  .principles-section .value-item { min-height: 250px; }
}

@media (max-width: 560px) {
  .mobile-nav { padding: 96px 22px 32px; }
  .mobile-nav a { font-size: clamp(28px, 11vw, 42px); }
  .home-hero { min-height: max(700px, 100svh); padding-top: 102px; }
  .home-hero .hero-copy h1 { font-size: clamp(48px, 15vw, 58px); }
  .home-hero .hero-lead { font-size: 16px; line-height: 1.58; }
  .home-hero .hero-actions { gap: 12px; margin-top: 28px; }
  .home-hero .hero-signature { gap: 12px; margin-top: 38px; }
  .home-hero .hero-signature strong { font-size: 50px; border-radius: 13px; }
  .home-hero .hero-signature i { width: 28px; }
  .home-hero .hero-signature p { font-size: 10px; }
  .section-heading { gap: 22px; margin-bottom: 38px; }
  .section-heading h2 { font-size: 36px; }
  .feature-detail { gap: 28px; padding: 54px 0; }
  .feature-visual { border-radius: 22px; }
  .feature-detail h2 { font-size: 38px; }
  .feature-detail > div:last-child > p:not(.eyebrow) { font-size: 16px; }
  .article-card { gap: 24px; }
  .article-image { height: 230px; }
  .pricing-plan { padding: 28px 24px; }
  .pricing-plan h2 { font-size: 35px; }
  .contact-details > a,
  .contact-details > p:not(.eyebrow) { font-size: 18px; }
  .contact-form h2 { font-size: 34px; }
  .closing-cta > div,
  .closing-cta h2,
  .closing-cta div > p:last-child { width: 100%; max-width: 100%; }
  .closing-cta h2 { font-size: 38px; overflow-wrap: anywhere; }
  .site-footer { padding: 28px 18px; }
  .principles-section .value-item { min-height: 0; padding: 26px 24px 30px; border-radius: 21px; }
  .value-meta { margin-bottom: 30px; }
  .principles-section .value-item h3 { font-size: 27px; }
  .timeline { margin-left: 0; }
  .timeline::before { left: 8px; }
  .timeline article {
    display: block;
    padding: 28px 0 32px 42px;
  }
  .timeline article::before {
    top: 34px;
    left: 3px;
  }
  .timeline small {
    display: block;
    margin-bottom: 9px;
    padding: 0;
    text-align: left;
  }
  .timeline h3 { margin-bottom: 10px; }
}

@media (max-width: 360px) {
  .site-header { gap: 10px; }
  .menu-toggle { width: 44px; height: 44px; }
  .inner-hero h1,
  .editorial-hero h1 { font-size: 46px; }
  .proof-band { grid-template-columns: 1fr; }
  .proof-band article,
  .proof-band article:nth-child(3),
  .proof-band article:nth-child(4) { border-left: 0; border-top: 1px solid rgba(255,255,255,.16); }
  .proof-band article:first-child { border-top: 0; }
  .news-lead-card { min-height: 400px; }
}

/* Permanent dark navigation */
.site-header,
.site-header.scrolled {
  background: rgba(7, 19, 38, 0.96);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 34px -24px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
}

.site-header .desktop-nav a,
.site-header.scrolled .desktop-nav a { color: #fff; }

.site-header .desktop-nav a::after,
.site-header.scrolled .desktop-nav a::after { background: #70a2ff; }

body .site-header .nav-cta,
body .site-header.scrolled .nav-cta {
  border-color: rgba(255, 255, 255, 0.18);
  background: #2468f2;
  color: #fff;
}

.site-header .menu-toggle,
.site-header.scrolled .menu-toggle {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.site-header .menu-toggle span,
.site-header.scrolled .menu-toggle span { background: #fff; }

.mobile-nav {
  background: linear-gradient(145deg, #0b1c35, #071326 70%);
  color: #fff;
}
