/* ============================================================
   ATLAS — Dark Hero
   ============================================================ */

/* ---- Custom cursor ---------------------------------------- */
*, *::before, *::after { cursor: none !important; }

.cur-ring {
  position: fixed;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(19,142,223,0.55);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width .4s cubic-bezier(.34,1.56,.64,1),
              height .4s cubic-bezier(.34,1.56,.64,1),
              background .3s ease, border-color .3s ease;
}
.cur-ring.hovering {
  width: 68px; height: 68px;
  background: rgba(19,142,223,0.10);
  border-color: #138EDF;
}
.cur-ring.clicking { width: 34px; height: 34px; background: rgba(19,142,223,0.20); }
.cur-dot {
  position: fixed;
  width: 6px; height: 6px; border-radius: 50%;
  background: #138EDF; pointer-events: none; z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width .15s ease, height .15s ease, opacity .2s ease;
}
.cur-dot.hovering { width: 3px; height: 3px; opacity: .5; }
.cur-label {
  position: fixed; font-size: 9px; font-weight: 800;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: #138EDF; pointer-events: none; z-index: 99999;
  transform: translate(-50%, 22px);
  opacity: 0; transition: opacity .3s ease; white-space: nowrap;
}
.cur-label.visible { opacity: 1; }

/* ---- Hero shell ------------------------------------------- */
.px-hero {
  position: relative;
  min-height: 100vh;
  min-height: -webkit-fill-available; /* iOS Safari */
  min-height: 100dvh;                 /* modern dynamic viewport */
  background: linear-gradient(135deg, #07111E 0%, #0A1828 35%, #0D2440 65%, #142E50 100%) !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Top accent bar */
.px-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #1C5982, #138EDF, #65B6EB, #138EDF, #1C5982);
  z-index: 10;
}

/* ---- Floating gradient orbs ------------------------------- */
.px-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(88px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.px-orb-1 {
  width: 680px; height: 680px;
  background: radial-gradient(circle, rgba(19,142,223,0.28) 0%, transparent 65%);
  top: -18%; right: -4%;
  animation: orbFloat1 15s ease-in-out infinite;
}
.px-orb-2 {
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(100,182,235,0.20) 0%, transparent 65%);
  bottom: 0%; left: -8%;
  animation: orbFloat2 19s ease-in-out infinite;
}
.px-orb-3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(28,89,130,0.30) 0%, transparent 65%);
  top: 38%; right: 28%;
  animation: orbFloat3 23s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%,100% { transform: translate(0, 0) scale(1); }
  33%     { transform: translate(-55px, 45px) scale(1.04); }
  66%     { transform: translate(30px, -30px) scale(0.97); }
}
@keyframes orbFloat2 {
  0%,100% { transform: translate(0, 0) scale(1); }
  40%     { transform: translate(45px, -55px) scale(1.05); }
  70%     { transform: translate(-28px, 28px) scale(0.97); }
}
@keyframes orbFloat3 {
  0%,100% { transform: translate(0, 0); }
  50%     { transform: translate(-40px, -45px); }
}

/* ---- Decorative rotating ring (top-right corner) ---------- */
.px-deco-ring {
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  border: 1px solid rgba(19,142,223,0.22);
  top: -90px; right: -90px;
  pointer-events: none; z-index: 0;
  animation: ringRotate 45s linear infinite;
}
.px-deco-ring::before {
  content: '';
  position: absolute;
  top: 70px; right: 70px; bottom: 70px; left: 70px;
  border-radius: 50%;
  border: 1px solid rgba(19,142,223,0.14);
}
.px-deco-ring::after {
  content: '';
  position: absolute;
  width: 9px; height: 9px;
  background: #138EDF;
  border-radius: 50%;
  top: 50%; left: -4.5px;
  margin-top: -4.5px;
  box-shadow: 0 0 12px 3px rgba(19,142,223,0.55);
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

/* ---- Periodic scan line ----------------------------------- */
.px-scan-line {
  position: absolute;
  left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(19,142,223,0.0) 10%,
    rgba(19,142,223,0.30) 40%,
    rgba(101,182,235,0.20) 60%,
    rgba(19,142,223,0.0) 90%,
    transparent 100%
  );
  pointer-events: none; z-index: 2;
  top: 0;
  opacity: 0;
  animation: scanPass 10s ease-in-out 4s infinite;
}
@keyframes scanPass {
  0%    { top: 0%;    opacity: 0; }
  4%    { opacity: 1; }
  96%   { opacity: 1; }
  100%  { top: 100%;  opacity: 0; }
}

/* ---- Click ripple ----------------------------------------- */
.px-ripple {
  position: fixed;
  border-radius: 50%;
  border: 1.5px solid rgba(19,142,223,0.40);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%) scale(0);
  animation: rippleOut 0.75s cubic-bezier(0,.5,.5,1) forwards;
}
@keyframes rippleOut {
  to { transform: translate(-50%, -50%) scale(7); opacity: 0; }
}

/* ---- Gradient lens — mouse follow ------------------------- */
.px-lens {
  position: absolute;
  width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle,
    rgba(19,142,223,0.10) 0%,
    rgba(52,149,214,0.05) 40%,
    transparent 68%
  );
  pointer-events: none; z-index: 0;
  transform: translate(-50%,-50%);
  transition: left 2s cubic-bezier(.25,.46,.45,.94),
              top  2s cubic-bezier(.25,.46,.45,.94);
}

/* ---- Content wrapper (2-col grid) ------------------------- */
.px-inner {
  position: relative; z-index: 3;
  flex: 1; display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 50px;
}

/* ---- Left content column ---------------------------------- */
.px-content-col {
  display: flex; flex-direction: column;
}

/* ---- Eyebrow ---------------------------------------------- */
.px-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 1.4px;
  text-transform: uppercase; color: rgba(130,185,225,0.80);
  margin-bottom: 36px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}
.px-eyebrow.visible { opacity: 1; transform: translateY(0); }
.px-eye-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #138EDF; flex-shrink: 0;
  animation: eyeDot 2.4s ease-in-out infinite;
  box-shadow: 0 0 8px 2px rgba(19,142,223,0.55);
}
@keyframes eyeDot {
  0%,100% { opacity:1; transform:scale(1); }
  50%     { opacity:.5; transform:scale(.7); }
}
.px-eye-sep { color: rgba(19,142,223,0.45); }
.px-eye-tag {
  margin-left: auto;
  background: rgba(19,142,223,0.15);
  border: 1px solid rgba(19,142,223,0.30);
  color: #65B6EB; padding: 4px 12px; border-radius: 50px;
  font-size: 10px; letter-spacing: 1.8px;
}

/* ---- Headline --------------------------------------------- */
.px-title {
  display: flex; flex-direction: column;
  gap: 0; margin: 0 0 44px; line-height: 0.96;
}
.px-row {
  display: flex; align-items: baseline;
  gap: 18px; overflow: hidden;
  --row-delay: calc(var(--i, 0) * 0.14s);
}
.px-word {
  display: inline-block;
  font-size: clamp(60px, 8vw, 110px);
  font-weight: 900; letter-spacing: -3.5px;
  color: #ffffff; line-height: 1;
  transform: translateY(110%); opacity: 0;
  transition:
    transform .95s cubic-bezier(.16,1,.3,1) calc(var(--row-delay,0s) + .35s),
    opacity   .55s ease                     calc(var(--row-delay,0s) + .35s);
  cursor: default; user-select: none;
}
.px-word.revealed { transform: translateY(0); opacity: 1; }

.px-word-outline {
  -webkit-text-stroke: 2.5px rgba(255,255,255,0.40);
  color: transparent;
}
.px-word-sm {
  font-size: clamp(40px, 5.2vw, 76px);
  letter-spacing: -2.5px; color: rgba(210,235,252,0.90);
}
.px-word-ghost {
  -webkit-text-stroke: 2px rgba(255,255,255,0.12);
  color: transparent;
}
.px-word-blue {
  background: linear-gradient(110deg, #65B6EB 0%, #138EDF 30%, #a0d4f5 55%, #138EDF 75%, #65B6EB 100%);
  background-size: 260% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; -webkit-text-stroke: 0;
  animation: blueShim 5s linear infinite;
}
@keyframes blueShim {
  0%   { background-position: 0%   center; }
  100% { background-position: 260% center; }
}

/* ---- Horizontal rule between headline and bottom ---------- */
.px-divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, rgba(19,142,223,0.45), rgba(19,142,223,0.15) 60%, transparent);
  margin-bottom: 36px;
  opacity: 0;
  transition: opacity .6s ease 1s;
}
.px-divider.visible { opacity: 1; }

/* ---- Bottom block ----------------------------------------- */
.px-bottom {
  display: flex; align-items: flex-start; gap: 48px;
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s ease 1.1s, transform .8s ease 1.1s;
}
.px-bottom.visible { opacity: 1; transform: translateY(0); }
.px-desc-col { flex: 1; max-width: 420px; }
.px-desc {
  font-size: 15.5px; line-height: 1.80;
  color: rgba(200,225,248,0.72); margin: 0 0 30px;
}

/* CTA */
.px-cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; }

.px-btn-fill {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #1a9ef0, #138EDF 60%, #0e72b8);
  color: #ffffff !important;
  font-size: 14px; font-weight: 700; letter-spacing: 0.4px;
  padding: 12px 14px 12px 22px; border-radius: 50px;
  text-decoration: none !important;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 32px rgba(19,142,223,0.45), 0 2px 8px rgba(0,0,0,0.18);
  transition: box-shadow .3s ease, transform .2s ease;
  will-change: transform;
  white-space: nowrap;
}
.px-btn-fill::after {
  content: ''; position: absolute;
  top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
}
.px-btn-fill:hover::after { left: 130%; }
.px-btn-fill:hover {
  box-shadow: 0 16px 48px rgba(19,142,223,0.65), 0 4px 12px rgba(0,0,0,0.22);
  transform: translateY(-2px);
  color: #fff !important;
}
.px-btn-fill span:first-child { position: relative; z-index: 1; }
.px-arrow-wrap {
  position: relative; z-index: 1;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.20);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .3s;
}
.px-btn-fill:hover .px-arrow-wrap {
  transform: translateX(3px);
  background: rgba(255,255,255,0.32);
}

.px-btn-line {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(200,230,252,0.90) !important;
  font-size: 14px; font-weight: 600;
  text-decoration: none !important;
  padding: 12px 22px;
  border-radius: 50px;
  border: 1.5px solid rgba(200,230,252,0.28);
  background: rgba(255,255,255,0.05);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: all .3s ease;
  will-change: transform;
  white-space: nowrap;
}
.px-btn-line:hover {
  border-color: rgba(101,182,235,0.70);
  color: #fff !important;
  background: rgba(19,142,223,0.18);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(19,142,223,0.20);
}

/* Stats */
.px-stats-col { display: flex; gap: 0; align-items: flex-start; padding-top: 4px; }
.px-stat { display: flex; flex-direction: column; gap: 4px; padding: 0 32px; }
.px-stat:first-child { padding-left: 0; }
.px-stat + .px-stat { border-left: 1px solid rgba(255,255,255,0.12); }
.px-snum {
  font-size: clamp(28px, 2.8vw, 42px); font-weight: 900;
  color: #ffffff; letter-spacing: -2px; line-height: 1;
}
.px-snum sup { font-size: .52em; font-weight: 800; color: #65B6EB; vertical-align: super; }
.px-slbl {
  font-size: 10.5px; color: rgba(130,180,225,0.75); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; white-space: nowrap;
}

/* ---- Right photo collage column --------------------------- */
.px-photo-col {
  align-self: center;
  min-width: 0;
  width: 100%;
  opacity: 0; transform: translateX(30px);
  transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
}
.px-photo-col.visible { opacity: 1; transform: translateX(0); }

.px-ph-a {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  height: 480px;
  box-shadow: 0 28px 70px rgba(0,0,0,0.45);
}
.px-photo-col img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transition: transform 0.6s ease;
}
.px-photo-col div:hover img { transform: scale(1.04); }

/* Gradient overlay + border */
.px-ph-a::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5,15,35,0.60) 100%);
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}

/* Badge on main photo */
.px-ph-badge {
  position: absolute;
  bottom: 14px; left: 14px;
  background: rgba(19,142,223,0.90);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 50px;
  z-index: 2;
}

/* ---- Marquee ---------------------------------------------- */
.px-marquee-wrap {
  position: relative; z-index: 3;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 15px 0;
  background: rgba(0,0,0,0.25);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  overflow: hidden;
}
.px-marquee {
  display: flex; align-items: center; gap: 32px;
  white-space: nowrap; animation: marqueeScroll 30s linear infinite;
  width: max-content;
}
.px-marquee:hover { animation-play-state: paused; }
.px-marquee span {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 2.8px; text-transform: uppercase;
  color: rgba(130,180,225,0.60); transition: color .25s;
}
.px-marquee:hover span { color: #65B6EB; }
.px-mark-dot { color: #138EDF !important; font-size: 7px !important; }
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .px-inner { grid-template-columns: 1fr; }
  .px-photo-col { grid-template-rows: 200px 160px; }
}
@media (max-width: 991px) {
  .px-inner {
    grid-template-columns: 1fr;
    padding-top: 110px;
    padding-bottom: 40px;
  }
  .px-photo-col { display: none; } /* hide on tablet/mobile */
  .px-word { letter-spacing: -2px; }
  .px-bottom { flex-direction: column; gap: 32px; }
  .px-stats-col { gap: 0; }
}
@media (max-width: 768px) {
  .px-inner { padding-top: 90px; }
  .px-word { font-size: clamp(42px, 10.5vw, 72px); letter-spacing: -1.5px; }
  .px-word-sm { font-size: clamp(28px, 7.5vw, 52px); letter-spacing: -1px; }
  .px-row { gap: 10px; }
  .px-eyebrow { flex-wrap: wrap; }
  .px-eye-tag { margin-left: 0; }
  .px-cta-row { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .px-btn-fill, .px-btn-line { justify-content: center; }
  .px-stats-col { flex-wrap: wrap; }
  .px-stat { padding: 0 20px; }
}
@media (max-width: 480px) {
  .px-word { font-size: clamp(34px, 11.5vw, 54px); letter-spacing: -0.8px; }
  .px-word-sm { font-size: clamp(22px, 8vw, 38px); }
  .px-word-outline { -webkit-text-stroke-width: 1.5px; }
  .cur-ring, .cur-dot, .cur-label { display: none; }
  *, *::before, *::after { cursor: auto !important; }
}

/* ---- Disable heavy GPU blur on mobile (iOS scroll performance) ---- */
@media (max-width: 768px) {
  .px-orb { filter: none; animation: none; opacity: 0.3; }
  .px-deco-ring { animation: none; display: none; }
  .px-scan-line { display: none; }
  .px-lens { display: none; }
}

/* ---- iOS safe area padding (iPhone notch / home indicator) ---- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .px-marquee-wrap {
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
  }
}
