/* ============================================================
   LIVECO DESIGN — Shared design system
   Warm paper + ink + one vivid accent. Editorial, bold, kinetic.
   ============================================================ */

:root {
  /* === MOVO / Liveco brand palette === */
  /* Surfaces (dark-first) */
  --paper:      #131313;   /* base background */
  --paper-2:    #1b1b1b;   /* elevated panel / cards */
  --paper-3:    #232323;   /* deeper panel */
  --dark:       #0c0c0c;   /* darker contrast sections */
  --dark-2:     #161616;

  /* Ink */
  --ink:        #ffffff;
  --ink-soft:   #c6c6c6;
  --ink-faint:  #8F8F8F;   /* brand grey */
  --on-dark:    #ffffff;
  --on-dark-soft: #b2b2b2;

  /* Accent — brand lime (tweakable) */
  --accent:     #CFF008;
  --accent-2:   #CFF008;
  --on-accent:  #131313;
  --accent-tint: rgba(207, 240, 8, 0.13);

  /* Lines */
  --line:       rgba(255, 255, 255, 0.14);
  --line-soft:  rgba(255, 255, 255, 0.07);
  --line-dark:  rgba(255, 255, 255, 0.16);

  /* Type — single family, swappable via Tweaks */
  --font:    "Urbanist", system-ui, sans-serif;
  --display: var(--font);
  --sans:    var(--font);
  --mono:    var(--font);

  /* Layout */
  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-lg: 30px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

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

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  font-size: 19px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-size: clamp(2.8rem, 9vw, 8.5rem);
}
.h-sec {
  font-size: clamp(2.1rem, 5.2vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.no-dash::before { display: none; }
.lead {
  font-size: clamp(1.18rem, 1.7vw, 1.5rem);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 56ch;
  text-wrap: pretty;
}
.mono { font-family: var(--mono); }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(70px, 11vw, 150px); position: relative; }
.section-tight { padding-block: clamp(48px, 7vw, 90px); }
.dark { background: var(--dark); color: var(--on-dark); }
.dark .lead { color: var(--on-dark-soft); }
.dark .eyebrow { color: var(--accent-2); }
.dark .eyebrow::before { background: var(--accent-2); }

.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.sec-head { display: grid; gap: 22px; max-width: 60ch; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-weight: 600; font-size: 0.98rem;
  padding: 0.95em 1.5em;
  border-radius: 100px;
  transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .3s;
  white-space: nowrap;
  position: relative;
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform .4s var(--ease); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 32px -14px rgba(207,240,8,0.32); }
.btn-primary:hover svg { transform: translate(3px, -3px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -16px var(--ink); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-3px); }
.dark .btn-ghost { border-color: var(--line-dark); color: var(--on-dark); }
.dark .btn-ghost:hover { border-color: var(--on-dark); }
.btn-lg { padding: 1.15em 1.9em; font-size: 1.05rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 600; font-family: var(--mono); font-size: 0.82rem;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.link-arrow svg { width: 1.05em; height: 1.05em; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 16px var(--gutter);
  transition: transform .45s var(--ease), background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--paper);
  backdrop-filter: none;
  border-bottom-color: var(--line-soft);
}
.site-header.hide { transform: translateY(-110%); }
.nav {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--display); font-weight: 800;
  font-size: 1.32rem; letter-spacing: -0.03em;
  display: inline-flex; align-items: center; gap: 0.45em;
  line-height: 1;
}
.brand .dot { color: var(--accent); }
.brand .star {
  width: 16px; height: 16px; color: var(--accent);
  animation: spin 9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500;
  padding: 8px 14px; border-radius: 100px;
  position: relative; color: var(--ink-soft);
  transition: color .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: 100px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  overflow: hidden;
}
.lang-toggle button {
  padding: 7px 11px; color: var(--ink-faint); transition: color .25s, background .25s;
  letter-spacing: 0.06em;
}
.lang-toggle button.active { background: var(--ink); color: var(--paper); }

.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid var(--line); }
.menu-btn span { position: relative; width: 18px; height: 1.6px; background: var(--ink); display: block; transition: transform .3s, opacity .3s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.6px; background: var(--ink); transition: transform .3s; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
body.menu-open .menu-btn span { background: transparent; }
body.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--dark); color: var(--on-dark);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease);
  pointer-events: none;
}
body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); pointer-events: auto; }
.mobile-menu a { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 11vw, 4.5rem); letter-spacing: -0.03em; line-height: 1.05; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s; }
body.menu-open .mobile-menu a { opacity: 1; transform: none; }
body.menu-open .mobile-menu a:nth-child(1){ transition-delay:.12s } body.menu-open .mobile-menu a:nth-child(2){ transition-delay:.18s } body.menu-open .mobile-menu a:nth-child(3){ transition-delay:.24s } body.menu-open .mobile-menu a:nth-child(4){ transition-delay:.3s } body.menu-open .mobile-menu a:nth-child(5){ transition-delay:.36s }
.mobile-menu a .num { font-family: var(--mono); font-size: 0.9rem; color: var(--accent-2); vertical-align: super; margin-right: 0.4em; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; display: flex; user-select: none; }
.marquee-track { display: flex; flex-shrink: 0; gap: 0; animation: marquee var(--mq-dur, 26s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track > * { flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-rev .marquee-track { animation-direction: reverse; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark); padding-block: clamp(60px, 8vw, 110px) 36px; }
.footer-cta { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 0.95; font-size: clamp(2.6rem, 9vw, 7rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-top: 70px; padding-top: 40px; border-top: 1px solid var(--line-dark); }
.footer-col h5 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 18px; font-weight: 700; }
.footer-col a, .footer-col p { color: var(--on-dark-soft); display: block; padding: 5px 0; transition: color .25s; }
.footer-col a:hover { color: var(--on-dark); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 50px; font-family: var(--mono); font-size: 0.74rem; color: var(--on-dark-soft); letter-spacing: 0.04em; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); }
[data-reveal].in { opacity: 1; transform: none; filter: none; transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
[data-reveal][data-d="1"] { transition-delay: .08s; }
[data-reveal][data-d="2"] { transition-delay: .16s; }
[data-reveal][data-d="3"] { transition-delay: .24s; }
[data-reveal][data-d="4"] { transition-delay: .32s; }
[data-reveal][data-d="5"] { transition-delay: .40s; }
.reveal-chars span { display: inline-block; opacity: 0; transform: translateY(0.7em) rotate(3deg); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-chars.in span { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; animation-iteration-count: 1 !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .reveal-chars span { opacity: 1; transform: none; }
}

/* ---------- Tags / pills ---------- */
.tag { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; padding: 6px 12px; border-radius: 100px; border: 1.5px solid var(--line); color: var(--ink-soft); }
.dark .tag { border-color: var(--line-dark); color: var(--on-dark-soft); }
.tag.accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- Cards: media placeholder fallback ---------- */
.media { position: relative; overflow: hidden; background: var(--paper-3); border-radius: var(--radius); }
.media::after { /* striped placeholder shown behind images; covered when img loads */
  content: attr(data-ph); position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.05em; color: var(--ink-faint);
  background-image: repeating-linear-gradient(45deg, var(--paper-2) 0 12px, var(--paper-3) 12px 24px);
}
.media img, .media video { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Utility ---------- */
.divider { height: 1px; background: var(--line); border: 0; }
.dark .divider { background: var(--line-dark); }
.text-accent { color: var(--accent); }
.italic-serif { font-style: italic; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* custom cursor dot */
.cursor-dot { position: fixed; top: 0; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: width .25s, height .25s, background .25s; mix-blend-mode: normal; }
.cursor-ring { position: fixed; top: 0; left: 0; width: 38px; height: 38px; border: 1.5px solid var(--ink); border-radius: 50%; pointer-events: none; z-index: 9998; transform: translate(-50%, -50%); transition: width .3s var(--ease), height .3s var(--ease), border-color .3s, opacity .3s; opacity: 0.5; }
body.cursor-hover .cursor-ring { width: 64px; height: 64px; border-color: var(--accent); opacity: 1; }
body.cursor-hover .cursor-dot { width: 0; height: 0; }
@media (hover: none), (max-width: 900px) { .cursor-dot, .cursor-ring { display: none; } }
html.cursor-off .cursor-dot, html.cursor-off .cursor-ring { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
