/* ============================================================
   AYNA — All You Need Agency
   Shared monochrome brand system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --black: #0a0a0a;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --white: #ffffff;
  --muted: #8a8a8a;
  --muted-dim: #5a5a5a;
  --line: #2a2a2a;
  --line-bright: #3a3a3a;

  --font-display: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --maxw: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

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

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

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--white); color: var(--black); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Custom cursor dot ---------- */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 34px; height: 34px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .4s var(--ease), height .4s var(--ease), border-color .4s, opacity .4s;
}
.cursor-hover .cursor-ring { width: 60px; height: 60px; border-color: var(--white); }
.cursor-hover .cursor-dot { width: 4px; height: 4px; }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { position: relative; }
.pad { padding-block: clamp(5rem, 12vw, 9rem); }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: .9rem;
}
.eyebrow::before {
  content: '';
  width: 34px; height: 1px;
  background: var(--line-bright);
  display: inline-block;
}
.eyebrow.center::after {
  content: '';
  width: 34px; height: 1px;
  background: var(--line-bright);
  display: inline-block;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; }

.display {
  font-size: clamp(2.8rem, 9vw, 7rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.035em;
}
h2.section-title {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  max-width: 60ch;
}
p.body { color: var(--muted); font-weight: 300; }

/* ---------- Header / Nav ---------- */
header.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  transition: background .5s var(--ease), border-color .5s, backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
header.nav.scrolled {
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(18px) saturate(120%);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .85rem; }
.brand img { width: auto; height: 56px; object-fit: contain; }
.brand .name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .28em;
  font-size: .95rem;
  padding-left: .1em;
}
.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--muted);
  position: relative;
  padding: .3rem 0;
  transition: color .3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--white);
  transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 1.4rem; }

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 100px;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .08em;
}
.lang-toggle button {
  padding: .42rem .7rem;
  color: var(--muted);
  transition: color .3s, background .3s;
}
.lang-toggle button.active { background: var(--white); color: var(--black); }

/* Mobile menu */
.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 9px; margin-right: -9px; cursor: pointer; position: relative; z-index: 1101; background: none; border: 0; }
.burger span { display: block; width: 100%; height: 1.5px; background: var(--white); transition: transform .4s var(--ease), opacity .3s; transform-origin: center; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--muted);
  transition: color .3s;
}
.mobile-menu a:hover { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 1.05rem 2rem;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--black);
  position: relative;
  overflow: hidden;
  transition: color .4s var(--ease);
  will-change: transform;
}
.btn span { position: relative; z-index: 2; }
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
  z-index: 1;
}
.btn:hover { color: var(--white); }
.btn:hover::before { transform: translateY(0); }

.btn.ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line-bright);
}
.btn.ghost::before { background: var(--white); }
.btn.ghost:hover { color: var(--black); border-color: var(--white); }

.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

.line-reveal { overflow: hidden; }
.line-reveal > * { display: block; transform: translateY(105%); transition: transform 1s var(--ease); }
.line-reveal.in > * { transform: none; }

/* ---------- Footer ---------- */
footer.foot {
  border-top: 1px solid var(--line);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem;
  background: var(--black);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--line);
}
.foot h4 {
  font-size: .74rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted-dim);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.foot-links { display: flex; flex-direction: column; gap: .8rem; }
.foot-links a { color: var(--muted); font-size: .95rem; transition: color .3s, padding-left .3s; }
.foot-links a:hover { color: var(--white); padding-left: .35rem; }
.foot-brand-mark { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.3rem; }
.foot-brand-mark img { width: 64px; height: 64px; object-fit: contain; }
.foot-brand-mark .name { font-family: var(--font-display); font-weight: 800; letter-spacing: .28em; font-size: 1.05rem; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.foot-bottom p { font-size: .8rem; color: var(--muted-dim); letter-spacing: .04em; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 1.6rem; white-space: nowrap; }
.marquee-track { display: flex; width: max-content; animation: marquee var(--mq-dur, 28s) linear infinite; will-change: transform; }
.marquee-group { display: inline-flex; gap: 3rem; padding-right: 3rem; flex: none; }
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  color: var(--surface-2);
  -webkit-text-stroke: 1px var(--line-bright);
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.marquee-track span::after { content: '✦'; -webkit-text-stroke: 0; color: var(--muted-dim); font-size: .7em; }
.marquee:hover .marquee-track { animation-play-state: paused; }
/* --mq-shift is set by app.js to the exact width of one repeated block.
   The 50% fallback keeps the marquee working if JS never runs. */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--mq-shift, 50%))); }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  position: relative;
  overflow: hidden;
  transition: border-color .5s var(--ease), transform .5s var(--ease), background .5s;
}
.card:hover { border-color: var(--line-bright); transform: translateY(-4px); background: var(--surface-2); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; align-items: stretch; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color .5s var(--ease), transform .5s var(--ease);
}
.price-card:hover { border-color: var(--line-bright); transform: translateY(-6px); }
.price-card.featured { border-color: var(--white); background: var(--surface-2); }
.price-card.featured::after {
  content: attr(data-badge);
  position: absolute;
  top: 1.5rem; right: -2.4rem;
  transform: rotate(45deg);
  background: var(--white);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .62rem;
  letter-spacing: .18em;
  padding: .35rem 3rem;
}
.price-card .tier {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.price-card .tier-sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.8rem; min-height: 2.6em; }
.price-card .price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-card .price small { font-size: .9rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.price-card .price-note { color: var(--muted-dim); font-size: .82rem; margin-top: .4rem; margin-bottom: 1.8rem; }
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: .85rem; margin-bottom: 2rem; flex: 1; }
.price-card li { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.price-card li svg { flex-shrink: 0; margin-top: 4px; }
.price-card li.off { color: var(--muted-dim); text-decoration: line-through; opacity: .5; }

/* ---------- Feature list ---------- */
.feat-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding-block: 2.4rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: padding-left .5s var(--ease);
}
.feat-row:hover { padding-left: 1rem; }
.feat-num { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--muted-dim); }
.feat-row h3 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin-bottom: .7rem; font-weight: 700; }

/* ---------- Process steps ---------- */
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  position: relative;
}
.step-marker { display: flex; flex-direction: column; align-items: center; }
.step-dot {
  width: 52px; height: 52px;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  background: var(--black);
  transition: border-color .5s, background .5s, color .5s;
  flex-shrink: 0;
}
.step:hover .step-dot { border-color: var(--white); background: var(--white); color: var(--black); }
.step-line { width: 1px; flex: 1; background: var(--line); margin-block: .6rem; }
.step-body { padding-bottom: 3.5rem; }
.step-body h3 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin-bottom: .8rem; }

/* ---------- Team ---------- */
.team-card { text-align: left; }
.team-portrait {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.4rem;
}
.team-initials {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4rem, 10vw, 7rem);
  color: var(--line-bright);
  letter-spacing: -0.04em;
  transition: color .6s var(--ease), transform .6s var(--ease);
}
.team-card:hover .team-initials { color: var(--muted); transform: scale(1.05); }
.team-name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.team-role { color: var(--muted); font-size: .88rem; letter-spacing: .1em; text-transform: uppercase; margin-top: .3rem; }

/* ---------- Stats ---------- */
.stat-num { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.6rem, 6vw, 4.5rem); letter-spacing: -0.04em; line-height: 1; }
.stat-label { color: var(--muted); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-top: .6rem; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
/* Language visibility — SR is the default, EN/RU are hidden until selected */
[data-lang-en], [data-lang-ru] { display: none; }
html[data-lang="en"] [data-lang-sr],
html[data-lang="ru"] [data-lang-sr] { display: none; }
html[data-lang="en"] [data-lang-en] { display: revert; }
html[data-lang="ru"] [data-lang-ru] { display: revert; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .foot-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .feat-row { grid-template-columns: 1fr; gap: .6rem; }
  .brand img { height: 46px; }
}

/* three language buttons need a little less room on small phones */
@media (max-width: 420px) {
  .nav-right { gap: .8rem; }
  .lang-toggle { font-size: .66rem; }
  .lang-toggle button { padding: .38rem .52rem; }
}
@media (prefers-reduced-motion: reduce) {
  *:not(.marquee-track), *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .line-reveal > * { transform: none; }
  /* keep the marquee legible rather than frozen mid-scroll, but slow it right down */
  .marquee-track { animation-duration: 90s !important; }
}
