:root {
  --bg: #f6f7fb;
  --bg-soft: #f9fafe;
  --surface: #ffffff;
  --surface-alt: rgba(255, 255, 255, 0.76);
  --brand: #6d7cff;
  --brand-strong: #5969f4;
  --brand-soft: #eef0ff;
  --text: #212544;
  --text-soft: #62688d;
  --border: #e3e6f4;
  --mint: #9be8d6;
  --pink: #f7ccdc;
  --success: #209a74;
  --danger: #d0506f;
  --warning: #b67a24;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 14px 44px rgba(41, 48, 90, 0.08);
  --shadow-card: 0 10px 28px rgba(52, 58, 102, 0.07);
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", "Avenir Next", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 640px at -12% -24%, rgba(109, 124, 255, 0.12), transparent 70%),
    radial-gradient(860px 520px at 94% -14%, rgba(155, 232, 214, 0.2), transparent 67%),
    radial-gradient(960px 540px at 52% 120%, rgba(247, 204, 220, 0.16), transparent 64%),
    var(--bg);
  line-height: 1.55;
  letter-spacing: 0.006em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  color: var(--text-soft);
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 16px auto 0;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(227, 230, 244, 0.76);
  border-radius: 16px;
  padding: 6px 10px;
  backdrop-filter: blur(12px);
  box-shadow: 0 5px 14px rgba(64, 73, 126, 0.06);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--text);
}

.brand-mark {
  display: block;
  width: auto;
  height: clamp(24px, 2.8vw, 30px);
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  image-rendering: auto;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-soft);
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 6px 9px;
  transition: all 0.18s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: rgba(109, 124, 255, 0.09);
  border-color: rgba(109, 124, 255, 0.14);
  color: var(--brand-strong);
}

.nav-cta {
  text-decoration: none;
  font-weight: 650;
  font-size: 0.84rem;
  background: rgba(109, 124, 255, 0.1);
  color: var(--brand-strong);
  border: 1px solid rgba(109, 124, 255, 0.25);
  border-radius: 10px;
  padding: 6px 11px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-cta:hover {
  background: rgba(109, 124, 255, 0.17);
  border-color: rgba(109, 124, 255, 0.36);
}

.main-wrap {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 24px auto 24px;
  flex: 1;
}

.hero {
  background: linear-gradient(148deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(227, 230, 244, 0.86);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 5.2vw, 56px);
  position: relative;
  overflow: hidden;
}

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

.hero::before {
  width: 320px;
  height: 320px;
  top: -208px;
  right: -112px;
  background: radial-gradient(circle at center, rgba(109, 124, 255, 0.24), transparent 70%);
}

.hero::after {
  width: 260px;
  height: 260px;
  left: -132px;
  bottom: -176px;
  background: radial-gradient(circle at center, rgba(155, 232, 214, 0.31), transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
}

.hero-brand {
  display: block;
  margin-bottom: 14px;
}

.hero-logo {
  display: block;
  width: min(100%, 342px);
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  image-rendering: auto;
}

.hero h1 {
  font-size: clamp(1.8rem, 3.8vw, 2.58rem);
  line-height: 1.13;
}

.hero p {
  margin-top: 14px;
  font-size: clamp(0.97rem, 1.45vw, 1.05rem);
  max-width: 510px;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 650;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.004em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #7684ff 0%, #6675f6 100%);
  border: 1px solid rgba(88, 98, 190, 0.38);
  color: #fff;
  padding: 11px 16px;
  box-shadow: 0 4px 10px rgba(80, 91, 191, 0.16);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #6e7dff 0%, #5f6eef 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(80, 91, 191, 0.2);
}

.btn-soft {
  background: rgba(109, 124, 255, 0.09);
  border: 1px solid rgba(109, 124, 255, 0.22);
  color: var(--brand-strong);
  padding: 10px 15px;
}

.btn-soft:hover {
  background: rgba(109, 124, 255, 0.15);
  transform: translateY(-1px);
}

.btn-ghost {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
}

.btn-ghost:hover {
  box-shadow: 0 5px 14px rgba(88, 96, 150, 0.1);
  transform: translateY(-1px);
}

.subtle-links {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.subtle-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.86rem;
  border-bottom: 1px solid transparent;
}

.subtle-links a:hover {
  border-color: rgba(98, 104, 141, 0.36);
}

.panel {
  background: var(--surface);
  border: 1px solid rgba(227, 230, 244, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 3.8vw, 34px);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 20px rgba(72, 80, 136, 0.06);
  padding: 22px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-strong);
  background: rgba(109, 124, 255, 0.1);
  border: 1px solid rgba(109, 124, 255, 0.16);
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-title {
  font-size: clamp(1.65rem, 3.3vw, 2.2rem);
  margin-bottom: 8px;
  letter-spacing: -0.018em;
}

.page-subtitle {
  max-width: 740px;
  margin-bottom: 22px;
  font-size: 0.98rem;
  line-height: 1.62;
}

.hero-aside {
  width: 100%;
}

.app-preview {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 255, 0.92));
  border: 1px solid rgba(220, 224, 243, 0.9);
  border-radius: 22px;
  box-shadow: 0 14px 28px rgba(67, 76, 130, 0.08);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.preview-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.preview-caption {
  margin-top: 2px;
  font-size: 0.79rem;
  color: var(--text-soft);
}

.preview-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-strong);
  background: rgba(109, 124, 255, 0.11);
  border: 1px solid rgba(109, 124, 255, 0.18);
  border-radius: 8px;
  padding: 4px 7px;
}

.preview-balance {
  display: grid;
  gap: 2px;
}

.preview-balance span {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.preview-balance strong {
  font-size: 1.26rem;
  line-height: 1.25;
  color: var(--text);
}

.preview-balance small {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.preview-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.preview-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(225, 228, 243, 0.9);
  background: rgba(255, 255, 255, 0.9);
}

.preview-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(109, 124, 255, 0.9);
}

.preview-meta {
  display: grid;
  gap: 1px;
}

.preview-meta strong {
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--text);
}

.preview-meta small {
  font-size: 0.74rem;
  color: var(--text-soft);
}

.preview-amount {
  font-size: 0.82rem;
  font-weight: 700;
  color: #3f476a;
}

.preview-amount.positive {
  color: #1c8f6b;
}

.preview-flow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.preview-flow span {
  font-size: 0.74rem;
  font-weight: 650;
  color: #555d88;
  background: rgba(109, 124, 255, 0.08);
  border: 1px solid rgba(109, 124, 255, 0.15);
  border-radius: 999px;
  padding: 5px 8px;
}

.legal-wrap {
  display: flex;
  justify-content: center;
}

.legal-shell {
  width: 100%;
  max-width: 720px;
  padding: clamp(22px, 3.4vw, 36px) clamp(20px, 4vw, 42px);
}

.legal-content {
  line-height: 1.72;
}

.legal-effective {
  margin-bottom: 16px;
  color: #4b5279;
}

.legal-content h2 {
  margin-top: 32px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  padding-top: 16px;
  border-top: 1px solid rgba(227, 230, 244, 0.92);
}

.legal-content h2:first-of-type {
  margin-top: 24px;
}

.legal-content p,
.legal-content li {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.72;
  max-width: 70ch;
}

.legal-content ul {
  padding-left: 18px;
  margin: 0;
}

.placeholder-token {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: rgba(109, 124, 255, 0.12);
  color: var(--brand-strong);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
}

.auth-shell {
  max-width: 910px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
}

.auth-product {
  padding: clamp(18px, 2.8vw, 28px);
}

.auth-intro {
  display: grid;
  align-content: start;
  gap: 4px;
}

.auth-intro .page-subtitle {
  margin-bottom: 8px;
}

.auth-kicker {
  font-size: 0.71rem;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(109, 124, 255, 0.08);
  border-color: rgba(109, 124, 255, 0.14);
  color: #6774d6;
}

.auth-rail {
  margin-top: 4px;
  border: 1px solid rgba(225, 229, 245, 0.96);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(109, 124, 255, 0.07), rgba(255, 255, 255, 0.88));
  padding: 11px;
  display: grid;
  gap: 8px;
}

.auth-rail-title {
  color: var(--text);
  font-size: 0.83rem;
  font-weight: 700;
}

.auth-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.auth-step {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(109, 124, 255, 0.2);
  background: rgba(109, 124, 255, 0.1);
  color: #4f5ecf;
  font-size: 0.71rem;
  font-weight: 700;
  padding: 4px 8px;
}

.auth-form {
  border: 1px solid rgba(223, 227, 244, 0.95);
  border-radius: 16px;
  background: rgba(109, 124, 255, 0.03);
  padding: 16px;
  gap: 12px;
  align-content: start;
}

.auth-note {
  margin: 0;
  color: #4f567e;
  font-size: 0.9rem;
  line-height: 1.6;
}

.auth-form .input {
  padding: 9px 11px;
  border-radius: 9px;
}

.auth-form .btn-primary {
  padding: 9px 14px;
  font-size: 0.87rem;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(80, 91, 191, 0.14);
}

.auth-form .btn-primary:hover {
  box-shadow: 0 5px 12px rgba(80, 91, 191, 0.18);
}

.btn-apple {
  width: 100%;
  justify-content: center;
  text-align: center;
  background: #111317;
  border-color: #111317;
  color: #fff;
  font-weight: 700;
}

.btn-apple:hover {
  background: #1b1e26;
  border-color: #1b1e26;
}

.page-login .main-wrap {
  margin-top: 18px;
  margin-bottom: 14px;
  flex: 0;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
}

input,
select,
textarea,
button {
  font: inherit;
}

.input,
.select {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
}

.input:focus,
.select:focus,
textarea:focus {
  outline: 0;
  border-color: rgba(109, 124, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(109, 124, 255, 0.16);
}

.helper {
  font-size: 0.84rem;
  color: var(--text-soft);
}

.message {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.message.info {
  background: rgba(109, 124, 255, 0.1);
  color: var(--brand-strong);
  border-color: rgba(109, 124, 255, 0.2);
}

.message.error {
  background: rgba(208, 80, 111, 0.12);
  color: #8f2f4a;
  border-color: rgba(208, 80, 111, 0.24);
}

.message.success {
  background: rgba(32, 154, 116, 0.13);
  color: #157252;
  border-color: rgba(32, 154, 116, 0.27);
}

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

.step-pill {
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-soft);
  background: #fff;
  padding: 6px 10px;
  text-align: center;
  font-size: 0.77rem;
  font-weight: 700;
}

.step-pill.active {
  color: var(--brand-strong);
  border-color: rgba(109, 124, 255, 0.45);
  background: rgba(109, 124, 255, 0.12);
}

.step-pill.done {
  color: #0a7d5a;
  border-color: rgba(32, 154, 116, 0.3);
  background: rgba(32, 154, 116, 0.12);
}

.drop-zone {
  border: 1.5px dashed rgba(109, 124, 255, 0.46);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(109, 124, 255, 0.09), rgba(255, 255, 255, 0.88));
  min-height: 170px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
}

.drop-zone strong {
  color: var(--text);
}

.drop-zone p {
  margin-top: 8px;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

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

.columns-grid .form-field {
  background: rgba(109, 124, 255, 0.04);
  border: 1px solid rgba(109, 124, 255, 0.12);
  border-radius: 14px;
  padding: 12px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: #fff;
}

.table th,
.table td {
  border-bottom: 1px solid var(--border);
  padding: 11px 12px;
  font-size: 0.89rem;
  text-align: left;
}

.table th {
  color: var(--text);
  background: rgba(109, 124, 255, 0.08);
}

.table td {
  color: var(--text-soft);
}

.table tr:last-child td {
  border-bottom: 0;
}

.inline-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 700;
}

.badge.warn {
  background: rgba(182, 122, 36, 0.16);
  color: #925f17;
}

.badge.good {
  background: rgba(32, 154, 116, 0.13);
  color: #177054;
}

.site-footer {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto 28px;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.footer-panel {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .grid.two,
  .columns-grid {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-aside {
    max-width: 480px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

@media (max-width: 720px) {
  .site-header {
    border-radius: 14px;
    padding: 7px 9px;
  }

  .site-nav {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  .brand-mark {
    height: 26px;
  }

  .hero-logo {
    width: min(100%, 280px);
  }

  .hero h1 {
    font-size: clamp(1.58rem, 7.2vw, 2.02rem);
  }

  .hero p {
    font-size: 0.95rem;
  }

  .app-preview {
    padding: 14px;
    border-radius: 18px;
  }

  .legal-shell {
    padding: 18px 16px;
  }

  .main-wrap {
    width: calc(100% - 24px);
    margin-top: 18px;
    margin-bottom: 20px;
  }

  .page-login .main-wrap {
    margin-top: 14px;
    margin-bottom: 12px;
  }

  .hero {
    border-radius: 22px;
  }

  .site-footer {
    width: calc(100% - 24px);
    margin-bottom: 16px;
  }
}
