/* Purpose: Home (front-page) section wrappers, backgrounds and layout. Ported from AXL HTML. Loaded only on front page. */

/* Flush the top padding (replaces inline style="padding-top:0" from the HTML). */
.section-pad.is-flush-top { padding-top: 0; }

/* ---- HERO ---- */
.hero { min-height: 90vh; display: flex; align-items: center; position: relative; overflow: hidden; background: #0d0b17; }
.hero .bg {
  position: absolute; inset: 0; z-index: 0;
  background-position: center center; background-size: cover; background-repeat: no-repeat;
  transform: scale(1.06);
  animation: kb 18s ease-in-out infinite alternate;
}
@keyframes kb { to { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .hero .bg { animation: none; } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(13, 11, 23, .86) 0%, rgba(13, 11, 23, .62) 34%, rgba(13, 11, 23, .12) 58%, rgba(13, 11, 23, 0) 78%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-copy { max-width: 620px; padding: 120px 0 60px; }
.hero .eyebrow { color: #ff6a90; }
.hero .eyebrow::before { border-top-color: #ff6a90; }
.hero h1 { font-size: clamp(34px, 5vw, 62px); font-weight: 800; letter-spacing: -.03em; color: #fff; }
.hero h1 .red { color: #ff3d6e; }
.hero .lead { margin: 26px 0 34px; font-size: clamp(17px, 2vw, 21px); color: rgba(255, 255, 255, .78); max-width: 34ch; }
.hero-tag { margin-bottom: 26px; }
.scroll-cue {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 3;
  white-space: nowrap;
}
.scroll-cue .line { width: 46px; height: 1px; background: rgba(255, 255, 255, .3); position: relative; overflow: hidden; }
.scroll-cue .line::after { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 100%; background: var(--accent); animation: slide 1.8s var(--ease) infinite; }
@keyframes slide { 0% { left: -30%; } 100% { left: 120%; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue .line::after { animation: none; } }

/* Mobile scroll indicator: vertical bar straddling the hero's bottom edge (replaces the horizontal cue). */
.hero-scroll-bar { display: none; }
@keyframes heroScrollDown { 0% { top: -40%; } 100% { top: 120%; } }
@media (prefers-reduced-motion: reduce) { .hero-scroll-bar span { animation: none; } }

@media (max-width: 600px) {
  .hero::after { background: linear-gradient(90deg, rgba(13, 11, 23, .9) 0%, rgba(13, 11, 23, .7) 60%, rgba(13, 11, 23, .4) 100%); }
  .scroll-cue .line { display: none; }
  .hero-scroll-bar {
    display: block; position: relative; z-index: 5;
    width: 2px; height: 64px; margin: -32px auto 0;
    background: rgba(255, 255, 255, .22); border-radius: 2px; overflow: hidden;
  }
  .hero-scroll-bar span {
    position: absolute; left: 0; top: 0; width: 100%; height: 24px;
    background: var(--accent); animation: heroScrollDown 1.8s var(--ease) infinite;
  }
}

/* ---- ABOUT ---- */
.about .grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 60px; align-items: center; }
.about-fig { position: relative; }
.about-fig img { border-radius: var(--r); width: 100%; }
.about-fig .badge { position: absolute; left: -14px; bottom: 22px; background: #fff; border: 1px solid var(--hair); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.about-fig .badge b { color: var(--accent); }
.about h2 { font-size: clamp(28px, 3.6vw, 44px); margin: 18px 0 22px; }
.about p { color: var(--slate); margin-bottom: 16px; }
.about .btn { margin-top: 10px; }
@media (max-width: 860px) { .about .grid { grid-template-columns: 1fr; gap: 34px; } .about-fig { order: -1; } }
/* Tablet: match stats box top spacing to the section's bottom padding (80px) */
@media (min-width: 601px) and (max-width: 1024px) { .about .stats { margin-top: 80px; } }

/* ---- PRODUCTS ---- */
.products { background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .92)), url("../../images/bg-2.jpg") center / cover fixed; scroll-margin-top: 124px; }

/* ---- SOLUTIONS ---- */
.solutions { background: var(--mist); }

/* ---- SHOWCASE ---- */
.showcase { background: var(--mist); }

/* ---- CONTACT ---- */
.contact { background: url("../../images/bg-4.jpg") center / cover no-repeat; position: relative; }
.contact::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .7) 45%, rgba(255, 255, 255, .25) 70%, rgba(255, 255, 255, 0) 100%); }
.contact .wrap { position: relative; z-index: 2; }
.contact .box { max-width: 560px; }
.contact h2 { font-size: clamp(30px, 4vw, 52px); margin-bottom: 18px; }
.contact p { color: var(--slate); max-width: 42ch; margin-bottom: 30px; font-size: 17px; }

/* Tablet: halve the Case Studies section vertical padding (80px → 40px) */
@media (min-width: 601px) and (max-width: 1024px) { .cases.section-pad { padding-top: 40px; padding-bottom: 40px; } }
