/* ============================================================
   VADUM LIMITED — shared styles
   Aesthetic: precise, trustworthy fintech.
   Palette (5): canvas #f7f8fb, ink #14162b, indigo #4b3bef,
                muted slate, hairline border.
   ============================================================ */

:root {
  --canvas: #f6f7fb;
  --surface: #ffffff;
  --ink: #14162b;
  --muted: #5b5f77;
  --indigo: #4b3bef;
  --indigo-soft: #ece9ff;
  --border: #e5e7f0;
  --border-strong: #d3d6e4;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 43, 0.04), 0 1px 3px rgba(20, 22, 43, 0.06);
  --shadow-md: 0 8px 30px rgba(20, 22, 43, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 22, 43, 0.12);
  --maxw: 1120px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 680;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
  margin: 0 0 16px;
  font-weight: 500;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 560;
  line-height: 1;
  padding: 13px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #3a2be0;
  box-shadow: var(--shadow-md);
}

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

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 16px 26px;
  font-size: 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 251, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 680;
  letter-spacing: -0.01em;
  font-size: 17px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--indigo), #7a6dff);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 60% at 70% 0%, #000 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
  font-size: 13px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #17b26a;
  box-shadow: 0 0 0 3px rgba(23, 178, 106, 0.16);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--indigo);
}

.hero-lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-meta {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta svg {
  color: var(--indigo);
  flex-shrink: 0;
}

/* ---------- Buy widget ---------- */
.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 22px;
}

.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.widget-head h2 {
  font-size: 16px;
}

.widget-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo);
  background: var(--indigo-soft);
  padding: 5px 9px;
  border-radius: 6px;
}

.field {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--canvas);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field:focus-within {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(75, 59, 239, 0.12);
}

.field-label {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.field-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.amount-input {
  border: none;
  background: transparent;
  font-size: 26px;
  font-weight: 640;
  color: var(--ink);
  width: 100%;
  outline: none;
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
  min-width: 0;
}

.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.selector {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-sans);
  color: var(--ink);
}

.selector:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

.coin-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.swap-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
  position: relative;
}

.swap-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.swap-icon {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--muted);
}

.quote-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  padding: 5px 2px;
}

.quote-line strong {
  color: var(--ink);
  font-weight: 560;
}

.quote-box {
  margin: 14px 0 8px;
  padding: 12px 4px 4px;
  border-top: 1px dashed var(--border-strong);
}

.widget-note {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

.widget-note a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Provider strip ---------- */
.provider-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 26px 0;
}

.provider-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.provider-strip .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.provider-logo {
  font-weight: 680;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
  opacity: 0.75;
}

/* ---------- Sections ---------- */
.section {
  padding: 84px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--indigo);
  margin-bottom: 18px;
  display: block;
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--indigo-soft);
  color: var(--indigo);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--indigo);
  background: var(--indigo-soft);
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- Assets ---------- */
.asset-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.asset {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.asset:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.asset .coin-badge {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.asset .name {
  font-weight: 600;
  font-size: 15px;
}

.asset .ticker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Split / partners callout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.partner-panel {
  background: var(--ink);
  color: #fff;
  border-radius: 18px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.partner-panel h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 18px;
}

.partner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-row:last-child {
  border-bottom: none;
}

.partner-row .p-name {
  font-weight: 620;
  font-size: 16px;
}

.partner-row .p-role {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.partner-row .p-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b7aeff;
  background: rgba(122, 109, 255, 0.16);
  padding: 5px 9px;
  border-radius: 6px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 15px;
}

.checklist svg {
  color: var(--indigo);
  flex-shrink: 0;
  margin-top: 2px;
}

.checklist strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 560;
  color: var(--ink);
  text-align: left;
}

.faq-q .chev {
  transition: transform 0.2s ease;
  color: var(--muted);
  flex-shrink: 0;
}

.faq-item[open] .chev {
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  background: linear-gradient(135deg, #201d4a, #14162b);
  border-radius: 22px;
  padding: 60px 48px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(122, 109, 255, 0.28), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(75, 59, 239, 0.24), transparent 42%);
  pointer-events: none;
}

.cta h2 {
  position: relative;
  color: #fff;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-bottom: 16px;
}

.cta p {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  max-width: 48ch;
  margin: 0 auto 28px;
}

.cta .btn-primary {
  position: relative;
  background: #fff;
  color: var(--ink);
}

.cta .btn-primary:hover {
  background: #eceaff;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 56px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 42px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 14px;
  max-width: 32ch;
}

.footer-col h4 {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 11px;
}

.footer-col a {
  color: var(--ink);
  font-size: 14.5px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--indigo);
}

.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-legal p {
  color: var(--muted);
  font-size: 12.5px;
  max-width: 78ch;
  line-height: 1.6;
}

.footer-company {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- Risk banner ---------- */
.risk-banner {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12.5px;
  text-align: center;
  padding: 10px 24px;
  line-height: 1.5;
}

.risk-banner strong {
  color: #fff;
}

/* ---------- Legal pages ---------- */
.legal-hero {
  padding: 56px 0 8px;
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 10px;
}

.legal-hero .updated {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  padding: 48px 0 90px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 92px;
}

.legal-toc h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 500;
}

.legal-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
  border-left: 1px solid var(--border);
}

.legal-toc a {
  font-size: 13.5px;
  color: var(--muted);
  padding-left: 16px;
  display: block;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.legal-toc a:hover {
  color: var(--ink);
  border-left-color: var(--indigo);
}

.legal-body {
  max-width: 720px;
}

.legal-body h2 {
  font-size: 22px;
  margin: 42px 0 14px;
  scroll-margin-top: 92px;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  font-size: 17px;
  margin: 26px 0 10px;
}

.legal-body p,
.legal-body li {
  color: #3c3f57;
  font-size: 15.5px;
  margin-bottom: 14px;
}

.legal-body ul,
.legal-body ol {
  padding-left: 22px;
  margin: 0 0 14px;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-body a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-callout {
  background: var(--indigo-soft);
  border: 1px solid #d9d3ff;
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 14.5px;
  color: #302b6b;
  margin: 8px 0 26px;
}

.legal-callout strong {
  color: #1f1a52;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .steps,
  .features {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .legal-toc {
    position: static;
  }
  .nav-links,
  .header-cta .btn-ghost {
    display: none;
  }
  .nav-toggle {
    display: grid;
    place-items: center;
  }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 18px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open a {
    padding: 10px 0;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 18px;
  }
  .section {
    padding: 60px 0;
  }
  .hero {
    padding: 56px 0 48px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cta {
    padding: 44px 24px;
  }
  .hero-actions .btn {
    flex: 1;
  }
}
