/*
=========================================================
01. DESIGN TOKENS
=========================================================
*/

:root {
  --color-background: #F5F5F7;
  --color-surface: #FFFFFF;
  --color-primary: #1D1D1F;
  --color-secondary: #333333;
  --color-muted: rgb(51 51 51 / 50%);
  --color-accent: #4E6994;

  --hero-gradient-top: #7894BA;
  --hero-gradient-bottom: #4E6994;

  --content-width: 1400px;
  --content-padding: 16px;

  --navigation-height: 44px;

  --major-gap: 64px;
  --internal-gap: 16px;

  --indicator-size: 16px;
  --indicator-gap: 16px;

  --carousel-duration: 720ms;
  --carousel-ease: cubic-bezier(0.22, 0.80, 0.20, 1);
  --carousel-autoplay-delay: 10000ms;

  --navigation-scroll-background: rgb(255 255 255 / 80%);
}


/*
=========================================================
02. RESET / BASE
=========================================================
*/

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--color-background);
  color: var(--color-primary);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.025em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a,
button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  margin: 0;
  border: 0;
  padding: 0;
  background: none;
}

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

.page {
  width: 100%;
  overflow-x: hidden;
  background: var(--color-background);
}


/*
=========================================================
03. SHARED CONTENT CONTAINER
=========================================================
*/

.content-container {
  width: min(
    100%,
    calc(var(--content-width) + (var(--content-padding) * 2))
  );
  margin-inline: auto;
  padding-inline: var(--content-padding);
}


/*
=========================================================
04. NAVIGATION
=========================================================
*/

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;

  width: 100%;
  height: var(--navigation-height);
}

.site-navigation {
  width: 100%;
  height: var(--navigation-height);

  background: #FFFFFF;

  box-shadow:
    0 8px 24px 0 rgb(0 0 0 / 10%);

  transition:
    background-color 240ms ease,
    backdrop-filter 240ms ease,
    -webkit-backdrop-filter 240ms ease;
}

.site-header.is-scrolled .site-navigation {
  background: var(--navigation-scroll-background);

  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.navigation-content {
  width: min(
    100%,
    calc(var(--content-width) + (var(--content-padding) * 2))
  );

  height: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-inline: auto;
  padding-inline: var(--content-padding);
}

.brand,
.footer-brand {
  color: var(--color-primary);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.navigation-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navigation-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navigation-link {
  display: inline-flex;
  align-items: center;

  min-height: 16px;

  color: var(--color-primary);

  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0;

  text-transform: uppercase;
  white-space: nowrap;
}

.navigation-social,
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;
}

.navigation-social img,
.footer-social img {
  width: auto;
  height: 16px;
}


/*
=========================================================
05. HERO
=========================================================
*/

.hero {
  width: 100vw;

  height:
    clamp(
      560px,
      40vw,
      768px
    );

  overflow: hidden;

  touch-action: pan-y;
}

.hero-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-track {
  display: flex;

  width: max-content;
  height: 100%;

  gap: 16px;

  transform: translate3d(0, 0, 0);

  will-change: transform;
}

.hero-slide {
  position: relative;

  flex: 0 0 100vw;

  width: 100vw;
  height: 100%;

  overflow: hidden;
}

.hero-slide-placeholder {
  width: 100%;
  height: 100%;

  background:
    linear-gradient(
      to bottom,
      var(--hero-gradient-top),
      var(--hero-gradient-bottom)
    );
}


/*
=========================================================
06. HERO INDICATORS
=========================================================
*/

.hero-indicator-area {
  width: 100%;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--color-background);
}

.hero-indicators {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: var(--indicator-gap);
}

.hero-indicator {
  width: var(--indicator-size);
  height: var(--indicator-size);

  flex: 0 0 var(--indicator-size);

  border-radius: 50%;

  background: var(--color-muted);

  opacity: 0.42;

  cursor: pointer;

  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.hero-indicator.is-active {
  opacity: 1;
}

.hero-indicator:hover {
  opacity: 0.78;
}

.hero-indicator:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}


/*
=========================================================
07. PROTOTYPE SECTIONS
=========================================================
*/

.section-gap,
.footer-gap {
  width: 100%;
  height: var(--major-gap);

  background: var(--color-background);
}

.prototype-section {
  width: 100vw;

  height:
    clamp(
      680px,
      56.25vw,
      1080px
    );

  background: var(--color-surface);
}


/*
=========================================================
08. FOOTER
=========================================================
*/

.site-footer {
  width: 100%;
  min-height: 128px;

  background: var(--color-background);
}

.footer-content {
  min-height: 64px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: var(--internal-gap);
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;

  gap: var(--internal-gap);
}

.footer-left {
  flex-wrap: wrap;
}

.footer-copyright,
.footer-social-label {
  color: var(--color-secondary);

  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.footer-social {
  width: 16px;
  height: 16px;
}


/*
=========================================================
09. RESPONSIVE
=========================================================
*/

@media (max-width: 767px) {

  :root {
    --content-padding: 16px;
  }

  .site-header,
  .site-navigation {
    height: 44px;
  }

  .navigation-content {
    padding-inline: 16px;
  }

  .brand,
  .footer-brand {
    font-size: 20px;
  }

  .navigation-right {
    gap: 16px;
  }

  .navigation-links {
    gap: 12px;
  }

  .navigation-link {
    font-size: 12px;
    line-height: 16px;
  }

  .hero {
    height: 100svh;
    min-height: 560px;
    max-height: 768px;
  }

  .hero-indicator-area {
    height: 64px;
  }

  .prototype-section {
    height:
      clamp(
        680px,
        56.25vw,
        1080px
      );
  }

  .footer-content {
    min-height: 180px;

    align-items: flex-start;
    justify-content: center;

    flex-direction: column;
  }

  .footer-right {
    align-self: flex-start;
  }
}


/*
=========================================================
10. REDUCED MOTION
=========================================================
*/

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .site-navigation,
  .hero-indicator {
    transition: none;
  }
}