:root {
  --color-white: #fff;
  --color-bg: #f4f6f8;
  --color-muted: #dbe2ea;
  --color-accent: #35baf2;
  --color-slate: #72849c;
  --color-body: #7f8795;
  --color-body-strong: #686e7a;
  --color-heading: #515b69;
  --color-navy: #1b2a41;
  --tile-1: hsl(218, 38%, 31%);
  --tile-2: hsl(218, 38%, 34%);
  --tile-3: hsl(218, 38%, 37%);
  --tile-4: hsl(218, 38%, 40%);
  --font-heading: "Inter", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1170px;
  --radius-icon: 50%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--color-body);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--color-heading);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

h1,
h2,
h3,
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-transform: capitalize;
  margin: 0 0 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-kicker {
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 400;
  color: var(--color-body-strong);
  text-transform: none;
  margin: 0 0 2rem;
  line-height: 1.35;
}

.copy p {
  margin: 0 0 1.15rem;
}

.copy p:last-child {
  margin-bottom: 0;
}

.container {
  max-width: 1170px;
}

.reveal {
  opacity: 1;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: fade-up 0.7s ease forwards;
  animation-play-state: paused;
}

.js .reveal.is-visible {
  animation-play-state: running;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: none;
  }
}

.img-mask {
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.mask-18 {
  -webkit-mask-image: url("../img/masks/mask-18.svg");
  mask-image: url("../img/masks/mask-18.svg");
}

.mask-10 {
  -webkit-mask-image: url("../img/masks/mask-10.svg");
  mask-image: url("../img/masks/mask-10.svg");
}

.mask-3 {
  -webkit-mask-image: url("../img/masks/mask-3.svg");
  mask-image: url("../img/masks/mask-3.svg");
}

.mask-15 {
  -webkit-mask-image: url("../img/masks/mask-15.svg");
  mask-image: url("../img/masks/mask-15.svg");
}

.mask-8 {
  -webkit-mask-image: url("../img/masks/mask-8.svg");
  mask-image: url("../img/masks/mask-8.svg");
}

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  min-height: 110px;
  display: flex;
  align-items: center;
  padding: 1.25rem 3rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.brand:hover {
  color: var(--color-navy);
}

/* Hero */
.hero {
  padding: 8.5rem 0 2.5rem;
}

.hero-media {
  display: flex;
  justify-content: center;
}

.hero-media img {
  width: min(100%, 460px);
  -webkit-mask-image: url("../img/masks/mask-15.svg");
  mask-image: url("../img/masks/mask-15.svg");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Solutions */
.solutions {
  padding: 5rem 0 3.5rem;
  background-color: var(--color-bg);
  background-image: url("../img/light-gradient-bg.jpg");
  background-size: cover;
  background-position: center;
}

.solutions-intro {
  max-width: 46rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.icon-row {
  text-align: center;
}

.icon-card h3 {
  font-size: 2rem;
  margin: 1.25rem 0 0.75rem;
}

.icon-bubble {
  width: 124px;
  height: 124px;
  margin: 0 auto;
  border-radius: var(--radius-icon);
  background: var(--color-heading);
  color: #fff;
  display: grid;
  place-items: center;
}

.icon-bubble svg {
  width: 54px;
  height: 54px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.feature-tile {
  padding: clamp(3rem, 11vw, 6.5rem);
  text-align: center;
  color: var(--color-muted);
}

.feature-tile h2 {
  color: #fff;
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
}

.feature-tile p {
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.feature-tile img {
  width: min(100%, 300px);
  margin: 1.5rem auto;
  transition: transform 0.45s ease;
}

.feature-tile:hover img {
  transform: scale(1.06);
}

.tile-1 { background: var(--tile-1); }
.tile-2 { background: var(--tile-2); }
.tile-3 { background: var(--tile-3); }
.tile-4 { background: var(--tile-4); }

/* Cloud */
.cloud {
  padding: 0 0 4rem;
}

.cloud-top {
  align-items: center;
}

.cloud-media {
  display: flex;
  justify-content: center;
}

.cloud-media img {
  width: min(100%, 466px);
}

.capability-grid {
  margin-top: 2.5rem;
}

.capability {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 0.35rem 1.25rem;
  align-items: start;
}

.capability-icon {
  grid-row: 1 / span 2;
  width: 66px;
  height: 66px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  background: #fff;
  color: var(--color-accent);
  display: grid;
  place-items: center;
}

.capability-icon svg {
  width: 28px;
  height: 28px;
}

.capability h3 {
  font-size: 1.75rem;
  margin: 0.15rem 0 0.35rem;
  text-transform: capitalize;
}

.capability p {
  margin: 0;
  grid-column: 2;
}

/* Dual DC */
.dual-dc {
  padding: 2rem 0 3rem;
  background-color: var(--color-bg);
  background-image: url("../img/light-gradient-violet-bg.jpg");
  background-size: cover;
  background-position: center bottom;
  text-align: center;
}

.dual-dc .section-title,
.dual-dc p {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.dual-dc-media {
  margin: -1.5rem auto 0;
  max-width: 400px;
}

/* Hardware */
.hardware {
  padding: 5rem 0 4.5rem;
  background-color: #eef3f6;
  background-image: url("../img/smartphone-section-bg.jpg");
  background-size: cover;
  background-position: center;
}

.hardware-grid {
  align-items: start;
}

.hardware-media {
  margin-top: 3rem;
}

.hardware-media img {
  width: 100%;
}

/* Innovation */
.innovation {
  padding: 0 0 3%;
  background-image: url("../img/light-gradient-bands-bg.jpg");
  background-size: cover;
  background-position: left top;
}

.innovation-grid {
  align-items: center;
}

.innovation-media {
  margin-top: 4rem;
}

/* Contact */
.contact {
  padding: 1rem 0 2rem;
}

.contact-grid {
  max-width: 1170px;
  margin-inline: auto;
}

.contact-card {
  text-align: center;
  padding: 3rem;
}

.contact-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.25rem;
  border: 1px solid var(--color-muted);
  border-radius: 50%;
  color: var(--color-accent);
  display: grid;
  place-items: center;
}

.contact-icon svg {
  width: 42px;
  height: 42px;
}

.contact-card h2 {
  font-size: 2rem;
}

/* Footer */
.site-footer {
  background: var(--color-bg);
  padding: 2.25rem 0 2.75rem;
  text-align: center;
  color: var(--color-body);
  font-size: 17px;
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  color: var(--color-accent);
}

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--color-heading);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 30;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.to-top:hover,
.to-top:focus-visible {
  background: var(--color-accent);
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding: 1rem 1.5rem;
  }

  .innovation-media,
  .hardware-media {
    margin-top: 0;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .hero {
    padding-top: 7rem;
  }
}

@media (max-width: 767px) {
  .site-header {
    position: relative;
    min-height: 0;
    padding: 1rem 1.25rem;
  }

  .hero {
    padding: 1.5rem 0 2rem;
  }

  .feature-tile,
  .contact-card {
    padding: 3rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .feature-tile img {
    transition: none;
  }
}
