/* ===== G2B v2 — base: tokens, preloader, cursor, header, menu overlay ===== */
:root {
  --bg: #151717;
  --bg2: #1c1f1f;
  --ink: #f4f4f2;
  --muted: rgba(244, 244, 242, 0.55);
  --line: rgba(244, 244, 242, 0.12);
  --acc: #f0148c;
  --purple: #7c4dff;
  --lime: #a4e312;
  --font: "Archivo", "Helvetica Neue", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
::selection { background: var(--acc); color: #fff; }
section { scroll-margin-top: 80px; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 5vw; }

/* tag pattern: "/ Section name" */
.tag {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 28px;
}
.tag::before { content: "/"; color: var(--acc); font-weight: 800; }

/* ===== preloader ===== */
.preloader {
  position: fixed; inset: 0; z-index: 3000; background: #0e0f0f;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}
.preloader.hide { transform: translateY(-100%); }
.preloader-inner { text-align: center; }
.preloader-inner img {
  height: 64px; opacity: 0; transform: translateY(24px) scale(0.96);
  animation: pre-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}
.preloader-bar {
  width: 180px; height: 2px; background: rgba(244,244,242,0.15);
  margin: 28px auto 0; overflow: hidden; border-radius: 2px;
}
.preloader-bar i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--lime), var(--acc), var(--purple));
  transform: scaleX(0); transform-origin: 0 50%;
  animation: pre-bar 1.4s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards;
}
@keyframes pre-in { to { opacity: 1; transform: none; } }
@keyframes pre-bar { to { transform: scaleX(1); } }

/* ===== custom cursor ===== */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 4000; pointer-events: none;
  width: 12px; height: 12px; border-radius: 50%; background: var(--acc);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, opacity 0.3s ease;
  mix-blend-mode: difference; opacity: 0;
}
.cursor.on { opacity: 1; }
.cursor.hov { width: 64px; height: 64px; background: #fff; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ===== header ===== */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 4vw;
  transition: background 0.4s ease, padding 0.4s ease;
}
.hdr.scrolled { background: rgba(21, 23, 23, 0.85); backdrop-filter: blur(16px); padding: 14px 4vw; }
.hdr .brand img { height: 40px; display: block; }
.hdr-right { display: flex; align-items: center; gap: 18px; }
.hdr-cta {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none;
  border: 1px solid rgba(244,244,242,0.3); border-radius: 999px; padding: 12px 26px;
  position: relative; overflow: hidden; transition: color 0.35s ease, border-color 0.35s ease;
}
.hdr-cta::before {
  content: ""; position: absolute; inset: 0; background: var(--acc);
  transform: translateY(101%); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0; border-radius: inherit;
}
.hdr-cta span { position: relative; z-index: 1; }
.hdr-cta:hover { border-color: var(--acc); }
.hdr-cta:hover::before { transform: translateY(0); }

/* hamburger */
.burger {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(244,244,242,0.3);
  background: transparent; cursor: pointer; display: grid; place-items: center;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.burger:hover { border-color: var(--acc); }
.burger .lines { width: 20px; height: 12px; position: relative; }
.burger .lines i {
  position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), top 0.4s ease;
}
.burger .lines i:nth-child(1) { top: 0; }
.burger .lines i:nth-child(2) { top: 10px; }
body.menu-open .burger { background: var(--ink); border-color: var(--ink); }
body.menu-open .burger .lines i { background: #151717; }
body.menu-open .burger .lines i:nth-child(1) { top: 5px; transform: rotate(45deg); }
body.menu-open .burger .lines i:nth-child(2) { top: 5px; transform: rotate(-45deg); }

/* ===== fullscreen menu overlay ===== */
.menu {
  position: fixed; inset: 0; z-index: 1400; background: #0e0f0f;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s cubic-bezier(0.76, 0, 0.24, 1);
  display: flex; align-items: center; overflow: hidden;
}
body.menu-open .menu { clip-path: inset(0 0 0% 0); }
.menu-grid {
  width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 5vw;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center;
}
.menu-links { list-style: none; display: grid; gap: 6px; }
.menu-links a {
  display: flex; align-items: baseline; gap: 18px;
  font-size: clamp(34px, 5vw, 64px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  color: var(--ink); text-decoration: none;
  transition: color 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.menu-links a sup { font-size: 14px; font-weight: 600; color: var(--acc); letter-spacing: 0.1em; }
.menu-links a:hover { color: var(--acc); transform: translateX(16px); }
.menu-links li {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
body.menu-open .menu-links li { opacity: 1; transform: none; }
body.menu-open .menu-links li:nth-child(1) { transition-delay: 0.25s; }
body.menu-open .menu-links li:nth-child(2) { transition-delay: 0.32s; }
body.menu-open .menu-links li:nth-child(3) { transition-delay: 0.39s; }
body.menu-open .menu-links li:nth-child(4) { transition-delay: 0.46s; }
body.menu-open .menu-links li:nth-child(5) { transition-delay: 0.53s; }
body.menu-open .menu-links li:nth-child(6) { transition-delay: 0.6s; }
.menu-aside { display: grid; gap: 32px; opacity: 0; transition: opacity 0.6s ease 0.55s; }
body.menu-open .menu-aside { opacity: 1; }
.menu-aside h6 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.menu-aside a { color: var(--ink); text-decoration: none; font-size: 17px; transition: color 0.3s ease; display: inline-block; padding: 4px 0; }
.menu-aside a:hover { color: var(--acc); }
.menu-aside ul { list-style: none; display: grid; gap: 6px; }

@media (max-width: 860px) {
  .menu-grid { grid-template-columns: 1fr; gap: 40px; }
  .hdr-cta { display: none; }
  .menu { display: block; overflow-y: auto; }
  .menu-grid { padding: 110px 6vw 48px; align-items: start; }
  .menu-links a { font-size: clamp(30px, 8.5vw, 44px); gap: 12px; }
  .menu-aside { gap: 22px; }
  .menu-aside a { font-size: 16px; }
  .hdr { padding: 14px 4vw; }
  .hdr .brand img { height: 34px; }
  .burger { width: 48px; height: 48px; }
}
