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

:root {
  --serif: "DM Serif Display", serif;
  --sans: "Inter", sans-serif;
  --black: #0a0a0a;
  --white: #fafafa;
  --gray: #6b6b6b;
  --light-gray: #bababa;
  --accent: #1a1a1a;
}

html {
  background: var(--black);
}

body {
  font-family: var(--sans);
  color: var(--black);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--white);
}

/* Nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.logo {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.5px;
}

.nav-cta {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 10px 24px;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-cta:hover {
  opacity: 0.8;
}

/* Hero */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 48px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "heading graphic"
    "body    graphic";
  column-gap: 64px;
  align-items: start;
}

.hero-line {
  white-space: nowrap;
}

.word-ticker {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: inherit;
  height: 1.2em;
}

.word-ticker-inner {
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.word-ticker-inner.scrolling {
  transform: translateY(-50%);
}

.word-ticker-inner span {
  display: block;
  height: 1.2em;
  line-height: 1.2;
}

.hero-heading {
  grid-area: heading;
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
  align-self: end;
}

.hero-body {
  grid-area: body;
}

.hero-body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray);
  margin-bottom: 12px;
}

.hero-body p:last-of-type {
  margin-bottom: 40px;
}

.hero-graphic {
  grid-area: graphic;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic img {
  width: 100%;
  max-width: 600px;
  height: auto;
}

.hero-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 16px 40px;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}

.hero-cta:hover {
  opacity: 0.8;
}

/* Steps */
.steps-wrapper {
  background: var(--black);
  flex: 1;
}

.steps {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 48px 72px;
}

.steps-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #555;
  text-align: center;
  margin-bottom: 36px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.step {
  text-align: center;
}

.step-number {
  font-family: var(--serif);
  font-size: 40px;
  color: #858585;
  margin-bottom: 12px;
  line-height: 1;
}

.step h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--white);
}

.step p {
  font-size: 14px;
  line-height: 1.7;
  color: #888;
}

/* Footer */
footer {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  font-size: 13px;
  background: var(--black);
  color: var(--white);
  border-top: 1px solid #444;
}

/* Tablet */
@media (max-width: 1024px) {
  .hero {
    padding: 56px 40px 48px;
    column-gap: 40px;
  }

  .hero-graphic img {
    max-width: 460px;
  }

  .steps {
    padding: 48px 40px 64px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  nav {
    padding: 20px 24px;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding: 40px 24px 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .hero-heading {
    font-size: clamp(36px, 9vw, 48px);
    margin-bottom: 24px;
    order: 1;
  }

  .hero-graphic {
    order: 2;
    margin-bottom: 32px;
    align-self: center;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-graphic img {
    max-width: 100%;
  }

  .hero-body {
    order: 3;
  }

  .hero-body p {
    font-size: 16px;
  }

  .steps {
    padding: 32px 24px 40px;
  }

  .steps-label {
    margin-bottom: 24px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    text-align: left;
    padding: 10px 0;
  }

  .step-number {
    font-size: 28px;
    margin-bottom: 0;
    grid-row: 1 / 3;
    align-self: center;
    color: #3a3a3a;
  }

  .step h3 {
    font-size: 17px;
    margin-bottom: 4px;
    align-self: end;
  }

  .step p {
    font-size: 13px;
    line-height: 1.6;
    align-self: start;
  }
}
