/* ============================================================
   Elibrium shared design system
   Fonts: Figtree (display/headings) + Inter (body)
   Light UI. Single violet accent across the whole site.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&family=Inter:wght@400;450;500;600&display=swap');

:root {
  /* neutrals (live Elibrium tokens) */
  --bg: #ffffff;
  --bg-tint: #f2f2f2;
  --bg-tint-2: #ecebf7;
  --ink: #050a04;
  --ink-2: #1e221d;
  --muted: #50534f;
  --line: rgba(5, 10, 4, 0.12);
  --line-strong: rgba(5, 10, 4, 0.2);
  --dark: #1e221d;
  --dark-2: #171a16;

  /* single brand accent: violet */
  --violet: #5f4edd;
  --violet-ink: #4c3eb0;
  --violet-light: #8a7bec;
  --violet-lighter: #a99cf3;
  --violet-tint: #dfdbf8;
  --violet-wash: #efedfb;

  /* semantic touches only (never a page's primary) */
  --success: #3f7a34;
  --success-soft: #e1f2dd;
  --danger: #b23b3b;

  --accent: var(--violet);
  --accent-2: var(--violet-light);
  --accent-ink: var(--violet-ink);
  --accent-wash: var(--violet-wash);

  --radius: 22px;
  --radius-lg: 34px;
  --radius-sm: 14px;
  --radius-btn: 12px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(5, 10, 4, 0.04), 0 12px 34px -18px rgba(5, 10, 4, 0.16);
  --shadow-soft: 0 1px 2px rgba(5, 10, 4, 0.05), 0 20px 50px -30px rgba(5, 10, 4, 0.22);

  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 56px);

  --font-display: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
  line-height: 1.1;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* layout */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--accent);
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); display: inline-block; }
.lede { color: var(--muted); font-size: clamp(1.06rem, 1.4vw, 1.28rem); line-height: 1.55; }
h1.display { font-size: clamp(2.6rem, 5.8vw, 4.4rem); letter-spacing: -0.05em; line-height: 1.02; }
h2.h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -0.045em; }
h3.h3 { font-size: 1.28rem; letter-spacing: -0.03em; }
.text-muted { color: var(--muted); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body);
  font-weight: 500; font-size: 1rem;
  padding: 0.72em 1.4em;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(.4,0,.2,1), background 0.15s ease, box-shadow 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -14px var(--accent); }
.btn-primary:hover { background: var(--accent-ink); box-shadow: 0 14px 30px -12px var(--accent); }
.btn-ghost { background: var(--bg-tint); color: var(--ink); border-color: transparent; }
.btn-ghost:hover { background: #e6e6e6; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); background: rgba(5,10,4,0.02); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ondark { background: #fff; color: var(--ink); }
.btn-ondark:hover { background: #ececf2; }
.btn-ghost-ondark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-ghost-ondark:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.btn-lg { padding: 0.9em 1.7em; font-size: 1.02rem; }
.link-arrow { color: var(--accent); font-weight: 600; font-family: var(--font-display); display: inline-flex; align-items: center; gap: 6px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; letter-spacing: -0.03em; color: var(--ink); }
.brand .mark {
  width: 27px; height: 27px; border-radius: 9px;
  background: linear-gradient(135deg, #5f4edd, #8a7bec);
  display: grid; place-items: center; color: #fff; font-size: 0.92rem; font-weight: 800;
}
.brand .draft {
  font-family: var(--font-body); font-weight: 600; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-strong); border-radius: 6px; padding: 2px 6px; margin-left: 4px;
}
.nav-menu { display: flex; gap: 22px; margin-left: 14px; }
.nav-menu a { font-size: 0.95rem; color: var(--ink-2); font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-cta .login { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.nav-cta .login:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; padding: 14px var(--gutter) 22px; }
.mobile-menu a { display: block; padding: 11px 0; font-family: var(--font-display); font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 14px; width: 100%; }
.mobile-menu.open { display: block; }
@media (max-width: 860px) {
  .nav-menu { display: none; }
  .nav-cta .login { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* footer */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.7); padding-block: clamp(48px, 6vw, 76px) 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px 32px; }
.site-footer .brand { color: #fff; }
.footer-about { max-width: 34ch; font-size: 0.94rem; line-height: 1.6; margin-top: 16px; color: rgba(255,255,255,0.6); }
.footer-col h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.footer-col a { display: block; padding: 6px 0; color: rgba(255,255,255,0.68); font-size: 0.95rem; }
.footer-col a:hover { color: #fff; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 44px; padding-top: 26px; font-size: 0.8rem; line-height: 1.7; color: rgba(255,255,255,0.5); display: grid; gap: 14px; }
.footer-legal .row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* building blocks */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.card { background: var(--bg-tint); border: 1px solid transparent; border-radius: var(--radius); padding: 30px; height: 100%; }
.card--white { background: var(--bg); border-color: var(--line); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 1rem; }
.card .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent); margin-bottom: 18px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--reverse .split-media { order: -1; }
@media (max-width: 840px) { .split { grid-template-columns: 1fr; } .split--reverse .split-media { order: 0; } }

.pill-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 600; font-family: var(--font-display); color: var(--accent); background: var(--accent-wash); padding: 6px 13px; border-radius: var(--radius-pill); }

.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; color: var(--ink-2); }
.check-list li svg { flex: none; margin-top: 3px; color: var(--accent); }

.band-dark { background: var(--dark); color: #fff; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .lede, .band-dark p { color: rgba(255,255,255,0.72); }
.band-tint { background: var(--bg-tint); }

.cta-band { border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 66px); position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

.attr-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.attr-band .cell { background: var(--bg); padding: 26px 22px; }
.attr-band .cell .k { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.attr-band .cell .v { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 820px) { .attr-band { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .attr-band { grid-template-columns: 1fr; } }

.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.step .num { counter-increment: step; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; border: 1.5px solid var(--accent); color: var(--accent); }
.step .num::before { content: counter(step); }

.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: 68ch; }

.sec-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head p { margin-top: 14px; }

.hero { position: relative; overflow: hidden; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }

/* index hub */
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .hub-grid { grid-template-columns: 1fr; } }
.hub-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease; display: flex; flex-direction: column; min-height: 208px; }
.hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--line-strong); }
.hub-card:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.hub-card .tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.hub-card h3 { margin: 10px 0 8px; font-size: 1.24rem; }
.hub-card p { color: var(--muted); font-size: 0.95rem; }
.hub-card .go { margin-top: auto; padding-top: 16px; color: var(--accent); font-weight: 600; font-family: var(--font-display); }
.hub-card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent); }
.hub-card a.stretch::before { content: ""; position: absolute; inset: 0; }

/* index hub hero backdrop (violet only) */
.hub-hero-bg {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(95,78,221,0.13), rgba(95,78,221,0) 70%),
    radial-gradient(40% 40% at 85% 20%, rgba(95,78,221,0.08), rgba(95,78,221,0) 70%),
    radial-gradient(40% 40% at 12% 30%, rgba(138,123,236,0.08), rgba(138,123,236,0) 70%);
}

/* code panel (fintech) */
.code-panel { background: #14170f; border: 1px solid rgba(255,255,255,0.10); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.code-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: #1c1f17; border-bottom: 1px solid rgba(255,255,255,0.08); }
.code-head .dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.code-head .code-title { margin-left: 10px; font-family: 'Inter', monospace; font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.code-panel pre { margin: 0; padding: 22px; overflow-x: auto; }
.code-panel code { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 0.86rem; line-height: 1.7; color: #e7e7e2; white-space: pre; }
.code-panel .c-k { color: #a99cf3; } .code-panel .c-s { color: #b7a9f2; } .code-panel .c-c { color: #6b6f66; } .code-panel .c-p { color: #cdbdf7; }

/* IBAN account card (virtual-iban) */
.iban-card { text-align: left; background: linear-gradient(150deg, #ffffff, #f4f2fd); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 32px; box-shadow: var(--shadow-soft); position: relative; overflow: hidden; }
.iban-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(95,78,221,0.14), rgba(95,78,221,0) 70%); }
.iban-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-weight: 600; color: var(--violet-ink); }
.iban-status { font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; color: var(--success); background: var(--success-soft); padding: 3px 10px; border-radius: 999px; }
.iban-label { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.iban-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-top: 3px; }
.iban-number { font-size: clamp(1.15rem, 3.4vw, 1.55rem); font-weight: 600; letter-spacing: 0.04em; margin-top: 3px; color: var(--ink); }
.iban-foot { display: flex; gap: 26px; margin-top: 22px; flex-wrap: wrap; }
.iban-foot .mono { font-size: 0.95rem; font-weight: 600; }

/* Co-branding page (violet-only card art) */
.cobrand-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(28px,5vw,64px); align-items: center; }
@media (max-width: 900px) { .cobrand-grid { grid-template-columns: 1fr; } }
.cobrand-stage { position: relative; min-height: 320px; display: grid; place-items: center; }
.cbcard { width: min(340px, 82vw); aspect-ratio: 1.586/1; border-radius: 20px; padding: 24px; color: #fff; box-shadow: 0 30px 60px -24px rgba(30,34,29,0.55); }
.cbcard--front { position: relative; z-index: 3; background: linear-gradient(135deg, #5f4edd 0%, #7161e4 50%, #8a7bec 100%); transform: rotate(-6deg); display: flex; flex-direction: column; justify-content: space-between; }
.cbcard--back { position: absolute; z-index: 1; background: linear-gradient(135deg, #2a2540, #1e221d); transform: rotate(4deg) translate(26px, 26px); }
.cb-strip { height: 38px; background: #101014; margin: 14px -24px 0; }
.cb-sign { height: 20px; background: rgba(255,255,255,0.7); margin: 20px 24px 0 24px; border-radius: 4px; }
.cb-row { display: flex; justify-content: space-between; align-items: center; }
.cb-brand { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.08em; font-size: 0.95rem; }
.cb-net { font-family: var(--font-display); font-weight: 800; font-style: italic; letter-spacing: 0.04em; }
.cb-chip { width: 44px; height: 34px; border-radius: 7px; background: linear-gradient(135deg, #f4d58a, #d8b45c); margin-top: 6px; }
.cb-num { font-size: 1.12rem; letter-spacing: 0.08em; }
.cb-foot small { display: block; font-size: 0.6rem; letter-spacing: 0.1em; opacity: 0.75; }
.cb-foot div > div { font-family: var(--font-body); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; }
.cb-swatches { position: absolute; bottom: 6px; right: 4px; display: flex; gap: 8px; z-index: 4; background: #fff; padding: 8px 10px; border-radius: 999px; box-shadow: var(--shadow); }
.cb-swatches span { width: 18px; height: 18px; border-radius: 50%; display: block; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.cobrand-cta { background: linear-gradient(120deg, #4c3eb0, #6f5fd0 60%, #8a7bec); }
@media (prefers-reduced-motion: no-preference) { .cbcard--front { transition: transform 0.4s ease; } .cobrand-stage:hover .cbcard--front { transform: rotate(-3deg) translateY(-6px); } }

/* Logistics route band */
.route-band { background: linear-gradient(180deg, #fff, #faf9fe); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px clamp(16px,3vw,40px); overflow-x: auto; }
.route-band svg { min-width: 620px; }

/* Invoice card (consulting) */
.invoice-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 32px; box-shadow: var(--shadow-soft); max-width: 440px; }
.inv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.inv-title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.inv-badge { font-size: 0.72rem; font-weight: 600; color: var(--accent-ink); background: var(--accent-wash); padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.inv-meta { color: var(--muted); font-size: 0.92rem; margin-top: 8px; }
.inv-lines { margin: 20px 0 0; border-top: 1px solid var(--line); }
.inv-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.inv-total { display: flex; justify-content: space-between; padding: 14px 0; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.inv-pay { background: var(--bg-tint); border-radius: 14px; padding: 14px 16px; margin-top: 8px; }
.inv-pay small { font-size: 0.66rem; letter-spacing: 0.08em; color: var(--muted); }
.inv-pay .mono { font-weight: 600; margin-top: 4px; }
.inv-note { font-size: 0.78rem; color: var(--muted); margin-top: 12px; }

/* High-risk page */
.forget-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: #fbe9e9; margin-bottom: 16px; }
.req { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.req span { font-size: 0.74rem; font-weight: 600; color: var(--accent-ink); background: var(--accent-wash); padding: 4px 10px; border-radius: 999px; }

/* utility */
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.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; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; transition: top 0.2s; }
.skip-link:focus { top: 12px; }

/* reveal on scroll: only hidden when JS present, so no-JS shows everything */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
