:root {
  --header-bg: #1b2029;
  --header-bg-scrolled: rgba(29, 36, 49, 0.94);
  --nav-bg: #263040;
  --nav-divider: rgba(255, 255, 255, 0.12);
  --nav-hover-bg: rgba(82, 164, 232, 0.18);
  --nav-hover-text: #eaf4ff;
  --nav-active-accent: #68b8ff;

  --page-bg-base: #e7eef6;
  --band-alt-bg: rgba(196, 213, 234, 0.42);
  --frame-bg: #f8fbff;
  --footer-bg: #1b2029;

  --text-primary: #444444;
  --text-light: #ffffff;
  --link-color: #337ab7;
  --link-hover: #23527c;

  --shadow-card: 0 0 11px rgba(0, 0, 0, 0.16);
  --shadow-frame: 0 0 11px rgba(0, 0, 0, 0.2);
  --shadow-header: 0 2px 10px rgba(0, 0, 0, 0.35);

  --header-height: 100px;
  --header-height-scrolled: 70px;
  --container-max: 1170px;

  --font-body: "Google Sans", "Roboto", Arial, sans-serif;
  --font-heading: "Google Sans", "Roboto", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--page-bg-base);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.72), transparent 52%),
    radial-gradient(circle at 84% 78%, rgba(196, 214, 236, 0.45), transparent 56%),
    linear-gradient(180deg, #edf2f8 0%, #e4ecf5 52%, #dce6f2 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
}

button {
  font: inherit;
}

.container {
  width: min(var(--container-max), calc(100% - 32px));
  margin-inline: auto;
}

/* =========================================
   Fixed Shrinking Header
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--header-height);
  z-index: 100;
  background-color: var(--header-bg);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(82, 164, 232, 0.16), transparent 68%),
    linear-gradient(155deg, #273142 0%, #1d2431 58%, #171d28 100%);
  border-bottom: 1px solid rgba(120, 192, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: var(--text-light);
  display: flex;
  align-items: center;
  padding-block: 6px;
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    min-height 0.35s ease,
    padding 0.35s ease;
}

.site-header.is-scrolled {
  min-height: var(--header-height-scrolled);
  background-color: var(--header-bg-scrolled);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(82, 164, 232, 0.18), transparent 68%),
    linear-gradient(155deg, rgba(39, 49, 66, 0.94) 0%, rgba(29, 36, 49, 0.94) 58%, rgba(23, 29, 40, 0.94) 100%);
  border-bottom-color: rgba(120, 192, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 28px -14px rgba(15, 23, 42, 0.55);
  padding-block: 4px;
}

.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.logo-svg {
  width: 146px;
  height: auto;
  transition: width 0.35s ease;
}

.site-header.is-scrolled .logo-svg {
  width: 118px;
}

.header-tagline {
  margin: 0;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: -0.02em;
  transition: font-size 0.35s ease;
}

.site-header.is-scrolled .header-tagline {
  font-size: 17px;
}

.header-contact {
  font-style: normal;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-light);
  transition: font-size 0.35s ease;
}

.site-header.is-scrolled .header-contact {
  font-size: 12px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.contact-row a {
  color: var(--text-light);
}

.contact-row a:hover,
.contact-row a:focus-visible {
  color: #b7dcff;
  text-decoration: underline;
}

.contact-row .icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
  opacity: 0.92;
}

/* =========================================
   4-Column Top Navigation Bar
   ========================================= */
.top-nav {
  margin-top: var(--header-height);
  background: linear-gradient(180deg, #2a3547 0%, #232c3b 100%);
  border-bottom: 1px solid rgba(120, 192, 255, 0.16);
  position: relative;
  z-index: 20;
}

.nav-mobile-bar {
  display: none;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}

.nav-list li {
  position: relative;
}

.nav-list li + li {
  border-left: 1px solid var(--nav-divider);
}

.nav-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 16px;
  color: rgba(232, 240, 249, 0.88);
  font-size: 13.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.nav-tab:hover,
.nav-tab:focus-visible {
  background-color: var(--nav-hover-bg);
  background-image: linear-gradient(180deg, rgba(82, 164, 232, 0.08) 0%, rgba(82, 164, 232, 0.22) 100%);
  color: var(--nav-hover-text);
  box-shadow: inset 0 -3px 0 rgba(120, 192, 255, 0.65);
  outline: none;
}

.nav-tab[aria-current="page"] {
  background-color: rgba(82, 164, 232, 0.14);
  color: #ffffff;
  box-shadow: inset 0 -3px 0 var(--nav-active-accent);
  font-weight: 600;
}

/* =========================================
   Hero / Product Summary Card
   ========================================= */
.summary-wrapper {
  padding-top: 32px;
}

.summary-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(82, 164, 232, 0.16), transparent 64%),
    linear-gradient(155deg, #273142 0%, #1d2431 58%, #171d28 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 28px -16px rgba(15, 23, 42, 0.45);
  padding: 34px 28px 34px;
  text-align: center;
  color: #e4ecf5;
}

.summary-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #3b8fd8 25%, #78c0ff 50%, #3b8fd8 75%, transparent 100%);
}

.summary-headline {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
  line-height: 1.4;
}

.summary-primary-link-wrap {
  margin: 0;
}

.summary-link {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(82, 164, 232, 0.14);
  border: 1px solid rgba(120, 192, 255, 0.3);
  color: #82c6ff;
  font-size: 17.5px;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.summary-link:hover,
.summary-link:focus-visible {
  background: rgba(82, 164, 232, 0.24);
  border-color: rgba(168, 215, 255, 0.55);
  color: #c2e3ff;
  text-decoration: none;
}

.legacy-block {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.legacy-heading {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: #f0f5fa;
}

.legacy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 17px;
  font-weight: 400;
  color: #c8d4e3;
}

.legacy-list a {
  color: #7cc2ff;
  font-weight: 500;
}

.legacy-list a:hover,
.legacy-list a:focus-visible {
  color: #b7dfff;
  text-decoration: underline;
}

/* =========================================
   Evolution Timeline Section
   ========================================= */
.timeline-section {
  padding-top: 52px;
}

.section-heading {
  position: relative;
  margin: 0 0 12px;
  padding-bottom: 20px;
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  color: #1d2431;
  border-bottom: 1px solid rgba(39, 49, 66, 0.14);
}

.section-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: 84px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2876bd 0%, #68b8ff 100%);
}

.timeline-band {
  padding-block: 52px;
}

.timeline-band:first-child {
  padding-top: 36px;
}

/* Even bands use a cool slate-blue tonal shift that harmonizes with the page gradient and navy header */
.timeline-band:nth-child(even) {
  background: linear-gradient(180deg, rgba(203, 218, 237, 0.44) 0%, rgba(192, 210, 232, 0.48) 100%);
  border-block: 1px solid rgba(39, 49, 66, 0.08);
}

.timeline-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 44px;
}

/* Alternating column order on desktop: odd = Image Left / Text Right, even = Text Left / Image Right */
.timeline-band:nth-child(even) .timeline-media {
  order: 2;
}

.timeline-band:nth-child(even) .timeline-copy {
  order: 1;
}

.shot-frame {
  margin: 0;
  background-color: var(--frame-bg);
  border: 1px solid rgba(39, 49, 66, 0.12);
  border-radius: 5px;
  padding: 4px;
  box-shadow: 0 8px 24px -10px rgba(23, 29, 40, 0.25);
  cursor: zoom-in;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.shot-frame:hover,
.shot-frame:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
  outline: 2px solid var(--nav-active-accent);
  outline-offset: 2px;
}

.shot-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover; /* contains; */
  border-radius: 3px;
  display: block;
}

.timeline-year {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-primary);
}

.timeline-version {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 17.5px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-primary);
}

.feature-list li::before {
  content: "- ";
  color: #666666;
}

/* =========================================
   Modern Scroll Reveal (Replaces AOS)
   ========================================= */
.reveal {
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-up {
  transform: translateY(28px);
}

.reveal-left {
  transform: translateX(-28px);
}

.reveal-right {
  transform: translateX(28px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  background-color: var(--footer-bg);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(82, 164, 232, 0.15), transparent 68%),
    linear-gradient(155deg, #273142 0%, #1d2431 58%, #171d28 100%);
  border-top: 1px solid rgba(120, 192, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #d4dfec;
  padding-block: 26px;
  text-align: center;
  font-size: 14.5px;
}

.copyright {
  margin: 0;
}

/* =========================================
   Floating Back-to-Top Button
   ========================================= */
.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-light);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: transform 0.25s ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: rgba(0, 0, 0, 0.9);
  outline: 2px solid var(--nav-active-accent);
  outline-offset: 2px;
}

.back-to-top:hover svg {
  transform: translateY(-4px);
}

/* =========================================
   Native Dialog Lightbox
   ========================================= */
.lightbox-dialog {
  width: min(1040px, calc(100% - 32px));
  max-height: 92vh;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: #1b2029;
  color: var(--text-light);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.lightbox-dialog::backdrop {
  background: rgba(15, 19, 26, 0.82);
  backdrop-filter: blur(4px);
}

.lightbox-inner {
  display: flex;
  flex-direction: column;
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: #2c3544;
}

.lightbox-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
}

.lightbox-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  background: transparent;
  color: var(--text-light);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.lightbox-image {
  width: 100%;
  max-height: calc(92vh - 64px);
  object-fit: contain;
  background: #11151b;
  padding: 14px;
}

/* =========================================
   Toast Notification
   ========================================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 120;
  padding: 12px 20px;
  border-radius: 6px;
  background: #1b2029;
  color: #ffffff;
  font-size: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

/* =========================================
   Responsive Breakpoints
   ========================================= */
@media (max-width: 991px) {
  .header-grid {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .header-tagline {
    display: none;
  }

  .nav-tab {
    font-size: 12.5px;
    padding-inline: 10px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 84px;
    --header-height-scrolled: 66px;
  }

  .logo-svg {
    width: 118px;
  }

  .site-header.is-scrolled .logo-svg {
    width: 100px;
  }

  .header-contact {
    font-size: 12px;
  }

  .site-header.is-scrolled .header-contact {
    font-size: 10.5px;
  }

  .nav-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
  }

  .nav-mobile-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.9px;
    text-transform: uppercase;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 38px;
    padding: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-list {
    display: none;
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-bottom: 8px;
  }

  .nav-list.is-open {
    display: grid;
  }

  .nav-list li + li {
    border-left: none;
  }

  .nav-tab {
    justify-content: flex-start;
    min-height: 44px;
    padding: 10px 8px;
    font-size: 14px;
  }

  .summary-card {
    padding: 22px 16px;
  }

  .summary-headline {
    font-size: 17px;
  }

  .section-heading {
    font-size: 21px;
  }

  .timeline-band {
    padding-block: 36px;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .timeline-band:nth-child(even) .timeline-media,
  .timeline-band:nth-child(even) .timeline-copy {
    order: initial;
  }

  .timeline-year {
    font-size: 22px;
  }

  .timeline-version {
    font-size: 17px;
  }

  .feature-list {
    font-size: 16px;
    line-height: 1.75;
  }
}
