:root {
  --green: #2e7d32;
  --green-dark: #1f5f22;
  --green-soft: #e8f5e9;
  --ink: #142127;
  --muted: #647174;
  --line: #dde6df;
  --bg: #f7faf7;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 6vw;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--green);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green), #18b77a);
  color: #fff;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

.nav a,
.footer a {
  text-decoration: none;
  color: var(--muted);
}

.nav a:hover,
.footer a:hover {
  color: var(--green);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  align-items: center;
  gap: 56px;
  padding: 64px 6vw;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: 680px;
  font-size: clamp(42px, 7vw, 76px);
  letter-spacing: -.04em;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.03em;
}

h3 {
  font-size: 20px;
}

.lead {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  background: var(--green);
  color: #fff;
}

.button.secondary {
  background: var(--card);
  color: var(--green);
  border: 1px solid var(--line);
}

.preview {
  display: grid;
  place-items: center;
}

.phone {
  width: min(360px, 100%);
  border-radius: 34px;
  background: #111827;
  padding: 18px;
  color: #fff;
  box-shadow: 0 28px 70px rgba(20, 33, 39, .22);
}

.phone-header,
.app-title {
  display: flex;
  justify-content: space-between;
  color: #d5ead7;
  font-size: 13px;
}

.app-title {
  justify-content: center;
  margin: 16px 0;
  font-weight: 800;
  color: #66d982;
  letter-spacing: .08em;
}

.balance {
  margin: 20px 0 10px;
  text-align: right;
  color: #66d982;
  font-size: 32px;
  font-weight: 800;
}

.small-card,
.grid > div,
.chart {
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .08);
}

.small-card {
  padding: 10px 12px;
  color: #d5ead7;
  font-size: 13px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.grid > div {
  padding: 14px;
}

.grid strong,
.grid span {
  display: block;
}

.grid span {
  margin-top: 8px;
  color: #66d982;
  font-weight: 800;
}

.chart {
  height: 150px;
  display: flex;
  align-items: end;
  gap: 14px;
  padding: 18px;
}

.chart span {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, #66d982, var(--green));
}

.section {
  padding: 72px 6vw;
  border-top: 1px solid var(--line);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.cards article {
  padding: 24px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
}

.cards p,
.split p,
.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.65;
}

.split {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.legal {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 6vw;
}

.legal h1 {
  font-size: clamp(36px, 5vw, 56px);
}

.legal h2 {
  margin-top: 34px;
  font-size: 24px;
}

.updated,
.note {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--green-soft);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 6vw;
  color: var(--muted);
  background: var(--card);
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .topbar {
    padding: 0 20px;
  }

  .nav {
    gap: 12px;
    font-size: 13px;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 42px 20px;
  }

  .section,
  .legal {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }
}
