/* =====================================================================
   EX OPTION — Design System / Componentes
   Requer tokens.css e animations.css.
   ===================================================================== */

/* ---------- @font-face (Suisse Intl — mesma do original) ---------- */
@font-face {
  font-family: "Suisse Intl"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("https://ex-options.com/ob/fonts/suisse-intl-book-latin_eac3b71f0b64.woff2") format("woff2");
}
@font-face {
  font-family: "Suisse Intl"; font-style: normal; font-weight: 450; font-display: swap;
  src: url("https://ex-options.com/ob/fonts/suisse-intl-regular-latin_abb24f4185f7.woff2") format("woff2");
}
@font-face {
  font-family: "Suisse Intl"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("https://ex-options.com/ob/fonts/suisse-intl-medium-latin_292ddcd9e6b2.woff2") format("woff2");
}
@font-face {
  font-family: "Suisse Intl"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("https://ex-options.com/ob/fonts/suisse-intl-semibold-latin_ac4ec44fd67e.woff2") format("woff2");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; min-width: 320px;
  font-family: var(--main-font);
  font-weight: var(--fw-regular);
  background: var(--Fill-0-default);
  color: var(--Text-Primary);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Logo Ex Option ---------- */
.eo-logo { display: inline-flex; align-items: center; gap: 10px; }
.eo-logo .mark { width: 40px; height: 40px; flex: none; }
.eo-logo .mark path { fill: var(--Logo-Brand); }
.eo-logo .wordmark {
  font-size: 26px; font-weight: var(--fw-semibold); letter-spacing: -.01em;
  color: var(--Logo-Primary);
}
.eo-logo .wordmark b { color: var(--Logo-Brand); font-weight: var(--fw-semibold); }

/* ---------- Tipografia (idêntica ao IQ Option) ---------- */
.display-1 { font-size: var(--fs-88); line-height: 1.05; font-weight: var(--fw-semibold); letter-spacing: -.02em; }
.display-2 { font-size: var(--fs-72); line-height: 1.06; font-weight: var(--fw-semibold); letter-spacing: -.02em; }
.h1 { font-size: var(--fs-56); line-height: 1.1;  font-weight: var(--fw-semibold); }
.h2 { font-size: var(--fs-40); line-height: 1.15; font-weight: var(--fw-semibold); }
.h3 { font-size: var(--fs-32); line-height: 1.2;  font-weight: var(--fw-medium); }
.h4 { font-size: var(--fs-24); line-height: 1.3;  font-weight: var(--fw-medium); }
.body-lg { font-size: var(--fs-18); line-height: 1.5; }
.body    { font-size: var(--fs-16); line-height: 1.5; }
.body-sm { font-size: var(--fs-14); line-height: 1.5; }
.caption { font-size: var(--fs-12); line-height: 1.4; color: var(--Text-Tertiary); }

.text-primary  { color: var(--Text-Primary); }
.text-secondary{ color: var(--Text-Secondary-default); }
.text-tertiary { color: var(--Text-Tertiary); }
.text-brand    { color: var(--Text-Brand-Primary-default); }
.text-positive { color: var(--Text-Positive-Primary); }
.text-negative { color: var(--Text-Negative-Primary); }

/* Título com gradiente dourado (premium) */
.text-gradient-brand {
  background: var(--gradient-brand-shine);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Botões ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--main-font); font-weight: var(--fw-medium);
  text-decoration: none; cursor: pointer; border: none;
  transition: background var(--dur-fast) var(--ease-in-out),
              color var(--dur-fast) var(--ease-in-out),
              box-shadow var(--dur-base) var(--ease-in-out),
              transform var(--dur-fast) var(--ease-in-out);
}
.button:active { transform: translateY(1px); }

/* Tamanhos */
.button-size-s { padding: 8px 14px;  border-radius: var(--radius-10); font-size: var(--fs-14); line-height: 20px; }
.button-size-m { padding: 10px 16px; border-radius: var(--radius-12); font-size: var(--fs-14); line-height: 1.5; }
.button-size-l {
  padding: clamp(10px,3vw,13px) clamp(16px,3.5vw,22px);
  border-radius: clamp(10px,3vw,14px);
  font-size: clamp(14px,4vw,16px); line-height: clamp(20px,6vw,24px);
}

/* Primário dourado — com brilho deslizante e glow no hover */
.button-primary {
  position: relative; overflow: hidden;
  color: var(--Text-OnAccent);
  background: linear-gradient(103deg, #ffce47 .37%, #ffbe01 15.31%, #ff8f00 100%);
}
.button-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  background-size: 220% 100%; background-repeat: no-repeat;
  transform: translateX(-60%); opacity: 0;
  transition: opacity var(--dur-base) ease;
}
.button-primary:hover { box-shadow: var(--glow-brand-strong); }
.button-primary:hover::after { opacity: 1; animation: eo-shine 1.1s ease-in-out; }

.button-secondary {
  background-color: var(--Fill-2-default); color: var(--Text-Primary);
}
.button-secondary:hover  { background-color: var(--Fill-2-hover); }
.button-secondary:active { background-color: var(--Fill-2-pressed); }

.button-ghost { background: transparent; color: var(--Text-Brand-Primary-default); }
.button-ghost:hover  { color: var(--Text-Brand-Primary-hover); }
.button-ghost:active { color: var(--Text-Brand-Primary-pressed); }

.button-brand-soft {
  background: var(--Fill-BrandS20-default); color: var(--Text-Brand-Primary-default);
}
.button-brand-soft:hover  { background: var(--Fill-BrandS20-hover); }
.button-brand-soft:active { background: var(--Fill-BrandS20-pressed); }

/* Contorno dourado (outline premium) */
.button-outline {
  background: transparent; color: var(--Text-Brand-Primary-default);
  box-shadow: inset 0 0 0 1.5px var(--Fill-Brand-default);
}
.button-outline:hover { background: var(--Fill-BrandS20-default); }

/* ---------- Link ---------- */
.link { color: var(--Text-Brand-Primary-default); text-decoration: none; }
.link:hover { color: var(--Text-Brand-Primary-hover); }

/* ---------- Card ---------- */
.card { background: var(--Fill-1-default); border-radius: var(--radius-24); padding: 24px; }
.card-elevated { background: var(--Fill-2-default); }
/* Card premium com borda dourada sutil */
.card-premium {
  position: relative; background: var(--Fill-1-default);
  border-radius: var(--radius-24); padding: 24px;
  box-shadow: inset 0 0 0 1px rgba(255,190,1,.18);
}
.card-premium::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--gradient-brand-shine);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .5; pointer-events: none;
}

/* ---------- Input ---------- */
.input {
  width: 100%; padding: 12px 16px;
  font-family: var(--main-font); font-size: var(--fs-16);
  color: var(--Text-Primary); background: var(--Fill-1-default);
  border: 1px solid var(--Fill-3-default); border-radius: var(--radius-12);
  outline: none; transition: border-color var(--dur-fast) var(--ease-in-out),
                             box-shadow var(--dur-fast) var(--ease-in-out);
}
.input::placeholder { color: var(--Text-Tertiary); }
.input:focus { border-color: var(--Fill-Brand-default); box-shadow: 0 0 0 3px rgba(255,190,1,.18); }

/* ---------- Badge / Tag ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: var(--fs-12); font-weight: var(--fw-medium);
  background: var(--Fill-2-default); color: var(--Text-Secondary-default);
}
.badge-brand    { background: var(--Fill-BrandS20-default); color: var(--Text-Brand-Primary-default); }
.badge-positive { background: rgba(93,223,56,.12); color: var(--Text-Positive-Primary); }
.badge-negative { background: rgba(255,71,71,.12); color: var(--Text-Negative-Primary); }

/* ---------- Layout ---------- */
.container {
  width: 100%; max-width: var(--deskXl);
  margin-inline: auto; padding-inline: var(--content-padding);
}
