/* Atlas — Home page styles */

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 120px;
  display: flex;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  width: 100%;
}

.hero__top {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.hero__title {
  font-family: var(--font-display);
  line-height: 0.88;
  letter-spacing: 0.005em;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hero__title .accent {
  font-size: clamp(76px, 13vw, 200px);
  display: block;
  color: var(--blue);
  text-shadow: 0 0 60px rgba(0, 200, 255, 0.35);
  letter-spacing: 0.02em;
}
.hero__title-sub {
  font-size: clamp(28px, 4.2vw, 60px);
  letter-spacing: 0.42em;
  color: var(--text);
  padding-left: 0.42em; /* visually compensate for last-letter tracking */
}

/* Decorative animated divider */
.hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(560px, 70%);
  height: 14px;
  position: relative;
}
.hero__divider span {
  height: 1px;
  background: var(--blue);
  flex: 1;
  position: relative;
  box-shadow: 0 0 12px var(--blue-bloom);
}
.hero__divider span:nth-child(2) {
  flex: 0 0 8px;
  height: 8px;
  background: transparent;
  border: 1px solid var(--blue);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--blue-bloom);
  position: relative;
  animation: diamond-pulse 3s var(--ease-in-out) infinite;
}
@keyframes diamond-pulse {
  0%, 100% { box-shadow: 0 0 10px var(--blue-bloom); transform: rotate(45deg) scale(1); }
  50% { box-shadow: 0 0 22px var(--blue); transform: rotate(45deg) scale(1.15); }
}

/* ─── Hero stage: video background + overlaid title ──────── */
.hero__stage {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw); /* break out of container padding */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  isolation: isolate;
  /* Aspect controlled by the video; height collapses to video height */
  min-height: clamp(420px, 56vw, 720px);
}

/* Video — sits as the background layer of the stage.
 * Mask fades all four edges so the video dissolves into the black page
 * background rather than ending on a hard rectangle. The horizontal +
 * vertical gradients are composited with intersect, so each pixel's
 * opacity is the MINIMUM of the two — yielding a soft, even vignette. */
.hero__video {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  z-index: 1;
  background: transparent;

  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;

  mask-image:
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-composite: intersect;
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}
.hero__video-el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  pointer-events: none;
}

/* Scrim — radial-tinted dark overlay; stronger at center for legibility */
.hero__video-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.42) 30%,
      rgba(0, 0, 0, 0.28) 60%,
      rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.25) 40%,
      rgba(0, 0, 0, 0.35) 100%);
}

/* Title — overlaid on top of the video */
.hero__stage .hero__top {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  padding: 80px var(--gutter);
  pointer-events: auto;
}

.hero__stage .hero__title .accent {
  /* Title sits over moving video; lift it with a soft shadow */
  text-shadow:
    0 0 80px rgba(0, 200, 255, 0.5),
    0 2px 24px rgba(0, 0, 0, 0.7);
}
.hero__stage .hero__title-sub {
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.85),
    0 0 36px rgba(0, 0, 0, 0.6);
}
.hero__stage .eyebrow {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.hero__stage .hero__divider span {
  /* Brighter line over busy footage */
  box-shadow: 0 0 14px var(--blue), 0 0 26px var(--blue-bloom);
}

@media (min-width: 1600px) {
  .hero__stage { min-height: 720px; }
}
@media (max-width: 720px) {
  .hero__stage { min-height: clamp(360px, 70vw, 520px); }
  .hero__stage .hero__top { padding: 40px var(--gutter); }
}

/* Pitch card */
.hero__pitch {
  max-width: 800px;
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: clamp(28px, 4vw, 40px);
  text-align: center;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(0, 200, 255, 0.18),
    0 0 80px rgba(0, 200, 255, 0.12),
    0 30px 80px rgba(0, 0, 0, 0.5);
}
.hero__pitch:hover {
  transform: none; /* override generic card hover */
}
.hero__pitch::before,
.hero__pitch::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid var(--blue);
}
.hero__pitch::before { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; }
.hero__pitch::after { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; }

.hero__pitch-h {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 58px);
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 18px 0 22px;
}
.hero__pitch-p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  max-width: 64ch;
  margin: 0 auto;
}
.hero__pitch-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--text-muted);
}
.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--blue), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--blue), transparent);
  animation: scroll-glow 2s var(--ease-in-out) infinite;
}
@keyframes scroll-glow {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@media (max-width: 920px) {
  .hero { padding-top: calc(var(--nav-h) + 32px); }
  .hero__inner { gap: 40px; }
  .hero__title-sub { letter-spacing: 0.32em; }
  .hero__scroll { display: none; }
}

/* ─── Stats bar ────────────────────────────────────────────── */
.stats {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(14,21,34,0.6), rgba(19,29,46,0.4));
  position: relative;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0,200,255,0.06), transparent 60%);
  pointer-events: none;
}
.stats__row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.stats__item {
  text-align: center;
  padding: 24px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: background var(--t-med) var(--ease-out);
}
.stats__item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--border);
}
.stats__item:hover {
  background: rgba(0, 200, 255, 0.04);
}
.stats__num {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 96px);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  letter-spacing: 0.01em;
}
.stats__num .accent { text-shadow: 0 0 40px rgba(0, 200, 255, 0.4); }
.stats__unit {
  font-family: var(--font-display);
  font-size: 0.45em;
  color: var(--text);
  margin-left: 4px;
  letter-spacing: 0.04em;
}
.stats__num .stats__unit:first-child { margin: 0 4px 0 0; }
.stats__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  max-width: 18ch;
}

@media (max-width: 820px) {
  .stats__row { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2)::after { display: none; }
  .stats__item:nth-child(1), .stats__item:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }
}

/* ─── Services preview ─────────────────────────────────────── */
.services-preview { padding: clamp(80px, 12vw, 140px) 0; }
.services-preview__h {
  text-align: center;
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.services-preview__h h2 {
  font-size: clamp(40px, 5.6vw, 76px);
  max-width: 16ch;
}
.services-preview__lede {
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.6;
}

.services-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 920px) {
  .services-preview__grid { grid-template-columns: 1fr; }
}

.svc-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px 32px 32px;
  position: relative;
  isolation: isolate;
  transition: transform var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out);
  overflow: hidden;
}
.svc-card__top-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-slow) var(--ease-out);
  box-shadow: 0 0 0 rgba(0, 200, 255, 0);
}
.svc-card:hover {
  transform: translateY(-6px);
  border-color: var(--blue);
  box-shadow:
    0 0 0 1px var(--blue-bloom-soft),
    0 30px 60px rgba(0, 102, 255, 0.18),
    0 0 80px rgba(0, 200, 255, 0.1);
}
.svc-card:hover .svc-card__top-line {
  transform: scaleX(1);
  box-shadow: 0 0 24px var(--blue);
}
.svc-card__num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}
.svc-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 200, 255, 0.05);
  margin-bottom: 24px;
  transition: all var(--t-med) var(--ease-out);
}
.svc-card:hover .svc-card__icon {
  border-color: var(--blue);
  background: rgba(0, 200, 255, 0.12);
  box-shadow: 0 0 24px var(--blue-bloom-soft);
}
.svc-card__title {
  font-size: clamp(28px, 2.6vw, 36px);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.svc-card__desc {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 22px;
}
.svc-card__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  border-top: 1px solid var(--border-soft);
  padding-top: 20px;
}
.svc-card__list li {
  position: relative;
  padding-left: 22px;
}
.svc-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 1px;
  background: var(--blue);
}
.svc-card__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 10px 0;
  border-top: 1px solid var(--border-soft);
  width: 100%;
  transition: gap var(--t-med) var(--ease-out);
}
.svc-card:hover .svc-card__link { gap: 18px; }

/* ─── Bottom CTA ──────────────────────────────────────────── */
.bcta { padding: clamp(80px, 12vw, 140px) 0; position: relative; }
.bcta__inner {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(48px, 8vw, 100px) clamp(28px, 6vw, 80px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.bcta__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 200, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 255, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  z-index: -1;
}
.bcta__inner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(0, 102, 255, 0.18), transparent 35%);
  z-index: -1;
  animation: bcta-orbit 14s linear infinite;
}
@keyframes bcta-orbit {
  0% { transform: translate(0, 0); }
  50% { transform: translate(10%, -8%); }
  100% { transform: translate(0, 0); }
}
.bcta__h {
  font-size: clamp(44px, 6.4vw, 92px);
  max-width: 16ch;
  margin: 22px auto 22px;
}
.bcta__p {
  max-width: 56ch;
  margin: 0 auto 38px;
  font-size: 17px;
  line-height: 1.6;
}
.bcta__cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.bcta__meta {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--text-muted);
}

/* ─── Nav logo image styling ──────────────────────────────── */
.nav-logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
  filter: drop-shadow(0 0 8px rgba(0, 200, 255, 0.2));
  transition: filter var(--t-med) var(--ease-out);
}
.nav-logo:hover .nav-logo__mark {
  filter: drop-shadow(0 0 14px rgba(0, 200, 255, 0.5));
}
.nav-logo__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
