/* ==========================================================================
   WMW — public homepage (wmwtrad.com)
   Self-contained: local fonts only, no external requests, no frameworks.
   Mobile-first; breakpoints at 640px / 900px / 1180px.
   ========================================================================== */

@font-face {
  font-family: 'Poppins';
  src: url('/portal/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/portal/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/portal/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/portal/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --purple: #9c33e5;
  --purple-dark: #7a1fc0;
  --purple-ink: #4c1d95;
  --magenta: #c026d3;
  --ink: #1c1030;
  --muted: #5b5470;
  --line: #e8e4f0;
  --soft: #f7f4fd;
  --white: #ffffff;
  --ok: #0f9960;
  --warn: #b45309;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 18px 40px -24px rgba(28, 16, 48, .35);
  --shadow-soft: 0 10px 30px -22px rgba(28, 16, 48, .45);
  --wrap: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5.2vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 3.4vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.06rem; font-weight: 600; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--purple-dark);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 6px; }

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .94rem; }
.btn-primary { background: linear-gradient(135deg, var(--purple-dark), var(--magenta)); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { box-shadow: var(--shadow); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--purple-ink); }
.btn-ghost:hover { border-color: var(--purple); }
.btn-light { background: #fff; color: var(--purple-dark); }

/* ==================== Header ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand-text { font-size: 1.06rem; }

.nav-toggle {
  width: 44px; height: 44px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

.site-nav {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 10px 20px 18px;
  flex-direction: column;
  gap: 4px;
}
.site-header.nav-open .site-nav { display: flex; }
.site-nav a { padding: 12px 4px; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--soft); }
.site-nav a:hover { color: var(--purple-dark); text-decoration: none; }
.site-nav .nav-cta { margin-top: 12px; align-self: flex-start; }

/* ==================== Hero ==================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(192, 38, 211, .16), transparent 60%),
    radial-gradient(700px 380px at 0% 0%, rgba(156, 51, 229, .14), transparent 62%),
    var(--soft);
  padding: 48px 0 8px;
}
.hero-inner { display: grid; gap: 34px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--purple-dark);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.lede { color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.12rem); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 18px; list-style: none; color: var(--muted); font-size: .92rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: '';
  width: 18px; height: 18px; flex: none;
  border-radius: 50%;
  background: rgba(156, 51, 229, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a1fc0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---- Portal mock (decorative) ---- */
.hero-visual { perspective: 1200px; min-width: 0; }
.hero-copy { min-width: 0; }
.mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 16px;
  min-width: 0;
}
.mock-head { display: flex; align-items: center; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--soft); }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--soft); }
.mock-dot:first-child { background: #f3c9d8; }
.mock-dot:nth-child(2) { background: #f7e2bd; }
.mock-dot:nth-child(3) { background: #cdeed9; }
.mock-title { margin-left: 8px; font-size: .8rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
/* minmax(0,1fr) + min-width:0 so long numbers can never push the card wider than its column */
.mock-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.mock-card { background: var(--soft); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.mock-ccy { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .06em; }
.mock-card strong {
  display: block;
  font-size: clamp(.76rem, 2.1vw, 1rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock-rows { display: grid; gap: 8px; min-width: 0; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--soft); border-radius: 12px; font-size: .84rem; min-width: 0; }
.mock-ic { width: 26px; height: 26px; flex: none; border-radius: 50%; }
.mock-ic-in { background: rgba(15, 153, 96, .12); }
.mock-ic-out { background: rgba(156, 51, 229, .12); }
.mock-ic-swap { background: rgba(37, 99, 235, .12); }
.mock-party { flex: 1; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-amt { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .82rem; white-space: nowrap; }
.mock-amt.up { color: var(--ok); }
.mock-amt.down { color: var(--ink); }
.tag, .pill { font-style: normal; font-size: .62rem; font-weight: 600; letter-spacing: .06em; padding: 1px 6px; border-radius: 999px; margin-left: 4px; }
.tag { background: rgba(156, 51, 229, .12); color: var(--purple-dark); }
.pill { background: rgba(180, 83, 9, .12); color: var(--warn); }
.mock-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--soft); font-size: .74rem; color: var(--muted); }

/* ==================== Trust strip ==================== */
.strip { background: #fff; border-bottom: 1px solid var(--line); }
.strip-inner { display: grid; gap: 16px; padding: 26px 20px; }
.strip-item { display: flex; flex-direction: column; gap: 2px; }
.strip-item strong { font-size: .98rem; font-weight: 600; }
.strip-item span { color: var(--muted); font-size: .86rem; }

/* ==================== Sections ==================== */
.section { padding: 60px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 62ch; margin-bottom: 30px; }
.section-sub { color: var(--muted); }

.cards { display: grid; gap: 16px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: #dcd3ee; }
.card p { margin: 0; color: var(--muted); font-size: .94rem; }
.card-ic {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
}
.card-ic svg { width: 22px; height: 22px; }
.ic-1 { background: linear-gradient(135deg, #ede9fe, #d8b4fe); color: #6d28d9; }
.ic-2 { background: linear-gradient(135deg, #fae8ff, #f0abfc); color: #a21caf; }
.ic-3 { background: linear-gradient(135deg, #e0f2fe, #bae6fd); color: #0369a1; }
.ic-4 { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #047857; }

.steps { display: grid; gap: 18px; list-style: none; counter-reset: step; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps p { margin: 0; color: var(--muted); font-size: .94rem; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-dark), var(--magenta));
  color: #fff; font-weight: 600; font-size: .95rem;
}

.security-inner { display: grid; gap: 28px; }
.feature-list { list-style: none; display: grid; gap: 14px; }
.feature-list li { display: flex; flex-direction: column; gap: 3px; padding-left: 18px; border-left: 3px solid var(--purple); }
.feature-list strong { font-weight: 600; }
.feature-list span { color: var(--muted); font-size: .92rem; }

.faq { display: grid; gap: 12px; max-width: 78ch; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.faq details[open] { border-color: #d8c9f0; box-shadow: var(--shadow-soft); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 30px 14px 0;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute; right: 2px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--purple-dark);
  border-bottom: 2px solid var(--purple-dark);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { margin: 0 0 16px; color: var(--muted); font-size: .94rem; }

/* ==================== CTA strip ==================== */
.cta-strip { background: linear-gradient(135deg, var(--purple-dark), var(--magenta)); color: #fff; }
.cta-inner { display: grid; gap: 18px; padding: 40px 20px; align-items: center; }
.cta-inner h2 { margin: 0 0 6px; color: #fff; }
.cta-inner p { margin: 0; color: rgba(255, 255, 255, .88); }
.cta-inner .btn { justify-self: start; }

/* ==================== Contact ==================== */
.contact-inner { display: grid; gap: 26px; }
.contact-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.contact-row { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-of-type { border-bottom: 0; }
.contact-row > span:first-child { color: var(--muted); font-size: .88rem; }
.contact-row > :last-child { font-weight: 500; }
.contact-note { margin: 14px 0 0; color: var(--muted); font-size: .84rem; }

/* ==================== Footer ==================== */
.site-footer { background: #150b25; color: rgba(255, 255, 255, .78); padding: 44px 0 34px; }
.footer-inner { display: grid; gap: 20px; }
.footer-brand { display: flex; gap: 12px; align-items: center; color: #fff; }
.footer-brand img { width: 32px; height: 32px; }
.footer-brand strong { display: block; letter-spacing: .04em; }
.footer-brand span { display: block; font-size: .84rem; color: rgba(255, 255, 255, .68); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { color: rgba(255, 255, 255, .86); font-size: .9rem; }
.footer-nav a:hover { color: #fff; }
.footer-legal { font-size: .8rem; color: rgba(255, 255, 255, .58); max-width: 92ch; margin: 0; }
.footer-copy { margin: 0; font-size: .82rem; color: rgba(255, 255, 255, .62); }

/* ==================== Breakpoints ==================== */
@media (min-width: 640px) {
  .strip-inner { grid-template-columns: repeat(2, 1fr); gap: 20px 28px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { grid-template-columns: 1fr auto; padding: 46px 20px; }
  .cta-inner .btn { justify-self: end; }
  .contact-inner { grid-template-columns: 1fr 1fr; align-items: start; gap: 34px; }
  .section { padding: 72px 0; }
  .hero { padding-top: 62px; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 26px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .site-nav a { border-bottom: 0; padding: 6px 0; font-weight: 500; }
  .site-nav .nav-cta { margin-top: 0; }
  .strip-inner { grid-template-columns: repeat(4, 1fr); padding: 30px 20px; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .security-inner { grid-template-columns: .9fr 1.1fr; align-items: start; gap: 40px; }
  .feature-list { grid-template-columns: repeat(2, 1fr); gap: 18px 26px; }
}

@media (min-width: 1180px) {
  .hero { padding: 78px 0 60px; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 54px; }
  .hero-visual .mock { transform: rotateY(-6deg) rotateX(3deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .hero-visual .mock { transform: none; }
}
