:root {
  color-scheme: light;
  --paper: #f7f4ef;
  --ink: #191a1d;
  --muted: #6f716d;
  --line: #dfd7cb;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-solid: #fffdf8;
  --mint: #7cd7b4;
  --coral: #f18c79;
  --gold: #e7b852;
  --blue: #6d99d1;
  --shadow: 0 24px 70px rgba(43, 38, 29, 0.16);
  --radius: 24px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    linear-gradient(135deg, rgba(124, 215, 180, 0.18), transparent 34%),
    linear-gradient(315deg, rgba(241, 140, 121, 0.18), transparent 34%),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(25, 26, 29, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(25, 26, 29, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  border-bottom: 1px solid rgba(25, 26, 29, 0.07);
  background: rgba(247, 244, 239, 0.72);
  backdrop-filter: blur(20px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), var(--max-width));
  min-height: 72px;
  margin: 0 auto;
  padding: 14px 0;
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint), var(--gold), var(--coral));
  box-shadow: 0 0 18px rgba(8, 127, 113, 0.28);
}

.brand,
.nav-links,
.hero-actions,
.hero-stats,
.phone-status,
.task-row,
.unlock-card,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand img,
.final-cta img {
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(43, 38, 29, 0.18);
}

.nav-links {
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a,
.site-footer a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--ink);
}

.header-cta,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(25, 26, 29, 0.1);
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-cta {
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.56);
}

.primary-button {
  position: relative;
  gap: 10px;
  overflow: hidden;
  padding: 0 22px;
  background: var(--ink);
  color: #fffaf1;
  box-shadow: 0 16px 34px rgba(25, 26, 29, 0.2);
}

.primary-button::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.18), transparent 70%);
  content: "";
  transform: translateX(-130%);
  transition: transform 520ms ease;
}

.secondary-button {
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.62);
}

.header-cta:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover::after {
  transform: translateX(130%);
}

.button-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 13px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: 48px;
  align-items: center;
  width: min(calc(100% - 32px), var(--max-width));
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  padding: 52px 0 72px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #a25b48;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(52px, 8vw, 92px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: 0;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.5;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-stats {
  align-items: stretch;
  gap: 10px;
  margin: 0;
}

.hero-stats div {
  flex: 1;
  min-width: 160px;
  padding: 16px;
  border: 1px solid rgba(25, 26, 29, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
}

.hero-stats dt {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 800;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.product-stage {
  display: grid;
  min-height: 640px;
  place-items: center;
}

.phone-shell {
  width: min(100%, 378px);
  padding: 12px;
  border: 1px solid rgba(25, 26, 29, 0.12);
  border-radius: 52px;
  background: linear-gradient(145deg, #27282c, #111214);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.mockup-frame {
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  transform: rotate(2deg);
  transition: transform 180ms ease;
  will-change: transform;
}

.mockup-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 54px rgba(43, 38, 29, 0.18));
}

.hero-mockup {
  width: min(100%, 392px);
}

.phone-screen {
  min-height: 730px;
  padding: 20px;
  overflow: hidden;
  border-radius: 42px;
  background:
    linear-gradient(160deg, rgba(124, 215, 180, 0.2), transparent 38%),
    linear-gradient(335deg, rgba(109, 153, 209, 0.24), transparent 34%),
    #fffaf2;
}

.phone-status {
  justify-content: space-between;
  margin-bottom: 22px;
  color: rgba(25, 26, 29, 0.76);
  font-size: 13px;
  font-weight: 800;
}

.balance-panel,
.task-list,
.unlock-card,
.steps article,
.feature-grid article,
.privacy-section,
.final-cta {
  border: 1px solid rgba(25, 26, 29, 0.09);
  background: var(--panel);
  box-shadow: 0 16px 44px rgba(43, 38, 29, 0.08);
  backdrop-filter: blur(20px);
}

.balance-panel {
  padding: 22px;
  border-radius: 28px;
}

.panel-label,
.panel-note,
.unlock-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.balance-panel strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 54px;
  line-height: 1;
}

.balance-meter {
  height: 10px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(25, 26, 29, 0.08);
}

.balance-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--gold));
}

.task-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  border-radius: 28px;
}

.task-row {
  gap: 12px;
  min-height: 74px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.78);
}

.task-row strong,
.unlock-card strong {
  display: block;
  font-size: 15px;
}

.task-row small {
  color: var(--muted);
  font-weight: 700;
}

.task-check,
.task-dot,
.task-timer {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
}

.task-check {
  background: var(--mint);
}

.task-check::before {
  content: "✓";
}

.task-timer {
  background: var(--coral);
  color: #fff;
}

.task-dot {
  background: rgba(109, 153, 209, 0.22);
}

.unlock-card {
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 26px;
}

.unlock-card button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fffaf1;
  font-weight: 800;
}

.section {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.section-link {
  width: fit-content;
  color: #087f71;
  font-size: 15px;
  font-weight: 800;
}

.section-link::after {
  content: " →";
}

.steps,
.feature-grid {
  display: grid;
  gap: 16px;
}

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

.steps article,
.feature-grid article {
  padding: 26px;
  border-radius: var(--radius);
}

.steps span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 16px;
  background: #fff3d4;
  color: #8d6120;
  font-weight: 800;
}

.steps p,
.feature-grid p,
.privacy-section p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.feature-band {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 92px max(16px, calc((100vw - var(--max-width)) / 2)) 132px;
  isolation: isolate;
}

.feature-band::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(255, 253, 248, 0.7),
    rgba(255, 253, 248, 0.58) 62%,
    rgba(255, 253, 248, 0)
  );
  content: "";
}

.story-section {
  padding-top: 72px;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.story-visual {
  position: sticky;
  top: 96px;
  display: grid;
  min-height: calc(100svh - 128px);
  place-items: center;
}

.story-phone {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 971 / 2007;
  filter: drop-shadow(0 30px 58px rgba(43, 38, 29, 0.2));
}

.story-shot {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: translateY(8px) scale(0.99);
  transition: opacity 260ms ease, transform 320ms ease;
}

.story-shot.is-active {
  opacity: 1;
  transform: none;
}

.story-annotation {
  position: absolute;
  z-index: 2;
  display: grid;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease, transform 260ms ease;
}

.story-annotation.is-active {
  opacity: 1;
}

.annotation-dot {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 3px solid #fffdf8;
  border-radius: 999px;
  background: #00897b;
  box-shadow: 0 0 0 7px rgba(0, 137, 123, 0.16), 0 12px 24px rgba(43, 38, 29, 0.16);
}

.annotation-line {
  position: absolute;
  width: 96px;
  border-top: 2px dashed rgba(0, 137, 123, 0.7);
  transform-origin: left center;
}

.annotation-label {
  max-width: 190px;
  padding: 10px 12px;
  border: 1px solid rgba(25, 26, 29, 0.08);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 16px 34px rgba(43, 38, 29, 0.14);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.annotation-balance {
  top: 15.2%;
  right: -14%;
}

.annotation-balance .annotation-dot {
  right: 24%;
  top: 56px;
}

.annotation-balance .annotation-line {
  right: 30%;
  top: 62px;
  transform: rotate(184deg);
}

.annotation-task {
  top: 48.5%;
  right: -17%;
}

.annotation-task .annotation-dot {
  right: 29%;
  top: 48px;
}

.annotation-task .annotation-line {
  right: 36%;
  top: 54px;
  width: 110px;
  transform: rotate(188deg);
}

.annotation-withdraw {
  top: 74%;
  right: -14%;
}

.annotation-withdraw .annotation-dot {
  right: 31%;
  top: 38px;
}

.annotation-withdraw .annotation-line {
  right: 38%;
  top: 44px;
  transform: rotate(184deg);
}

.annotation-statistics {
  top: 27%;
  left: -15%;
}

.annotation-statistics .annotation-dot {
  left: 112%;
  top: 56px;
}

.annotation-statistics .annotation-line {
  left: 101%;
  top: 62px;
  width: 86px;
  transform: rotate(-7deg);
}

.annotation-achievements {
  top: 34%;
  right: -15%;
}

.annotation-achievements .annotation-dot {
  right: 30%;
  top: 52px;
}

.annotation-achievements .annotation-line {
  right: 36%;
  top: 58px;
  transform: rotate(186deg);
}

.story-steps {
  display: grid;
  gap: 22px;
  padding: 8svh 0 18svh;
}

.story-step {
  display: grid;
  align-content: center;
  min-height: 66svh;
  padding: 34px;
  border: 1px solid rgba(25, 26, 29, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 50px rgba(43, 38, 29, 0.06);
  opacity: 0.48;
  transform: scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.story-step.is-active {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 64px rgba(43, 38, 29, 0.11);
  opacity: 1;
  transform: scale(1);
}

.story-step span {
  display: inline-flex;
  margin-bottom: 12px;
  color: #087f71;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-step h3 {
  max-width: 420px;
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.story-step p {
  max-width: 460px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.privacy-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 42px;
  align-items: center;
  padding: 34px;
  border-radius: 32px;
}

.feature-band + .privacy-section {
  margin-top: -56px;
}

.final-cta {
  display: grid;
  width: min(calc(100% - 32px), 860px);
  margin: 40px auto 96px;
  padding: 44px;
  place-items: center;
  border-radius: 36px;
  text-align: center;
}

.final-cta h2 {
  margin: 22px 0 24px;
}

.guide-hero {
  width: min(calc(100% - 32px), 920px);
  margin: 0 auto;
  padding: 92px 0 36px;
}

.guide-hero h1 {
  margin-bottom: 22px;
}

.guide-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.55;
}

.guide-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 0.72fr);
  gap: 54px;
  align-items: center;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 72px 0;
  border-top: 1px solid rgba(25, 26, 29, 0.08);
}

.guide-copy h2 {
  max-width: 640px;
  margin-bottom: 18px;
}

.guide-copy p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.guide-phone {
  position: relative;
  justify-self: center;
  width: min(100%, 360px);
}

.guide-phone img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(43, 38, 29, 0.18));
}

.guide-phone-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: min(100%, 620px);
}

.not-found {
  display: grid;
  min-height: 100svh;
  width: min(calc(100% - 32px), 760px);
  margin: 0 auto;
  place-content: center;
  justify-items: start;
  padding: 72px 0;
}

.not-found img {
  margin-bottom: 22px;
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(43, 38, 29, 0.14);
}

.not-found h1 {
  margin-bottom: 18px;
  font-size: clamp(46px, 8vw, 86px);
}

.not-found p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.guide-callout {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.guide-balance {
  top: 14%;
  right: -24%;
}

.guide-balance .annotation-dot {
  right: 26%;
  top: 50px;
}

.guide-balance .annotation-line {
  right: 34%;
  top: 56px;
  transform: rotate(184deg);
}

.guide-task {
  top: 39%;
  right: -25%;
}

.guide-task .annotation-dot {
  right: 30%;
  top: 42px;
}

.guide-task .annotation-line {
  right: 38%;
  top: 48px;
  width: 112px;
  transform: rotate(188deg);
}

.guide-withdraw {
  bottom: 11%;
  right: -24%;
}

.guide-withdraw .annotation-dot {
  right: 30%;
  top: 38px;
}

.guide-withdraw .annotation-line {
  right: 38%;
  top: 44px;
  transform: rotate(184deg);
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  width: min(calc(100% - 32px), var(--max-width));
  min-height: 74px;
  margin: 0 auto;
  border-top: 1px solid rgba(25, 26, 29, 0.1);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 66px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 34px;
  }

  .product-stage {
    min-height: auto;
  }

  .phone-shell {
    width: min(100%, 350px);
    transform: none;
  }

  .mockup-frame {
    width: min(100%, 350px);
    transform: none;
  }

  .phone-screen {
    min-height: 640px;
  }

  .steps,
  .feature-grid,
  .privacy-section {
    grid-template-columns: 1fr;
  }

  .story-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .story-visual {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .story-phone {
    width: min(100%, 310px);
  }

  .story-annotation {
    display: none;
  }

  .story-steps {
    display: flex;
    gap: 12px;
    max-width: 100%;
    padding: 0 0 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .story-steps::-webkit-scrollbar {
    display: none;
  }

  .story-step,
  .story-step.is-active {
    flex: 0 0 min(82vw, 360px);
    min-height: 260px;
    padding: 22px;
    opacity: 1;
    transform: none;
    scroll-snap-align: center;
  }

  .guide-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .guide-phone {
    width: min(100%, 310px);
  }

  .guide-callout {
    display: none;
  }

  .guide-phone-pair {
    width: min(100%, 520px);
  }
}

@media (max-width: 640px) {
  .header-inner {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .brand span {
    display: none;
  }

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

  .hero,
  .section,
  .guide-hero,
  .guide-panel,
  .site-footer {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .hero {
    min-height: auto;
    padding-bottom: 48px;
  }

  h1 {
    font-size: clamp(44px, 15vw, 58px);
  }

  h2 {
    font-size: clamp(31px, 10vw, 42px);
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-actions,
  .hero-stats {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-stats {
    display: none;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .phone-shell {
    border-radius: 42px;
  }

  .mockup-frame {
    border-radius: 0;
  }

  .hero-mockup {
    width: min(100%, 320px);
  }

  .phone-screen {
    min-height: 604px;
    padding: 16px;
    border-radius: 32px;
  }

  .balance-panel strong {
    font-size: 46px;
  }

  .section {
    padding: 64px 0;
  }

  .feature-band {
    padding: 64px 12px 96px;
  }

  .feature-band + .privacy-section {
    margin-top: -36px;
  }

  .guide-hero {
    padding: 64px 0 20px;
  }

  .guide-hero p:not(.eyebrow),
  .guide-copy p:not(.eyebrow) {
    font-size: 17px;
  }

  .guide-panel {
    padding: 54px 0;
  }

  .steps article,
  .feature-grid article,
  .privacy-section,
  .final-cta {
    padding: 22px;
  }

  .final-cta {
    width: min(calc(100% - 24px), 860px);
    margin-bottom: 64px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
