:root {
  --blue-900: #143984;
  --blue-800: #184eaa;
  --blue-700: #1e68d3;
  --blue-600: #3f8be8;
  --blue-500: #6fb5f5;
  --ink-900: #18335f;
  --ink-700: #37527e;
  --surface: #f0f4fb;
  --card: #ffffff;
  --line: #d6dfef;
  --orange: #f59229;
}

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

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  color: var(--ink-900);
  background-color: #edf3fd;
  background-image:
    radial-gradient(940px 420px at -8% -16%, rgba(136, 174, 236, 0.34), transparent 60%),
    radial-gradient(920px 460px at 110% -10%, rgba(97, 155, 233, 0.26), transparent 62%),
    radial-gradient(980px 430px at 50% 116%, rgba(176, 203, 241, 0.3), transparent 64%),
    repeating-linear-gradient(-36deg, rgba(255, 255, 255, 0.3) 0 1px, transparent 1px 24px),
    linear-gradient(180deg, #f8faff 0%, #edf3fc 52%, #e7eef9 100%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

body::before {
  width: min(50vw, 760px);
  height: min(50vw, 760px);
  right: -16vw;
  top: -20vh;
  background:
    radial-gradient(circle at 36% 34%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 58%),
    radial-gradient(circle at 62% 64%, rgba(110, 170, 247, 0.28), rgba(110, 170, 247, 0) 66%);
  filter: blur(10px);
  animation: homeAmbientFloat 22s ease-in-out infinite alternate;
}

body::after {
  width: min(42vw, 640px);
  height: min(42vw, 640px);
  left: -12vw;
  bottom: -18vh;
  background:
    radial-gradient(circle at 40% 34%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 56%),
    radial-gradient(circle at 60% 66%, rgba(120, 180, 252, 0.24), rgba(120, 180, 252, 0) 68%);
  filter: blur(12px);
  animation: homeAmbientFloatAlt 26s ease-in-out infinite alternate;
}

.brand,
.hero-copy h1,
.section-title,
.feature-item h3,
.step-card h3,
.footer-links a {
  font-family: "Montserrat", "Nunito Sans", Arial, sans-serif;
}

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

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 420px at 74% 18%, rgba(164, 211, 255, 0.44), transparent 62%),
    radial-gradient(900px 460px at 24% 84%, rgba(16, 57, 138, 0.65), transparent 68%),
    linear-gradient(120deg, var(--blue-900), var(--blue-700) 52%, var(--blue-500));
  color: #fff;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.hero::before {
  width: 120%;
  height: 320px;
  left: -16%;
  bottom: 56px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(120, 176, 244, 0.26), transparent 70%);
}

.hero::after {
  width: 116%;
  height: 260px;
  left: -12%;
  bottom: 12px;
  background: radial-gradient(110% 100% at 50% 0%, rgba(38, 108, 206, 0.3), transparent 68%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 440px at 58% 62%, rgba(11, 45, 119, 0.44), transparent 70%),
    radial-gradient(880px 360px at 40% 90%, rgba(11, 68, 166, 0.42), transparent 74%);
  pointer-events: none;
}

.nav-wrap {
  position: relative;
  z-index: 5;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.brand {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.1px;
  text-shadow: 0 1px 0 rgba(5, 16, 46, 0.2);
}

.brand-mark {
  font-style: italic;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 1rem;
  font-weight: 700;
}

.main-nav > a:not(.btn) {
  opacity: 0.96;
  position: relative;
  padding-bottom: 2px;
}

.main-nav > a:not(.btn).is-active {
  opacity: 1;
  color: #ffffff;
}

.main-nav > a:not(.btn).is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 700;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn-login,
.btn-signup {
  min-width: 88px;
  height: 38px;
  font-size: 1rem;
  border-radius: 8px;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.btn-login {
  background: linear-gradient(180deg, #244fa8, #1f4494);
}

.btn-signup {
  background: #eef3fb;
  color: #325189;
}

.hero-content {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  padding: 72px 0 108px;
}

.hero-copy h1 {
  margin: 8px 0 20px;
  font-size: clamp(2.1rem, 4.6vw, 3.55rem);
  line-height: 1.1;
  letter-spacing: 0.2px;
}

.hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.06rem, 1.7vw, 1.62rem);
  line-height: 1.46;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.btn-primary,
.btn-secondary {
  min-width: 160px;
  height: 48px;
  font-size: 1.1rem;
  border-radius: 8px;
}

.btn-primary {
  background: linear-gradient(180deg, #f9a543, #ea8120);
  color: #fff;
}

.btn-secondary {
  background: #f1f4fa;
  color: #36538a;
}

.hero-visual {
  position: relative;
  min-height: 340px;
}

.sparkle {
  position: absolute;
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  background:
    linear-gradient(45deg, transparent 40%, #fff 40%, #fff 60%, transparent 60%),
    linear-gradient(-45deg, transparent 40%, #fff 40%, #fff 60%, transparent 60%);
  opacity: 0.88;
}

.sparkle-a {
  left: 14px;
  top: 156px;
}

.sparkle-b {
  right: 20px;
  top: 96px;
  transform: rotate(25deg) scale(0.86);
}

.laptop {
  position: absolute;
  right: 34px;
  bottom: 2px;
  width: 454px;
}

.screen {
  background: #102f66;
  padding: 12px 12px 10px;
  border-radius: 16px 16px 8px 8px;
  box-shadow: 0 20px 36px rgba(9, 35, 85, 0.42);
}

.screen-topbar {
  height: 30px;
  background: #2260be;
  color: #e8f1ff;
  border-radius: 6px 6px 0 0;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
}

.dots {
  display: inline-flex;
  gap: 6px;
}

.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(220, 233, 255, 0.62);
}

.screen-grid {
  background: #eef2f8;
  border-radius: 0 0 6px 6px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 156px;
  gap: 10px;
}

.chart-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #dae3f1;
  padding: 14px 12px;
  min-height: 160px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 100px;
}

.bar-chart span {
  width: 18px;
  height: var(--h);
  background: linear-gradient(180deg, #7bc4ff, #1f72d8);
  border-radius: 4px 4px 0 0;
}

.pie {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: conic-gradient(#3078da 0 46%, #ffc950 46% 65%, #2fa67a 65% 82%, #5ea7f5 82% 100%);
  border: 2px solid #fff;
}

.invoice-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #dae3f1;
  padding: 10px;
}

.invoice-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  color: #385b90;
}

.invoice-card p {
  margin: 0 0 8px;
  height: 8px;
  border-radius: 100px;
  background: #dce5f3;
}

.small-bars {
  margin-top: 12px;
  height: 48px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.small-bars span {
  width: 10px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #7cc5ff, #2d78db);
}

.small-bars span:nth-child(1) {
  height: 16px;
}

.small-bars span:nth-child(2) {
  height: 24px;
}

.small-bars span:nth-child(3) {
  height: 34px;
}

.small-bars span:nth-child(4) {
  height: 20px;
}

.screen-footer {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.screen-footer span {
  height: 28px;
  border-radius: 6px;
  background: #e9eff9;
  border: 1px solid #d5e0f0;
}

.laptop-base {
  width: 500px;
  height: 16px;
  margin: -2px 0 0 -23px;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #d4dcec, #bcc8dc);
  box-shadow: 0 8px 18px rgba(16, 44, 104, 0.36);
}

.phone {
  position: absolute;
  right: 0;
  bottom: -2px;
  width: 100px;
  border-radius: 18px;
  background: #163f88;
  padding: 8px 6px;
  box-shadow: 0 12px 24px rgba(7, 30, 74, 0.45);
}

.phone-top {
  height: 24px;
  border-radius: 10px 10px 0 0;
  background: #2e6fc9;
  color: #d8e8ff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.phone-body {
  background: #f5f8ff;
  border-radius: 0 0 14px 14px;
  padding: 8px 8px 10px;
}

.phone-body p {
  margin: 0 0 6px;
  height: 6px;
  border-radius: 99px;
  background: #d5e2f7;
}

.phone-bars {
  margin-top: 10px;
  height: 44px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
}

.phone-bars span {
  width: 10px;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #7ec5ff, #2f76d8);
}

.hero-wave {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -84px;
  height: 170px;
  border-radius: 45% 45% 0 0;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(218, 236, 255, 0.44), transparent 66%),
    linear-gradient(180deg, rgba(200, 224, 252, 0.88), rgba(224, 236, 251, 0.95));
}

.section {
  position: relative;
  padding: 56px 0;
}

.section-title {
  margin: 0 0 34px;
  text-align: center;
  color: #294777;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.2;
  position: relative;
}

.section-title::before,
.section-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28%;
  height: 2px;
  background: #d6dfef;
}

.section-title::before {
  left: 0;
}

.section-title::after {
  right: 0;
}

.section-features {
  padding-top: 96px;
  background:
    radial-gradient(1200px 260px at 50% -24%, rgba(255, 255, 255, 0.82), transparent 80%),
    linear-gradient(180deg, rgba(243, 247, 254, 0.76) 0%, rgba(236, 243, 252, 0.9) 100%);
}

.feature-panel {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(221, 231, 246, 0.94);
  border-radius: 12px;
  box-shadow:
    0 18px 34px rgba(22, 49, 100, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.feature-item {
  padding: 24px 22px 22px;
  text-align: center;
}

.feature-item + .feature-item {
  border-left: 1px solid #e4ebf5;
}

.feature-icon {
  width: 76px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, #2b78d8, #1d5aba);
  position: relative;
  overflow: visible;
}

.feature-icon::before {
  content: "";
  position: absolute;
  inset: 10px 12px;
  border-radius: 6px;
  background: #eaf2ff;
}

.feature-icon::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f9a844, #eb8627);
  box-shadow: 0 5px 10px rgba(18, 48, 105, 0.22);
}

.icon-mail::before {
  background:
    linear-gradient(32deg, transparent 45%, #9db5df 46% 54%, transparent 55%),
    linear-gradient(-32deg, transparent 45%, #9db5df 46% 54%, transparent 55%),
    linear-gradient(180deg, #f2f7ff, #dce9fc);
}

.icon-payment::before {
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 42%, #f2f8ff 0 28%, transparent 29%),
    linear-gradient(180deg, #f1f7ff, #dce9fc);
}

.icon-report::before {
  background:
    linear-gradient(180deg, #2d77d8, #2d77d8) 14px 20px/6px 14px no-repeat,
    linear-gradient(180deg, #f9a844, #f9a844) 24px 14px/6px 20px no-repeat,
    linear-gradient(180deg, #2fa671, #2fa671) 34px 10px/6px 24px no-repeat,
    linear-gradient(180deg, #eaf2ff, #dce9fc);
}

.icon-payment::after {
  background:
    radial-gradient(circle at 52% 48%, #ffffff 0 20%, transparent 22%),
    linear-gradient(180deg, #81c857, #4ea23f);
}

.icon-mail::after,
.icon-report::after {
  background:
    linear-gradient(45deg, transparent 43%, #ffffff 44% 55%, transparent 56%),
    linear-gradient(-45deg, transparent 58%, #ffffff 59% 69%, transparent 70%),
    linear-gradient(180deg, #f9a844, #eb8627);
}

.feature-item h3 {
  margin: 0 0 8px;
  color: #213f71;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.feature-item p {
  margin: 0;
  color: #59729a;
  font-size: clamp(0.96rem, 1.6vw, 1.3rem);
}

.section-how {
  background:
    radial-gradient(1200px 150px at 50% 0%, rgba(255, 255, 255, 0.72), transparent 75%),
    linear-gradient(180deg, rgba(239, 245, 253, 0.82) 0%, rgba(231, 240, 252, 0.94) 100%);
  padding-top: 34px;
  padding-bottom: 48px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(216, 227, 244, 0.95);
  border-radius: 12px;
  box-shadow:
    0 16px 30px rgba(28, 54, 102, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  padding: 24px 24px 26px;
}

.step-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(180deg, #3b86e3, #1f67c8);
  float: left;
  margin-right: 12px;
}

.step-badge-orange {
  background: linear-gradient(180deg, #f9a845, #eb8527);
}

.step-card h3 {
  margin: 3px 0 12px;
  color: #1e3e70;
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
}

.step-card p {
  clear: both;
  margin: 14px 0 0;
  color: #567198;
  font-size: clamp(0.98rem, 1.6vw, 1.24rem);
}

.section-secure {
  background:
    radial-gradient(1000px 320px at 50% 0%, rgba(255, 255, 255, 0.88), transparent 74%),
    linear-gradient(180deg, rgba(232, 240, 252, 0.84) 0%, rgba(221, 231, 245, 0.96) 100%);
  padding-top: 48px;
  padding-bottom: 86px;
}

.secure-note {
  margin: 0;
  text-align: center;
  color: #496690;
  font-size: clamp(1rem, 1.7vw, 1.42rem);
}

.secure-icons {
  margin: 26px auto 0;
  width: 320px;
  height: 122px;
  border-radius: 999px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.secure-icons::before {
  content: "";
  position: absolute;
  inset: 14px 10px;
  border-radius: 999px;
  background: radial-gradient(70% 85% at 50% 38%, #c8d8ef, #dbe5f3 78%, #e0e9f6);
}

.secure-glyph {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #dcecff;
  background: linear-gradient(180deg, #3c88e5, #1f62be);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 10px 18px rgba(28, 65, 132, 0.26);
}

.secure-shield {
  border-radius: 22px;
}

.secure-support {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(180deg, #367fdc, #1b59b3);
}

.glyph-svg {
  width: 52px;
  height: 52px;
  stroke: currentColor;
  stroke-width: 3.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.secure-support .glyph-svg {
  width: 54px;
  height: 54px;
}

.secure-support rect,
.secure-support circle {
  fill: currentColor;
  stroke: none;
}

.secure-spark {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  transform: rotate(45deg);
  z-index: 1;
  background: linear-gradient(160deg, #9bbbea, #c0d5f3);
  box-shadow:
    0 0 0 5px rgba(154, 184, 228, 0.18),
    0 6px 10px rgba(56, 92, 153, 0.2);
}

.site-footer {
  background:
    radial-gradient(1000px 360px at 50% 0%, rgba(132, 181, 248, 0.26), transparent 70%),
    linear-gradient(120deg, #173f84, #102e67);
  color: #e6f0ff;
  padding: 24px 0 28px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(180, 206, 255, 0.3);
}

.footer-links a {
  font-size: clamp(1rem, 2vw, 1.72rem);
  font-weight: 700;
}

.footer-bottom {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: clamp(0.88rem, 1.4vw, 1.2rem);
}

@keyframes homeAmbientFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-24px, 18px, 0) scale(1.05);
  }
}

@keyframes homeAmbientFloatAlt {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(22px, -16px, 0) scale(1.04);
  }
}

@media (max-width: 1300px) {
  .brand {
    font-size: clamp(1.7rem, 2.4vw, 2.05rem);
  }

  .main-nav {
    gap: clamp(12px, 1.8vw, 22px);
    font-size: clamp(0.92rem, 1.2vw, 1rem);
  }

  .btn-login,
  .btn-signup {
    min-width: 84px;
    height: 36px;
    font-size: 0.94rem;
  }

  .btn-primary,
  .btn-secondary {
    min-width: 152px;
    height: 46px;
    font-size: 1.02rem;
  }

  .laptop {
    width: min(41vw, 454px);
  }

  .laptop-base {
    width: calc(100% + 46px);
    margin-left: -23px;
  }
}

@media (max-width: 980px) {
  .nav-wrap {
    flex-direction: column;
    gap: 8px;
    height: auto;
    padding: 14px 0;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 44px;
    gap: 24px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy p br {
    display: none;
  }

  .cta-row {
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 22px;
  }

  .hero-visual {
    min-height: 330px;
  }

  .laptop {
    right: 50%;
    transform: translateX(45%);
    width: min(76vw, 500px);
  }

  .phone {
    right: 8%;
  }

  .section-title::before,
  .section-title::after {
    width: 20%;
  }

  .feature-panel {
    grid-template-columns: 1fr;
  }

  .feature-item + .feature-item {
    border-left: none;
    border-top: 1px solid #e4ebf5;
  }

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

  .footer-links {
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

@media (max-width: 680px) {
  .nav-wrap {
    align-items: flex-start;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero-copy h1 {
    font-size: clamp(1.8rem, 9vw, 2.35rem);
  }

  .hero-copy p {
    font-size: clamp(0.98rem, 4.9vw, 1.15rem);
  }

  .btn-primary,
  .btn-secondary {
    width: min(78vw, 220px);
    min-width: unset;
  }

  .phone {
    display: none;
  }

  .hero-visual {
    min-height: 250px;
  }

  .laptop {
    transform: translateX(50%);
    right: 50%;
    width: 95vw;
  }

  .section-title::before,
  .section-title::after {
    display: none;
  }

  .secure-icons {
    width: 88vw;
    max-width: 300px;
  }

  .feature-item,
  .step-card {
    padding-left: 18px;
    padding-right: 18px;
  }
}
