/* ==========================================================================
   Meridian Digital — design layer v2
   Loaded after style.css. Overrides type, colour and hero composition.
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #1b5cf0;
  --blue-deep: #0b3ac7;
  --cyan: #3ed3f4;
  --cyan-soft: #cdf3fd;
  --ink: #060d16;
  --ink-soft: #16233a;
  --paper: #f6f8fc;
  --gold: #f5c961;
  --line: rgba(6, 13, 22, 0.1);
  --muted: #4a5b73;
  --muted-2: #7d8da3;
  --radius: 22px;
  --font-latin: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Archivo", "Space Grotesk", system-ui, sans-serif;
  --font-cjk: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-latin), var(--font-cjk);
  background: var(--paper);
  color: var(--ink);
  letter-spacing: -0.005em;
}

h1, h2, h3, .brand__name, .pack__price, .trust__stat b, .case__title {
  font-family: var(--font-display), var(--font-cjk);
  letter-spacing: -0.035em;
}

h1 { font-weight: 900; line-height: 0.98; }
h2 { font-weight: 900; line-height: 1.04; }
h3 { font-weight: 800; letter-spacing: -0.02em; }

.section-head h2,
.hero h1 {
  font-size: clamp(34px, 4.4vw, 62px);
}

/* eyebrow becomes a numbered label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-latin);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: currentColor;
  display: inline-block;
}

/* ---------- buttons ---------- */
.btn {
  border-radius: 999px;
  font-family: var(--font-latin), var(--font-cjk);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s,
    background 0.25s, color 0.25s, border-color 0.25s;
}
.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 30px -18px rgba(6, 13, 22, 0.85);
}
.btn--primary:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -18px rgba(27, 92, 240, 0.7);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(6, 13, 22, 0.16);
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  background: #fff;
  border-color: var(--ink);
  transform: translateY(-2px);
}
.btn--blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 30px -16px rgba(27, 92, 240, 0.8);
}
.btn--blue:hover { background: var(--blue-deep); transform: translateY(-2px); }
.btn--gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 14px 30px -18px rgba(245, 201, 97, 0.9);
}
.btn--gold:hover { background: #ffd781; transform: translateY(-2px); }

/* ---------- header ---------- */
.site-header {
  background: rgba(246, 248, 252, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(6, 13, 22, 0.07);
}
.site-header.is-stuck {
  background: rgba(246, 248, 252, 0.92);
  box-shadow: 0 18px 40px -34px rgba(6, 13, 22, 0.6);
}
.brand__name { font-weight: 900; letter-spacing: -0.03em; }
.nav__links a {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}
.nav__links a:hover { color: var(--blue); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 84px;
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(62, 211, 244, 0.5), transparent 62%),
    radial-gradient(700px 480px at 12% 92%, rgba(27, 92, 240, 0.1), transparent 64%),
    linear-gradient(178deg, #eaf7ff 0%, #f4faff 42%, #ffffff 78%);
  border-bottom: 1px solid rgba(6, 13, 22, 0.07);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(6, 13, 22, 0.12);
  box-shadow: 0 10px 26px -20px rgba(6, 13, 22, 0.55);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.hero__badge b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(40px, 5.4vw, 78px);
  letter-spacing: -0.05em;
}
.hero h1 .accent {
  background: linear-gradient(96deg, var(--blue) 0%, #2ea6ff 52%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  margin-top: 22px;
  max-width: 30em;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--muted);
}
.hero__sub strong { color: var(--ink); font-weight: 700; }

.hero__cta { margin-top: 28px; gap: 12px; }
.hero__note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted-2);
}

.hero__proof {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}
.proof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(6, 13, 22, 0.1);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* hero stage */
.hero__stage {
  position: relative;
  aspect-ratio: 1 / 0.94;
  min-height: 460px;
}
.hero__orbits { position: absolute; inset: 4% -6% -6% -6%; opacity: 0.9; }
.hero__orbits svg { width: 100%; height: 100%; }

.vcard {
  position: absolute;
  width: 30%;
  aspect-ratio: 9 / 13.5;
  border-radius: 20px;
  overflow: hidden;
  background: #0a1220;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 34px 60px -34px rgba(6, 13, 22, 0.65), 0 0 0 6px rgba(255, 255, 255, 0.55);
  transform: translateZ(0);
  isolation: isolate;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s;
}
.vcard--a { left: 2%; top: 16%; transform: rotate(-9deg); }
.vcard--b { left: 34%; top: 4%; width: 33%; transform: rotate(2deg); z-index: 3; }
.vcard--c { left: 66%; top: 20%; transform: rotate(8deg); }
.hero__stage:hover .vcard--a { transform: rotate(-12deg) translateY(-6px); }
.hero__stage:hover .vcard--b { transform: rotate(0deg) translateY(-8px) scale(1.02); }
.hero__stage:hover .vcard--c { transform: rotate(11deg) translateY(-6px); }

.vcard__tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.vcard__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 10px 24px -12px rgba(6, 13, 22, 0.7);
  z-index: 2;
  transition: opacity 0.25s, transform 0.25s;
}
.vcard:hover .vcard__play { transform: scale(1.08); }
.vcard.is-playing .vcard__play { opacity: 0; }

/* ticker ring around the cards */
.hero__ticker {
  position: absolute;
  inset: -3% -2% -2% -2%;
  z-index: 4;
  pointer-events: none;
  animation: spin 44s linear infinite;
}
.hero__ticker text {
  font-family: var(--font-latin);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  fill: rgba(6, 13, 22, 0.44);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* doodles */
.doodle { position: absolute; z-index: 5; pointer-events: none; }
.doodle--spark { right: 6%; top: 2%; width: 46px; color: var(--cyan); animation: twinkle 5s ease-in-out infinite; }
.doodle--heart { left: 6%; bottom: 6%; width: 34px; color: var(--blue); animation: twinkle 6.5s ease-in-out infinite; }
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.9; }
  50% { transform: scale(1.12) rotate(9deg); opacity: 1; }
}

.chip-float {
  position: absolute;
  z-index: 6;
  background: #fff;
  border: 1px solid rgba(6, 13, 22, 0.1);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 22px 44px -28px rgba(6, 13, 22, 0.6);
}
.chip-float b {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--blue);
}
.chip-float span { font-size: 11px; color: var(--muted-2); font-weight: 600; }
.chip-float--br { right: 0; bottom: 6%; }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid rgba(6, 13, 22, 0.08);
  background: var(--ink);
  color: #fff;
  padding: 13px 0;
}
.marquee__track {
  display: flex;
  gap: 34px;
  width: max-content;
  animation: slide 34s linear infinite;
}
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  font-family: var(--font-latin);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.78);
}
.marquee span::after { content: "✦"; color: var(--cyan); font-size: 11px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- trust strip ---------- */
.trust { background: #fff; border-bottom: 1px solid rgba(6, 13, 22, 0.08); }
.trust__label {
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: 0.24em;
}
.trust__stat b {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

/* ---------- sections ---------- */
.section { padding: 92px 0; }
.section--sky {
  background: linear-gradient(180deg, #eaf4ff 0%, #f6f9fe 55%, #ffffff 100%);
}

/* business cards */
.biz-card {
  border-radius: 26px;
  border: 1px solid rgba(6, 13, 22, 0.09);
  box-shadow: 0 34px 70px -48px rgba(6, 13, 22, 0.55);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s;
}
.biz-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 44px 80px -46px rgba(6, 13, 22, 0.5);
}

/* pricing */
.pack {
  border-radius: 24px;
  border: 1px solid rgba(6, 13, 22, 0.1);
  box-shadow: 0 30px 60px -46px rgba(6, 13, 22, 0.5);
}
.pack--feat {
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(140deg, var(--blue), var(--cyan) 55%, var(--gold)) border-box;
  border: 2px solid transparent;
}
.pack__price {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.05em;
}
.pack__name {
  font-family: var(--font-latin);
  font-size: 11px;
  letter-spacing: 0.22em;
}
.price-glance {
  border-radius: 24px;
  box-shadow: 0 40px 70px -50px rgba(6, 13, 22, 0.55);
}
.price-glance b { font-family: var(--font-display); font-weight: 900; }

/* footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
}
.site-footer .footer__brand p { color: rgba(255, 255, 255, 0.55); }

@media (max-width: 900px) {
  .hero { padding: 40px 0 64px; }
  .hero__inner { grid-template-columns: 1fr; gap: 26px; }
  .hero__stage { min-height: 380px; order: 0; }
  .hero h1 { font-size: clamp(34px, 9vw, 46px); }
  .section { padding: 66px 0; }
  .hero__ticker { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__ticker, .marquee__track, .doodle { animation: none !important; }
}

/* ---------- hero fine-tuning ---------- */
.hero__ticker {
  inset: -9% -6% -6% -6%;
  opacity: 0.5;
}
.hero__ticker text {
  font-size: 10.5px;
  letter-spacing: 0.3em;
  fill: rgba(6, 13, 22, 0.36);
}
.chip-float--br { right: 4%; bottom: 16%; }
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  font-family: var(--font-latin);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hero__scroll::after {
  content: "";
  width: 46px;
  height: 1px;
  background: currentColor;
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleX(0.5); transform-origin: left; opacity: 0.5; }
  50% { transform: scaleX(1); transform-origin: left; opacity: 1; }
}

/* ---------- section head ---------- */
.section-head {
  border-top: 1px solid rgba(6, 13, 22, 0.12);
  padding-top: 26px;
  margin-bottom: 44px;
}
.section-head h2 { margin: 18px 0 14px; }
.section-head p { max-width: 44em; font-size: 15.5px; line-height: 1.75; }

/* ---------- trust strip ---------- */
.trust__inner { padding: 34px 0; }
.trust__stat b { font-size: 40px; }
.trust__stat span { font-size: 12px; letter-spacing: 0.02em; }

/* ---------- inner page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 64px;
  background:
    radial-gradient(760px 420px at 90% 0%, rgba(62, 211, 244, 0.36), transparent 60%),
    radial-gradient(620px 420px at 6% 100%, rgba(27, 92, 240, 0.09), transparent 62%),
    linear-gradient(180deg, #eef8ff 0%, #f7fbff 60%, #ffffff 100%);
  border-bottom: 1px solid rgba(6, 13, 22, 0.07);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n2)' opacity='0.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-family: var(--font-display), var(--font-cjk);
  font-weight: 900;
  font-size: clamp(34px, 4.6vw, 64px);
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.page-hero .lead {
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--muted);
  max-width: 40em;
}
.crumb {
  font-family: var(--font-latin);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 26px;
}
.crumb a:hover { color: var(--blue); }

/* ---------- misc polish ---------- */
::selection { background: rgba(62, 211, 244, 0.4); color: var(--ink); }

.card, .svc, .case, .step, .role, .deploy, .why__item {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s, border-color 0.3s;
}
.step:hover, .role:hover, .deploy:hover, .why__item:hover {
  transform: translateY(-4px);
}

.faq details {
  border-radius: 16px;
  border: 1px solid rgba(6, 13, 22, 0.1);
  background: #fff;
  padding: 4px 20px;
  margin-bottom: 10px;
}
.faq summary {
  font-family: var(--font-display), var(--font-cjk);
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 16px 0;
}

/* ---------- mobile overflow guards ---------- */
html, body { overflow-x: clip; }
@media (max-width: 900px) {
  .hero__inner { min-width: 0; }
  .hero__copy, .hero__stage { min-width: 0; width: 100%; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 0 1 auto; }
  .hero__sub { font-size: 15.5px; }
  .hero__proof { gap: 7px; }
  .proof { padding: 7px 12px; font-size: 12px; }
  .hero__stage { min-height: 340px; aspect-ratio: 1 / 0.86; }
  .vcard { border-radius: 16px; box-shadow: 0 22px 40px -26px rgba(6,13,22,.6), 0 0 0 4px rgba(255,255,255,.55); }
  .chip-float { display: none; }
  .doodle--spark { width: 34px; }
  .doodle--heart { width: 26px; }
  .marquee span { font-size: 11px; letter-spacing: 0.2em; }
}

/* nav spacing with the extra Home item */
.nav__links { margin-right: 22px; }
@media (max-width: 1150px) {
  .nav__links { gap: 14px; font-size: 13.5px; margin-right: 12px; }
  .nav__actions { gap: 8px; }
}

/* two WhatsApp numbers in the contact block / footer */
.contact__direct { gap: 8px; }
.contact__direct a { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.contact__direct a + a { font-size: 15px; font-weight: 700; opacity: 0.72; }
.contact__direct a:hover { opacity: 1; }
.footer__col li a[href*="wa.me"] { font-variant-numeric: tabular-nums; }
