/* Markezin holding site. Tokens from the Figma "Markezin-Website" file. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #23246b;
  --orange: #ff6b35;
  --ink: #15151c;
  --white: #ffffff;
  --off-white: #f6f5f2;
  --lavender: #eeedf8;
  --tint-navy: #e6e6f2;
  --tint-orange: #ffe7dd;
  --peach: #fff1ea;
  --line: #e4e3de;
  --text-muted: #4a4b5c;
  --on-dark-muted: #c9c9d6;
  --footer-bg: #0b0b10;
  --footer-line: #23232f;

  --radius-card: 16px;
  --radius-btn: 10px;
  --page-pad: clamp(20px, 8.33vw, 120px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
p, h1, h2, h3, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ---------- Buttons & pills (Components page) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 28px; border-radius: var(--radius-btn);
  font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none;
  border: 1.5px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--pill { border-radius: 999px; }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: #1a1b52; }
.btn--outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--lavender); }

.pill {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  font-size: 18px; font-weight: 800; line-height: 1.5;
}
/* Ink text on orange: white on #ff6b35 is below WCAG AA contrast. */
.pill--orange { background: var(--orange); color: var(--ink); }

/* ---------- Nav ---------- */
.nav { border-bottom: 1px solid var(--line); background: var(--white); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--page-pad);
}
.lockup { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.lockup__word { display: inline-flex; align-items: flex-start; }
.nav .btn { padding: 13px 24px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
  display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center;
  padding: 72px var(--page-pad) 96px;
  background:
    radial-gradient(60% 80% at 15% 0%, var(--lavender) 0%, transparent 70%),
    radial-gradient(60% 80% at 85% 10%, var(--peach) 0%, transparent 70%),
    var(--white);
}
.hero__title {
  font-size: clamp(44px, 6.67vw, 96px); font-weight: 400;
  line-height: .98; letter-spacing: -0.055em; color: var(--ink);
}
.hero__lead { max-width: 640px; font-size: 18px; line-height: 1.55; color: var(--text-muted); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 12px; }

/* ---------- Section headings ---------- */
.section-title {
  font-size: clamp(32px, 3.9vw, 56px); font-weight: 400; line-height: 1.05;
  letter-spacing: -0.03em; text-align: center;
}
.section-lead {
  max-width: 780px; margin: 22px auto 0; text-align: center;
  font-size: 18px; line-height: 1.55; color: var(--text-muted);
}
.section-title--left, .section-lead--left { text-align: left; margin-left: 0; }

/* ---------- Channel hub (Figma 20:14851, 1120 x 660) ---------- */
.hub-section { padding: 48px var(--page-pad) 120px; }
.hub { max-width: 1120px; margin: 24px auto 0; container-type: inline-size; }

.hub__canvas {
  /* 1 design px = --u, so the diagram scales as one illustration. */
  --u: calc(100cqw / 1120);
  position: relative; aspect-ratio: 1120 / 660; overflow: hidden;
  border-radius: calc(24 * var(--u));
  background:
    radial-gradient(circle, rgba(35, 36, 107, .14) 1.3px, transparent 1.7px) calc(26.7 * var(--u) - 14px) calc(26.7 * var(--u) - 14px) / 28px 28px,
    linear-gradient(90deg, var(--lavender) 0%, #f6eff0 50%, var(--peach) 100%);
}
.hub__connectors, .hub__halo, .hub__core, .hub__chip, .tag { position: absolute; }
.hub__connectors { inset: 0; width: 100%; height: 100%; }
.hub__halo { left: calc(410 * var(--u)); top: calc(180 * var(--u)); width: calc(300 * var(--u)); height: calc(300 * var(--u)); }
.hub__core {
  left: calc(432 * var(--u)); top: calc(202 * var(--u));
  width: calc(256 * var(--u)); height: calc(256 * var(--u));
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); border-radius: 50%;
  box-shadow: 0 calc(20 * var(--u)) calc(50 * var(--u)) rgba(35, 36, 107, .3);
}
.hub__core img { width: calc(86 * var(--u)); height: auto; }

.hub__chip {
  left: calc(454.5 * var(--u)); top: calc(427 * var(--u));
  display: flex; align-items: center; gap: calc(12 * var(--u));
  padding: calc(12 * var(--u)) calc(26 * var(--u)) calc(12 * var(--u)) calc(12 * var(--u));
  background: var(--orange); color: var(--ink); border-radius: 999px;
  font-size: calc(18 * var(--u)); font-weight: 700; line-height: 1.2; white-space: nowrap;
  box-shadow: 0 calc(10 * var(--u)) calc(24 * var(--u)) rgba(255, 107, 53, .35);
}
.hub__chip-icon {
  display: flex; align-items: center; justify-content: center;
  width: calc(30 * var(--u)); height: calc(30 * var(--u));
  background: var(--ink); border-radius: 50%;
}
.hub__chip-icon img { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }

.tag {
  display: flex; align-items: center; gap: calc(14 * var(--u));
  padding: calc(10 * var(--u)) calc(26 * var(--u)) calc(10 * var(--u)) calc(10 * var(--u));
  background: var(--white); color: var(--navy); border-radius: 999px;
  font-size: calc(19 * var(--u)); font-weight: 600; line-height: 1.2; white-space: nowrap;
  box-shadow: 0 calc(10 * var(--u)) calc(26 * var(--u)) rgba(35, 36, 107, .1);
}
.tag__icon {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: calc(40 * var(--u)); height: calc(40 * var(--u));
  background: #ffe6da; border-radius: 50%;
}
.tag__icon img { width: auto; height: auto; max-width: calc(17 * var(--u)); max-height: calc(17 * var(--u)); }
.tag--social  { left: calc(487 * var(--u)); top: calc(66 * var(--u)); }
.tag--website { left: calc(167 * var(--u)); top: calc(120 * var(--u)); }
.tag--search  { left: calc(793 * var(--u)); top: calc(120 * var(--u)); }
.tag--link    { left: calc(79 * var(--u));  top: calc(300 * var(--u)); }
.tag--buy     { left: calc(849 * var(--u)); top: calc(300 * var(--u)); }
.tag--person  { left: calc(162 * var(--u)); top: calc(500 * var(--u)); }
.tag--video   { left: calc(798 * var(--u)); top: calc(500 * var(--u)); }

.hub__caption { margin-top: 16px; text-align: center; font-size: 14px; color: var(--text-muted); }

/* Small screens: the scaled diagram gets too small to read, so stack it. */
@media (max-width: 700px) {
  .hub-section { padding: 72px var(--page-pad); }
  .hub__canvas {
    --u: 1px;
    aspect-ratio: auto; padding: 28px 16px 24px; border-radius: 20px;
    display: flex; flex-direction: column; align-items: center;
  }
  .hub__connectors, .hub__halo { display: none; }
  .hub__core { position: relative; left: auto; top: auto; width: 160px; height: 160px; box-shadow: 0 0 0 22px rgba(35, 36, 107, .12), 0 20px 50px rgba(35, 36, 107, .3); }
  .hub__core img { width: 56px; }
  .hub__chip { position: relative; left: auto; top: auto; margin-top: -24px; font-size: 16px; }
  .hub__tags { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; margin-top: 28px; }
  .tag { position: static; font-size: 15px; padding-right: 14px; white-space: normal; }
  .tag__icon { width: 34px; height: 34px; }
}

/* ---------- About cards (Components: Card) ---------- */
.about { padding: 0 var(--page-pad) 120px; max-width: calc(var(--max) + 2 * var(--page-pad)); margin: 0 auto; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.card {
  padding: 32px; border-radius: var(--radius-card);
  background: var(--white); border: 1px solid var(--line);
}
.card__num { font-size: 13px; color: var(--text-muted); letter-spacing: .04em; }
.card__title { margin-top: 12px; font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1.25; }
.card__copy { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.card--navy { background: var(--navy); border-color: var(--navy); }
.card--navy .card__num, .card--navy .card__copy { color: #c9cae6; }
.card--navy .card__title { color: var(--white); }
.card--lavender { background: var(--lavender); border-color: var(--lavender); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* ---------- CTA band (Components: CTA) ---------- */
.cta {
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
  max-width: var(--max); margin: 0 auto 120px; padding: 64px 24px;
  background: var(--orange); border-radius: 24px;
  width: calc(100% - 2 * var(--page-pad));
}
.cta__title { font-size: clamp(28px, 3vw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.cta__copy { font-size: 17px; color: var(--ink); max-width: 520px; }
.cta .btn { margin-top: 8px; }

/* ---------- Footer ---------- */
.footer { background: var(--footer-bg); color: var(--on-dark-muted); font-size: 15px; }
.footer__inner { padding: 64px var(--page-pad) 40px; display: flex; flex-direction: column; gap: 28px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__head { color: var(--white); font-weight: 700; }
.footer a { color: var(--on-dark-muted); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--footer-line); font-size: 14px;
}
.footer__locale { padding: 10px 16px; border: 1px solid #3a3a4a; border-radius: 999px; color: var(--white); }
