/* WiNVESTRADE — the holding's site.
   The ground is the mosaic's own sand; the ink is its dark stone; the seven
   colours are the seven tesserae of the mark, and each is spent on one card's
   edge and nothing else. No webfont: the system's sans, so the page costs one
   stylesheet and its pictures. */

:root {
  --sand: #F6EEE4;
  --sand-2: #EFE3D3;
  --card: #FFFBF6;
  --ink: #26211D;
  --ink-2: #5B524A;
  --line: #E3D5C3;
  --accent: #6B3E22;          /* the brown tessera, dark enough for text: 9.6:1 on sand */
  --accent-ink: #FFFBF6;
  --brown: #7A4A2A; --red: #C8432B; --yellow: #E3A52A; --green: #3E8A3A;
  --purple: #7B4FB8; --blue: #3E9BDA; --pink: #E25C9A;
  --r: 16px;
  --wrap: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 400 17px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.word { text-transform: none; letter-spacing: .02em; font-weight: 800; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--sand); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 5; background: rgba(246, 238, 228, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 18px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 0; }
.nav a:hover { color: var(--ink); }
.langs { display: flex; gap: 2px; font-size: 13px; font-weight: 700; }
.langs a, .langs span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 999px; text-decoration: none; color: var(--ink-2); }
.langs span { color: var(--ink); background: var(--sand-2); }
.langs a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 24px; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin: 0 0 14px; }
h1 { font-size: clamp(34px, 5.2vw, 60px); font-weight: 800; max-width: 15em; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 38em; margin: 20px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.btn:hover { background: var(--ink); }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn.ghost:hover { background: var(--sand-2); }
.mosaic { margin-top: 48px; border-radius: 24px; box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px rgba(38, 33, 29, .45); }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.band { background: var(--sand-2); }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.sub { color: var(--ink-2); margin: 10px 0 0; max-width: 40em; }
h3 { font-size: 19px; font-weight: 750; }

.cards, .brands { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card, .brandcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 22px 22px; position: relative; overflow: hidden; }
.card::before, .brandcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--hue); }
.card p, .brandcard p { color: var(--ink-2); margin: 10px 0 0; font-size: 16px; }
.more { color: var(--ink-2); margin: 26px 0 0; font-size: 16px; }
[data-hue="brown"] { --hue: var(--brown); } [data-hue="red"] { --hue: var(--red); } [data-hue="yellow"] { --hue: var(--yellow); }
[data-hue="green"] { --hue: var(--green); } [data-hue="purple"] { --hue: var(--purple); } [data-hue="blue"] { --hue: var(--blue); }
[data-hue="pink"] { --hue: var(--pink); }

.brandcard { display: flex; flex-direction: column; }
.brandcard h3 { font-size: 22px; }
.brandcard p { flex: 1; }
.brandcard a { margin-top: 18px; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; }
.brandcard a:hover .host { text-decoration: underline; }
.host { font-weight: 500; color: var(--ink-2); }

.steps { list-style: none; counter-reset: s; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: "0" counter(s); display: block; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.steps p { color: var(--ink-2); margin: 8px 0 0; }

.contact { background: var(--ink); color: var(--sand); text-align: center; }
.contact .sub { color: #D9CCBC; margin-left: auto; margin-right: auto; }
.contact .btn { background: var(--sand); color: var(--ink); margin-top: 26px; font-size: 18px; }
.contact .btn:hover { background: #fff; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 26px 0; font-size: 15px; color: var(--ink-2); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot p { margin: 0; }
.foot a { display: inline-block; padding: 10px 0; }

/* ---------- legal ---------- */
.prose { padding: 56px 0 72px; }
.prose .wrap { max-width: 780px; }
.prose h1 { font-size: 40px; margin-bottom: 18px; }
.prose h2 { font-size: 20px; margin: 30px 0 6px; }
.prose p { margin: 0; color: var(--ink-2); }
.note { background: var(--sand-2); border-radius: 12px; padding: 12px 16px; font-size: 15px; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .cards, .brands { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .langs { margin-left: auto; }
  .hero { padding-top: 44px; }
  .section { padding: 64px 0; }
  .cards, .brands { grid-template-columns: 1fr; }
  .mosaic { border-radius: 16px; margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
