@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #05070a;
  --paper: #f4f6f9;
  --muted: #aab4c0;
  --accent: #3ed6b5;
  --accent-dim: rgba(62, 214, 181, 0.16);
  --line: rgba(244, 246, 249, 0.22);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Inter', sans-serif;
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--ink);
}

/* Swiper */
.heroSwiper,
.heroSwiper .swiper-slide {
  width: 100%;
  height: 100%;
}

.heroSwiper .swiper-slide {
  position: relative;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 7s linear;
}

/* Ken Burns: the active slide slowly settles back to 1x */
.heroSwiper .swiper-slide-active {
  transform: scale(1);
  transition: transform 7s linear;
}

/* Overlay — dark over the left content column, fully clear over the card on the right */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(5, 7, 10, 0.9) 0%,
    rgba(5, 7, 10, 0.74) 28%,
    rgba(5, 7, 10, 0.3) 46%,
    rgba(5, 7, 10, 0) 58%
  );
  z-index: 1;
  pointer-events: none;
}

/* faint bottom lift, just enough to seat the tabs — the card side stays untouched */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 7, 10, 0.4) 0%, rgba(5, 7, 10, 0) 24%);
  z-index: 1;
  pointer-events: none;
}

/* SIGNATURE ELEMENT — corner scan-frame, echoes "secure / verified" */
.scan-frame span {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--line);
  z-index: 3;
  pointer-events: none;
}
.scan-frame .tl { top: 32px; left: 32px; border-right: none; border-bottom: none; }
.scan-frame .tr { top: 32px; right: 32px; border-left: none; border-bottom: none; }
.scan-frame .bl { bottom: 32px; left: 32px; border-right: none; border-top: none; }
.scan-frame .br { bottom: 32px; right: 32px; border-left: none; border-top: none; }

/* Slide counter — sits inline with the tabs row, inside the dark content column */
.slide-count {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-left: auto;
  padding-bottom: 14px;
}
.slide-count .current {
  color: var(--paper);
  font-size: 16px;
  font-weight: 600;
}

/* TOP CONTENT */
.top-content {
  position: absolute;
  top: 14%;
  left: 8%;
  z-index: 2;
  max-width: 38%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.top-content h1 {
  position: relative;
  height: 96px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.heading {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.heading.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* BOTTOM CONTENT */
.bottom-content {
  position: absolute;
  bottom: 110px;
  left: 8%;
  z-index: 2;
  width: 46%;
  min-width: 320px;
}

.descriptions {
  position: relative;
  min-height: 52px;
  margin-bottom: 28px;
}

.desc {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 480px;
}

.desc.active {
  opacity: 1;
  visibility: visible;
}

/* Row that holds the tabs and the slide counter side by side */
.tabs-row {
  display: flex;
  align-items: flex-end;
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* Tabs — slim underline nav, numbered because these ARE sequential frames */
.tabs {
  display: flex;
  align-items: flex-end;
  gap: 36px;
}

.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: color 0.3s ease;
}

.tab .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  opacity: 0.7;
}

.tab.active {
  color: var(--paper);
  font-weight: 500;
}

.tab.active .num {
  opacity: 1;
}

/* Progress line sits directly under each tab label */
.track {
  flex: 1;
  min-width: 64px;
  height: 2px;
  background: rgba(244, 246, 249, 0.14);
  position: relative;
  overflow: hidden;
}

.progress {
  height: 100%;
  width: 0;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-dim);
  transition: width 0.4s linear;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  /* Image becomes a fixed-height panel; anchor right so the card (which
     lives on the right of the source image) stays in frame when cropped */
  .heroSwiper {
    position: relative;
    height: 46vh;
    min-height: 260px;
    flex-shrink: 0;
  }

  .heroSwiper .swiper-slide {
    background-position: right center;
    transform: scale(1.02);
  }
  .heroSwiper .swiper-slide-active {
    transform: scale(1);
  }

  /* Text no longer overlays the image on mobile, so the gradients
     and corner frame (built for legibility-over-photo) are dropped */
  .hero::after,
  .hero::before {
    display: none;
  }
  .scan-frame {
    display: none;
  }

  /* Content drops into a solid panel below the image, normal document flow */
  .top-content,
  .bottom-content {
    position: static;
    z-index: auto;
    width: auto;
    max-width: none;
    left: auto;
    top: auto;
    bottom: auto;
  }

  .top-content {
    background: var(--ink);
    padding: 28px 6% 0;
  }

  .top-content h1 {
    font-size: 26px;
    height: auto;
    min-height: 64px;
  }

  .bottom-content {
    background: var(--ink);
    padding: 0 6% 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .tabs { gap: 20px; overflow-x: auto; }
}