/* ============================================================
   MOV — staging hub (the launcher served at the root in staging).
   Self-contained and CSP-safe (the security headers forbid inline
   styles/scripts), so this is a committed stylesheet served from
   /static. It declares the vendored brand @font-face directly so the
   page renders without depending on the panel asset build.
   Brand: Mov Purple accent on a near-white surface (docs/brand.md);
   neutral grays are the sanctioned "app chrome" system.
   ============================================================ */

/* Fredoka — latin-ext */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/vendor/fonts/fredoka-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fredoka — latin */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/vendor/fonts/fredoka-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Hanken Grotesk — latin-ext */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/static/vendor/fonts/hanken-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Hanken Grotesk — latin */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/static/vendor/fonts/hanken-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --mov-purple: #9044fc;
  --mov-white: #fffffa;
  --ink: #1b1520;
  --ink-2: #5c5566;
  --surface: #ffffff;
  --page: #faf8fe;
  --border: #ebe6f3;
  --purple-soft: #f1e9ff;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  padding: clamp(1.5rem, 5vw, 4rem) clamp(1rem, 5vw, 3rem);
  background: var(--page);
  color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Header ─────────────────────────────────────────────── */
.hub-head {
  max-width: 60rem;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.hub-lockup {
  width: min(180px, 55vw);
  height: auto;
  margin-bottom: 1.25rem;
}

.hub-eyebrow {
  margin: 0 0 0.5rem;
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--mov-purple);
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hub-title {
  margin: 0.5rem 0 0.75rem;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hub-sub {
  margin: 0.15rem 0;
  color: var(--ink-2);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
}

.hub-sub[lang='ro'] {
  opacity: 0.72;
}

/* ── Sections + grid ────────────────────────────────────── */
.hub {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3rem);
}

.hub-section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin-bottom: 1rem;
}

.hub-section-title {
  margin: 0;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.375rem;
}

.hub-section-note {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

/* ── Card ───────────────────────────────────────────────── */
.card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(27 21 32 / 4%);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--mov-purple);
  box-shadow: 0 12px 28px rgb(144 68 252 / 14%);
  outline: none;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--purple-soft);
  color: var(--mov-purple);
}

.card-icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.badge {
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--mov-purple);
  font-weight: 700;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.badge-web {
  background: #eef0f4;
  color: var(--ink-2);
}

.card-title {
  margin: 0 0 0.15rem;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
}

.card-role {
  margin: 0 0 0.75rem;
  color: var(--mov-purple);
  font-weight: 600;
  font-size: 0.875rem;
}

.card-desc {
  margin: 0 0 0.9rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.card-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.875rem;
}

.card-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink);
}

.card-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--mov-purple);
  font-weight: 700;
}

.card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--mov-purple);
  font-weight: 700;
  font-size: 0.9375rem;
}

.card-cta .arrow {
  width: 1.05rem;
  height: 1.05rem;
  transition: transform 0.15s ease;
}

.card:hover .card-cta .arrow,
.card:focus-visible .card-cta .arrow {
  transform: translateX(3px);
}

/* ── Footer ─────────────────────────────────────────────── */
.hub-foot {
  max-width: 72rem;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  color: var(--ink-2);
  font-size: 0.8125rem;
}

.hub-foot a {
  color: var(--ink-2);
  text-decoration: none;
}

.hub-foot a:hover {
  color: var(--mov-purple);
  text-decoration: underline;
}
