:root {
  --navy-950: #07172d;
  --navy-900: #0b2140;
  --navy-800: #12345f;
  --navy-700: #1f4b7d;
  --lime: #d7f53f;
  --ink: #10231f;
  --muted: #61706c;
  --surface: #ffffff;
  --page: #f4f7f6;
  --line: rgba(22, 53, 48, 0.12);
  --scroll-progress: 0;
  --hero-copy-opacity: 1;
  --hero-copy-y: 0px;
  --hero-blue-opacity: 1;
  --hero-overlay-opacity: 0;
  --atmosphere-opacity: 1;
  --stage-scale: 0.72;
  --stage-y: 26vh;
  --shadow-opacity: 0.38;
  --scroll-cue-opacity: 1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--page); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.hero-scroll {
  position: relative;
  height: 190vh;
  min-height: 1120px;
  background: var(--page);
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(
      180deg,
      rgba(240, 247, 251, var(--hero-blue-opacity)) 0%,
      rgba(244, 247, 246, 1) 100%
    );
}

.hero-sticky::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: #f4f7f6;
  opacity: var(--hero-overlay-opacity);
}

.hero-atmosphere {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 24%, rgba(174, 214, 235, 0.54), transparent 32%),
    radial-gradient(circle at 82% 16%, rgba(216, 245, 63, 0.22), transparent 28%),
    radial-gradient(circle at 72% 68%, rgba(69, 119, 167, 0.20), transparent 34%),
    linear-gradient(145deg, #eff7fb 0%, #dce9f1 48%, #eaf0e9 100%);
  opacity: var(--atmosphere-opacity);
}

.atmosphere-orb {
  position: absolute;
  width: 34vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.42;
}
.atmosphere-orb--one {
  top: -18%;
  left: -10%;
  background: rgba(255, 255, 255, 0.82);
}
.atmosphere-orb--two {
  right: -14%;
  bottom: -26%;
  background: rgba(18, 52, 95, 0.20);
}
.atmosphere-grid {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(13, 42, 74, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 42, 74, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 74%);
}

.marketing-nav {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(1380px, calc(100% - 64px));
  height: 88px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.marketing-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy-950);
  font: 800 20px "Manrope", sans-serif;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.marketing-brand-mark,
.product-brand-mark {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #182f6f, #050f32);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 9px 24px rgba(5, 20, 54, 0.22);
  font: italic 800 20px "Manrope", sans-serif;
}
.marketing-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 31px;
}
.desktop-nav a {
  position: relative;
  color: rgba(7, 23, 45, 0.72);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}
.desktop-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 999px;
  background: var(--navy-800);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}
.desktop-nav > a:not(.nav-cta):hover { color: var(--navy-950); transform: translateY(-1px); }
.desktop-nav > a:not(.nav-cta):hover::after { transform: scaleX(1); }
.desktop-nav .nav-login { margin-left: 6px; color: var(--navy-950); }
.desktop-nav .nav-cta {
  min-height: 45px;
  padding: 0 19px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: var(--navy-900);
  box-shadow: 0 10px 26px rgba(7, 23, 45, 0.18);
}
.mobile-nav { display: none; }

.hero-copy {
  position: absolute;
  z-index: 4;
  top: clamp(116px, 14vh, 150px);
  left: 50%;
  width: min(850px, calc(100% - 40px));
  transform: translate3d(-50%, var(--hero-copy-y), 0);
  opacity: var(--hero-copy-opacity);
  text-align: center;
  will-change: transform, opacity;
}
.hero-kicker {
  margin: 0 0 19px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--navy-700);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.hero-kicker span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(215, 245, 63, 0.20);
}
.hero-copy h1 {
  margin: 0;
  color: var(--navy-950);
  font: 800 clamp(52px, 6.2vw, 94px)/0.98 "Manrope", sans-serif;
  letter-spacing: -0.065em;
}
.hero-copy h1 em {
  color: var(--navy-700);
  font-style: normal;
}
.hero-description {
  max-width: 650px;
  margin: 25px auto 0;
  color: rgba(29, 53, 67, 0.76);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.button {
  position: relative;
  isolation: isolate;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 15px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(7, 23, 45, 0.10);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.button--primary {
  color: #fff;
  background: var(--navy-900);
}
.button--primary span { color: var(--lime); font-size: 18px; }
.button--secondary {
  color: var(--navy-900);
  border-color: rgba(11, 33, 64, 0.14);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(12px);
}
.button:hover,
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 38px rgba(7, 23, 45, 0.18);
}
.button:active,
.nav-cta:active { transform: translateY(0) scale(0.985); }

.interactive-glow::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 105px at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(215,245,63,0.30), transparent 72%);
  opacity: 0;
  transition: opacity 220ms ease;
}
.interactive-glow:hover::before { opacity: 1; }

.product-stage {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 2vh;
  width: min(1080px, 86vw);
  transform:
    translate3d(-50%, var(--stage-y), 0)
    scale(var(--stage-scale));
  transform-origin: center center;
  will-change: transform;
  perspective: 1400px;
}
.product-shadow {
  position: absolute;
  inset: 12% 7% -5%;
  border-radius: 44px;
  background: rgba(12, 31, 57, 0.26);
  filter: blur(42px);
  opacity: var(--shadow-opacity);
}
.product-window {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.68;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 25px;
  background: #f5f7f6;
  box-shadow:
    0 36px 95px rgba(9, 26, 52, 0.24),
    0 4px 12px rgba(9, 26, 52, 0.08),
    inset 0 0 0 1px rgba(14, 44, 72, 0.06);
}
.product-topbar {
  height: 61px;
  padding: 0 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e1e8e5;
  background: rgba(255, 255, 255, 0.92);
}
.product-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--navy-900);
  font: 800 14px "Manrope", sans-serif;
}
.product-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 15px;
}
.product-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--navy-800);
  font-size: 9px;
  font-weight: 800;
}
.product-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #45bd8b;
  box-shadow: 0 0 0 4px rgba(69, 189, 139, 0.12);
}
.product-shell {
  height: calc(100% - 61px);
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
}
.product-sidebar {
  padding: 26px 15px 17px;
  display: flex;
  flex-direction: column;
  color: #dae5f3;
  background: linear-gradient(180deg, #213650, #12253d);
}
.product-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.product-sidebar nav > span {
  min-height: 38px;
  padding: 0 11px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b7c5d7;
  font-size: 11px;
  font-weight: 700;
}
.product-sidebar nav > span.is-active {
  color: #fff;
  background: rgba(255,255,255,0.11);
  box-shadow: inset 3px 0 var(--lime);
}
.ui-icon {
  position: relative;
  width: 15px;
  height: 15px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  opacity: 0.9;
}
.ui-icon--home { transform: rotate(45deg); border-radius: 2px; }
.ui-icon--income { border-radius: 50%; }
.ui-icon--settings { border-radius: 50%; box-shadow: inset 0 0 0 3px #1b3049; }
.product-account {
  margin-top: auto;
  padding: 15px 7px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  gap: 9px;
}
.account-avatar {
  width: 29px;
  height: 29px;
  border: 2px solid var(--lime);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
}
.product-account > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.product-account strong { color: #fff; font-size: 9px; }
.product-account small { color: #94a8bf; font-size: 8px; }

.product-dashboard { padding: 28px 34px 32px; overflow: hidden; }
.dashboard-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.dashboard-heading h2 {
  margin: 0;
  color: #14231f;
  font: 800 26px "Manrope", sans-serif;
  letter-spacing: -0.04em;
}
.dashboard-heading p {
  margin: 4px 0 0;
  color: #7b8783;
  font-size: 10px;
}
.dashboard-period {
  margin-top: 5px;
  color: #52605c;
  font-size: 9px;
  font-weight: 700;
}
.dashboard-filters {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.period-control,
.source-control {
  min-height: 34px;
  border: 1px solid #e1e7e5;
  border-radius: 9px;
  background: #fff;
  display: flex;
  align-items: center;
}
.period-control { padding: 3px; gap: 2px; }
.period-control span,
.period-control b {
  padding: 6px 9px;
  border-radius: 7px;
  color: #85908c;
  font-size: 8px;
}
.period-control b { color: #fff; background: var(--navy-800); }
.source-control { min-width: 186px; padding: 0 11px; gap: 11px; }
.source-control small { color: #7c8884; font-size: 8px; }
.source-control b { margin-left: auto; color: var(--navy-800); font-size: 9px; }
.source-control > span { color: var(--navy-800); font-size: 9px; }
.dashboard-kpis {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.22fr 1fr 1fr;
  gap: 11px;
}
.mock-kpi {
  position: relative;
  min-height: 102px;
  padding: 15px;
  overflow: hidden;
  border: 1px solid #e0e7e4;
  border-radius: 13px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.mock-kpi > span { color: #61706b; font-size: 10px; font-weight: 700; }
.mock-kpi > strong {
  margin-top: 11px;
  font: 800 19px "Manrope", sans-serif;
  letter-spacing: -0.04em;
}
.mock-kpi > small { margin-top: auto; color: #8b9692; font-size: 8px; }
.mock-kpi > i {
  position: absolute;
  right: -27px;
  bottom: -39px;
  width: 89px;
  height: 89px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.07;
}
.mock-kpi--profit {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #294d76, #19385d);
}
.mock-kpi--profit > span,
.mock-kpi--profit > small { color: #d6e0ee; }
.mock-kpi--income { color: #337d9c; }
.mock-kpi--expense { color: #c84d4d; }
.dashboard-detail-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.detail-card {
  min-height: 162px;
  padding: 15px 17px;
  border: 1px solid #e1e8e5;
  border-radius: 13px;
  background: #fff;
}
.detail-card > small {
  color: #18805f;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.detail-card h3 {
  margin: 5px 0 11px;
  font: 800 13px "Manrope", sans-serif;
}
.category-row {
  margin-top: 7px;
  display: flex;
  justify-content: space-between;
  color: #52605c;
  font-size: 8px;
}
.category-row > span { display: flex; align-items: center; gap: 5px; }
.category-row b { color: #263833; }
.dot { width: 5px; height: 5px; border-radius: 50%; }
.dot--blue { background: #397ba4; }
.dot--lime { background: #b4d833; }
.dot--gold { background: #db9c32; }
.category-bar {
  height: 3px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1ef;
}
.category-bar i { display: block; height: 100%; border-radius: inherit; background: #587a9d; }
.transaction-date {
  margin: 10px 0 4px;
  color: #8a9591;
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}
.transaction-row {
  min-height: 21px;
  display: grid;
  grid-template-columns: 55px 1fr;
  align-items: center;
  font-size: 8px;
}
.transaction-row b { font-family: "Manrope", sans-serif; }
.transaction-row .positive { color: #2a819f; }
.transaction-row .negative { color: #c84d4d; }
.transaction-row span { color: #3d4c47; }
.mock-fab {
  position: absolute;
  right: 22px;
  bottom: 21px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #18312b;
  background: var(--lime);
  display: grid;
  place-items: center;
  font-size: 27px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(16, 43, 36, 0.20);
}

.scroll-cue {
  position: absolute;
  z-index: 8;
  right: 34px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(7, 23, 45, 0.56);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: var(--scroll-cue-opacity);
}
.scroll-cue i {
  width: 26px;
  height: 38px;
  border: 1px solid rgba(7, 23, 45, 0.26);
  border-radius: 999px;
}
.scroll-cue i::after {
  content: "";
  display: block;
  width: 3px;
  height: 8px;
  margin: 7px auto;
  border-radius: 999px;
  background: var(--navy-800);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(12px); opacity: 1; }
}

.transition-tail {
  min-height: 54vh;
  padding: 110px 24px 150px;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--page);
}
.transition-tail p {
  margin: 0 0 9px;
  color: var(--navy-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.transition-tail h2 {
  margin: 0;
  color: var(--navy-950);
  font: 800 clamp(34px, 5vw, 66px) "Manrope", sans-serif;
  letter-spacing: -0.055em;
}

@media (max-width: 900px) {
  .hero-scroll { height: auto; min-height: 0; }
  .hero-sticky {
    position: relative;
    min-height: 920px;
    height: auto;
    overflow: hidden;
  }
  .marketing-nav {
    width: calc(100% - 34px);
    height: 72px;
  }
  .desktop-nav { display: none; }
  .mobile-nav { display: flex; align-items: center; gap: 12px; }
  .mobile-login {
    color: var(--navy-900);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
  }
  .mobile-menu-button {
    position: relative;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(11, 33, 64, 0.12);
    border-radius: 13px;
    background: rgba(255,255,255,0.66);
  }
  .mobile-menu-button span {
    position: absolute;
    left: 12px;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--navy-900);
    transition: transform 180ms ease, top 180ms ease;
  }
  .mobile-menu-button span:first-child { top: 16px; }
  .mobile-menu-button span:last-child { top: 23px; }
  .mobile-menu-button[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
  .mobile-menu-button[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
  .mobile-menu {
    position: absolute;
    top: 60px;
    right: 0;
    width: min(250px, calc(100vw - 34px));
    padding: 10px;
    border: 1px solid rgba(11, 33, 64, 0.11);
    border-radius: 16px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 22px 52px rgba(7,23,45,0.16);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }
  .mobile-menu.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .mobile-menu a {
    min-height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    color: var(--navy-900);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
  }
  .mobile-menu a:hover { background: #f1f5f4; }
  .mobile-menu .mobile-menu-cta { color: #fff; background: var(--navy-900); }

  .hero-copy {
    top: 112px;
    width: calc(100% - 34px);
    transform: translateX(-50%);
    opacity: 1;
  }
  .hero-kicker { font-size: 10px; margin-bottom: 16px; }
  .hero-copy h1 { font-size: clamp(43px, 12vw, 68px); }
  .hero-description { max-width: 560px; font-size: 17px; margin-top: 20px; }
  .hero-actions { margin-top: 24px; }
  .product-stage {
    bottom: 40px;
    width: min(760px, 94vw);
    transform: translateX(-50%);
  }
  .product-window { border-radius: 19px; }
  .product-shell { grid-template-columns: 132px minmax(0, 1fr); }
  .product-sidebar { padding: 20px 10px 13px; }
  .product-dashboard { padding: 21px 22px 24px; }
  .dashboard-detail-grid { display: none; }
  .scroll-cue { display: none; }
  .transition-tail { min-height: 45vh; padding-top: 80px; }
}

@media (max-width: 600px) {
  .hero-sticky {
    width: 100vw;
    min-height: 850px;
  }
  .marketing-brand { font-size: 18px; }
  .marketing-brand-mark { width: 35px; height: 35px; font-size: 18px; }
  .hero-copy { top: 104px; }
  .hero-kicker { max-width: 310px; line-height: 1.4; }
  .hero-copy h1 { font-size: clamp(40px, 10.8vw, 48px); }
  .hero-description { max-width: 365px; font-size: 16px; line-height: 1.5; }
  .hero-actions { gap: 9px; }
  .button { min-height: 50px; padding: 0 17px; border-radius: 14px; font-size: 13px; }
  .product-stage {
    top: 440px;
    bottom: auto;
    width: 112vw;
  }
  .product-window { aspect-ratio: 1.56; }
  .product-topbar { height: 47px; padding: 0 15px; }
  .product-shell { height: calc(100% - 47px); grid-template-columns: 95px minmax(0,1fr); }
  .product-sidebar { padding: 14px 7px 10px; }
  .product-sidebar nav > span { min-height: 30px; padding: 0 7px; gap: 6px; font-size: 7px; }
  .ui-icon { width: 10px; height: 10px; }
  .product-account { padding-top: 9px; gap: 5px; }
  .account-avatar { width: 20px; height: 20px; font-size: 8px; }
  .product-account strong { font-size: 6px; }
  .product-account small { font-size: 5px; }
  .product-dashboard { padding: 16px 17px 18px; }
  .dashboard-heading h2 { font-size: 18px; }
  .dashboard-heading p { font-size: 7px; }
  .dashboard-period { font-size: 6px; }
  .dashboard-filters { margin-top: 11px; gap: 7px; }
  .period-control, .source-control { min-height: 25px; }
  .period-control span, .period-control b { padding: 4px 6px; font-size: 5px; }
  .source-control { min-width: 108px; padding: 0 7px; gap: 5px; }
  .source-control small, .source-control b, .source-control > span { font-size: 5px; }
  .dashboard-kpis { margin-top: 9px; gap: 6px; }
  .mock-kpi { min-height: 70px; padding: 9px; border-radius: 9px; }
  .mock-kpi > span { font-size: 6px; }
  .mock-kpi > strong { margin-top: 7px; font-size: 11px; }
  .mock-kpi > small { font-size: 5px; }
  .mock-fab { right: 13px; bottom: 12px; width: 29px; height: 29px; border-radius: 9px; font-size: 19px; }
  .transition-tail { min-height: 40vh; padding: 65px 20px 110px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero-copy { transform: translateX(-50%); opacity: 1; }
  .product-stage { transform: translateX(-50%) scale(1); }
}
