/* ============================================================
   IB Markets — public site styles
   ============================================================ */
:root {
  --brand: #e4010d;
  --brand-dark: #a00109;
  --brand-light: #f5454f;
  --ink: #1e1e2d;
  --ink-soft: #3a3a4d;
  --muted: #6b7280;
  --bg: #f5f6fa;
  --card: #ffffff;
  --border: #e8ecf4;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 720px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   Landing (coming soon)
   ============================================================ */
.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px 32px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(228, 1, 13, 0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.landing::before,
.landing::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  z-index: 0;
}
.landing::before { width: 420px; height: 420px; background: var(--brand); top: -140px; right: -120px; }
.landing::after  { width: 380px; height: 380px; background: var(--ink); bottom: -160px; left: -120px; opacity: 0.10; }

.landing__inner { position: relative; z-index: 1; width: 100%; max-width: 560px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}
.brand__logo { width: 52px; height: 52px; object-fit: contain; }
.brand__name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ink);
  border-left: 1px solid var(--border);
  padding-left: 14px;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(228, 1, 13, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.headline {
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--brand) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--ink-soft);
  max-width: 440px;
  margin: 0 auto 40px;
}

/* Store buttons */
.stores {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  min-width: 200px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 6px 20px rgba(30, 30, 45, 0.18);
}
.store-btn:hover { transform: translateY(-2px); background: #000; text-decoration: none; box-shadow: 0 10px 28px rgba(30, 30, 45, 0.26); }
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; fill: #fff; }
.store-btn__text { text-align: left; line-height: 1.15; }
.store-btn__small { display: block; font-size: 10px; letter-spacing: 0.5px; opacity: 0.85; text-transform: uppercase; }
.store-btn__big { display: block; font-size: 17px; font-weight: 700; }

.footer {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: var(--muted);
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--brand); text-decoration: none; }
.footer__links { margin-bottom: 8px; }
.footer__links a { margin: 0 10px; }

/* ============================================================
   Legal pages (privacy / terms)
   ============================================================ */
.page-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(8px);
}
.page-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.page-header .brand { margin-bottom: 0; }
.page-header .brand__logo { width: 34px; height: 34px; }
.page-header .brand__name { font-size: 19px; }
.back-link { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.back-link:hover { color: var(--brand); text-decoration: none; }

.doc {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 96px;
}
.doc__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.doc h1 {
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.doc__updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.doc h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 40px 0 12px;
  padding-top: 8px;
}
.doc h3 { font-size: 16px; font-weight: 700; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 15.5px; }
.doc p { margin-bottom: 14px; }
.doc ul, .doc ol { margin: 0 0 16px 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); }
.doc a { font-weight: 600; }

.callout {
  background: rgba(228, 1, 13, 0.05);
  border: 1px solid rgba(228, 1, 13, 0.15);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.callout strong { color: var(--brand); }

.doc-footer {
  border-top: 1px solid var(--border);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.doc-footer a { color: var(--muted); margin: 0 8px; }
.doc-footer a:hover { color: var(--brand); text-decoration: none; }

@media (max-width: 480px) {
  .store-btn { min-width: 0; flex: 1 1 100%; justify-content: center; }
  .brand__name { font-size: 22px; }
}
