/* Header, hero, sections, footer, mobile menu */
.legacy-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--legacy-bar-h);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.legacy-bar a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg2);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.18s;
}
.legacy-bar a:hover {
  color: var(--fg);
}
.legacy-bar .i {
  width: 13px;
  height: 13px;
}

header {
  position: fixed;
  top: var(--legacy-bar-h);
  left: 0;
  right: 0;
  z-index: 50;
  transition:
    background 0.3s,
    backdrop-filter 0.3s,
    border-color 0.3s;
  border-bottom: 1px solid transparent;
}
header.scrolled {
  background: var(--header-scrolled-bg);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand .chip {
  background: var(--chip-bg);
  border-radius: 9px;
  padding: 7px 11px;
  display: flex;
  align-items: center;
  box-shadow: var(--chip-shadow);
}
.brand .chip img {
  height: 30px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a.link {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  color: var(--fg2);
  position: relative;
  padding: 4px 0;
  transition: color 0.18s;
}
.nav-links a.link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 0;
  background: var(--green-b);
  transition: width 0.25s var(--ease);
}
.nav-links a.link:hover {
  color: var(--fg);
}
.nav-links a.link:hover::after {
  width: 100%;
}
.nav-links .btn {
  height: 46px;
  padding: 0 18px;
  font-size: 13px;
  gap: 8px;
}
.nav-links .btn .i {
  width: 16px;
  height: 16px;
}
.burger {
  display: none;
  background: none;
  border: 1px solid var(--line2);
  border-radius: 8px;
  width: 46px;
  height: 46px;
  color: var(--fg);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger .i {
  width: 24px;
  height: 24px;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(120px + var(--legacy-bar-h)) 0 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.glow.g1 {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, var(--hero-glow-1), transparent 70%);
  top: -120px;
  right: -80px;
}
.glow.g2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--hero-glow-2), transparent 70%);
  bottom: -140px;
  left: -100px;
}
.speedlines {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    115deg,
    transparent 0 38px,
    var(--hero-speedline) 38px 40px
  );
}
.grid-fade {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-line) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000, transparent 75%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: center;
  width: 100%;
}
.hero-copy {
  max-width: 620px;
  min-width: 0;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.92;
  font-size: clamp(46px, 7.3vw, 92px);
  letter-spacing: -0.015em;
}
.hero h1 .l2 {
  color: transparent;
  -webkit-text-stroke: 2px var(--fg);
}
.hero h1 .sq {
  display: inline-block;
  color: var(--green-b);
  font-style: italic;
  text-shadow: 0 0 34px var(--hero-text-glow);
}
.hero-sub {
  margin-top: 22px;
  font-size: 19px;
  color: var(--fg2);
  max-width: 520px;
}
.hero-sub b {
  color: var(--fg);
  font-weight: 600;
}
.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-media .ring {
  position: absolute;
  width: 108%;
  aspect-ratio: 1;
  border: 2px dashed var(--hero-ring);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
.hero-media .ring.r2 {
  width: 88%;
  border-color: rgba(0, 158, 69, 0.25);
  animation-duration: 28s;
  animation-direction: reverse;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.hero-media img {
  width: 100%;
  max-width: 540px;
  filter: var(--img-shadow);
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

/* hero stats */
.stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0;
  margin-top: 54px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface-shine), transparent);
}
.stat {
  flex: 1;
  padding: 22px 26px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border-right: 0;
}
.stat .n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
  color: var(--fg);
}
.stat .n .u {
  color: var(--green-b);
}
.stat .t {
  font-size: 13px;
  color: var(--fg2);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-display);
  font-weight: 500;
}

section.block {
  position: relative;
  padding: 104px 0;
}
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
.sec-head .l {
  max-width: 680px;
}
.sec-head h2 {
  margin-top: 14px;
}
.sec-head p {
  color: var(--fg2);
  margin-top: 16px;
  font-size: 18px;
}
.bar {
  width: 54px;
  height: 5px;
  background: var(--green);
  border-radius: 3px;
  margin-bottom: 4px;
}

footer {
  background: var(--footer-bg);
  padding: 72px 0 36px;
  border-top: 1px solid var(--line);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}
.foot-brand .chip {
  background: var(--chip-bg);
  border-radius: 11px;
  padding: 12px 16px;
  display: inline-flex;
  margin-bottom: 18px;
}
.foot-brand .chip img {
  height: 42px;
}
.foot-brand p {
  color: var(--fg2);
  font-size: 15px;
  max-width: 320px;
}
.foot-col h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  color: var(--fg3);
  margin-bottom: 18px;
}
.foot-col a,
.foot-col .row {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--fg2);
  padding: 8px 0;
  font-size: 15px;
  transition: color 0.18s;
}
.foot-col a:hover {
  color: var(--green-b);
}
.foot-col .i {
  width: 19px;
  height: 19px;
  flex: none;
}
.foot-bottom {
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--fg3);
  font-size: 13px;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--mobile-menu-bg);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 26px;
  letter-spacing: 0.04em;
}
.mobile-menu a:hover {
  color: var(--green-b);
}
