:root {
  --ink: #f2f6f8;
  --muted: #c5d2d7;
  --accent: #54d1c7;
  --accent-strong: #2ee6aa;
  --card: rgba(10, 24, 31, 0.78);
  --line: rgba(200, 240, 245, 0.24);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Cabin", sans-serif;
  color: var(--ink);
  background: #071117;
  overflow-x: hidden;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(1.15) brightness(0.8);
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, rgba(71, 136, 170, 0.5), transparent 65%),
    radial-gradient(circle at 80% 0%, rgba(84, 209, 199, 0.3), transparent 45%),
    linear-gradient(150deg, rgba(4, 10, 14, 0.4), rgba(4, 10, 14, 0.7));
}

.page-shell {
  width: min(1100px, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 2rem 0 2rem;
}

.hero {
  min-height: 86vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.9rem;
  animation: rise 0.9s ease-out both;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--muted);
}

.main-logo {
  width: min(720px, 90vw);
  justify-self: center;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 1));
}

.tagline {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.36rem);
  color: #def3f2;
}

.hero-links {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.hero-link {
  text-decoration: none;
  color: #d7dde0;
  background: rgba(119, 131, 140, 0.24);
  border: 1px solid rgba(185, 196, 203, 0.35);
  padding: 0.48rem 0.86rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero-link:hover {
  background: rgba(157, 169, 177, 0.3);
  border-color: rgba(213, 224, 232, 0.6);
  color: #f2f6f8;
}

.cta {
  justify-self: center;
  margin-top: 0.3rem;
  text-decoration: none;
  color: #03151b;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  padding: 0.78rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 30px rgba(84, 209, 199, 0.28);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(84, 209, 199, 0.4);
}

.cta.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
  padding: 1rem 0rem;
  border-radius: 0.5rem;

  position: absolute; 
  right: 53%; 
  top:3rem; 
  text-align: center;
}

.section-head {
  margin: 0 0 0.7rem;
  text-align: center;
  padding: 1rem 0 0.5rem 0;
}

.section-head h2,
.demo-copy h2 {
  margin: 0;

  font-family: "Cabin", sans-serif;
  letter-spacing: 0.04em;
  font-size: clamp(2rem, 4vw, 2.2rem);
}

.section-head p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.gallery {
  animation: rise 0.95s 0.15s ease-out both;
}

.carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
}

.frame-stage {
  display: grid;
  grid-column: span 1;
}

.frame {
  grid-area: 1 / 1;
  margin: 0;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #101010;
  box-shadow: var(--shadow);
}

.frame-layer {
  /* opacity: 0; */
  pointer-events: none;
  transition: opacity 0.75s ease;
  will-change: opacity;
}

.frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.frame figcaption {
  padding: 0.65rem 0.9rem 0.75rem;
  color: var(--muted);
}

.carousel-btn {
  border: 1px solid var(--line);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--ink);
  background: rgba(3, 14, 17, 0.64);
  cursor: pointer;
}

.carousel-btn div {
  transform: translateY(-.1rem);
}

.nextPage {
  margin-top: 1rem;
  margin-bottom: 4rem;
  opacity: 0;
}

.dots {
  margin-top: 0rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.dots button {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 25%;
  border: none;
  background: rgba(220, 239, 244, 0.4);
  cursor: pointer;
}

.dots button.active {
  background: var(--accent);
  transform: scale(1.12);
}

.demo-popout {
  place-content: center;
}

.demo-card {
  grid-column: span 1;
  width: calc(100% - 6.2rem);
  /* width: calc(100% - 6.6rem); */
  margin-inline: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transform: translateY(-22px);
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  animation: rise 1.1s 0.25s ease-out both;
}

.fsob-logo, .adc-logo {
  max-width: min(200px, 100%);
  margin: 0rem 0 0.2rem;
}

.adc-logo {
  width: 25%; 
  float:left; 
  margin-right: 1rem; 
  margin-top:0.5rem;
}

.adcb-logo {
  position: absolute;
  width: 48%; 
  right: 1rem;
  margin-right: 0rem; 
  /* margin-top:-0.5rem; */
}

.demo-copy {
  text-align: justify;
  margin: 0.3rem 0 0;
  color: var(--muted);
  left: 2%; 
  width: 42%; 
  margin: 2rem
}

.download-note {
  font-size: 0.9rem;
}

.demo-videos {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-videos article {
  background: rgba(1, 8, 12, 0.36);
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0.8rem;
}

.demo-videos h3 {
  margin: 0 0 0.5rem;
  font-family: "Cabin", sans-serif;
  letter-spacing: 0.03em;
  font-size: 1.35rem;
}

.demo-videos video {
  width: 100%;
  border-radius: 10px;
  background: #000;
}

.demo-video {
    position: relative;
    width: 45vh;
    /* height: 100%; */
    aspect-ratio: 16/9;
}

f {
    opacity: 0.5;
}

@media (max-width: 860px) {
  .hero {
    min-height: 72vh;
  }

  .hero-links {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
  }

  .hero-link {
    flex: 1 1 calc(50% - 0.55rem);
    text-align: center;
  }

  .carousel {
    grid-template-columns: auto 1fr auto;
  }

  li {
    margin-left: -1rem;
  }

  img.logo {
    width: 22%;
    
  }

  .frame-stage {
    display: grid;
    grid-column: span 3;
  }

  .carousel-btn {
    /* width: 100%; */
    height: 2.4rem;
    border-radius: 10px;
    grid-column: span 1;
  }
.cta.secondary {
  position: absolute; 
  width: 40%;
  margin-left: 0;
  right: 8%; 
  top:3.5rem; 
  text-align: center;
  margin-top: -0.5rem;
}
  .demo-videos {
    grid-template-columns: 1fr;
  }

  .demo-card {
    grid-column: span 3;
    width: 100%;
  }
  
.demo-copy {
  
  margin-left: 0;
  width: 98%;
}

.fsob-logo {
  max-width: min(125px, 60%);
  margin-left: 4%;
  /* margin: 0.2rem 0 0.2rem; */
}

.adc-logo {
  max-width: min(100px, 50%);
  margin: 0.2rem 0 0.2rem;
  width: 20%; 
  float:left; 
  margin-right: 1rem; 
  margin-top:0.5rem
}

  .mobile {
    display: flexbox;
  }

  .desktop {
    display: none;
  }
}

@media (min-width: 861px) {
  .mobile {
    display: none;
  }

  .desktop {
    display: flexbox;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
