/* =========================================================
   Mota Content Media — Hero Page
   ========================================================= */
:root {
  --bg: #0b0b1a;
  --bg-soft: #14142b;
  --surface: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f4f4fb;
  --muted: #a6a6c4;
  --primary: #7b5cff;
  --accent: #ff5c8a;
  --success: #3ddc97;
  --gradient: linear-gradient(120deg, var(--primary), var(--accent));
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1200px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 30px rgba(123, 92, 255, .4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255, 92, 138, .45); }
.btn-ghost {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { padding: .65rem 1.2rem; font-size: .9rem; }

/* ---------- Header / Menu Bar ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 11, 26, .82);
  backdrop-filter: blur(14px);
  border-color: var(--border);
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: .65rem; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient);
  font-weight: 800;
  font-size: 1.25rem;
}
.logo-text {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.05;
}
.logo-text span {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-menu a:not(.btn) {
  position: relative;
  font-weight: 500;
  font-size: .95rem;
  color: var(--muted);
  transition: color .2s ease;
}
.nav-menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-menu a:not(.btn):hover,
.nav-menu a:not(.btn):focus-visible { color: var(--text); }
.nav-menu a:not(.btn):hover::after,
.nav-menu a:not(.btn):focus-visible::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  animation: drift 14s ease-in-out infinite alternate;
}
.blob-1 { width: 520px; height: 520px; background: var(--primary); top: -140px; left: -120px; }
.blob-2 { width: 480px; height: 480px; background: var(--accent); bottom: -160px; right: -100px; animation-delay: -6s; opacity: .4; }
.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
@keyframes drift {
  to { transform: translate(60px, 40px) scale(1.1); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 3.5rem;
  flex: 1;
  padding-bottom: 3rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, .2);
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 1.4rem;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }

.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.hero-stats span { font-size: .88rem; color: var(--muted); }
.hero-stats li + li { padding-left: 2.5rem; border-left: 1px solid var(--border); }

/* ---------- Hero visual ---------- */
.hero-visual { position: relative; min-height: 500px; }
.card {
  background: rgba(20, 20, 43, .78);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.card-main {
  position: absolute;
  inset: 40px 20px 90px 20px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.card-head { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; }
.pill {
  padding: .3rem .75rem;
  border-radius: 999px;
  background: rgba(123, 92, 255, .2);
  color: #c7b9ff;
  font-weight: 600;
}
.muted { color: var(--muted); }
.metric { display: flex; align-items: baseline; gap: .8rem; }
.metric strong { font-size: 2.4rem; font-weight: 800; }
.up { color: var(--success); font-weight: 600; font-size: .9rem; }
.chart { width: 100%; height: 110px; }
.bars { display: grid; gap: .65rem; margin-top: auto; }
.bars div {
  display: grid;
  grid-template-columns: 1fr 60px;
  align-items: center;
  gap: .75rem;
  font-size: .8rem;
  color: var(--muted);
}
.bars div::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}
.bars span {
  grid-column: 1;
  grid-row: 1;
  height: 8px;
  width: var(--w);
  border-radius: 8px;
  background: var(--gradient);
}
.bars em { font-style: normal; text-align: right; }

.card-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem 1.1rem;
  font-size: .82rem;
  animation: float 6s ease-in-out infinite;
}
.card-float strong { display: block; font-size: .98rem; }
.card-float span { color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.card-reach { top: 0; right: 0; }
.card-play { bottom: 0; left: 0; animation-delay: -2s; }
.card-agent { bottom: 0; right: 0; animation-delay: -4s; }
@keyframes float {
  50% { transform: translateY(-12px); }
}

.icon-circle,
.play {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
}
.icon-circle { background: rgba(61, 220, 151, .16); color: var(--success); }
.play { background: var(--gradient); color: #fff; }

.avatars { display: flex; }
.avatars span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid var(--bg-soft);
  background: var(--primary);
}
.avatars span:nth-child(2) { background: var(--accent); margin-left: -10px; }
.avatars span:nth-child(3) { background: #2bb6d6; margin-left: -10px; }
.live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  50% { box-shadow: 0 0 0 5px rgba(61, 220, 151, .25); }
}

/* ---------- Ticker ---------- */
.ticker {
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  overflow: hidden;
  padding: 1.1rem 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: scroll 38s linear infinite;
}
.ticker-track span {
  display: flex;
  align-items: center;
  gap: 3rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.ticker-track span::after {
  content: "✦";
  color: var(--accent);
}
@keyframes scroll {
  to { transform: translateX(calc(-50% - 1.5rem)); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .lead { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { max-width: 560px; width: 100%; margin-inline: auto; text-align: left; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: var(--header-h);
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    padding: 1rem;
    background: rgba(20, 20, 43, .97);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav-menu.open { opacity: 1; visibility: visible; transform: none; }
  .nav-menu a:not(.btn) { display: block; padding: .85rem 1rem; border-radius: 10px; color: var(--text); }
  .nav-menu a:not(.btn)::after { display: none; }
  .nav-menu a:not(.btn):hover { background: var(--surface); }
  .nav-menu .btn { width: 100%; justify-content: center; margin-top: .5rem; padding: .9rem; }
  .site-header { background: rgba(11, 11, 26, .82); backdrop-filter: blur(14px); }
}

@media (max-width: 560px) {
  .hero { padding-top: calc(var(--header-h) + 2rem); }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
  .hero-stats li + li { padding-left: .75rem; }
  .hero-stats li { padding-right: .75rem; }
  .hero-stats strong { font-size: 1.4rem; }
  .hero-stats span { font-size: .78rem; line-height: 1.3; }
  .hero-visual { min-height: 440px; }
  .card-main { inset: 50px 0 80px 0; padding: 1.2rem; }
  .card-agent { display: none; }
  .card-reach { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
