/* ============================================================
   THE MARKET LAB — base
   Tokens, reset, tipografie.
   ============================================================ */

/* Culorile și fonturile sunt în tokens.css (încărcat înaintea acestui fișier). */

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--void);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* clip nu creează container de scroll (hidden ar strica position: sticky);
     hidden rămâne ca rezervă pentru browsere vechi. */
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }

::selection { background: var(--red-deep); color: var(--ink); }

/* ---------- Tipografie ---------- */

h1, h2, h3 { margin: 0; font-weight: 400; }

.display {
  font-family: var(--f-display);
  font-weight: 500;
  text-transform: uppercase;
  /* Oswald urcă accentele la 1.058em peste linia de bază (Â, Î) și coboară
     virgulele la -0.323em (Ț, Ș). Sub aceste valori diacriticele se ciocnesc. */
  line-height: 1.2;
  letter-spacing: -0.004em;
  text-wrap: balance;
}

.display--l  { font-size: clamp(2.1rem, 5.4vw, 4.3rem); line-height: 1.22; }
.display--m  { font-size: clamp(1.5rem, 3.1vw, 2.5rem); line-height: 1.16; }

/* Linia aprinsă: gradient + glow, nu culoare plată */
.hot {
  background: linear-gradient(180deg, #E04A55 0%, #C33341 44%, #8A2430 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 46px rgba(206, 54, 68, 0.55));
}

.lede {
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-70);
  max-width: 46ch;
}

p { margin: 0 0 1.1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

.dim  { color: var(--ink-dim); }
.tiny { font-size: 0.8125rem; line-height: 1.55; }

.mono {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.mono--red { color: var(--red-hot); }

.tag { display: inline-flex; align-items: center; gap: 0.8rem; white-space: nowrap; }
.tag::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px 2px rgba(155, 41, 53, 0.8);
}

/* ---------- Sticlă ---------- */

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-lg);
  backdrop-filter: blur(24px) saturate(125%);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.95), var(--glass-lift);
}

/* ---------- Butoane ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1.5rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
              background 0.5s var(--ease), color 0.5s var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn--red {
  color: #F4EFE8;
  background: linear-gradient(180deg, var(--red-hot) 0%, var(--red) 52%, var(--red-dark) 100%);
  box-shadow: 0 10px 34px -8px rgba(155, 41, 53, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.btn--red:hover { box-shadow: 0 14px 44px -8px rgba(155, 41, 53, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.2); }

.btn--ghost {
  color: var(--ink);
  background: var(--glass-soft);
  border: 1px solid var(--hairline-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn--ghost:hover { border-color: rgba(155, 41, 53, 0.6); box-shadow: 0 0 30px -8px rgba(155, 41, 53, 0.55); }

/* O lumânare mică în buton */
.btn__tick {
  width: 3px; height: 11px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.55;
  transform: scaleY(0.55);
  transition: transform 0.55s var(--ease), opacity 0.4s var(--ease);
}
.btn:hover .btn__tick { transform: scaleY(1); opacity: 1; }

/* ---------- Legături ---------- */

a { color: inherit; text-decoration: none; }

.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.35rem;
  color: var(--ink);
}
.link::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--hairline-2);
}
.link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--red-hot), var(--red));
  box-shadow: 0 0 12px rgba(155, 41, 53, 0.8);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.6s var(--ease);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }

:focus-visible { outline: 1px solid var(--red-hot); outline-offset: 5px; }

/* ---------- Grilă ---------- */

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--measure));
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1.25rem, 3vw, 2.5rem);
}

.place-a      { grid-column: 1 / span 6; }
.place-end    { grid-column: 8 / span 5; }

@media (max-width: 900px) {
  .grid > * { grid-column: 1 / -1 !important; }
}

