/* NUBAN homepage */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --ink: #0f172a;
  --ink-soft: #475569;
  --muted: #94a3b8;
  --line: #e2e8f0;
  --brand: #059669;
  --brand-hover: #047857;
  --brand-soft: #ecfdf5;
  --dark: #0b1220;
  --dark-2: #111a2e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -12px rgba(15, 23, 42, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px;
  padding: 12px 22px; font: 600 15px/1 inherit; font-family: inherit;
  cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { border-color: rgba(255, 255, 255, .2); color: #fff; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .45); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink-soft); }
.btn-block { width: 100%; }

/* Product update banner */
.update-bar {
  display: block; padding: 9px 20px; text-align: center; font-size: 14px;
  background: #052e22; color: #fff; border-bottom: 1px solid #064e3b;
  transition: background .15s;
}
.update-bar:hover { background: #064e3b; }
.update-bar strong { font-weight: 600; }
.update-bar .badge {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  background: #dc2626; font-size: 10px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; vertical-align: 1px;
}
.update-bar .desc { color: #cbd5e1; margin-left: 8px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  /* dark, so the white logo shows */
  background: rgba(11, 18, 32, .92); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: #fff; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; color: #cbd5e1; }
.nav-links a:not(.btn):hover { color: #fff; }
.nav-links .btn { padding: 10px 18px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: #fff; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(5, 150, 105, .35), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(14, 165, 233, .18), transparent 60%),
    var(--dark);
  padding: 88px 0 96px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05);
  font-size: 13px; color: #cbd5e1;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); }
.hero h1 { margin: 22px 0 18px; font-size: clamp(36px, 5vw, 56px); font-weight: 800; }
.hero h1 span { background: linear-gradient(90deg, #34d399, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 18px; color: #94a3b8; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 36px; font-size: 14px; color: #94a3b8; }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 18px; height: 18px; color: #34d399; }

/* Verifier card */
.verify-card {
  background: #fff; color: var(--ink); border-radius: 18px; padding: 28px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55);
}
.verify-card h3 { font-size: 20px; }
.verify-card .sub { color: var(--ink-soft); font-size: 14px; margin: 4px 0 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field label a { float: right; font-weight: 500; color: var(--brand); }
.input {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px;
  font: 15px inherit; font-family: inherit; color: var(--ink); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(5, 150, 105, .12); }
.result {
  margin-top: 20px; padding: 16px; border-radius: 12px; font-size: 14px;
  background: var(--bg-soft); border: 1px dashed var(--line); color: var(--muted); text-align: center;
}
.result.ok { text-align: left; color: var(--ink); background: var(--brand-soft); border: 1px solid #a7f3d0; }
.result.ok h4 { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--brand-hover); margin-bottom: 10px; }
.result dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.result dt { color: var(--ink-soft); }
.result dd { margin: 0; font-weight: 600; word-break: break-word; }

/* Select2 restyle */
.select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single {
  height: 46px; border: 1px solid var(--line); border-radius: 10px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 44px; padding-left: 14px; color: var(--ink); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; right: 8px; }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single { border-color: var(--brand); }
.select2-dropdown { border-color: var(--line); border-radius: 10px; overflow: hidden; font-family: inherit; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--brand); }
.select2-search--dropdown .select2-search__field { border-radius: 8px; border-color: var(--line); padding: 8px; }

/* Sections */
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin: 10px 0 14px; }
.section-head p { color: var(--ink-soft); font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 18px;
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* API CTA */
.cta {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
  padding: 48px; border-radius: 20px; color: #fff;
  background: radial-gradient(600px 300px at 100% 0, rgba(5, 150, 105, .4), transparent 60%), var(--dark);
}
/* let grid columns shrink below their content (the nowrap .code line) */
.hero-grid > *, .cta > * { min-width: 0; }
.cta h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin-bottom: 12px; }
.cta p { color: #94a3b8; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-actions small { color: #94a3b8; text-align: center; font-size: 13px; }
.code {
  margin-top: 22px; padding: 14px 16px; border-radius: 10px; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1); font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #a7f3d0; overflow-x: auto; white-space: nowrap;
}

/* Contact */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-card .ico { color: var(--brand); margin-bottom: 12px; }
.contact-card h3 { font-size: 16px; margin-bottom: 6px; }
.contact-card p, .contact-card a { color: var(--ink-soft); font-size: 15px; }
.contact-card a:hover { color: var(--brand); }

/* Footer */
.footer { background: var(--dark); color: #94a3b8; padding: 40px 0; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer a:hover { color: #fff; }
.footer .search { min-width: 260px; }

/* Responsive */
@media (max-width: 960px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid, .cta { grid-template-columns: 1fr; }
  .steps, .contact { grid-template-columns: 1fr; }
  .cta { padding: 32px 24px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px;
    background: var(--dark); border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav-links .btn { margin-top: 14px; }
  .features { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .update-bar .desc { display: block; margin: 2px 0 0; }
  .code { white-space: normal; overflow-wrap: anywhere; }
  .verify-card { padding: 22px; }
}
