:root {
  --sky-top: #1b9fd9;
  --sky-mid: #24b9eb;
  --sky-bottom: #7bd4ef;
  --cloud: #f5f8fc;
  --cloud-soft: rgba(245, 248, 252, 0.94);
  --ink: #293444;
  --line: rgba(255, 255, 255, 0.12);
  --page-width: 1220px;
  --sans: "Nunito Sans", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cloud);
  font-family: var(--sans);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 58%, var(--sky-bottom) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.site-bg {
  position: fixed;
  inset: 0;
  overflow: clip;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(72px);
}

.glow-left {
  top: 14%;
  left: -10%;
  width: min(34rem, 36vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 74%);
}

.glow-right {
  top: 18%;
  right: -8%;
  width: min(32rem, 34vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 76%);
}

.glow-bottom {
  right: 18%;
  bottom: 6%;
  width: min(24rem, 24vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 76%);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), 1380px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 38px 0 56px;
}

.site-header,
.hero,
.site-footer {
  width: min(100%, var(--page-width));
  margin-inline: auto;
}

.brand img {
  width: min(24rem, 38vw);
  height: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 56px;
  min-height: calc(100vh - 210px);
}

.hero-copy {
  max-width: 35rem;
}

.hero h1 {
  margin: 0;
  color: var(--cloud);
  font-size: clamp(2.15rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-rule {
  width: 88px;
  height: 3px;
  margin: 28px 0 28px;
  background: var(--cloud-soft);
}

.hero-text {
  margin: 0;
  max-width: 35rem;
  color: var(--cloud-soft);
  font-size: clamp(1.1rem, 1.55vw, 1.35rem);
  font-weight: 600;
  line-height: 1.9;
}

.hero-visual {
  position: relative;
  width: min(100%, 820px);
  aspect-ratio: 667 / 600;
  min-height: 0;
}

.visual-frame {
  position: absolute;
  inset: 14% 13% 16% 18%;
  border: 1px solid var(--line);
  border-radius: 26px;
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 667px;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  margin: auto;
  opacity: 0.22;
  filter: saturate(0) brightness(2.1);
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-top: 16px;
}

.site-footer img {
  width: min(22rem, 58vw);
  height: auto;
}

.site-footer p {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.4;
}

[data-reveal] {
  opacity: 0;
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal="up"] {
  transform: translateY(24px);
}

[data-reveal="scale"] {
  transform: scale(0.98);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .page-shell {
    width: min(calc(100% - 32px), 1380px);
    padding-top: 26px;
    padding-bottom: 24px;
    min-height: auto;
  }

  .hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(100svh - 168px);
    padding: 12px 0 72px;
    overflow: clip;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
    max-width: 38rem;
    margin: auto 0;
    padding-top: 0;
  }

  .hero-visual {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 1;
    width: 100%;
    height: min(74vw, 720px);
    max-height: 720px;
    transform: translateY(-28%);
    pointer-events: none;
    overflow: clip;
  }

  .visual-frame {
    inset: 16% 50% 16% auto;
    width: min(54vw, 410px);
    transform: translateX(50%);
  }

  .hero-visual img {
    inset: 0 auto 0 50%;
    width: min(74vw, 720px);
    max-width: none;
    margin: auto 0;
    transform: translateX(-50%);
  }

  .site-footer {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .brand img {
    width: min(16rem, 76vw);
  }

  .site-header {
    padding-top: 2px;
  }

  .page-shell {
    min-height: auto;
    padding-bottom: 12px;
  }

  .hero {
    min-height: calc(100svh - 164px);
    padding: 10px 0 56px;
  }

  .hero-copy {
    max-width: 100%;
    margin: auto 0;
  }

  .hero h1 {
    font-size: clamp(1.95rem, 8vw, 2.35rem);
  }

  .hero-text {
    font-size: 1rem;
    line-height: 1.72;
  }

  .hero-visual {
    top: 50%;
    width: 100%;
    height: min(88vw, 500px);
    max-height: 520px;
    left: 0;
    right: 0;
    transform: translateY(-24%);
  }

  .visual-frame {
    inset: 18% 50% 16% auto;
    width: min(62vw, 280px);
    transform: translateX(50%);
  }

  .hero-visual img {
    width: min(88vw, 500px);
  }

  .site-footer {
    padding-top: 8px;
    padding-bottom: 18px;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
