:root {
  --ink: #173226;
  --soft-ink: rgba(23, 50, 38, 0.72);
  --accent: #82b642;
  --accent-2: #e2c681;
  --wash-a: #edf5df;
  --wash-b: #fff9ec;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #f8f7ef;
  color: var(--ink);
  font-family: Inter, "Noto Sans", "Noto Sans SC", "Microsoft YaHei UI", system-ui, sans-serif;
}

body {
  overflow-x: hidden;
}

button {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--wash-a), var(--wash-b));
}

.matcha-banner {
  position: relative;
  width: 100%;
  min-height: clamp(620px, 82vh, 980px);
  overflow: hidden;
  isolation: isolate;
  background: var(--wash-a);
}

.slides,
.slide,
.backdrop,
.image-tint,
.ambient-field {
  position: absolute;
  inset: 0;
}

.slide,
.backdrop {
  width: 100%;
  height: 100%;
  opacity: 0;
  will-change: opacity, transform;
}

.slide {
  z-index: 1;
  object-fit: contain;
  object-position: center;
}

.slide.active {
  opacity: 1;
}

.backdrop {
  z-index: 0;
  object-fit: cover;
  object-position: center;
  filter: blur(30px) saturate(1.08);
  transform: scale(1.08);
}

.backdrop.active {
  opacity: 0.38;
}

.image-tint {
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 253, 244, 0.96) 0%, rgba(255, 253, 244, 0.78) 27%, rgba(255, 253, 244, 0.18) 54%, rgba(255, 253, 244, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 73%, rgba(255, 253, 244, 0.38) 100%);
}

.ambient-field {
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.glow {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.34;
  will-change: transform;
}

.glow-a {
  width: 26vw;
  height: 26vw;
  left: -10vw;
  top: 8vh;
  background: var(--accent);
}

.glow-b {
  width: 18vw;
  height: 18vw;
  right: 12vw;
  bottom: 12vh;
  background: var(--accent-2);
}

.glow-c {
  width: 12vw;
  height: 12vw;
  right: -2vw;
  top: 12vh;
  background: #ffffff;
}

.banner-copy {
  position: relative;
  z-index: 5;
  width: min(35vw, 520px);
  padding: clamp(46px, 7vh, 88px) 0 0 clamp(28px, 5.4vw, 92px);
}

.kicker {
  width: fit-content;
  margin: 0 0 18px;
  padding: 9px 14px;
  border: 1px solid rgba(23, 50, 38, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(18px);
  color: var(--soft-ink);
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 900;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 9.5ch;
  color: var(--ink);
  font-size: clamp(42px, 5.65vw, 88px);
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
}

.subcopy {
  margin: 18px 0 0;
  max-width: 390px;
  color: var(--soft-ink);
  font-size: clamp(15px, 1.04vw, 19px);
  line-height: 1.42;
  font-weight: 760;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.primary-cta,
.secondary-cta {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 900;
}

.primary-cta {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 16px 38px rgba(23, 50, 38, 0.22);
}

.secondary-cta {
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.progress {
  position: absolute;
  z-index: 7;
  left: clamp(28px, 5.4vw, 92px);
  bottom: clamp(24px, 4vh, 48px);
  width: min(360px, 32vw);
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

.progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--ink);
}

.ticker-base {
  position: relative;
  min-height: clamp(112px, 14vh, 174px);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 36%),
    radial-gradient(circle at 84% 30%, color-mix(in srgb, var(--accent-2) 26%, transparent), transparent 34%),
    linear-gradient(90deg, var(--wash-a), var(--wash-b));
}

.base-line {
  position: absolute;
  inset: 10px 0 auto 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.95);
}

.ticker {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: clamp(28px, 5vw, 78px);
  white-space: nowrap;
  will-change: transform;
}

.ticker-track span {
  color: color-mix(in srgb, var(--ink) 78%, transparent);
  font-size: clamp(30px, 5vw, 86px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

@media (max-width: 860px) {
  .matcha-banner {
    display: flex;
    min-height: auto;
    padding: 18px 14px 22px;
    overflow: visible;
    flex-direction: column;
    gap: 14px;
  }

  .slides {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    aspect-ratio: 21 / 9;
    min-height: 168px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.42);
    box-shadow: 0 18px 48px rgba(32, 52, 31, 0.13);
  }

  .backdrop {
    display: none;
  }

  .slide {
    object-fit: contain;
    object-position: center;
  }

  .image-tint {
    display: none;
  }

  .ambient-field {
    background:
      radial-gradient(circle at 16% 8%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 34%),
      radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 30%);
    opacity: 0.42;
  }

  .banner-copy {
    order: 1;
    width: 100%;
    padding: 0;
    text-align: left;
  }

  .kicker {
    margin-bottom: 10px;
    padding: 7px 11px;
    font-size: 11px;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(34px, 10.5vw, 52px);
    line-height: 0.98;
  }

  .subcopy {
    margin-top: 12px;
    max-width: 35em;
    font-size: 14px;
    line-height: 1.38;
  }

  .cta-row {
    gap: 8px;
    margin-top: 14px;
  }

  .primary-cta,
  .secondary-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  .progress {
    position: relative;
    order: 3;
    left: auto;
    bottom: auto;
    width: 100%;
    height: 4px;
    margin-top: 2px;
  }

  .ticker-base {
    min-height: 78px;
  }

  .ticker-track {
    gap: 24px;
  }

  .ticker-track span {
    font-size: clamp(24px, 10vw, 44px);
  }
}

@media (max-width: 480px) {
  .page-shell {
    min-height: 100svh;
  }

  .matcha-banner {
    padding: 14px 12px 18px;
    gap: 12px;
  }

  .slides {
    min-height: 146px;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(31px, 10vw, 44px);
  }

  .subcopy {
    font-size: 13px;
  }

  .cta-row {
    flex-wrap: nowrap;
  }

  .primary-cta,
  .secondary-cta {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 10px;
  }
}
