/* Mavera — TailAwesome-inspired light agency tokens */
:root {
  --mv-ink: #0f172a;
  --mv-muted: #64748b;
  --mv-line: #e2e8f0;
  --mv-paper: #ffffff;
  --mv-tide: #0f766e;
  --mv-tide-hover: #0d9488;
  --mv-soft: #f0fdfa;
  --mv-bg: #f8fafc;
  --mv-font-display: "Fraunces", Georgia, serif;
  --mv-font-sans: "DM Sans", system-ui, sans-serif;
  --mv-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mv-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --mv-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.mv-body {
  margin: 0;
  font-family: var(--mv-font-sans);
  color: var(--mv-ink);
  background: var(--mv-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.mv-muted { color: var(--mv-muted); }
.mv-shell { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

.mv-top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mv-line);
}
.mv-top-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 0;
}
.mv-brand {
  font-family: var(--mv-font-display);
  font-weight: 700; font-size: 1.2rem;
  text-decoration: none; color: var(--mv-ink);
}
.mv-brand span { color: var(--mv-tide); }

.mv-rail {
  display: none; align-items: center; gap: 0.95rem;
  font-size: 0.86rem; font-weight: 500;
}
.mv-rail a { color: var(--mv-muted); text-decoration: none; }
.mv-rail a:hover, .mv-rail a.is-on { color: var(--mv-tide); }
.mv-rail .mv-nav-cta {
  background: var(--mv-tide); color: #fff !important;
  padding: 0.45rem 0.95rem; border-radius: 999px; font-weight: 700;
}
.mv-rail .mv-nav-cta:hover { background: var(--mv-tide-hover); }

.mv-lang {
  display: flex; gap: 0.15rem;
  margin-inline-start: 0.25rem; padding-inline-start: 0.5rem;
  border-inline-start: 1px solid var(--mv-line);
}
.mv-lang a {
  padding: 0.18rem 0.35rem; border-radius: 0.3rem;
  color: var(--mv-muted); text-decoration: none;
  font-size: 0.7rem; font-weight: 700;
}
.mv-lang a.is-on { color: var(--mv-tide); background: var(--mv-soft); }

.mv-burger {
  display: inline-flex; border: 1px solid var(--mv-line);
  background: var(--mv-paper); border-radius: 0.5rem;
  padding: 0.45rem 0.75rem; font-size: 0.85rem; cursor: pointer;
}
.mv-drawer { display: none; border-top: 1px solid var(--mv-line); padding: 1rem 0 1.2rem; }
.mv-drawer.is-open { display: block; }
.mv-drawer a {
  display: block; padding: 0.48rem 0;
  color: var(--mv-ink); text-decoration: none; font-weight: 500;
}
@media (min-width: 1024px) {
  .mv-rail { display: flex; }
  .mv-burger { display: none; }
}

.mv-hero { padding: 3.25rem 0 2.5rem; }
.mv-hero h1 {
  font-family: var(--mv-font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08; margin: 0.45rem 0 1rem;
  letter-spacing: -0.03em; max-width: 18ch;
}
.mv-kicker {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mv-tide);
}
.mv-lead {
  font-size: 1.08rem; color: var(--mv-muted);
  max-width: 36rem; line-height: 1.65; margin: 0;
}
.mv-cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.45rem; }
.mv-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.25rem; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 1px solid transparent;
  transition: background 0.2s, transform 0.2s var(--mv-ease);
}
.mv-btn-primary { background: var(--mv-tide); color: #fff; box-shadow: 0 8px 22px rgba(15, 118, 110, 0.25); }
.mv-btn-primary:hover { background: var(--mv-tide-hover); }
.mv-btn-ghost { background: var(--mv-paper); border-color: var(--mv-line); color: var(--mv-ink); }
.mv-btn-ghost:hover { border-color: var(--mv-tide); color: var(--mv-tide); }
.mv-btn-wa { background: #128c7e; color: #fff; }

.mv-section { padding: 3rem 0; border-top: 1px solid var(--mv-line); background: var(--mv-paper); }
.mv-section:nth-of-type(even) { background: var(--mv-bg); }
.mv-section h2 {
  font-family: var(--mv-font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  margin: 0 0 0.45rem; letter-spacing: -0.02em;
}
.mv-eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mv-tide); margin: 0 0 0.55rem;
}

.mv-grid { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
@media (min-width: 700px) {
  .mv-grid-2 { grid-template-columns: 1fr 1fr; }
  .mv-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.mv-grid-ports { grid-template-columns: 1fr; }
@media (min-width: 640px) { .mv-grid-ports { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .mv-grid-ports { grid-template-columns: 1fr 1fr 1fr; } }

/* Horizontal carousel */
.mv-carousel {
  position: relative;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.35rem;
}
.mv-carousel-viewport {
  overflow: hidden;
  border-radius: 1.05rem;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}
.mv-carousel-track {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.35rem 0.15rem 0.85rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mv-carousel-track::-webkit-scrollbar { display: none; }
.mv-carousel-btn {
  width: 2.4rem; height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--mv-line);
  background: var(--mv-paper);
  color: var(--mv-ink);
  font-size: 1.35rem; line-height: 1;
  cursor: pointer;
  box-shadow: var(--mv-shadow);
  flex-shrink: 0;
}
.mv-carousel-btn:hover { border-color: var(--mv-tide); color: var(--mv-tide); }
@media (max-width: 560px) {
  .mv-carousel { grid-template-columns: 1fr; }
  .mv-carousel-btn { display: none; }
}

.mv-sector-card {
  background: var(--mv-paper);
  border: 1px solid var(--mv-line);
  border-radius: 1rem;
  padding: 0;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 0 0 min(78vw, 17.5rem);
  scroll-snap-align: start;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--mv-ease);
}
.mv-sector-media {
  display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e2e8f0;
}
.mv-sector-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s var(--mv-ease);
}
.mv-sector-card:hover .mv-sector-media img { transform: scale(1.04); }
.mv-sector-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.mv-section:nth-of-type(even) .mv-sector-card { background: #fff; }
.mv-sector-card:hover {
  border-color: rgba(15, 118, 110, 0.4);
  box-shadow: var(--mv-shadow);
  transform: translateY(-2px);
}
.mv-sector-card h3 {
  font-family: var(--mv-font-display);
  font-size: 1.05rem; margin: 0 0 0.4rem;
}
.mv-sector-card p { margin: 0; color: var(--mv-muted); font-size: 0.88rem; line-height: 1.5; }
.mv-sector-card .more {
  display: inline-block; margin-top: auto; padding-top: 0.75rem;
  color: var(--mv-tide); font-weight: 700; font-size: 0.88rem;
}

.mv-sol-list { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.mv-sol-item {
  display: grid; gap: 0.65rem; align-items: start;
  background: var(--mv-paper); border: 1px solid var(--mv-line);
  border-radius: 1rem; padding: 1.1rem 1.2rem;
  text-decoration: none; color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mv-section:nth-of-type(even) .mv-sol-item { background: #fff; }
.mv-sol-item:hover { border-color: rgba(15, 118, 110, 0.35); box-shadow: var(--mv-shadow); }
@media (min-width: 700px) {
  .mv-sol-item { grid-template-columns: 3rem 1fr auto; align-items: center; }
}
.mv-sol-num {
  font-family: var(--mv-font-display);
  font-size: 1.25rem; font-weight: 700; color: var(--mv-tide);
}
.mv-sol-item h3 { font-family: var(--mv-font-display); font-size: 1.1rem; margin: 0 0 0.3rem; }
.mv-sol-item p { margin: 0; color: var(--mv-muted); font-size: 0.9rem; line-height: 1.5; }
.mv-sol-go { font-weight: 700; color: var(--mv-tide); font-size: 0.88rem; white-space: nowrap; }

.mv-steps { display: grid; gap: 0.9rem; margin-top: 1.5rem; }
@media (min-width: 800px) { .mv-steps { grid-template-columns: repeat(4, 1fr); } }
.mv-step {
  background: var(--mv-paper); border: 1px solid var(--mv-line);
  border-radius: 1rem; padding: 1.15rem;
}
.mv-section:nth-of-type(even) .mv-step { background: #fff; }
.mv-step-n { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; color: var(--mv-tide); margin-bottom: 0.45rem; }
.mv-step h3 { font-family: var(--mv-font-display); font-size: 1rem; margin: 0 0 0.35rem; }
.mv-step p { margin: 0; color: var(--mv-muted); font-size: 0.86rem; line-height: 1.5; }

.mv-tech-card {
  background: var(--mv-paper); border: 1px solid var(--mv-line);
  border-radius: 0.95rem; padding: 1rem 0.85rem; text-align: center;
  flex: 0 0 min(42vw, 9.5rem);
  scroll-snap-align: start;
}
.mv-section:nth-of-type(even) .mv-tech-card { background: #fff; }
.mv-tech-card img { width: 2.25rem; height: 2.25rem; margin: 0 auto 0.6rem; object-fit: contain; }
.mv-tech-card h3 { font-size: 0.88rem; margin: 0 0 0.3rem; font-weight: 700; }
.mv-tech-card p { margin: 0; font-size: 0.74rem; color: var(--mv-muted); line-height: 1.4; }

.mv-card {
  background: var(--mv-paper); border: 1px solid var(--mv-line);
  border-radius: 1.05rem; padding: 1.2rem;
}
.mv-card h3 { font-family: var(--mv-font-display); font-size: 1.1rem; margin: 0 0 0.4rem; }
.mv-card p { margin: 0; color: var(--mv-muted); line-height: 1.55; font-size: 0.92rem; }
.mv-card a.more {
  display: inline-block; margin-top: 0.8rem;
  color: var(--mv-tide); font-weight: 700; text-decoration: none;
}

.mv-browser { background: #1e293b; overflow: hidden; }
.mv-browser-bar {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.7rem; background: #334155;
}
.mv-dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #94a3b8; }
.mv-dot:nth-child(1) { background: #ff5f57; }
.mv-dot:nth-child(2) { background: #febc2e; }
.mv-dot:nth-child(3) { background: #28c840; }
.mv-browser-url {
  flex: 1; margin-inline-start: 0.25rem;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
  font-size: 0.65rem; padding: 0.22rem 0.5rem; border-radius: 0.3rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mv-browser-shot {
  width: 100%; aspect-ratio: 16 / 10;
  object-fit: cover; object-position: top center; background: #0f172a;
}

.mv-port-card {
  padding: 0; overflow: hidden; background: var(--mv-paper);
  display: flex; flex-direction: column; border: 1px solid var(--mv-line); border-radius: 1.05rem;
}
.mv-port-card .mv-browser { border: 0; border-bottom: 1px solid var(--mv-line); text-decoration: none; border-radius: 1.05rem 1.05rem 0 0; }
.mv-port-card .body { padding: 1rem 1.1rem 1.15rem; flex: 1; display: flex; flex-direction: column; }
.mv-port-card .body .more { margin-top: auto; padding-top: 0.6rem; }

.mv-band {
  background: linear-gradient(135deg, #0f766e, #0d9488 55%, #14b8a6);
  color: #fff; border-radius: 1.25rem; padding: 1.85rem 1.4rem; margin-top: 1.4rem;
}
.mv-band h2 { color: #fff; margin: 0 0 0.45rem; }
.mv-band p { color: rgba(255,255,255,0.9); margin: 0 0 1.15rem; max-width: 34rem; }
.mv-band .mv-btn-ghost { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.35); color: #fff; }
.mv-band .mv-btn-wa { background: #fff; color: #0f766e; }

.mv-foot {
  border-top: 1px solid var(--mv-line); padding: 2rem 0 5.5rem;
  font-size: 0.88rem; color: var(--mv-muted); background: var(--mv-paper);
}
.mv-foot a { color: var(--mv-tide); text-decoration: none; }
.mv-foot-row {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
}

.mv-wa-wrap {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 50;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.55rem;
}
body[dir="rtl"] .mv-wa-wrap { right: auto; left: 1rem; align-items: flex-start; }
.mv-wa-fab {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; padding: 0;
  background: #25d366; color: #fff !important; text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s var(--mv-ease), box-shadow 0.2s;
}
.mv-wa-fab:hover { transform: scale(1.06); box-shadow: 0 14px 36px rgba(37, 211, 102, 0.5); }
.mv-wa-ico { display: block; }
.mv-wa-tip {
  max-width: min(16rem, calc(100vw - 5.5rem));
  background: var(--mv-ink); color: #fff;
  font-size: 0.8rem; font-weight: 600; line-height: 1.35;
  padding: 0.65rem 0.85rem; border-radius: 0.75rem;
  box-shadow: var(--mv-shadow-lg);
  opacity: 0; transform: translateY(6px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.28s var(--mv-ease), transform 0.28s var(--mv-ease);
}
.mv-wa-tip::after {
  content: ""; position: absolute;
  /* tip sits above fab; arrow via border on wrap child */
}
.mv-wa-tip.is-on {
  opacity: 1; transform: translateY(0) scale(1);
  pointer-events: auto;
}
body[dir="rtl"] .mv-wa-fab { /* same */ }

.mv-prose { max-width: 42rem; line-height: 1.7; }
.mv-prose h2 { font-family: var(--mv-font-display); margin-top: 2rem; }
.mv-prose p { color: var(--mv-muted); }
.mv-prose a { color: var(--mv-tide); }
.mv-meta { font-size: 0.85rem; color: var(--mv-muted); margin-bottom: 1.5rem; }

@media (max-width: 699px) {
  .mv-shell { padding: 0 1rem; }
  .mv-hero { padding: 2.1rem 0 1.5rem; }
  .mv-hero h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); max-width: none; }
  .mv-section { padding: 2.1rem 0; }
  .mv-btn { width: 100%; }
  .mv-cta-row .mv-btn { width: auto; flex: 1 1 auto; min-width: calc(50% - 0.4rem); }
  .mv-cta-row .mv-btn-wa { min-width: 100%; }
  .mv-sector-card:hover, .mv-sol-item:hover { transform: none; }
  .mv-foot-row { flex-direction: column; align-items: flex-start; }
  .mv-drawer .mv-lang { border: 0; margin-top: 0.55rem; padding: 0; }
}

@media (hover: none) {
  .mv-sector-card:hover, .mv-sol-item:hover { transform: none; box-shadow: none; }
}
