/* Closing call to action and footer, after Dilara's mockups (design/reference). */

/* closing call to action: the text on the left, a night city with its network glowing on the right */

.teo-website-call-to-action {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 51vw, 740px);
  padding: clamp(96px, 10vw, 150px) 0 clamp(110px, 11vw, 170px);
  text-align: left;
  border-top: 0;
  background:
    linear-gradient(180deg, var(--teo-website-background) 0, transparent 110px),
    radial-gradient(ellipse 30% 16% at 17% 84%, rgba(20, 90, 220, 0.3), transparent 70%),
    linear-gradient(180deg, transparent 74%, rgba(2, 26, 82, 0.5) 100%),
    #01040f;
}

.teo-website-call-to-action-media {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 40%;
  overflow: hidden;
  /* the picture and the horizon light over it fade in slowly from the top, so the band above meets the sky without an
     edge; the lower end stays half lit down to the footer line */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.12) 6%, rgba(0, 0, 0, 0.5) 14%, rgba(0, 0, 0, 0.88) 22%, #000 30%,
    #000 82%, rgba(0, 0, 0, 0.55) 100%);
  mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.12) 6%, rgba(0, 0, 0, 0.5) 14%, rgba(0, 0, 0, 0.88) 22%, #000 30%,
    #000 82%, rgba(0, 0, 0, 0.55) 100%);
}

/* the media keeps still while it fades in; the picture inside settles from a slow zoom */
.teo-website-call-to-action-media.teo-website-reveal {
  transform: none;
  transition: opacity 1.2s ease;
}

.teo-website-call-to-action-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 12%;
  transform: scale(1.06);
  transform-origin: 70% 40%;
  transition: transform 2.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0, #000 30%);
}

.teo-website-call-to-action-media.teo-website-visible img {
  transform: none;
}

/* the horizon stays lit when the picture is cropped */
.teo-website-call-to-action-media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 46% 26% at 96% 0%, rgba(41, 141, 252, 0.4), transparent 70%);
}

.teo-website-call-to-action-content {
  position: relative;
}

.teo-website-call-to-action-content > * {
  max-width: 640px;
}

.teo-website-call-to-action .teo-website-eyebrow {
  margin-bottom: 34px;
  color: #9fcbf3;
  letter-spacing: 0.24em;
}

/* semi-bold and a little open, as drawn */
.teo-website-call-to-action .teo-website-title {
  font-size: clamp(40px, 6.1vw, 88px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.025em;
}

/* the last line cools from white to ice blue, as drawn */
.teo-website-call-to-action .teo-website-title em {
  background: linear-gradient(180deg, #f4faff 0%, #c2e3fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.teo-website-call-to-action .teo-website-lead {
  max-width: 18em;
  margin: 30px 0 0;
  color: #d6e8fa;
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.6;
}

.teo-website-call-to-action .teo-website-actions {
  justify-content: flex-start;
  gap: 22px;
  margin-top: 46px;
}

.teo-website-call-to-action .teo-website-call-to-action-primary, .teo-website-call-to-action .teo-website-call-to-action-secondary {
  min-height: clamp(56px, 4.6vw, 66px);
  padding: 0 clamp(30px, 3vw, 46px);
  font-size: clamp(16px, 1.36vw, 20px);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.teo-website-call-to-action .teo-website-call-to-action-primary {
  gap: 22px;
  border-color: rgba(225, 243, 255, 0.9);
  background: #c8e9ff;
  color: #0b1838;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(170, 215, 255, 0.6), 0 0 26px rgba(60, 140, 255, 0.45), 0 16px 44px -6px rgba(30, 110, 255, 0.75);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.teo-website-call-to-action .teo-website-call-to-action-primary:hover {
  border-color: #fff;
  background: #dcf2ff;
  box-shadow: 0 0 0 1px rgba(200, 230, 255, 0.8), 0 0 34px rgba(80, 155, 255, 0.6), 0 18px 50px -6px rgba(30, 110, 255, 0.9);
}

.teo-website-call-to-action .teo-website-call-to-action-primary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 999px;
}

.teo-website-call-to-action .teo-website-call-to-action-secondary {
  border-color: rgba(150, 185, 235, 0.45);
  background: rgba(1, 19, 51, 0.55);
  color: #f0f6ff;
  font-weight: 500;
}

.teo-website-call-to-action .teo-website-call-to-action-secondary:hover {
  border-color: var(--teo-website-accent);
  background: rgba(77, 164, 255, 0.12);
}

/* footer: one glowing line under the call to action, the wordmark, the pages and the maker */

.teo-website-footer {
  position: relative;
  padding: 60px 0 76px;
  border-top: 0;
  background: radial-gradient(ellipse 55% 140px at 50% 0, rgba(0, 40, 110, 0.5), transparent 75%), #01040f;
  font-size: 15px;
}

.teo-website-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(19, 69, 148, 0.9), #2c94ed 50%, rgba(41, 98, 175, 0.9));
  box-shadow: 0 0 18px 1px rgba(44, 148, 237, 0.45);
}

.teo-website-footer .teo-website-footer-grid {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.teo-website-footer .teo-website-footer-grid > div {
  gap: 0;
}

.teo-website-footer-wordmark {
  color: #f7ffff;
  font-family: var(--teo-website-font-display);
  font-size: 27px;
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 1;
}

.teo-website-footer-text {
  max-width: 322px;
  margin: 26px 0 0;
  color: #8fb8e8;
  font-size: 14px;
  letter-spacing: 0.14em;
  line-height: 1.8;
}

.teo-website-footer-links {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 14px 32px;
  align-content: start;
  justify-items: start;
}

.teo-website-footer .teo-website-footer-links a {
  color: #dcebfa;
  font-size: 15px;
  line-height: 22px;
}

.teo-website-footer .teo-website-footer-links a:hover {
  color: #fff;
}

.teo-website-footer .teo-website-footer-teosoft {
  margin: 0;
  color: #cfe9ff;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
}

.teo-website-footer-legal {
  display: flex;
  flex-direction: column;
  margin: 24px 0 0;
  color: #86b6ea;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.75;
}

.teo-website-footer .teo-website-footer-privacy-settings {
  margin-top: 6px;
  color: #86b6ea;
  text-decoration: underline;
  text-decoration-color: rgba(134, 182, 234, 0.4);
  text-underline-offset: 4px;
}

.teo-website-footer .teo-website-footer-privacy-settings:hover {
  color: #fff;
  text-decoration-color: currentColor;
}

/* narrow screens */

@media (max-width: 1080px) {
  .teo-website-call-to-action-media {
    left: 22%;
  }

  .teo-website-footer .teo-website-footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 40px 32px;
  }

  .teo-website-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .teo-website-call-to-action {
    min-height: 0;
    padding: 96px 0;
  }

  .teo-website-call-to-action-media {
    left: 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.5) 10%, #000 22%, #000 82%, rgba(0, 0, 0, 0.55) 100%);
    mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.5) 10%, #000 22%, #000 82%, rgba(0, 0, 0, 0.55) 100%);
  }

  /* the picture runs behind the text, darkened on the text side */
  .teo-website-call-to-action-media::before {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgba(1, 3, 14, 0.94) 0%, rgba(1, 3, 14, 0.72) 55%, rgba(1, 3, 14, 0.35) 100%);
  }

  .teo-website-call-to-action-media img {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media (max-width: 600px) {
  .teo-website-call-to-action {
    display: block;
    padding: 216px 0 80px;
  }

  /* on a phone the city is a band above the text */
  .teo-website-call-to-action-media {
    bottom: auto;
    height: 300px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.5) 11%, #000 24%);
    mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.5) 11%, #000 24%);
  }

  .teo-website-call-to-action-media::before {
    background: linear-gradient(180deg, rgba(1, 4, 15, 0) 40%, #01040f 100%);
  }

  .teo-website-call-to-action-media img {
    object-position: 60% center;
  }

  .teo-website-call-to-action .teo-website-eyebrow {
    margin-bottom: 20px;
  }

  .teo-website-call-to-action .teo-website-title {
    font-size: clamp(36px, 10vw, 52px);
  }

  .teo-website-call-to-action .teo-website-lead {
    margin-top: 20px;
    font-size: 17px;
  }

  .teo-website-call-to-action .teo-website-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 32px;
  }

  .teo-website-footer {
    padding: 48px 0 56px;
  }

  .teo-website-footer .teo-website-footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .teo-website-footer-links {
    grid-column: auto;
    gap: 16px 24px;
  }

  .teo-website-footer-text {
    letter-spacing: 0.08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teo-website-call-to-action-media img {
    transform: none;
    transition: none;
  }

  .teo-website-call-to-action .teo-website-call-to-action-primary {
    transition: none;
  }
}
