:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-soft: #f2f4f7;
  --text: #0f172a;
  --muted: #667085;
  --border: #eaecf0;
  --accent: #6c4dff;
  --accent-pressed: #5a3fe0;
  --accent-soft: #f0ebff;
  --dark: #071016;
  --dark-surface: #111c24;
  --dark-border: #21303a;
  --green: #67e044;
  --container: 1200px;
  --radius-large: 40px;
  --radius-screen: 28px;
  --shadow: 0 28px 80px rgba(26, 32, 44, 0.11);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.section { padding: 128px 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 200; top: 12px; left: 12px; padding: 12px 18px;
  border-radius: 12px; background: var(--text); color: #fff; transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(108, 77, 255, 0.48); outline-offset: 4px; }

.site-header {
  position: absolute; z-index: 50; inset: 0 0 auto; padding: 20px 0;
}
.header-inner { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 750; letter-spacing: -0.02em; white-space: nowrap; }
.brand-mark {
  display: grid; width: 44px; height: 44px; place-items: center; overflow: hidden;
  border-radius: 13px; background: var(--dark); box-shadow: 0 10px 24px rgba(7, 16, 22, 0.16);
}
.brand-mark img { width: 34px; height: 36px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 34px; font-size: 15px; font-weight: 560; }
.main-nav > a:not(.button) { position: relative; padding: 12px 0; color: #253047; }
.main-nav > a:not(.button)::after {
  position: absolute; right: 0; bottom: 6px; left: 0; height: 2px;
  border-radius: 999px; background: var(--accent); content: ""; transform: scaleX(0); transition: transform 180ms ease;
}
.main-nav > a:not(.button):hover::after, .main-nav > a:not(.button):focus-visible::after { transform: scaleX(1); }
.menu-button { display: none; width: 48px; height: 48px; border: 0; border-radius: 14px; background: var(--surface); box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08); }
.menu-button span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 4px auto; border-radius: 3px; background: var(--text); transition: transform 180ms ease, opacity 180ms ease; }

.button {
  display: inline-flex; min-height: 58px; align-items: center; justify-content: center; gap: 12px;
  padding: 0 26px; border-radius: 16px; background: var(--accent); color: #fff;
  font-size: 17px; font-weight: 700; box-shadow: 0 16px 38px rgba(108, 77, 255, 0.25);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.button svg { width: 22px; height: 22px; fill: currentColor; }
.button:hover { background: var(--accent-pressed); box-shadow: 0 20px 44px rgba(108, 77, 255, 0.32); transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-small { min-height: 46px; padding: 0 20px; border-radius: 14px; font-size: 14px; }

.hero { min-height: 880px; padding: 168px 0 72px; background: radial-gradient(circle at 81% 38%, rgba(108, 77, 255, 0.12), transparent 27%), linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.hero-grid { display: grid; grid-template-columns: 0.84fr 1.16fr; align-items: center; gap: 60px; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 24px; }
.hero h1, .section-heading h2, .themes h2, .download h2 {
  margin: 0; font-size: clamp(48px, 5vw, 76px); font-weight: 800; line-height: 0.98; letter-spacing: -0.055em;
}
.hero-copy > p { max-width: 570px; margin: 32px 0 38px; color: var(--muted); font-size: clamp(20px, 2vw, 26px); line-height: 1.5; letter-spacing: -0.02em; }
.hero-media { position: relative; min-height: 670px; }
.screen-card, .theme-screen, .download-screen {
  position: absolute; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-screen); box-shadow: var(--shadow); background: var(--surface);
}
.screen-card img, .theme-screen img, .download-screen img { width: 100%; height: auto; }
.hero-screen-light { top: 6px; left: 8%; width: 53%; transform: rotate(-3deg); }
.hero-screen-dark { top: 84px; right: 1%; width: 46%; border-color: var(--dark-border); background: var(--dark); transform: rotate(2deg); }
.hero-media::before {
  position: absolute; right: 5%; bottom: 4%; width: 72%; height: 35%; border-radius: 50%;
  background: rgba(108, 77, 255, 0.19); filter: blur(68px); content: "";
}

.section-heading { max-width: 760px; margin-bottom: 68px; }
.section-heading h2 { font-size: clamp(42px, 4.8vw, 68px); }
.section-heading p { margin: 26px 0 0; color: var(--muted); font-size: clamp(19px, 2vw, 25px); line-height: 1.45; }
.section-heading-centered { margin-inline: auto; text-align: center; }
.features { background: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.feature-item { min-width: 0; }
.feature-title { display: flex; min-height: 76px; align-items: center; gap: 18px; margin-bottom: 24px; }
.feature-title h3 { margin: 0; font-size: 23px; line-height: 1.18; letter-spacing: -0.025em; }
.line-icon {
  display: grid; flex: 0 0 54px; width: 54px; height: 54px; place-items: center;
  border: 1px solid rgba(108, 77, 255, 0.32); border-radius: 17px; color: var(--accent); background: #fff;
}
.line-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-screen, .step-screen {
  position: relative; height: 520px; overflow: hidden; border: 1px solid var(--border);
  border-radius: 26px; background: var(--bg); box-shadow: 0 20px 55px rgba(15, 23, 42, 0.09);
}
.feature-screen img, .step-screen img { width: 100%; height: auto; }
.feature-screen-expenses img { transform: translateY(-1%); }
.feature-screen-history img { transform: translateY(-3%); }
.feature-screen-analytics img { transform: translateY(-1%); }

.how { border-radius: 0 0 var(--radius-large) var(--radius-large); background: var(--bg); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; min-width: 0; }
.step:not(:last-child)::after {
  position: absolute; top: 58%; right: -36px; width: 24px; height: 2px; background: var(--accent); content: "";
}
.step:not(:last-child)::before {
  position: absolute; z-index: 2; top: calc(58% - 4px); right: -36px; width: 8px; height: 8px;
  border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); content: ""; transform: rotate(45deg);
}
.step-label { display: flex; min-height: 52px; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.step-label span { color: var(--accent); font-size: 25px; font-weight: 800; }
.step-label h3 { margin: 0; font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; }
.step-screen { height: 560px; background: #fff; }

.themes { position: relative; overflow: hidden; padding-block: 116px; background: var(--dark); color: #f8fafc; }
.themes::before, .themes::after {
  position: absolute; width: 620px; height: 620px; border: 1px solid rgba(103, 224, 68, 0.09);
  border-radius: 32%; content: ""; transform: rotate(32deg);
}
.themes::before { top: -430px; left: 10%; }
.themes::after { right: -380px; bottom: -420px; }
.themes-grid { display: grid; grid-template-columns: 0.72fr 1.28fr; align-items: center; gap: 68px; }
.themes-copy { position: relative; z-index: 2; }
.themes h2 { font-size: clamp(48px, 5.2vw, 74px); }
.green-rule { display: block; width: 72px; height: 4px; margin: 36px 0; border-radius: 999px; background: var(--green); }
.themes-copy > p { margin: 0 0 42px; color: #a6b0bb; font-size: 21px; line-height: 1.6; }
.trust-list { display: grid; gap: 25px; margin: 0; padding: 0; list-style: none; }
.trust-list li { display: flex; align-items: center; gap: 16px; font-size: 17px; font-weight: 650; }
.trust-list svg { flex: 0 0 34px; width: 34px; height: 34px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.themes-media { position: relative; min-height: 680px; }
.theme-screen { top: 0; width: 48%; height: 680px; }
.theme-screen img { width: 100%; }
.theme-screen-light { left: 0; }
.theme-screen-dark { right: 0; border-color: var(--dark-border); background: var(--dark); }

.download { padding-bottom: 0; background: radial-gradient(circle at 80% 34%, rgba(108, 77, 255, 0.13), transparent 30%), linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.download-grid { display: grid; grid-template-columns: 0.86fr 1.14fr; align-items: center; gap: 60px; }
.download-copy { padding: 72px 0 140px; }
.download h2 { font-size: clamp(48px, 5.2vw, 76px); }
.download-copy p { max-width: 560px; margin: 30px 0 38px; color: var(--muted); font-size: 22px; line-height: 1.55; }
.download-media { position: relative; min-height: 700px; align-self: end; }
.download-screen { bottom: 0; }
.download-screen-dark { left: 4%; z-index: 2; width: 41%; height: 510px; background: var(--dark); transform: translateY(5%); }
.download-screen-dark img { filter: brightness(0.96); }
.download-screen-light { right: 3%; width: 57%; height: 680px; }

.site-footer { border-top: 1px solid var(--border); background: #fff; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto auto; min-height: 116px; align-items: center; gap: 36px; color: var(--muted); font-size: 14px; }
.brand-footer { color: var(--text); font-size: 16px; }
.brand-footer .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
.brand-footer .brand-mark img { width: 29px; height: 31px; }
.footer-inner nav { display: flex; justify-content: center; gap: 30px; }
.footer-inner a:not(.brand):hover { color: var(--accent); }

@media (max-width: 1040px) {
  .main-nav { gap: 22px; }
  .hero { min-height: 780px; }
  .hero-grid { gap: 30px; }
  .hero-media { min-height: 590px; }
  .feature-grid, .steps { gap: 24px; }
  .feature-screen { height: 440px; }
  .step-screen { height: 480px; }
  .themes-grid { grid-template-columns: 0.8fr 1.2fr; gap: 36px; }
  .themes-media { min-height: 580px; }
  .theme-screen { height: 580px; }
  .download-media { min-height: 590px; }
  .download-screen-dark { height: 420px; }
  .download-screen-light { height: 570px; }
  .footer-inner { grid-template-columns: auto 1fr auto; }
  .footer-inner > span { display: none; }
}

@media (max-width: 820px) {
  .container { width: min(calc(100% - 36px), var(--container)); }
  .section { padding: 92px 0; }
  .menu-button { display: block; }
  .main-nav {
    position: fixed; inset: 84px 18px auto; display: grid; gap: 2px; padding: 16px;
    border: 1px solid var(--border); border-radius: 24px; background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18); opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-12px); transition: opacity 180ms ease, transform 180ms ease;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .main-nav > a:not(.button) { min-height: 48px; padding: 13px 14px; border-radius: 12px; }
  .main-nav > a:not(.button)::after { display: none; }
  .main-nav > a:not(.button):hover { background: var(--surface-soft); }
  .main-nav .button { margin-top: 8px; }
  .menu-button[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(6px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-6px) rotate(-45deg); }

  .hero { min-height: auto; padding-top: 136px; }
  .hero-grid, .themes-grid, .download-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 650px; text-align: center; margin-inline: auto; }
  .hero-copy > p { margin-inline: auto; }
  .hero-media { min-height: 610px; max-width: 650px; width: 100%; margin: 10px auto 0; }
  .hero-screen-light { left: 10%; width: 52%; }
  .hero-screen-dark { right: 8%; width: 44%; }

  .feature-grid { grid-template-columns: 1fr; gap: 64px; }
  .feature-item { display: grid; grid-template-columns: 0.72fr 1.28fr; align-items: center; gap: 32px; }
  .feature-title { align-self: start; margin-top: 30px; }
  .feature-screen { height: 500px; }

  .steps { gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 18px 22px; margin-inline: -18px; }
  .step { min-width: min(76vw, 350px); scroll-snap-align: center; }
  .step:not(:last-child)::before, .step:not(:last-child)::after { display: none; }
  .step-screen { height: 500px; }

  .themes { padding-block: 92px; }
  .themes-copy { text-align: center; }
  .green-rule { margin-inline: auto; }
  .trust-list { display: inline-grid; text-align: left; }
  .themes-media { min-height: 660px; width: min(100%, 650px); margin: 18px auto 0; }
  .theme-screen { height: 650px; }

  .download-copy { max-width: 650px; padding: 0; text-align: center; margin-inline: auto; }
  .download-copy p { margin-inline: auto; }
  .download-media { min-height: 620px; width: min(100%, 650px); margin: 8px auto 0; }
  .download-screen-dark { height: 430px; }
  .download-screen-light { height: 590px; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; gap: 18px; padding: 36px 0; text-align: center; }
  .footer-inner nav { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .site-header { padding-top: 14px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
  .brand-mark img { width: 30px; height: 32px; }
  .hero { padding-top: 118px; padding-bottom: 56px; }
  .hero h1 { font-size: clamp(42px, 13vw, 58px); }
  .hero-copy > p { margin: 24px auto 30px; font-size: 19px; }
  .button { width: 100%; max-width: 330px; min-height: 56px; padding-inline: 20px; }
  .hero-media { min-height: 480px; margin-top: 22px; }
  .hero-screen-light { left: 2%; width: 62%; }
  .hero-screen-dark { top: 68px; right: 0; width: 53%; }
  .section { padding-block: 78px; }
  .section-heading { margin-bottom: 48px; }
  .section-heading h2, .themes h2, .download h2 { font-size: clamp(38px, 11vw, 52px); }
  .section-heading p, .download-copy p { margin-top: 20px; font-size: 18px; }
  .feature-grid { gap: 58px; }
  .feature-item { display: block; }
  .feature-title { min-height: 0; margin: 0 0 22px; }
  .feature-title h3 { font-size: 21px; }
  .feature-screen { height: 500px; }
  .step { min-width: min(84vw, 340px); }
  .step-screen { height: 480px; }
  .themes-copy > p { font-size: 18px; }
  .trust-list li { align-items: flex-start; font-size: 15px; }
  .themes-media { min-height: 505px; margin-top: 0; }
  .theme-screen { top: 20px; width: 59%; height: 475px; }
  .theme-screen-light { left: 0; z-index: 2; }
  .theme-screen-dark { right: -2%; top: 58px; }
  .download { padding-bottom: 0; }
  .download-media { min-height: 490px; }
  .download-screen-dark { left: 0; width: 49%; height: 360px; }
  .download-screen-light { right: 0; width: 62%; height: 470px; }
  .footer-inner nav { gap: 14px 22px; }
}

@media (max-width: 360px) {
  .container { width: calc(100% - 24px); }
  .brand { gap: 8px; }
  .brand-mark { width: 36px; height: 36px; }
  .menu-button { width: 44px; height: 44px; }
  .hero-media { min-height: 425px; }
  .feature-screen { height: 450px; }
  .themes-media { min-height: 445px; }
  .theme-screen { height: 420px; }
  .download-media { min-height: 440px; }
  .download-screen-dark { height: 320px; }
  .download-screen-light { height: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
