@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
  --font-brand: "Space Grotesk", "Noto Sans SC", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", "Noto Sans SC", ui-sans-serif, system-ui, sans-serif;
  --max-screen: 1200px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-card: 14px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --color-primary: #2080f0;
  --color-primary-dark: #1a6fd4;
  --color-primary-light: #8fb9ff;
  --color-neutral-50: #f7f9fc;
  --color-neutral-100: #edf1f8;
  --color-neutral-200: #dfe4ed;
  --color-neutral-400: #92a1b7;
  --color-neutral-500: #677487;
  --color-neutral-600: #4f5a6d;
  --color-neutral-900: #19222f;
  --color-bg: #f7fafc;
  --color-bg-card: #fff;
  --color-hero-bg: #0a1628;
  --color-ok: #22c55e;
  --color-err: #ef4444;
  --color-border: #dfe4ed;
  --color-text: #3f4a5a;
  --color-text-muted: #677487;
  --shadow-card: 0 12px 30px -12px rgba(32, 128, 240, 0.18);
}

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

html { scroll-behavior: smooth; font-family: var(--font-sans); color: var(--color-text); background: var(--color-bg); }

body { min-height: 100vh; display: flex; flex-direction: column; }

h1, h2, h3, h4 { font-family: var(--font-brand); font-weight: 600; letter-spacing: -0.01em; color: var(--color-neutral-900); }

a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary-dark); }

.site-container {
  max-width: var(--max-screen);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.hidden { display: none !important; }

/* Header */
.bnk-demo-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(32, 128, 240, 0.12);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.bnk-demo-header.is-scrolled { box-shadow: 0 4px 24px -8px rgba(10, 22, 40, 0.12); }
.bnk-demo-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.bnk-demo-logo {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-neutral-900);
}
.bnk-demo-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; align-items: center; }
.bnk-demo-nav a {
  font-size: 0.875rem;
  color: var(--color-neutral-600);
  font-weight: 500;
}
.bnk-demo-nav a:hover { color: var(--color-primary); }

/* Hero */
.bnk-dark {
  position: relative;
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(56, 132, 235, 0.18), transparent 60%),
    radial-gradient(700px 380px at 90% 20%, rgba(32, 128, 240, 0.12), transparent 55%),
    linear-gradient(180deg, #0a1628 0%, #0c1a30 100%);
  color: #fff;
}
.bnk-grid-bg {
  background-image:
    linear-gradient(to right, rgba(56, 132, 235, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 132, 235, 0.1) 1px, transparent 1px);
  background-size: 38px 38px;
}
.bnk-demo-hero { padding: 3rem 0 2.5rem; }
.bnk-demo-hero h1 { color: #f5f8ff; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; }
.bnk-demo-hero p { color: rgba(255, 255, 255, 0.72); margin-top: 0.75rem; max-width: 42rem; line-height: 1.65; font-size: 0.95rem; }
.bnk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

/* Main */
.bnk-demo-main { flex: 1; padding: 2rem 0 3.5rem; }

/* Cards */
.bnk-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.bnk-card:hover { border-color: rgba(32, 128, 240, 0.35); box-shadow: var(--shadow-card); }
.bnk-card--flat:hover { transform: none; box-shadow: none; }
.bnk-card__body { padding: 1.5rem; }
.bnk-card__title { font-size: 1.05rem; margin-bottom: 0.5rem; }
.bnk-card__sub { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.55; }

/* Tabs */
.bnk-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.bnk-tab {
  padding: 0.55rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-neutral-50);
  color: var(--color-neutral-600);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.bnk-tab:hover { border-color: rgba(32, 128, 240, 0.35); color: var(--color-primary); }
.bnk-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(32, 128, 240, 0.55);
}

/* Forms */
.bnk-field { margin-bottom: 0.85rem; }
.bnk-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-neutral-500);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}
.bnk-input,
.bnk-textarea,
.bnk-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-neutral-50);
  color: var(--color-neutral-900);
  font-size: 0.925rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.bnk-input:focus,
.bnk-textarea:focus,
.bnk-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(32, 128, 240, 0.15);
}
.bnk-textarea { min-height: 5rem; resize: vertical; line-height: 1.5; }
.bnk-textarea--mono { font-family: Consolas, "Courier New", monospace; font-size: 0.82rem; min-height: 280px; }
.bnk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
@media (max-width: 640px) { .bnk-row { grid-template-columns: 1fr; } }

/* Buttons */
.bnk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.bnk-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(32, 128, 240, 0.65); color: #fff; }
.bnk-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.bnk-btn--ghost {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-neutral-600);
  box-shadow: none;
}
.bnk-btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); transform: none; }
.bnk-btn--secondary { background: var(--color-neutral-600); box-shadow: none; }
.bnk-btn--secondary:hover { background: var(--color-neutral-900); }
.bnk-btn-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }

/* Status */
.bnk-msg-err { color: var(--color-err); font-size: 0.88rem; margin-top: 0.5rem; }
.bnk-msg-ok { color: var(--color-ok); font-size: 0.88rem; margin-top: 0.5rem; }
.bnk-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(32, 128, 240, 0.08);
  border: 1px solid rgba(32, 128, 240, 0.2);
  font-size: 0.875rem;
  color: var(--color-neutral-600);
  margin-bottom: 1rem;
}
.bnk-user-badge strong { color: var(--color-primary); }

/* List items */
.bnk-list-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
  background: var(--color-neutral-50);
  transition: border-color 0.2s;
}
.bnk-list-item:hover { border-color: rgba(32, 128, 240, 0.3); }
.bnk-list-item strong { color: var(--color-neutral-900); }
.bnk-mono { font-family: Consolas, monospace; font-size: 0.82rem; color: var(--color-neutral-500); }
.bnk-divider { border: none; border-top: 1px solid var(--color-border); margin: 1.5rem 0; }

/* Verify result */
.bnk-result {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  display: none;
}
.bnk-result.show { display: block; }
.bnk-result__summary { font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem; }
.bnk-result__summary.ok { color: var(--color-ok); }
.bnk-result__summary.bad { color: var(--color-err); }
.bnk-result pre {
  background: var(--color-neutral-50);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  overflow: auto;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Feature chips in hero */
.bnk-hero-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.bnk-chip {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Footer */
.bnk-demo-footer {
  border-top: 1px dashed rgba(32, 128, 240, 0.15);
  padding: 1.5rem 0 2rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.bnk-demo-footer__links { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin-top: 0.5rem; }

/* Login card highlight */
.bnk-login-card {
  max-width: 32rem;
  text-align: center;
}
.bnk-login-card .bnk-btn { margin-top: 0.75rem; }

/* Grid layout for verify page */
.bnk-verify-layout { max-width: 48rem; margin: 0 auto; }

/* Passport page */
.bnk-passport-layout { max-width: 40rem; margin: 0 auto; }
.bnk-limits {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(32, 128, 240, 0.08);
  border: 1px solid rgba(32, 128, 240, 0.18);
  font-size: 0.8rem;
  color: var(--color-neutral-600);
  margin-bottom: 1.25rem;
}
.bnk-steps { list-style: none; counter-reset: bnk-step; }
.bnk-steps li {
  counter-increment: bnk-step;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.85rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.bnk-steps li:last-child { margin-bottom: 0; }
.bnk-steps li::before {
  content: counter(bnk-step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bnk-checks { display: grid; gap: 0.5rem; margin-bottom: 0.85rem; }
.bnk-checks label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--color-neutral-700);
  cursor: pointer;
  margin: 0;
}
.bnk-checks input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.bnk-input[readonly] { opacity: 0.85; cursor: default; background: var(--color-neutral-100); }
.bnk-prompt-box {
  min-height: 280px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  resize: vertical;
}
.bnk-card-stack { display: grid; gap: 1rem; }
.bnk-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}
.bnk-footer-link:hover { color: var(--color-primary-dark); }
