:root {
  color-scheme: dark;
  --bg: #070907;
  --bg-elevated: #10140f;
  --bg-panel: #141912;
  --line: #293124;
  --line-strong: #3a4734;
  --text: #f0f5ea;
  --muted: #aab5a2;
  --soft: #d7e2cf;
  --accent: #c9ef67;
  --accent-strong: #e3ff8d;
  --teal: #62d8bd;
  --plum: #a98cff;
  --amber: #e5b94f;
  --danger: #ef7b61;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --content: 1180px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 7, 0.16), var(--bg) 72%),
    linear-gradient(115deg, transparent 0 24%, rgba(98, 216, 189, 0.045) 24% 25%, transparent 25%),
    linear-gradient(65deg, transparent 0 68%, rgba(201, 239, 103, 0.05) 68% 69%, transparent 69%),
    linear-gradient(rgba(201, 239, 103, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 239, 103, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, auto, 48px 48px, 48px 48px, auto;
  color: var(--text);
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  width: min(100% - 40px, var(--content));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  color: var(--text);
  font-size: 18px;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(201, 239, 103, 0.62);
  border-radius: 8px;
  background: #151b12;
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.top-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 1px solid rgba(215, 226, 207, 0.08);
  border-radius: 999px;
  background: rgba(16, 20, 15, 0.72);
}

.top-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.top-nav a:hover {
  background: rgba(215, 226, 207, 0.08);
  color: var(--text);
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 720;
  line-height: 1;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  padding: 0 20px;
  background: var(--accent);
  color: #12170f;
  box-shadow: 0 14px 36px rgba(201, 239, 103, 0.18);
}

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

.button-secondary,
.button-ghost {
  border-color: rgba(215, 226, 207, 0.13);
  background: rgba(16, 20, 15, 0.72);
  color: var(--text);
}

.button-secondary {
  padding: 0 20px;
}

.button-ghost {
  justify-self: end;
  padding: 0 16px;
}

.button-secondary:hover,
.button-ghost:hover {
  border-color: rgba(201, 239, 103, 0.42);
  background: rgba(201, 239, 103, 0.08);
}

.hero {
  position: relative;
  display: grid;
  min-height: 82vh;
  align-items: center;
  overflow: hidden;
  padding: 76px max(20px, calc((100vw - var(--content)) / 2)) 104px;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(201, 239, 103, 0.32), transparent);
}

.hero-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.orbit-line {
  position: absolute;
  border: 1px solid rgba(215, 226, 207, 0.08);
  border-radius: 50%;
  transform: rotate(-10deg);
}

.orbit-line-one {
  top: 4%;
  right: -10%;
  width: 58vw;
  min-width: 620px;
  aspect-ratio: 1 / 0.62;
}

.orbit-line-two {
  right: -3%;
  bottom: 7%;
  width: 42vw;
  min-width: 420px;
  aspect-ratio: 1 / 0.76;
}

.phone-visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(215, 226, 207, 0.12);
  border-radius: 32px;
  background: #10140f;
  box-shadow: var(--shadow);
}

.fade-phone {
  -webkit-mask-image: linear-gradient(180deg, #000 0 68%, rgba(0, 0, 0, 0.78) 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0 68%, rgba(0, 0, 0, 0.78) 82%, transparent 100%);
}

.phone-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-phone {
  position: absolute;
  top: 9%;
  right: max(42px, calc((100vw - var(--content)) / 2 + 34px));
  z-index: 1;
  width: min(30vw, 350px);
  height: min(62vh, 560px);
  min-width: 268px;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(680px, 100%);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(64px, 11vw, 132px);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 0.88;
}

.hero-lead {
  width: min(590px, 100%);
  margin: 28px 0 0;
  color: var(--soft);
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.42;
}

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

.section {
  width: min(100% - 40px, var(--content));
  margin: 0 auto;
  padding: 88px 0;
}

.section-heading {
  width: min(780px, 100%);
  margin-bottom: 34px;
}

.section-heading h2,
.closing-section h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 780;
  line-height: 1.04;
}

.section-heading p + h2 {
  margin-top: 0;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.signal-grid article,
.feature-card,
.stacked-list article,
.planning-copy article,
.login-form {
  border: 1px solid rgba(215, 226, 207, 0.1);
  border-radius: var(--radius);
  background: rgba(16, 20, 15, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.signal-grid article {
  padding: 24px;
}

.signal-icon {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(215, 226, 207, 0.1);
  border-radius: 8px;
  background: #151b12;
}

.signal-icon::before,
.signal-icon::after {
  position: absolute;
  content: "";
}

.icon-flow::before {
  width: 20px;
  height: 20px;
  border-right: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  border-radius: 4px;
  transform: rotate(45deg);
}

.icon-credit::before,
.icon-card::before {
  width: 24px;
  height: 16px;
  border: 2px solid var(--teal);
  border-radius: 4px;
}

.icon-credit::after,
.icon-card::after {
  width: 20px;
  height: 2px;
  background: var(--teal);
  transform: translateY(-3px);
}

.icon-growth::before,
.icon-portfolio::before {
  width: 22px;
  height: 16px;
  border-left: 3px solid var(--plum);
  border-bottom: 3px solid var(--plum);
}

.icon-growth::after,
.icon-portfolio::after {
  width: 18px;
  height: 18px;
  border-top: 3px solid var(--plum);
  border-right: 3px solid var(--plum);
  transform: translate(2px, -1px) rotate(-8deg);
}

.icon-deposit::before {
  width: 24px;
  height: 24px;
  border: 3px solid var(--amber);
  border-radius: 50%;
}

.icon-deposit::after {
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: var(--amber);
}

.icon-loan::before {
  width: 22px;
  height: 22px;
  border: 3px solid var(--danger);
  border-radius: 6px;
}

.icon-loan::after {
  width: 12px;
  height: 3px;
  border-radius: 999px;
  background: var(--danger);
}

.icon-budget::before {
  width: 24px;
  height: 18px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  border-radius: 2px;
}

.icon-budget::after {
  width: 17px;
  height: 9px;
  border-top: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
  transform: translate(2px, -1px) rotate(-6deg);
}

.icon-reminder::before {
  width: 23px;
  height: 23px;
  border: 3px solid var(--amber);
  border-radius: 50%;
}

.icon-reminder::after {
  width: 9px;
  height: 10px;
  border-left: 3px solid var(--amber);
  border-bottom: 3px solid var(--amber);
  transform: translate(2px, -2px);
}

.icon-calc::before {
  width: 24px;
  height: 24px;
  border: 3px solid var(--teal);
  border-radius: 6px;
}

.icon-calc::after {
  width: 14px;
  height: 14px;
  border-top: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  transform: rotate(90deg);
}

.signal-grid h3,
.feature-card h3,
.stacked-list h3,
.planning-copy h3 {
  margin: 18px 0 10px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.18;
}

.signal-grid p,
.feature-card p,
.stacked-list p,
.planning-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.feature-band {
  border-top: 1px solid rgba(215, 226, 207, 0.08);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  min-height: 284px;
  padding: 26px;
}

.card-number {
  display: inline-flex;
  width: 46px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 239, 103, 0.24);
  border-radius: 999px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 780;
}

.split-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 42px;
  border-top: 1px solid rgba(215, 226, 207, 0.08);
}

.split-section > .section-heading {
  margin-bottom: 0;
}

.sticky-heading {
  position: sticky;
  top: 110px;
  align-self: start;
}

.stacked-list {
  display: grid;
  gap: 14px;
  align-self: start;
}

.stacked-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px;
}

.stacked-list h3 {
  margin-top: 0;
}

.planning-section {
  grid-template-columns: 1.08fr 0.92fr;
  border-top: 1px solid rgba(215, 226, 207, 0.08);
}

.planning-heading {
  grid-column: 2;
  grid-row: 1;
}

.planning-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}

.planning-copy {
  display: grid;
  gap: 14px;
}

.planning-copy article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 24px;
}

.planning-copy h3 {
  margin-top: 0;
}

.closing-section {
  display: grid;
  gap: 28px;
  justify-items: start;
  width: min(100% - 40px, var(--content));
  margin: 0 auto 40px;
  padding: 78px 0 86px;
  border-top: 1px solid rgba(215, 226, 207, 0.08);
}

.closing-section h2 {
  max-width: 900px;
}

.login-page {
  min-height: 100vh;
}

.login-header {
  grid-template-columns: 1fr;
}

.login-main {
  display: grid;
  min-height: calc(100vh - 86px);
  place-items: center;
  padding: 30px 20px 70px;
}

.login-form {
  display: grid;
  width: min(100%, 420px);
  gap: 12px;
  padding: 28px;
}

.login-error {
  margin: 0 0 8px;
  padding: 12px 14px;
  border: 1px solid rgba(239, 123, 97, 0.34);
  border-radius: 8px;
  background: rgba(239, 123, 97, 0.1);
  color: #ffc7ba;
  line-height: 1.42;
}

.login-form label {
  color: var(--soft);
  font-size: 14px;
  font-weight: 720;
}

.login-form input {
  width: 100%;
  height: 48px;
  margin-bottom: 10px;
  border: 1px solid rgba(215, 226, 207, 0.13);
  border-radius: 8px;
  outline: 0;
  background: rgba(7, 9, 7, 0.72);
  color: var(--text);
  padding: 0 14px;
}

.login-form input:focus {
  border-color: rgba(201, 239, 103, 0.72);
  box-shadow: 0 0 0 3px rgba(201, 239, 103, 0.1);
}

.login-form .button {
  width: 100%;
  margin-top: 4px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .hero-content {
    width: min(620px, 100%);
  }

  .hero-lead {
    width: fit-content;
    max-width: min(590px, 92%);
    padding: 14px 16px;
    border: 1px solid rgba(215, 226, 207, 0.12);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(12px);
  }

  .hero-art {
    opacity: 1;
  }

  .hero-phone {
    top: 18%;
    right: -54px;
    width: 300px;
    min-width: 300px;
    transform: rotate(3deg);
  }

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

  .feature-card {
    min-height: 0;
  }

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

  .planning-heading,
  .planning-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .sticky-heading {
    position: static;
  }
}

@media (max-width: 640px) {
  body {
    background-size: auto, auto, auto, 34px 34px, 34px 34px, auto;
  }

  .site-header {
    width: min(100% - 28px, var(--content));
    gap: 14px;
    padding: 14px 0;
  }

  .brand {
    font-size: 17px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .button {
    min-height: 42px;
    font-size: 14px;
  }

  .button-ghost {
    padding: 0 12px;
  }

  .hero {
    grid-template-rows: auto auto;
    padding: 42px 14px 74px;
  }

  .hero-art {
    position: relative;
    inset: auto;
    grid-row: 2;
    height: 552px;
    margin-top: 34px;
    opacity: 1;
  }

  .hero-content {
    grid-row: 1;
  }

  .hero-phone {
    top: 10px;
    right: auto;
    left: 0;
    bottom: auto;
    width: 246px;
    height: 452px;
    min-width: 246px;
    transform: none;
  }

  .hero-lead {
    max-width: 92%;
  }

  .hero-actions {
    display: grid;
    width: min(100%, 340px);
  }

  .section,
  .closing-section {
    width: min(100% - 28px, var(--content));
  }

  .section {
    padding: 64px 0;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .section-heading h2,
  .closing-section h2 {
    line-height: 1.08;
  }

  .signal-grid article,
  .feature-card,
  .stacked-list article,
  .planning-copy article {
    padding: 20px;
  }

  .stacked-list article,
  .planning-copy article {
    grid-template-columns: 1fr;
  }

  .closing-section {
    margin-bottom: 20px;
    padding: 62px 0 66px;
  }

  .login-main {
    align-items: start;
    padding-top: 52px;
  }

  .login-form {
    padding: 22px;
  }
}
