:root {
  color-scheme: dark;
  --bg: #030507;
  --bg-alt: #05070a;
  --panel: rgba(10, 12, 18, 0.84);
  --panel-strong: rgba(13, 16, 24, 0.96);
  --panel-soft: rgba(19, 23, 33, 0.88);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f7fb;
  --text-soft: rgba(229, 231, 235, 0.7);
  --blue: #3b82f6;
  --red: #ef4444;
  --green: #22c55e;
  --amber: #f59e0b;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.24);
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background-color: #010102;
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
}

body {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-color: #010102;
  background-image: url("../assets/banking-architecture-bg.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  transform: none;
  opacity: 1;
}

body::after {
  background:
    radial-gradient(ellipse at 50% 42%, rgba(1, 4, 8, 0.03) 0%, rgba(1, 4, 8, 0.1) 46%, rgba(0, 0, 0, 0.34) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.2) 100%);
  filter: none;
  opacity: 1;
}

@media (max-width: 768px) {
  body::before {
    background-attachment: scroll;
    background-position: center center;
  }
}

a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.page-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
}

.glass-panel {
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.84), rgba(12, 12, 14, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Sora", "Inter", sans-serif;
}

.brand__name {
  font-size: 0.95rem;
  font-weight: 800;
}

.brand__subname {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.68);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.header-button,
.icon-button,
.profile-chip {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(15, 18, 28, 0.72);
  color: var(--text);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.header-button--ghost:hover,
.icon-button:hover,
.profile-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: rgba(248, 250, 252, 0.86);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px 0 6px;
  border-radius: 999px;
  color: #fff;
}

.profile-chip__avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(34, 197, 94, 0.95));
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
}

.profile-chip__name {
  font-size: 0.92rem;
  font-weight: 600;
}

.profile-chip__arrow {
  color: rgba(255, 255, 255, 0.62);
}

.page-main {
  position: relative;
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: 34px 24px 44px;
}

.bank-tabs {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.bank-tabs__link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 14, 20, 0.76);
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.bank-tabs__link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.bank-tabs__link.is-active {
  background: linear-gradient(180deg, rgba(18, 22, 32, 0.98), rgba(11, 14, 20, 0.98));
  color: #ffffff;
  border-color: rgba(59, 130, 246, 0.18);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.08), 0 10px 24px rgba(0, 0, 0, 0.24);
}

.hero-block {
  margin-bottom: 26px;
}

.hero-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 26px;
  align-items: center;
  margin-bottom: 26px;
}

.hero-showcase__content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-showcase__brand-copy {
  max-width: 760px;
}

.hero-block__eyebrow {
  margin: 0 0 10px;
  color: rgba(191, 219, 254, 0.52);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-showcase__eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  color: rgba(215, 220, 229, 0.82);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-block h1 {
  margin: 0;
  font-family: "Sora", "Inter", sans-serif;
  font-size: clamp(2rem, 1.4rem + 2vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-block__subtitle {
  margin: 12px 0 0;
  max-width: 760px;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.hero-showcase__subtitle {
  margin: 14px 0 0;
  max-width: 720px;
  color: rgba(208, 213, 222, 0.76);
  font-size: 1.02rem;
  line-height: 1.65;
}

.hero-showcase__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 16, 22, 0.84);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.hero-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.08), 0 14px 26px rgba(0, 0, 0, 0.28);
}

.hero-cta__icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
}

.hero-cta__label {
  white-space: nowrap;
}

.hero-cta__arrow {
  color: rgba(255, 255, 255, 0.7);
}

.hero-cta--primary {
  margin-left: auto;
  min-width: 240px;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(64, 142, 255, 0.96), rgba(44, 110, 231, 0.96));
  border-color: rgba(150, 197, 255, 0.18);
  box-shadow: 0 10px 30px rgba(44, 110, 231, 0.18);
}

.hero-cta--primary:hover {
  box-shadow: 0 12px 34px rgba(44, 110, 231, 0.22);
}

.hero-showcase__progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-showcase__progress-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.hero-showcase__progress-bar span {
  display: block;
  width: 58%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.9), rgba(59, 130, 246, 0.2));
}

.hero-showcase__progress p {
  margin: 0;
  color: rgba(229, 231, 235, 0.72);
  font-size: 0.84rem;
}

.hero-showcase__visual {
  display: flex;
  justify-content: flex-end;
}

.hero-visual-card {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1.08 / 1;
  border-radius: 28px;
  background:
    radial-gradient(circle at 70% 20%, rgba(91, 149, 255, 0.18), transparent 26%),
    radial-gradient(circle at 28% 78%, rgba(59, 130, 246, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(15, 18, 26, 0.96), rgba(8, 10, 16, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.44);
  overflow: hidden;
}

.hero-visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent 36%, rgba(255,255,255,0.02));
  pointer-events: none;
}

.hero-visual-card__glow {
  position: absolute;
  filter: blur(24px);
  border-radius: 999px;
  opacity: 0.68;
}

.hero-visual-card__glow--blue {
  left: 12%;
  top: 18%;
  width: 140px;
  height: 140px;
  background: rgba(59, 130, 246, 0.3);
}

.hero-visual-card__glow--violet {
  right: 12%;
  top: 14%;
  width: 120px;
  height: 120px;
  background: rgba(129, 140, 248, 0.16);
}

.hero-visual-card__glow--green {
  left: 28%;
  bottom: 10%;
  width: 120px;
  height: 120px;
  background: rgba(34, 197, 94, 0.12);
}

.hero-visual-card__coins,
.hero-visual-card__chart,
.hero-visual-card__data-stream,
.hero-visual-card__ring {
  position: absolute;
}

.hero-visual-card__coins {
  border-radius: 999px;
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.24);
}

.hero-visual-card__coins--gold {
  right: 14%;
  top: 22%;
  width: 98px;
  height: 98px;
  background: linear-gradient(145deg, #f8d26b, #b07a16 70%, #f5cf57);
  transform: rotate(-18deg);
}

.hero-visual-card__coins--gold::before,
.hero-visual-card__coins--silver::before {
  content: "";
  position: absolute;
  inset: 10% 12%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0));
}

.hero-visual-card__coins--silver {
  right: 26%;
  top: 42%;
  width: 76px;
  height: 76px;
  background: linear-gradient(145deg, #e5e7eb, #9ca3af 72%, #f8fafc);
  transform: rotate(16deg);
}

.hero-visual-card__chart {
  left: 16%;
  bottom: 22%;
  width: 44%;
  height: 44%;
  border-left: 3px solid rgba(150, 197, 255, 0.35);
  border-bottom: 3px solid rgba(150, 197, 255, 0.35);
  border-radius: 0 0 0 16px;
}

.hero-visual-card__chart::before {
  content: "";
  position: absolute;
  inset: auto 12% 18% 10%;
  height: 3px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.9));
  transform: rotate(-28deg);
  transform-origin: left center;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.24);
}

.hero-visual-card__chart::after {
  content: "";
  position: absolute;
  right: 2%;
  top: 12%;
  width: 44px;
  height: 44px;
  border-radius: 999px 999px 999px 0;
  border: 3px solid rgba(59, 130, 246, 0.42);
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(12deg);
}

.hero-visual-card__data-stream {
  right: 16%;
  top: 18%;
  width: 120px;
  height: 52%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1) 0 0) 12px 0 / 2px 100% no-repeat,
    linear-gradient(180deg, rgba(255,255,255,0.08) 0 0) 34px 0 / 2px 100% no-repeat,
    linear-gradient(180deg, rgba(255,255,255,0.05) 0 0) 56px 0 / 2px 100% no-repeat;
  opacity: 0.45;
  transform: skewY(-18deg);
}

.hero-visual-card__ring {
  inset: 22% 16% auto auto;
  width: 154px;
  height: 154px;
  border-radius: 999px;
  border: 1px solid rgba(150, 197, 255, 0.12);
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.015);
}

.hero-visual-card__ring--small {
  inset: auto auto 14% 10%;
  width: 112px;
  height: 112px;
  border-color: rgba(34, 197, 94, 0.12);
}

.banks-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.hidden { display: none !important; }

@media (prefers-reduced-motion: no-preference) {
  .bank-card,
  .bank-card__buy-button,
  .header-button,
  .icon-button,
  .profile-chip {
    will-change: transform;
  }
}
