/* NV Exchange — nvexc.com */
:root {
  --ink: #0a1628;
  --ink-soft: #1a2b42;
  --muted: #5a6b7f;
  --line: rgba(10, 22, 40, 0.1);
  --paper: #f3f6f9;
  --paper-2: #e8eef4;
  --surface: #ffffff;
  --accent: #0e7c66;
  --accent-deep: #065f4e;
  --accent-soft: rgba(14, 124, 102, 0.12);
  --warn: #b45309;
  --danger: #b91c1c;
  --ok: #047857;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1120px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(243, 246, 249, 0.86);
  border-bottom: 1px solid var(--line);
}

.site-header .nav {
  position: relative;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.lang-switch-label {
  display: none;
}

.lang-switch select {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  max-width: 8.5rem;
}

html[dir="rtl"] body,
body.is-rtl {
  direction: rtl;
}

html[dir="rtl"] .nav-links,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .footer-bottom,
html[dir="rtl"] .copy-row {
  direction: rtl;
}

html[dir="rtl"] .callout {
  border-left: none;
  border-right: 3px solid var(--accent);
}

html[lang="zh-Hans"] body,
html[lang="ja"] body,
html[lang="ar"] body,
html[lang="he"] body {
  --font-body: "Plus Jakarta Sans", "Noto Sans SC", "Noto Sans JP", "Noto Sans Arabic", "Noto Sans Hebrew", system-ui, sans-serif;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.brand-mark span {
  color: var(--accent);
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-deep);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  background: var(--ink);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    gap: 0.75rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-links .nav-cta-mobile {
    display: inline-flex;
    margin-top: 0.5rem;
    justify-content: center;
  }

  .nav-right {
    position: static;
  }
}

.nav-cta-mobile {
  display: none;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  padding: 6rem 0 4.5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 85% 15%, rgba(14, 124, 102, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 45% at 10% 80%, rgba(26, 43, 66, 0.12), transparent 50%),
    linear-gradient(165deg, #dfe8f0 0%, #f3f6f9 42%, #e4ece8 100%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 22, 40, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 22, 40, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
  animation: gridDrift 28s linear infinite;
}

@keyframes gridDrift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(48px);
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

.hero-brand span {
  color: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
}

.hero-lead {
  max-width: 38ch;
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* —— Sections —— */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-ink {
  background: var(--ink);
  color: #e8eef4;
}

.section-ink .muted,
.section-ink .section-lead {
  color: rgba(232, 238, 244, 0.72);
}

.section-ink h2,
.section-ink h3 {
  color: #fff;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.section-ink .eyebrow {
  color: #5eead4;
}

.section h2,
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}

.section-lead,
.page-hero p {
  max-width: 58ch;
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.muted {
  color: var(--muted);
}

/* —— Feature strip —— */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.5rem;
}

@media (max-width: 800px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

/* —— Split —— */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.step-i {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  padding-top: 0.2rem;
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* —— Status pills (AML flow) —— */
.aml-flow {
  display: grid;
  gap: 1rem;
}

.aml-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 640px) {
  .aml-row {
    grid-template-columns: 1fr;
  }
  .aml-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
}

.aml-box {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.aml-box.ok {
  border-color: rgba(4, 120, 87, 0.35);
  background: rgba(4, 120, 87, 0.06);
}

.aml-box.hold {
  border-color: rgba(180, 83, 9, 0.35);
  background: rgba(180, 83, 9, 0.06);
}

.aml-box h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.aml-box p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.aml-arrow {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.85rem;
}

/* —— Tables —— */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  background: var(--paper-2);
}

tr:last-child td {
  border-bottom: none;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  word-break: break-all;
}

.copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.copy-btn {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
}

.copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

/* —— FAQ —— */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.2rem;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0.75rem 0 0.25rem;
  color: var(--muted);
  max-width: 70ch;
}

/* —— Page hero —— */
.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(14, 124, 102, 0.12), transparent 55%),
    var(--paper);
}

.page-hero .breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.page-hero .breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.page-hero .breadcrumb a:hover {
  color: var(--accent);
}

/* —— Prose / legal —— */
.prose {
  max-width: 72ch;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2.25rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.prose h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

/* —— Callout —— */
.callout {
  padding: 1.25rem 1.35rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  margin: 1.5rem 0;
}

.callout strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: rgba(232, 238, 244, 0.78);
  padding: 3.5rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer a {
  color: rgba(232, 238, 244, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: #5eead4;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
}

.footer-brand span {
  color: #5eead4;
}

.footer-col h4 {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 238, 244, 0.5);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(232, 238, 244, 0.55);
}

.company-block {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(232, 238, 244, 0.65);
  max-width: 28ch;
}

/* —— Security dual —— */
.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 700px) {
  .dual-grid {
    grid-template-columns: 1fr;
  }
}

.dual-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.dual-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.dual-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  background: var(--accent-soft);
  color: var(--accent-deep);
  margin-bottom: 0.75rem;
}

/* —— LE form-like —— */
.le-box {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.5rem 1.75rem;
}

.le-box h3 {
  margin-top: 0;
}

.le-meta {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
  font-size: 0.92rem;
}

.le-meta code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--paper);
  padding: 0.15rem 0.4rem;
}

.note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1.5rem;
}
