.brand-area {
  gap: 10px;
  padding: 0 10px;
}

.brand-area, .lang-container, .nav-actions, .nav-center {
  display: flex;
  align-items: center;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--color-ink);
  background: var(--color-white);
}

.brand-name {
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0;
}

.footer-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
  gap: var(--footer-content-gap);
  width: var(--footer-content-width);
  margin: 0 auto;
  padding-top: 26px;

  & > * {
    position: relative;
    z-index: 1;
  }
}

.footer-identity {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;

  & .footer-socials {
    display: flex;
    gap: 10px;
  }

  & .footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--footer-social-size);
    height: var(--footer-social-size);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    color: rgb(211, 211, 211);
    background: rgba(255, 255, 255, 0.032);
    transition:
      background var(--motion-fast),
      border-color var(--motion-fast),
      transform var(--motion-fast);
  }

  & .footer-socials a:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-1px);
  }

  & .footer-socials img {
    display: block;
    width: var(--footer-icon-size);
    height: var(--footer-icon-size);
  }

  & p {
    max-width: 24ch;
    font-size: 0.86rem;
    line-height: 1.64;
  }

  & strong {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text);
  }
}

.footer-logo-stage {
  position: relative;
  z-index: 1;
  height: var(--footer-logo-stage-h);
  overflow: visible;
  pointer-events: none;

  & :is(img), &::after {
    position: absolute;
  }

  & img {
    bottom: -8px;
    left: 50%;
    z-index: 1;
    width: var(--footer-logo-w);
    max-width: none;
    height: auto;
    opacity: 1;
    filter: brightness(0) invert(1) opacity(0.11);
    transform: translateX(-50%);
    pointer-events: none;
    user-select: none;
  }

  &::after {
    content: "";
    right: 8px;
    bottom: 0;
    left: 8px;
    z-index: 2;
    height: 1px;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0.09) 12%,
      rgba(255, 255, 255, 0.18) 28%,
      rgba(255, 255, 255, 0.32) 40%,
      rgba(255, 255, 255, 0.64) 50%,
      rgba(255, 255, 255, 0.32) 60%,
      rgba(255, 255, 255, 0.18) 72%,
      rgba(255, 255, 255, 0.09) 88%,
      rgba(255, 255, 255, 0.04) 100%
    );
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.16);
  }
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 60px);

  & .footer-link-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  & .footer-link-group:nth-child(2) {
    margin-left: -40px;
  }

  & a {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.25;
    color: rgb(169, 169, 169);
    transition: color var(--motion-fast), transform var(--motion-fast);
  }

  & a:hover {
    color: var(--text);
    transform: translateX(2px);
  }

  & h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgb(239, 239, 239);
  }
}

.footer-panel {
  --footer-content-gap: clamp(20px, 2.4vw, 40px);
  --footer-content-width: min(1340px, calc(100% - 44px));
  --footer-glow-height: 320px;
  --footer-icon-size: 16px;
  --footer-logo-stage-h: clamp(210px, 24vw, 280px);
  --footer-logo-w: min(920px, 76vw);
  --footer-social-size: 34px;
  position: relative;
  z-index: 0;
  width: 100%;
  overflow: hidden;
  margin: 56px 0 0;
  padding: 0 0 58px;
  color: var(--muted);
  background: transparent;

  &::before {
    content: "";
    position: absolute;
    top: var(--footer-logo-stage-h);
    right: 0;
    left: 0;
    z-index: 0;
    height: var(--footer-glow-height);
    background:
      radial-gradient(
        ellipse at 50% 0%,
        rgba(255, 255, 255, 0.16) 0%,
        rgba(255, 255, 255, 0.11) 12%,
        rgba(255, 255, 255, 0.065) 30%,
        rgba(255, 255, 255, 0.025) 52%,
        transparent 74%
      ),
      radial-gradient(
        ellipse at 24% 12%,
        rgba(255, 255, 255, 0.035) 0%,
        transparent 48%
      ),
      radial-gradient(
        ellipse at 76% 12%,
        rgba(255, 255, 255, 0.035) 0%,
        transparent 48%
      );
    opacity: 0.72;
    pointer-events: none;
  }
}

.header-cta {
  min-height: 34px;
  padding: 0 14px;
}

.header-cta, .primary-btn {
  color: var(--color-ink);
  background: var(--color-white);
}

.header-cta, .primary-btn, .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 700;
  transition:
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform var(--motion-fast),
    background var(--motion-fast),
    border-color var(--motion-fast);
}

.header-cta:hover, .primary-btn:hover, .secondary-btn:hover {
  transform: translateY(-4px);
}

.header-stack, .lang-container {
  position: relative;
}

.lang-btn {
  width: 100%;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: left;
  color: rgb(210, 210, 210);
  background: transparent;
  cursor: pointer;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lang-btn.is-active {
  border-color: var(--color-white);
  color: var(--color-ink);
  background: var(--color-white);
}

.lang-container.is-open .lang-dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--motion-fast), transform var(--motion-fast);
  pointer-events: auto;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  visibility: hidden;
  gap: 4px;
  min-width: 132px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 12, 12, 0.98);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity var(--motion-fast),
    transform var(--motion-fast),
    visibility 0s 0.18s;
  pointer-events: none;
}

.lang-toggle {
  min-width: 100px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
  color: rgb(164, 164, 164);
  background: var(--surface-control);
  cursor: pointer;
}

.lang-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-toggle.is-active span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-active span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-panel {
  display: none;
}

.nav-actions {
  gap: 8px;
}

.nav-center {
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-control);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  color: rgb(164, 164, 164);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-panel {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: rgba(12, 12, 12, 0.78);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.page-shell {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 24px;
}

.primary-btn, .secondary-btn {
  min-height: 46px;
  padding: 0 18px;
}

.reveal-item {
  --reveal-delay: 0ms;
  opacity: 0;
}

.reveal-item.is-reveal-ready {
  transition-property: opacity, background, border-color, color, box-shadow, transform;
  transition-duration: 0.72s, 0.18s, 0.18s, 0.18s, 0.18s, 0.18s;
  transition-timing-function:
    cubic-bezier(0.22, 1, 0.36, 1),
    ease,
    ease,
    ease,
    ease,
    ease;
  transition-delay: 0ms;
  will-change: opacity;
}

.reveal-item.is-visible {
  opacity: 1;
  transition-delay: var(--reveal-delay, 0ms);
}

.secondary-btn {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.section {
  padding: 88px 0 0;
}

.section-desc {
  max-width: 1440px;
  margin-top: 12px;
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--muted);
}

.section-head {
  max-width: 1024px;
  margin: 96px 128px 24px;
  text-align: center;
}

.section-kicker {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}

.section-title {
  margin-top: 8px;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--text);
}

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 40;
  width: min(var(--container), calc(100% - 40px));
  transform: translateX(-50%);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-item, .reveal-item.is-reveal-ready {
    opacity: 1;
    transition: none;
  }
}

@media (width < 1024px) {
  .brand-name, .header-cta {
    display: none;
  }

  .footer-content {
    --footer-content-width: min(100%, calc(100% - 28px));
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 30px;
  }

  .footer-identity p {
    max-width: 42ch;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 10px;
  }

  .footer-nav .footer-link-group:nth-child(2) {
    margin-left: 0;
  }

  .footer-panel {
    --footer-logo-stage-h: clamp(110px, 31vw, 160px);
    --footer-logo-w: min(760px, 88vw);
    margin-top: 48px;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-menu-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-weight: 700;
    color: rgb(215, 215, 215);
  }

  .mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .mobile-menu-link.is-strong {
    color: var(--color-ink);
    background: var(--color-white);
  }

  .mobile-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: grid;
    visibility: hidden;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-panel);
    background: rgba(12, 12, 12, 0.96);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity var(--motion-fast),
      transform var(--motion-fast),
      visibility 0s 0.18s;
    pointer-events: none;
  }

  .mobile-menu-panel.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--motion-fast), transform var(--motion-fast);
    pointer-events: auto;
  }

  .nav-center {
    display: none;
  }

  .page-shell {
    width: min(100% - 28px, var(--container));
    padding-top: 84px;
  }

  .section {
    padding-top: 64px;
  }

  .site-header {
    top: 10px;
    width: min(100% - 28px, var(--container));
  }
}
