:root {
  --bg: #f6f7f5;
  --txt: #151a20;
  --muted: #4b555f;
  --line: #d7dbd5;
  --accent: #4aa175;
  --ring: #dae5da;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--txt);
  background: radial-gradient(circle at 82% 46%, #eef2ef, var(--bg) 47%);
  font-family: "SF Pro Display", "SF Pro Text", -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page {
  min-height: 100dvh;
  width: min(1416px, calc(100% - 7.2rem));
  margin: 0 auto;
  padding: 2.85rem 0 1.3rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--txt);
  text-decoration: none;
  font-size: 2.72rem;
  font-weight: 540;
  letter-spacing: -0.06em;
}

.logo .x {
  color: var(--accent);
}

.nav-list {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2.7rem;
}

.nav-list a {
  color: #2d3640;
  text-decoration: none;
  font-size: 1.04rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.nav-list a:hover {
  color: var(--txt);
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: start;
  gap: 0.9rem;
  padding: 6.9rem 0 1.9rem;
}

.copy {
  max-width: 640px;
}

.tag {
  margin: 0;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 540;
  letter-spacing: 0.32em;
}

h1 {
  margin: 1.1rem 0 0;
  font-size: clamp(3.06rem, 4.35vw, 4.65rem);
  line-height: 1.01;
  letter-spacing: -0.045em;
  font-weight: 560;
}

.lead {
  margin: 1.3rem 0 0;
  max-width: 31ch;
  color: var(--muted);
  font-size: clamp(1.14rem, 1.35vw, 1.53rem);
  line-height: 1.42;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.cta {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  color: #1f272f;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  border-bottom: 1px solid #b9c6ba;
  padding-bottom: 0.24rem;
}

.cta::after {
  content: "\2192";
  color: var(--accent);
}

.media {
  position: relative;
  justify-self: end;
  width: min(700px, 102%);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  border: 1px solid var(--ring);
  background: transparent;
  overflow: visible;
}

.media::before,
.media::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  border: 1px solid #deeadf;
}

.media::before {
  inset: 10%;
}

.media::after {
  inset: 16%;
}

.media img {
  position: absolute;
  width: 121%;
  left: -13%;
  bottom: 8%;
}

.dot,
.plus,
.line {
  position: absolute;
  pointer-events: none;
}

.dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  left: 13%;
  top: 11%;
}

.plus {
  width: 23px;
  height: 23px;
}

.plus::before,
.plus::after {
  content: "";
  position: absolute;
  background: #c5d4c5;
}

.plus::before {
  width: 23px;
  height: 1px;
  top: 11px;
  left: 0;
}

.plus::after {
  width: 1px;
  height: 23px;
  top: 0;
  left: 11px;
}

.plus-a {
  left: 11%;
  top: 3.2%;
}

.plus-b {
  left: 10.2%;
  bottom: 7.3%;
}

.line {
  background: #cfe0cf;
  height: 1px;
}

.line-a {
  width: 122px;
  right: -8%;
  top: 22%;
}

.line-b {
  width: 102px;
  right: -6%;
  bottom: 26%;
}

.foot {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.foot p {
  margin: 0;
  color: #505963;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.foot-links {
  display: flex;
  gap: 4.3rem;
}

.foot-links a {
  color: #1f2730;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.sub-main {
  max-width: 920px;
  margin-top: 5.5rem;
}

.sub-main h1 {
  margin: 0;
  font-size: clamp(2.35rem, 4vw, 3.8rem);
  line-height: 1.08;
  font-weight: 580;
  letter-spacing: -0.03em;
}

.sub-main p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.55vw, 1.42rem);
  line-height: 1.44;
  font-weight: 420;
  letter-spacing: -0.005em;
}

.sub-links {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.sub-links a {
  color: #25303a;
  text-decoration: none;
  border: 1px solid #d3d9d0;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.93rem;
}

@media (max-width: 1020px) {
  .page {
    width: calc(100% - 3rem);
    padding-top: 2rem;
  }

  .top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-list {
    gap: 1.2rem;
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding-top: 2rem;
  }

  .media {
    width: min(680px, 100%);
    justify-self: start;
  }

  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-height: 920px) and (min-width: 1000px) {
  .page {
    padding-top: 2rem;
    padding-bottom: 1rem;
  }

  .hero {
    padding-top: 4.6rem;
    padding-bottom: 1.1rem;
  }

  .tag {
    font-size: 0.96rem;
  }

  h1 {
    margin-top: 0.9rem;
    font-size: clamp(2.64rem, 4.15vw, 4.2rem);
  }

  .lead {
    margin-top: 1rem;
    font-size: clamp(1.02rem, 1.2vw, 1.3rem);
    line-height: 1.38;
  }

  .cta {
    margin-top: 1.3rem;
  }

  .media {
    width: min(620px, 102%);
  }

  .foot {
    padding-top: 1rem;
  }
}

@media (max-height: 840px) and (min-width: 1000px) {
  .page {
    padding-top: 1.45rem;
    padding-bottom: 0.72rem;
  }

  .logo {
    font-size: 2.46rem;
  }

  .nav-list a {
    font-size: 0.98rem;
  }

  .hero {
    padding-top: 3rem;
    padding-bottom: 0.8rem;
  }

  .tag {
    font-size: 0.88rem;
    letter-spacing: 0.24em;
  }

  h1 {
    font-size: clamp(2.34rem, 3.7vw, 3.6rem);
    line-height: 1.01;
  }

  .lead {
    margin-top: 0.82rem;
    font-size: clamp(0.94rem, 1.03vw, 1.12rem);
    line-height: 1.34;
    max-width: 34ch;
  }

  .cta {
    margin-top: 1rem;
    font-size: 1rem;
  }

  .media {
    width: min(550px, 102%);
  }

  .foot p,
  .foot-links a {
    font-size: 0.82rem;
  }
}

@media (max-width: 720px) {
  .logo {
    font-size: 1.92rem;
  }

  .nav-list a {
    font-size: 0.96rem;
  }

  .tag {
    font-size: 0.96rem;
    letter-spacing: 0.21em;
  }

  h1 {
    margin-top: 0.84rem;
    font-size: clamp(2.06rem, 10vw, 2.9rem);
  }

  .lead {
    margin-top: 0.9rem;
    font-size: 1.04rem;
  }

  .cta {
    margin-top: 1.4rem;
    font-size: 1.08rem;
  }

  .foot p,
  .foot-links a {
    font-size: 0.96rem;
  }

  .foot-links {
    gap: 1.3rem;
  }
}
