/* ═══════════════════════════════════════════════
   ATS SECURITY — HOME PAGE STYLES
   css/home.css
   ═══════════════════════════════════════════════ */

/* ── HERO ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}
.hero-video.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,9,8,.5)   0%,
    rgba(10,9,8,.18)  35%,
    rgba(10,9,8,.55)  68%,
    rgba(10,9,8,.94) 100%
  );
}
.hero-ticker {
  position: absolute;
  left: var(--side-pad);
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(240,236,228,.35);
  white-space: nowrap;
  display: flex;
  gap: 28px;
  pointer-events: none;
}
.hero-ticker-dot { color: var(--red); }
.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 var(--side-pad) clamp(52px,8vh,88px);
  max-width: calc(var(--max-w) + var(--side-pad) * 2);
}
.hero-eyebrow {
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s .8s var(--ease-expo), transform 1s .8s var(--ease-expo);
}
.hero-eyebrow::before { content:''; width:28px; height:1px; background:var(--red); }
.hero.ready .hero-eyebrow { opacity: 1; transform: none; }

.hero-title {
  font-family: var(--font-d);
  font-size: clamp(36px,6.5vw,88px);
  font-weight: 300;
  line-height: .92;
  letter-spacing: -.03em;
  margin-bottom: clamp(24px,4vh,44px);
  max-width: 920px;
}
.hero-title .line         { display: block; overflow: hidden; }
.hero-title .line span    { display: block; transform: translateY(110%); transition: transform 1.4s var(--ease-expo); }
.hero-title .line.d2 span { transition-delay: .12s; }
.hero-title .line.d3 span { transition-delay: .22s; }
.hero-title .ital          { font-style: italic; color: var(--red); }
.hero.ready .hero-title .line span { transform: translateY(0); }

.hero-desc {
  font-size: clamp(14px,1.4vw,17px);
  line-height: 1.75;
  color: var(--fg2);
  max-width: 460px;
  margin-bottom: clamp(28px,5vh,48px);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s .62s var(--ease-expo), transform 1s .62s var(--ease-expo);
}
.hero.ready .hero-desc { opacity: 1; transform: none; }

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s .82s var(--ease-expo), transform 1s .82s var(--ease-expo);
}
.hero.ready .hero-ctas { opacity: 1; transform: none; }

.hero-scroll {
  position: absolute;
  bottom: clamp(28px,5vh,48px);
  right: var(--side-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(240,236,228,.35);
  z-index: 1;
  opacity: 0;
  transition: opacity 1s 1.2s var(--ease-expo);
}
.hero.ready .hero-scroll { opacity: 1; }
.scroll-line {
  width: 1px; height: 64px;
  background: rgba(240,236,228,.22);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { transform: scaleY(1); opacity: .3; }
  50%     { transform: scaleY(.5); opacity: 1; }
}

/* ── TRUST STRIP ────────────────────────────────────── */
.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(40px,6vh,60px) var(--side-pad);
}
.trust-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.trust-label {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.trust-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── ABOUT PREVIEW ─────────────────────────────────── */
.about-preview {
  padding: var(--section-pad) var(--side-pad);
}
.about-preview-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px,8vw,120px);
  align-items: center;
}
.about-visual {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 2px;
}
.about-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.4s var(--ease-expo);
}
.about-visual:hover .about-img { transform: scale(1.03); }
.about-visual-tag {
  position: absolute;
  bottom: 24px; left: 24px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 2px;
}
.about-text .section-label { margin-bottom: 22px; }
.about-text h2 {
  font-family: var(--font-d);
  font-size: clamp(32px,4.2vw,58px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}
.about-text h2 em { font-style: italic; color: var(--red); }
.about-text p    { font-size: clamp(14px,1.2vw,16px); line-height: 1.8; color: var(--fg2); margin-bottom: 18px; }
.about-divider   { width: 40px; height: 1px; background: var(--red); margin: 28px 0; }
.about-quote {
  font-family: var(--font-d);
  font-style: italic;
  font-size: clamp(17px,1.8vw,22px);
  font-weight: 300;
  color: var(--fg2);
  line-height: 1.55;
}

/* ── SERVICES PREVIEW ──────────────────────────────── */
.services-preview {
  padding: var(--section-pad) var(--side-pad);
  background: var(--bg2);
}
.services-preview-inner { max-width: var(--max-w); margin: 0 auto; }
.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(44px,7vh,72px);
}
.service-list  { display: flex; flex-direction: column; }
.service-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 0 28px;
  align-items: start;
  padding: clamp(22px,3.5vh,36px) 0;
  border-bottom: 1px solid var(--border);
  cursor: none;
  transition: padding-left .5s var(--ease-expo);
  position: relative;
  overflow: hidden;
}
.service-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--red);
  transform: scaleY(0);
  transition: transform .5s var(--ease-expo);
  transform-origin: bottom;
}
.service-item:hover { padding-left: 14px; }
.service-item:hover::before { transform: scaleY(1); }
.service-num {
  font-family: var(--font-d);
  font-size: clamp(32px,3.5vw,48px);
  font-weight: 300;
  color: rgba(240,236,228,.1);
  letter-spacing: -.02em;
  line-height: 1;
  padding-top: 4px;
}
.service-body { padding-right: 20px; }
.service-name {
  font-family: var(--font-d);
  font-size: clamp(20px,2.5vw,32px);
  font-weight: 300;
  letter-spacing: -.01em;
  margin-bottom: 10px;
  line-height: 1.15;
  transition: color .3s;
}
.service-item:hover .service-name { color: var(--red); }
.service-copy  { font-size: 13px; line-height: 1.7; color: var(--warm); max-width: 520px; }
.service-tags  { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.service-tag {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--muted);
  color: var(--warm);
  padding: 3px 10px;
  border-radius: 2px;
  transition: border-color .3s, color .3s;
}
.service-item:hover .service-tag { border-color: var(--red); color: var(--fg2); }
.service-arrow {
  font-size: 18px;
  color: var(--muted);
  align-self: center;
  transition: color .3s, transform .5s var(--ease-expo);
  flex-shrink: 0;
}
.service-item:hover .service-arrow { color: var(--red); transform: translate(5px,-5px); }

/* ── APP FEATURE SECTION ───────────────────────────── */
.app-section {
  padding: var(--section-pad) var(--side-pad);
  background: var(--surface);
  overflow: hidden;
}
.app-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px,8vw,120px);
  align-items: center;
}
.app-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 32px 0;
}
.app-feature {
  border-left: 2px solid var(--red);
  padding-left: 14px;
}
.app-feature-title { font-size: 13px; font-weight: 600; color: var(--fg); margin-bottom: 3px; }
.app-feature-desc  { font-size: 12px; color: var(--warm); line-height: 1.5; }
.app-dl-row { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }

/* Phone mockup */
.app-phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px,2.5vw,28px);
}
.app-glow {
  position: absolute;
  width: 65%; height: 65%;
  background: radial-gradient(circle, rgba(192,57,43,.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: appGlow 4s ease-in-out infinite;
}
@keyframes appGlow {
  0%,100% { opacity: .4; transform: translate(-50%,-50%) scale(1); }
  50%     { opacity: .7; transform: translate(-50%,-50%) scale(1.1); }
}
.app-phone {
  width: clamp(130px,16vw,185px);
  aspect-ratio: 9/19;
  background: var(--bg2);
  border-radius: 28px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 36px 72px rgba(0,0,0,.55);
  flex-shrink: 0;
}
.app-phone.front { transform: rotate(-4deg) translateY(18px); }
.app-phone.back  { transform: rotate(4deg) translateY(-10px); opacity: .55; }
.phone-screen {
  flex: 1;
  background: linear-gradient(160deg,#161412 0%,#0e0c0a 100%);
  display: flex;
  flex-direction: column;
  padding: 18px 12px 12px;
}
.phone-notch       { width: 52px; height: 4px; background: var(--muted); border-radius: 4px; margin: 0 auto 14px; }
.phone-header      { font-size: 8px; letter-spacing: .1em; color: var(--red); text-transform: uppercase; margin-bottom: 8px; }
.phone-guard-name  { font-family: var(--font-d); font-size: 16px; font-weight: 300; color: var(--fg); margin-bottom: 3px; }
.phone-duty        { font-size: 8px; color: var(--warm); letter-spacing: .06em; margin-bottom: 14px; }
.phone-stat-row    { display: flex; gap: 6px; margin-bottom: 7px; }
.phone-stat        { flex: 1; background: var(--surface); border-radius: 5px; padding: 7px 5px; text-align: center; }
.phone-stat-n      { font-family: var(--font-d); font-size: 18px; font-weight: 300; color: var(--fg); line-height: 1; }
.phone-stat-l      { font-size: 6px; color: var(--warm); letter-spacing: .06em; }
.phone-alert       { margin-top: 7px; background: var(--red); border-radius: 5px; padding: 8px 6px; text-align: center; }
.phone-alert-t     { font-size: 7px; font-weight: 600; letter-spacing: .1em; color: #fff; }
.phone-alert-n     { font-family: var(--font-d); font-size: 24px; font-weight: 300; color: #fff; }
.phone-btn         { margin-top: 6px; background: rgba(255,255,255,.08); border-radius: 3px; padding: 7px; text-align: center; font-size: 7px; letter-spacing: .1em; color: var(--fg2); text-transform: uppercase; }

/* ── WHY ATS GRID ──────────────────────────────────── */
.why-section  { padding: var(--section-pad) var(--side-pad); }
.why-inner    { max-width: var(--max-w); margin: 0 auto; }
.why-header   { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(44px,7vh,72px); }
.why-grid     { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }

/* ── INDUSTRIES ────────────────────────────────────── */
.industries       { padding: var(--section-pad) var(--side-pad); background: var(--bg2); overflow: hidden; }
.industries-inner { max-width: var(--max-w); margin: 0 auto; }
.industries-desc  { font-size: clamp(14px,1.2vw,16px); line-height: 1.8; color: var(--fg2); max-width: 480px; margin: 14px 0 44px; }
.industries-tags  { display: flex; flex-wrap: wrap; gap: 10px; }
.ind-tag {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--muted);
  color: var(--fg2);
  padding: 11px 22px;
  border-radius: 2px;
  cursor: none;
  transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease-spring);
}
.ind-tag:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {
  .about-preview-inner, .app-inner, .why-header, .services-header { grid-template-columns: 1fr; }
  .about-visual { aspect-ratio: 3/2; order: -1; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .hero-ticker { display: none; }
  .app-phone.back { display: none; }
}
@media (max-width: 640px) {
  .why-grid { grid-template-columns: 1fr; }
  .app-features { grid-template-columns: 1fr; }
  .service-item { grid-template-columns: 44px 1fr auto; gap: 0 16px; }
  .services-header { grid-template-columns: 1fr; }
}
