/* ===========================================================================
   Apollon Technology - landing page + footer
   Load AFTER the theme CSS. All rules are scoped to .ap-landing / .ap-footer.
   =========================================================================== */

.ap-landing,
.ap-footer {
  --ap-cyan: #00bde8;
  --ap-cyan-dark: #007b96;
  --ap-ink: #0a1219;
  --ap-steel: #14212b;
  --ap-spark: #ff8a1e;
  --ap-paper: #f4f7f9;
  --ap-line: #d7e0e6;
  --ap-body: #33434c;
  --ap-dim: #a9bcc7;
  /* laser-cut chamfer used on image frames and the facts strip */
  --ap-chamfer: 20px;
}

/* anchor offset for the fixed header */
.ap-landing section[id] {
  scroll-margin-top: 90px;
}

/* --- shared type -------------------------------------------------------- */

.ap-landing .ap-eyebrow {
  display: block;
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ap-cyan);
}

.ap-landing .ap-eyebrow::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin-top: 0.7rem;
  background: var(--ap-cyan);
}

.ap-landing .ap-eyebrow--ink {
  color: var(--ap-cyan-dark);
}

.ap-landing .ap-h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ap-ink);
}

.ap-landing .ap-h2--light {
  color: #ffffff;
}

.ap-landing .ap-h3 {
  margin: 0 0 0.7rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ap-ink);
}

.ap-landing .ap-accent {
  color: var(--ap-cyan);
}

.ap-landing .ap-lead {
  max-width: 62ch;
  margin: 0 0 2.6rem;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.65;
  color: var(--ap-dim);
}

.ap-landing .ap-lead--ink {
  color: var(--ap-body);
}

.ap-landing .ap-lead--tight {
  margin-bottom: 0;
}

.ap-landing .ap-num {
  font-variant-numeric: tabular-nums lining-nums;
}

/* --- sections ----------------------------------------------------------- */

.ap-landing .ap-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background: #ffffff;
  color: var(--ap-body);
}

.ap-landing .ap-section--paper {
  background: var(--ap-paper);
}

.ap-landing .ap-section--dark {
  background: var(--ap-ink);
  color: var(--ap-dim);
}

/* --- buttons ------------------------------------------------------------ */

.ap-landing .ap-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
}

.ap-landing .ap-btn:hover {
  transform: translateY(-1px);
}

.ap-landing .ap-btn:focus-visible {
  outline: 3px solid var(--ap-cyan);
  outline-offset: 3px;
}

.ap-landing .ap-btn--primary,
.ap-landing .ap-btn--primary:visited {
  color: #ffffff;
  background-color: var(--ap-cyan);
  border-color: var(--ap-cyan);
  box-shadow: 0 5px 15px 0 rgba(0, 189, 232, 0.3);
}

.ap-landing .ap-btn--primary:hover,
.ap-landing .ap-btn--primary:focus {
  color: #ffffff;
  background-color: var(--ap-cyan-dark);
  border-color: var(--ap-cyan-dark);
  box-shadow: 0 10px 30px 0 rgba(0, 189, 232, 0.6);
}

.ap-landing .ap-btn--ghost,
.ap-landing .ap-btn--ghost:visited {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.4);
}

.ap-landing .ap-btn--ghost:hover,
.ap-landing .ap-btn--ghost:focus {
  color: #ffffff;
  background-color: #000000;
  border-color: #000000;
  box-shadow: 0 10px 30px 0 rgba(148, 148, 148, 0.7);
}

.ap-landing .ap-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
}

/* --- hero --------------------------------------------------------------- */

.ap-landing .ap-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* fallback so the hero stays readable without the image */
  background-color: var(--ap-ink);
  padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(4rem, 9vw, 7rem);
}

.ap-landing .ap-hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.ap-landing .ap-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  background: linear-gradient(
      100deg,
      rgba(6, 12, 17, 0.96) 0%,
      rgba(6, 12, 17, 0.9) 38%,
      rgba(6, 12, 17, 0.55) 62%,
      rgba(6, 12, 17, 0.35) 100%
    ),
    linear-gradient(to top, rgba(6, 12, 17, 0.85) 0%, rgba(6, 12, 17, 0) 45%);
}

/* Theme rules center some content areas - pin the hero text to the left.
   The .container itself keeps its Bootstrap auto margins so the hero block
   stays aligned with the header and the rest of the page. */
.ap-landing .ap-hero__inner,
.ap-landing .ap-hero__inner > * {
  text-align: left;
}

.ap-landing .ap-hero__inner {
  position: relative;
}

.ap-landing .ap-hero__title,
.ap-landing .ap-hero__lead,
.ap-landing .ap-hero__note,
.ap-landing .ap-hero .ap-eyebrow {
  margin-left: 0;
  margin-right: auto;
}

.ap-landing .ap-hero .ap-eyebrow::after {
  margin-left: 0;
}

.ap-landing .ap-hero__title {
  max-width: 17ch;
  margin: 0 0 1.2rem;
  font-size: clamp(2.15rem, 5.4vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.ap-landing .ap-hero__lead {
  max-width: 56ch;
  margin: 0 0 2rem;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.6;
  color: #cfdde5;
}

.ap-landing .ap-hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.85rem;
}

.ap-landing .ap-hero__note {
  margin: 1.15rem 0 0;
  font-size: 0.92rem;
  color: #93a8b4;
}

/* --- key facts strip ---------------------------------------------------- */

.ap-landing .ap-facts {
  background: var(--ap-steel);
  padding: 0;
}

.ap-landing .ap-facts__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ap-landing .ap-facts__item {
  padding: 1.6rem 1.4rem;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.ap-landing .ap-facts__item:first-child {
  border-left: 0;
  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    0 100%,
    0 var(--ap-chamfer)
  );
}

.ap-landing .ap-facts__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ap-cyan);
}

.ap-landing .ap-facts__value {
  display: block;
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.ap-landing .ap-facts__detail {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: #8fa4b0;
}

/* --- process steps ------------------------------------------------------ */

.ap-landing .ap-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2.6rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.ap-landing .ap-step {
  padding-top: 1.5rem;
  border-top: 2px solid var(--ap-line);
}

.ap-landing .ap-step__no {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--ap-cyan);
}

.ap-landing .ap-step__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ap-ink);
}

.ap-landing .ap-step__text {
  margin: 0;
  line-height: 1.65;
  color: var(--ap-body);
}

/* --- django messages ---------------------------------------------------- */

.ap-landing .ap-messages:not(:empty) {
  padding-top: 1.75rem;
}

/* --- configurator tiles wrapper ----------------------------------------- */
/* No grid here on purpose: the included partial brings its own layout. */

.ap-landing .ap-tiles {
  margin-top: 2.2rem;
}

.ap-landing .ap-tiles__cta {
  margin: 2.2rem 0 0;
}

/* --- signature: sheet metal vs tube ------------------------------------- */

.ap-landing .ap-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 1rem;
}

.ap-landing .ap-tech__frame {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(0, 189, 232, 0.35);
  /* chamfered corners echo a laser-cut edge */
  clip-path: polygon(
    var(--ap-chamfer) 0,
    100% 0,
    100% calc(100% - var(--ap-chamfer)),
    calc(100% - var(--ap-chamfer)) 100%,
    0 100%,
    0 var(--ap-chamfer)
  );
}

.ap-landing .ap-tech__img {
  display: block;
  width: 100%;
  height: clamp(200px, 26vw, 300px);
  object-fit: cover;
}

.ap-landing .ap-tech__title {
  margin: 0 0 1rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.ap-landing .ap-specs {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ap-landing .ap-specs li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ap-landing .ap-specs__k {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7f96a3;
}

.ap-landing .ap-specs__v {
  font-weight: 600;
  text-align: right;
  color: #e6eef3;
}

/* --- benefit cards ------------------------------------------------------ */

.ap-landing .ap-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.6rem;
}

.ap-landing .ap-card {
  padding: 1.8rem 1.6rem;
  background: #ffffff;
  border: 1px solid var(--ap-line);
  border-radius: 0.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

.ap-landing .ap-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 189, 232, 0.55);
  box-shadow: 0 10px 30px 0 rgba(0, 189, 232, 0.18);
}

.ap-landing .ap-card__icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  fill: none;
  stroke: var(--ap-cyan);
}

.ap-landing .ap-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ap-ink);
}

.ap-landing .ap-card__text {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--ap-body);
}

/* --- SEO copy block ----------------------------------------------------- */

.ap-landing .ap-seo__intro {
  max-width: 95ch;
  margin: 0 0 2.4rem;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--ap-body);
}

.ap-landing .ap-seo__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.ap-landing .ap-seo__col p {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: var(--ap-body);
}

.ap-landing .ap-seo__col p:last-child {
  margin-bottom: 0;
}

/* --- final CTA ---------------------------------------------------------- */

.ap-landing .ap-cta {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: linear-gradient(135deg, var(--ap-steel) 0%, #061118 100%);
  border-top: 3px solid var(--ap-cyan);
}

.ap-landing .ap-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.ap-landing .ap-cta .ap-h2 {
  margin-bottom: 0.6rem;
  max-width: 22ch;
}

.ap-landing .ap-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* --- footer ------------------------------------------------------------- */

.ap-footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.8rem;
  background: var(--ap-steel);
  border-top: 3px solid var(--ap-cyan);
  color: var(--ap-dim);
}

.ap-footer__logo {
  max-width: 220px;
  height: auto;
}

.ap-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.ap-footer__claim {
  max-width: 40ch;
  margin: 1.1rem 0 0;
  font-size: 0.93rem;
  line-height: 1.65;
  color: #8fa4b0;
}

.ap-footer__head {
  margin: 0 0 1rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ap-cyan);
}

.ap-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ap-footer__list li {
  margin-bottom: 0.6rem;
}

.ap-footer__list a,
.ap-footer__powered a {
  color: #cfdde5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ap-footer__list a:hover,
.ap-footer__powered a:hover {
  color: var(--ap-cyan);
  text-decoration: underline;
}

.ap-footer a:focus-visible {
  outline: 3px solid var(--ap-cyan);
  outline-offset: 3px;
}

.ap-footer__funding {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--ap-cyan);
  border-radius: 0.35rem;
}

.ap-footer__eu {
  flex: 0 0 auto;
  width: 190px;
  height: auto;
  background: #ffffff;
  border-radius: 0.25rem;
}

.ap-footer__fundingtext {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #8fa4b0;
}

.ap-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ap-footer__copy,
.ap-footer__powered {
  margin: 0;
  font-size: 0.85rem;
  color: #77909d;
}

/* --- responsive --------------------------------------------------------- */

@media (max-width: 991.98px) {
  .ap-landing .ap-facts__row {
    grid-template-columns: repeat(2, 1fr);
  }

  .ap-landing .ap-facts__item:nth-child(3) {
    border-left: 0;
  }

  .ap-landing .ap-steps,
  .ap-landing .ap-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .ap-landing .ap-split,
  .ap-landing .ap-seo__cols {
    grid-template-columns: 1fr;
  }

  .ap-footer__top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .ap-landing .ap-hero__img {
    object-position: 62% center;
  }

  .ap-landing .ap-facts__row,
  .ap-landing .ap-steps,
  .ap-landing .ap-cards {
    grid-template-columns: 1fr;
  }

  .ap-landing .ap-facts__item {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }

  .ap-landing .ap-facts__item:first-child {
    border-top: 0;
    clip-path: none;
  }

  .ap-landing .ap-btn {
    width: 100%;
    justify-content: center;
  }

  .ap-landing .ap-specs li {
    flex-direction: column;
    gap: 0.15rem;
  }

  .ap-landing .ap-specs__v {
    text-align: left;
  }

  .ap-footer__top,
  .ap-footer__funding {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

/* --- motion ------------------------------------------------------------- */
/* Content is visible by default; the reveal only runs when motion is welcome. */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .ap-landing .ap-fade {
    animation: ap-fade-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }

  .ap-landing .ap-fade--d1 {
    animation-delay: 0.08s;
  }

  .ap-landing .ap-fade--d2 {
    animation-delay: 0.16s;
  }

  .ap-landing .ap-fade--d3 {
    animation-delay: 0.24s;
  }

  .ap-landing .ap-fade--d4 {
    animation-delay: 0.32s;
  }
}

@keyframes ap-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
