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

:root {
  --ink: #0c1410;
  --ink-muted: #4a5c52;
  --ink-faint: #8a9e93;
  --surface: #f7f9f7;
  --surface-alt: #eef3ee;
  --line: #dde8e0;
  --white: #ffffff;

  --g900: #0e2b1a;
  --g800: #1a4731;
  --g700: #225c3e;
  --g600: #2d7a52;
  --g500: #3a9966;
  --g400: #5ab882;
  --g100: #c6e8d5;
  --g050: #eaf4ee;

  --expense: #c04b14;
  --expense-bg: #fdeee7;
  --income: var(--g700);
  --income-bg: var(--g050);

  --display: 'Nunito', 'Trebuchet MS', system-ui, sans-serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;

  --max-w: 1160px;
  --pad-x: clamp(1.25rem, 5vw, 4rem);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: none;
  transition: background .2s, color .2s, border-color .2s, transform .15s, opacity .2s;
  white-space: nowrap;
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0) scale(.98); }

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

.button--primary:hover { background: var(--g700); }

.button--secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.button--secondary:hover {
  border-color: var(--g600);
  color: var(--g600);
}

.button--light {
  background: #fff;
  color: var(--g800);
  font-weight: 600;
}

.button--light:hover { background: var(--g050); }

.button--ghost-light {
  background: transparent;
  color: rgba(255,255,255,.8);
  border: 1.5px solid rgba(255,255,255,.3);
}

.button--ghost-light:hover {
  color: #fff;
  border-color: rgba(255,255,255,.7);
}

.button--block { display: flex; width: 100%; }
.button--lg { padding: .9rem 2.25rem; font-size: .9375rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(247, 249, 247, .88);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}

.site-logo {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--g800);
  letter-spacing: -.03em;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.site-nav__link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color .2s;
}

.site-nav__link:hover { color: var(--ink); }
.site-header__actions { display: flex; gap: .65rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--g700);
  background: var(--g050);
  border: 1px solid var(--g100);
  border-radius: 999px;
  padding: .3rem .9rem;
  margin-bottom: 1.6rem;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--g500);
  flex-shrink: 0;
}

.section-heading {
  max-width: 560px;
  margin-bottom: 3.5rem;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading__eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: .75rem;
}

.section-heading h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: .85rem;
}

.section-heading p {
  font-size: .9375rem;
  color: var(--ink-muted);
  line-height: 1.7;
  font-weight: 400;
}

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--muted { background: var(--surface-alt); }

.hero {
  padding-top: clamp(4rem, 10vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 70%;
  height: 130%;
  background: radial-gradient(ellipse at 60% 40%, var(--g050) 0%, transparent 65%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

.hero__content { position: relative; z-index: 2; }

.hero__content h1 {
  font-family: var(--display);
  font-size: clamp(2.75rem, 5.5vw, 3.85rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.04em;
  color: var(--ink);
  margin-bottom: 1.35rem;
  max-width: 480px;
}

.hero__content h1 span {
  display: block;
  color: var(--g600);
  font-weight: 700;
}

.hero__lead {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 2.25rem;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.hero__highlights {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

.hero__highlights li {
  font-size: .82rem;
  color: var(--ink-faint);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.hero__highlights li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--g400);
  flex-shrink: 0;
}

.hero__visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chat-preview {
  width: 100%;
  max-width: 380px;
  position: relative;
}

.chat-preview::before,
.chat-preview::after {
  content: '';
  position: absolute;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--white);
}

.chat-preview::before {
  top: -18px;
  right: -24px;
  width: 148px;
  height: 72px;
  transform: rotate(3deg);
  box-shadow: 0 6px 20px rgba(0,0,0,.05);
  z-index: 0;
}

.chat-preview::after {
  bottom: -18px;
  left: -24px;
  width: 148px;
  height: 72px;
  transform: rotate(-2.5deg);
  box-shadow: 0 6px 20px rgba(0,0,0,.05);
  z-index: 0;
}

.chat-preview__window {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow:
    0 2px 0 rgba(0,0,0,.03),
    0 8px 24px rgba(0,0,0,.06),
    0 32px 80px rgba(14,21,17,.1);
  position: relative;
  z-index: 1;
}

.chat-preview__header {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.chat-preview__header-info { flex: 1; }

.chat-preview__header-name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
}

.chat-preview__header-status {
  font-size: .72rem;
  color: var(--g600);
  display: flex;
  align-items: center;
  gap: .3rem;
}

.chat-preview__header-status::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--g500);
  flex-shrink: 0;
}

.chat-preview__message {
  display: flex;
  align-items: flex-end;
  gap: .5rem;
  margin-bottom: .75rem;
}

.chat-preview__message--user { justify-content: flex-end; }
.chat-preview__message--bot { justify-content: flex-start; }

.chat-preview__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--ink-muted);
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.chat-preview__avatar--bot {
  background: var(--g800);
  color: #fff;
  border-color: var(--g800);
}

.chat-preview__bubble {
  max-width: 230px;
  padding: .6rem .95rem;
  border-radius: 14px;
  font-size: .82rem;
  line-height: 1.5;
}

.chat-preview__message--user .chat-preview__bubble {
  background: var(--ink);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-preview__message--bot .chat-preview__bubble {
  background: var(--surface-alt);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

.chat-tag {
  display: inline-block;
  margin-top: .35rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .18rem .55rem;
  border-radius: 5px;
}

.chat-tag--expense { background: var(--expense-bg); color: var(--expense); }
.chat-tag--income { background: var(--income-bg); color: var(--income); }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.stat-card {
  background: var(--surface);
  border-radius: 10px;
  padding: .65rem .8rem;
  border: 1px solid var(--line);
}

.stat-card--accent {
  background: var(--g050);
  border-color: var(--g100);
}

.stat-card__label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-faint);
  display: block;
  margin-bottom: .25rem;
}

.stat-card strong {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
}

.stat-card--accent strong { color: var(--g800); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 2.25rem;
  transition: border-color .2s, box-shadow .2s;
}

.feature-card:hover {
  border-color: var(--g100);
  box-shadow: 0 8px 28px rgba(0,0,0,.06);
}

.feature-card--wide { grid-column: span 8; }
.feature-card:not(.feature-card--wide) { grid-column: span 4; }

.feature-card__tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: .75rem;
}

.feature-card h3 {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--ink);
  margin-bottom: .6rem;
  line-height: 1.2;
}

.feature-card p {
  font-size: .875rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.feature-card--accent {
  background: var(--g050);
  border-color: var(--g100);
}

.feature-card--accent h3 { color: var(--g800); }

.feature-card--dark {
  background: var(--g900);
  border-color: var(--g800);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.feature-card--dark .feature-card__tag { color: rgba(255,255,255,.35); }
.feature-card--dark h3 { color: #fff; }
.feature-card--dark p { color: rgba(255,255,255,.55); }

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-top: 1.5rem;
}

.feature-list li {
  font-size: .845rem;
  color: rgba(255,255,255,.65);
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  line-height: 1.45;
}

.feature-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--g400);
  flex-shrink: 0;
  margin-top: .45em;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 880px;
  margin-inline: auto;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 2rem;
  position: relative;
  transition: box-shadow .2s;
}

.pricing-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.07); }

.pricing-card--featured {
  border: 2px solid var(--g600);
  box-shadow: 0 8px 32px rgba(45,122,82,.12);
}

.pricing-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--g700);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .3rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-card__tier {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: .4rem;
}

.pricing-card h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: .65rem;
}

.pricing-card__price {
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--ink);
  margin-bottom: 1.25rem;
  line-height: 1;
}

.pricing-card__price span {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--ink-faint);
  font-weight: 400;
  letter-spacing: 0;
}

.pricing-card__features {
  list-style: none;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.pricing-card__features li {
  font-size: .845rem;
  color: var(--ink-muted);
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  line-height: 1.45;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--line);
}

.pricing-card__features li::before {
  content: '✓';
  color: var(--g500);
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
  margin-top: .05em;
}

.cta-panel {
  background: var(--g900);
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem 5rem;
  align-items: center;
}

.cta-panel .section-heading__eyebrow { color: rgba(255,255,255,.35); }

.cta-panel h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: .75rem;
}

.cta-panel p {
  font-size: .9375rem;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
  max-width: 380px;
}

.cta-panel__actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex-shrink: 0;
  min-width: 220px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem 2rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.site-footer__brand .site-logo {
  display: inline-block;
  margin-bottom: .85rem;
}

.site-footer__desc {
  font-size: .8125rem;
  color: var(--ink-faint);
  line-height: 1.7;
  max-width: 240px;
}

.foot-col__title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
}

.foot-col__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.foot-col__links a {
  font-size: .8125rem;
  color: var(--ink-faint);
  transition: color .2s;
}

.foot-col__links a:hover { color: var(--ink); }

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.site-footer__bottom p,
.site-footer__bottom span {
  font-size: .75rem;
  color: var(--ink-faint);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__content > * {
  animation: fadeUp .55s cubic-bezier(.22,.68,0,1.2) both;
}

.hero__content > *:nth-child(1) { animation-delay: .05s; }
.hero__content > *:nth-child(2) { animation-delay: .12s; }
.hero__content > *:nth-child(3) { animation-delay: .2s; }
.hero__content > *:nth-child(4) { animation-delay: .28s; }
.hero__content > *:nth-child(5) { animation-delay: .35s; }

.hero__visual {
  animation: fadeUp .65s cubic-bezier(.22,.68,0,1.2) .15s both;
}

@media (max-width: 1024px) {
  .feature-card--wide { grid-column: span 12; }
  .feature-card:not(.feature-card--wide) { grid-column: span 6; }
  .feature-card--dark { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .site-nav { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card,
  .feature-card--wide { grid-column: span 1; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .cta-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cta-panel p { max-width: 100%; }
  .cta-panel__actions { flex-direction: row; justify-content: center; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer__bottom { flex-direction: column; gap: .5rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .button { width: 100%; justify-content: center; }
  .cta-panel__actions { flex-direction: column; }
  .cta-panel__actions .button { width: 100%; }
}
