/* ============================================================================
   more30 — Design System Hub (/design)
   טוקנים מועתקים ידנית ממקור-האמת: portal/src/styles.css
   ========================================================================== */

:root {
  color-scheme: dark;

  --royal: #0B0D2E;
  --royal-2: #12153F;
  --royal-3: #1A1E55;
  --violet: #241B54;
  --gold: #C9A227;
  --gold-soft: #E3C765;
  --emerald: #14B88A;
  --ink: #ECE9F5;
  --ink-2: #B9B6D6;
  --muted: #8E8BB2;
  --line: rgba(201, 162, 39, 0.20);
  --line-2: rgba(236, 233, 245, 0.10);
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-display: 'Suez One', 'Heebo', system-ui, sans-serif;
  --font-names: 'Secular One', 'Heebo', system-ui, sans-serif;
  --font-serif: 'Frank Ruhl Libre', Georgia, serif;
  --font-ui: 'Heebo', system-ui, sans-serif;

  --more30-auth-inset: 124px;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  background: var(--royal);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
}

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px;
  background: var(--gold); color: var(--royal); padding: 10px 18px;
  border-radius: 4px; z-index: 200; transition: top 0.2s var(--ease);
  font-family: var(--font-ui); font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 32px; }

.eyebrow {
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; color: var(--gold); margin: 0 0 14px;
}

h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.005em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(34px, 6vw, 68px); line-height: 1.12; }
h2 { font-size: clamp(26px, 4vw, 40px); line-height: 1.2; }

p { margin: 0; }
p.lede, p.section-lede { font-family: var(--font-serif); font-weight: 300; font-size: clamp(17px, 2vw, 20px); line-height: 1.8; color: var(--ink-2); max-width: 62ch; }

.num { font-variant-numeric: tabular-nums lining-nums; unicode-bidi: isolate; }

/* ---------- buttons (>=24px touch target) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-size: 15px; font-weight: 500;
  padding: 14px 30px; min-height: 24px; border: 1px solid var(--gold);
  border-radius: 3px; text-decoration: none; cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.btn-primary { background: var(--gold); color: var(--royal); }
.btn-primary:hover { background: transparent; color: var(--gold-soft); box-shadow: 0 0 0 1px var(--gold) inset; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-quiet:hover { color: var(--gold-soft); border-color: var(--gold); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 46, 0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.nav__wrap {
  max-width: var(--wrap); margin: 0 auto; padding-block: 14px;
  padding-inline: 32px;
  padding-inline-end: max(32px, calc(var(--more30-auth-inset, 124px) - max(0px, (100vw - var(--wrap)) / 2)));
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.nav__brand { font-family: var(--font-names); color: var(--gold-soft); font-size: 19px; text-decoration: none; }
.nav__links { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink-2); text-decoration: none; font-size: 14px; padding: 4px 2px; }
.nav__links a:hover { color: var(--gold-soft); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 96px 88px; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__bg .grad {
  position: absolute; inset: -20%;
  background:
    radial-gradient(48% 42% at 82% 8%, rgba(201, 162, 39, 0.22), transparent 60%),
    radial-gradient(60% 55% at 12% 100%, rgba(36, 27, 84, 0.85), transparent 65%),
    linear-gradient(160deg, var(--royal) 0%, var(--royal-2) 48%, var(--violet) 100%);
}
.hero__bg svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.16; }
.hero__content { position: relative; z-index: 1; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 34px; }
.hero .lede { margin-top: 18px; }

/* ---------- sections ---------- */
.section { padding-block: 76px; border-top: 1px solid var(--line-2); }
.section--alt { background: var(--royal-2); }
.section > .wrap > h2 { margin-top: 4px; }
.section-lede { margin-top: 14px; margin-bottom: 40px; }

/* ---------- swatches ---------- */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin-top: 40px; }
.swatch { border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: var(--royal-3); }
.swatch__chip { height: 84px; }
.swatch__meta { padding: 14px 16px; }
.swatch__name { font-family: var(--font-names); font-size: 16px; color: var(--ink); }
.swatch__hex { font-family: var(--font-ui); font-size: 13px; color: var(--muted); margin-top: 4px; direction: ltr; text-align: start; }
.swatch__role { font-family: var(--font-serif); font-size: 13px; color: var(--ink-2); margin-top: 8px; line-height: 1.6; }

/* ---------- type specimens ---------- */
.type-specimens { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 40px; }
.specimen { border: 1px solid var(--line-2); border-radius: 10px; padding: 28px 24px; background: var(--royal); }
.specimen__role { font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.14em; color: var(--gold); text-transform: none; margin-bottom: 14px; }
.specimen__sample { font-size: 30px; line-height: 1.3; color: var(--ink); margin-bottom: 12px; }
.specimen--display .specimen__sample { font-family: var(--font-display); }
.specimen--names .specimen__sample { font-family: var(--font-names); }
.specimen--serif .specimen__sample { font-family: var(--font-serif); font-weight: 300; font-size: 22px; line-height: 1.8; }
.specimen--ui .specimen__sample { font-family: var(--font-ui); font-size: 22px; }
.specimen__name { font-family: var(--font-ui); font-size: 14px; color: var(--muted); }

/* ---------- parameter dictionary table ---------- */
.table__wrap { width: 100%; overflow-x: auto; margin-top: 8px; border: 1px solid var(--line-2); border-radius: 10px; }
.params-table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: 14.5px; background: var(--royal-3); }
.params-table caption { caption-side: top; text-align: start; padding: 14px 18px 0; color: var(--muted); font-size: 13px; }
.params-table th, .params-table td { padding: 13px 18px; text-align: start; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.params-table thead th { background: var(--violet); color: var(--ink); font-weight: 600; white-space: nowrap; }
.params-table tbody tr:last-child td { border-bottom: none; }
.params-table tbody tr:hover { background: var(--royal-2); }
.params-table code { direction: ltr; unicode-bidi: isolate; font-size: 13px; color: var(--gold-soft); background: rgba(201,162,39,0.10); padding: 2px 7px; border-radius: 4px; }

/* ---------- engine section ---------- */
.engine-card { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; margin-top: 34px; border: 1px solid var(--line); border-radius: 12px; padding: 32px; background: linear-gradient(135deg, var(--royal-3), var(--violet)); }
.engine-card__text { flex: 1 1 320px; }
.engine-card__text p { font-family: var(--font-serif); font-weight: 300; font-size: 17px; line-height: 1.8; color: var(--ink-2); }
.engine-card ul { margin: 16px 0 0; padding-inline-start: 22px; color: var(--ink-2); font-size: 15px; line-height: 1.9; }
.engine-card__cta { flex: 0 0 auto; }

/* ---------- roadmap ---------- */
.roadmap-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 14px; }
.roadmap-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--royal-2);
  font-family: var(--font-ui); font-size: 15px; color: var(--ink);
}
.tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-2); padding-block: 32px; }
.footer__wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--muted); }
.footer a { color: var(--gold-soft); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media (max-width: 720px) {
  .wrap { padding-inline: 20px; }
  .nav__wrap { padding-inline: 20px; padding-inline-end: max(20px, calc(var(--more30-auth-inset, 124px) - 8px)); }
  .hero { padding-block: 64px 56px; }
  .section { padding-block: 56px; }
  .roadmap-list li { flex-direction: column; align-items: flex-start; }
}
