@layer sections {
  /* ─────────────────────────────────────────
     Navigation
  ───────────────────────────────────────── */
  nav.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--blue);

    & .row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 32px;
      max-width: 1280px;
      margin: 0 auto;
    }

    & .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 22px;
      color: white;

      & .mark { width: 40px; height: 40px; }
      & .logo-tld { color: var(--yellow); }
    }

    & .links {
      display: flex;
      gap: 28px;
      font-size: 16px;
      font-weight: 600;

      & a {
        color: white;
        text-decoration: none;
        white-space: nowrap;

        &:hover {
          text-decoration: underline;
          text-decoration-thickness: 3px;
          text-underline-offset: 4px;
        }
      }
    }
  }

  /* ─────────────────────────────────────────
     Hero
  ───────────────────────────────────────── */
  .hero {
    position: relative;
    padding: 70px 0 100px;
    overflow: hidden;

    & h1 {
      font-family: var(--font-display);
      font-weight: 400;
      font-size: clamp(52px, 6.875vw, 88px);
      line-height: 0.92;
      letter-spacing: 0.005em;
      margin: 32px 0 24px;
      color: var(--cream);
    }

    & .sub {
      font-family: var(--font-body);
      font-weight: 600;
      font-size: clamp(24px, 2.6vw, 36px);
      color: white;
      margin: 0 0 36px;
      max-width: 22ch;
      line-height: 1.15;

      & em {
        font-style: normal;
        background: var(--cream);
        color: var(--ink);
        padding: 2px 14px;
        border-radius: var(--radius-pill);
        display: inline-block;
        transform: rotate(-2deg);
      }
    }

    & .cta-row {
      display: flex;
      gap: 14px;
      align-items: center;
      flex-wrap: wrap;
    }

    & .cta-meta {
      font-size: 15px;
      color: white;
      font-weight: 500;
      opacity: 0.85;
      margin-top: 20px;
    }
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
  }

  /* ─────────────────────────────────────────
     Decorative elements
  ───────────────────────────────────────── */
  .clouds {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
  }

  .scene {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 560px;
    margin-left: auto;
  }

  /* ─────────────────────────────────────────
     Marquee / problem strip
  ───────────────────────────────────────── */
  .problem {
    background: var(--ink);
    color: white;
    padding: 50px 0;
    overflow: hidden;
  }

  .marquee {
    display: flex;
    gap: 36px;
    align-items: center;
    white-space: nowrap;
    animation: scroll 36s linear infinite;
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 72px);
    color: var(--blue);

    & span {
      display: inline-flex;
      align-items: center;
      gap: 36px;
    }

    & .dot {
      width: 18px;
      height: 18px;
      border-radius: var(--radius-pill);
      background: var(--orange);
    }

    & .zh { color: var(--yellow); }
  }

  /* ─────────────────────────────────────────
     How it works section
  ───────────────────────────────────────── */
  #how { background: #7FDBFF; }

  /* ─────────────────────────────────────────
     Features bento section
  ───────────────────────────────────────── */
  #features { background: #4CC9FF; }

  /* ─────────────────────────────────────────
     Bento grid
  ───────────────────────────────────────── */
  .bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 22px;
    margin-top: 56px;
  }

  /* Column span helpers for bento */
  .col-5  { grid-column: span 5; }
  .col-7  { grid-column: span 7; }
  .col-12 { grid-column: span 12; }

  /* ─────────────────────────────────────────
     Final CTA
  ───────────────────────────────────────── */
  .final {
    text-align: center;
    padding: 120px 0;
    position: relative;
    background: var(--orange);

    & h2 {
      font-family: var(--font-display);
      font-weight: 400;
      font-size: clamp(56px, 8.5vw, 132px);
      line-height: 0.92;
      color: var(--cream);
      margin: 0 auto 32px;
      max-width: 14ch;
    }

    & .email-form {
      display: inline-flex;
      gap: 8px;
      align-items: center;
      background: white;
      border-radius: var(--radius-pill);
      padding: 6px 6px 6px 22px;

      & input {
        border: 0;
        outline: none;
        background: transparent;
        font-family: var(--font-body);
        font-weight: 600;
        font-size: 17px;
        color: var(--ink);
        width: 280px;

        &::placeholder { color: #aaa; }
      }
    }

    & .scene-final {
      display: flex;
      justify-content: center;
      gap: 24px;
      margin-top: 60px;
      flex-wrap: wrap;
    }
  }

  /* ─────────────────────────────────────────
     Footer
  ───────────────────────────────────────── */
  footer.bottom {
    background: var(--ink);
    color: white;
    padding: 60px 0 40px;

    & .row {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      flex-wrap: wrap;
      gap: 24px;
    }

    & h4 {
      font-family: var(--font-display);
      font-weight: 400;
      font-size: 36px;
      color: var(--yellow);
      margin: 0 0 6px;
    }

    & .footer-links {
      display: flex;
      gap: 40px;
    }

    & .col {
      display: flex;
      flex-direction: column;
      gap: 6px;
      font-size: 15px;
      font-weight: 500;

      & .h {
        font-weight: 700;
        color: var(--blue);
        margin-bottom: 4px;
      }
    }

    & .copyright {
      opacity: 0.7;
    }
  }

  /* ─────────────────────────────────────────
     Responsive
  ───────────────────────────────────────── */
  @media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .steps     { grid-template-columns: 1fr; }
    .quotes    { grid-template-columns: 1fr; }

    .bento .card { grid-column: span 12 !important; }

    nav.top .links { display: none; }
  }
}
