.hero {
  position: relative;
  min-height: var(--header-height);
  overflow: hidden;
  background: var(--color-bg-dark);
}

.hero__background {
  position: absolute;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1920px, 100%);
  aspect-ratio: 1365 / 768;
  height: auto;
  pointer-events: none;
}

.hero__background picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero__background-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.hero__background-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero__background.is-ready .hero__background-fallback {
  opacity: 0;
}

.hero__background.is-ready .hero__background-canvas {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero__background-canvas {
    display: none;
  }

  .hero__background.is-ready .hero__background-fallback {
    opacity: 1;
  }
}

.hero__crystal-label {
  position: absolute;
  left: 77.5%;
  top: 46%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(14px, 1.65vw, 32px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-align: center;
  color: #ffffff;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

.hero__scene-logo {
  width: 100%;
  max-height: 80px;
  height: auto;
  text-align: center;
  margin-bottom: 30px;
}

.hero__scene-copy {
  position: absolute;
  top: 30px;
  left: 50%;
  z-index: 2;
  width: min(92%, 1320px);
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.hero__scene-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.35vw, 45px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-wrap: balance;
}

.hero__scene-subtitle {
  margin: 18px 0 0;
  font-family: var(--font-body);
  font-size: clamp(13px, 1.05vw, 20px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
  text-wrap: balance;
}

.hero__features {
  position: absolute;
  bottom: 10%;
  top: auto;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: clamp(12px, 2vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
  max-width: 46%;
}

.hero__features--left {
  left: 10%;
}

.hero__features--right {
  right: 10%;
  left: auto;
}

.hero__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 0.6vw, 10px);
  text-align: center;
}

.hero__feature-icon {
  width: clamp(24px, 2vw, 36px);
  height: clamp(24px, 2vw, 36px);
  flex-shrink: 0;
}

.hero__feature-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(10px, 0.8vw, 15px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #ffffff;
  white-space: nowrap;
}

.hero__feature-line {
  display: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(var(--container-width), 100%);
  margin: 0 auto;
  padding: 5px var(--content-padding) 5px;
}

.hero__inner--top {
  padding-bottom: 0;
}

.hero__inner--bottom {
  padding-top: 0;
}

.hero__visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__visual-picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero__visual-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center top;
}

.hero__visual-video {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__visual-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--color-bg-dark) 0%,
    rgba(15, 18, 27, 0) 40%
  );
}

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: 32px;
  align-items: center;
  min-height: 67px;
}

.site-header__nav {
  display: flex;
  gap: 80px;
  align-items: center;
  min-width: 0;
}

.site-header__nav--left {
  justify-self: start;
}

.site-header__nav--right {
  justify-self: end;
}

.site-header__link {
  font-size: var(--text-nav-size);
  font-weight: var(--text-nav-weight);
  line-height: normal;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.site-header__link:hover {
  opacity: 0.8;
}

.site-header__center {
  justify-self: center;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
}

.site-header__logo {
  flex-shrink: 0;
  width: 76px;
  height: 67px;
}

.site-header__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-header__brand {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 2px;
  justify-content: center;
}

.site-header__brand-irb {
  flex-shrink: 0;
  width: 71px;
  height: 32px;
  object-fit: contain;
}

.site-header__brand-pro {
  flex-shrink: 0;
  width: 29px;
  height: 14px;
  object-fit: contain;
}

.site-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: none;
  cursor: pointer;
}

.site-header__burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.site-header__burger[aria-expanded="true"] .site-header__burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header__burger[aria-expanded="true"] .site-header__burger-line:nth-child(2) {
  opacity: 0;
}

.site-header__burger[aria-expanded="true"] .site-header__burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-header__menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px var(--content-padding) 48px;
  background: var(--color-bg-dark);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
}

.site-header__menu-close {
  position: absolute;
  top: 28px;
  right: var(--content-padding);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.site-header__menu-close-line {
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 1px;
}

.site-header__menu-close-line:nth-child(1) {
  transform: rotate(45deg);
}

.site-header__menu-close-line:nth-child(2) {
  transform: rotate(-45deg);
}

.site-header__menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-header__menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.site-header__menu-link {
  font-size: var(--text-nav-size);
  font-weight: var(--text-nav-weight);
  line-height: normal;
  transition: opacity 0.2s;
}

.site-header__menu-link:hover {
  opacity: 0.8;
}

body.is-menu-open {
  overflow: hidden;
}

.hero__title {
  margin: 240px 0 0;
  max-width: 1436px;
  font-family: var(--font-heading);
  font-size: var(--text-h1-size);
  font-weight: var(--text-h1-weight);
  line-height: var(--text-h1-line);
  word-break: break-word;
}

.hero__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-top: 129px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: var(--button-padding-y) var(--button-padding-x);
  border-radius: var(--radius-button);
  background: var(--color-accent);
  color: var(--color-secondary);
  font-size: var(--text-button-size);
  font-weight: var(--text-button-weight);
  white-space: nowrap;
  transition: filter 0.2s;
}

.hero__cta:hover {
  filter: brightness(1.08);
}

.hero__cta-icon {
  width: 20px;
  height: 20px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 75px;
  margin-left: auto;
}

.hero__stat-value {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--text-stat-size);
  font-weight: var(--text-stat-weight);
  line-height: 1.25;
  letter-spacing: 2.5px;
}

.hero__stat-value span {
  font-size: 40px;
}

.hero__stat-label {
  margin: 8px 0 0;
  max-width: 232px;
  font-size: var(--text-body-size);
  line-height: normal;
}

.scroll-top {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: var(--color-accent);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.scroll-top img {
  width: 24px;
  height: 24px;
}

@media (min-width: 1025px) {
  .hero__visual {
    position: relative;
    inset: auto;
    order: 2;
    z-index: 1;
    width: 100%;
    height: auto;
    margin-top: calc(-1 * (28px + 67px));
  }

  .hero__visual-picture {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
  }

  .hero__visual-image {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
  }

  .hero__visual-gradient {
    display: block;
    background: linear-gradient(
      to bottom,
      rgba(15, 18, 27, 0.35) 0%,
      rgba(15, 18, 27, 0) 28%
    );
  }

  .hero__inner--top {
    order: 1;
    z-index: 2;
    padding-bottom: 0;
  }

  .hero__inner--bottom {
    order: 3;
    z-index: 2;
    padding-top: 48px;
    background: var(--color-bg-dark);
  }

  .hero__title {
    margin-top: 0;
  }

  .hero__footer {
    margin-top: 64px;
  }
}

@media (max-width: 1536px) {
  :root {
    --content-padding: 120px;
  }

  .site-header {
    column-gap: 24px;
  }

  .site-header__nav {
    gap: 56px;
  }
}

@media (max-width: 1440px) {
  :root {
    --content-padding: 80px;
  }

  .site-header {
    column-gap: 24px;
  }

  .site-header__nav {
    gap: 56px;
  }

  .hero__title {
    font-size: 48px;
  }

  .hero__stats {
    gap: 40px;
  }
}

@media (max-width: 1280px) and (min-width: 1025px) {
  .site-header__nav {
    gap: 40px;
  }

  .site-header__brand {
    display: none;
  }
}

@media (max-width: 1024px) {
  :root {
    --content-padding: 40px;
  }

  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero__inner--top {
    flex-shrink: 0;
  }

  .hero__inner--bottom {
    margin-top: auto;
  }

  .hero__title {
    margin-top: 0;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo burger";
    gap: 16px;
  }

  .site-header__center {
    grid-area: logo;
    justify-self: start;
  }

  .site-header__brand {
    display: none;
  }

  .site-header__nav--left,
  .site-header__nav--right {
    display: none;
  }

  .site-header__burger {
    display: flex;
    grid-area: burger;
    justify-self: end;
    position: relative;
    z-index: 1;
  }

  .site-header__burger[aria-expanded="true"] {
    visibility: hidden;
    pointer-events: none;
  }

  .hero__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__stats {
    margin-left: 0;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero__features {
    bottom: 6%;
    gap: clamp(8px, 1.2vw, 20px);
    max-width: 50%;
  }

  .hero__features--left {
    left: 3%;
  }

  .hero__features--right {
    right: 3%;
  }
}

@media (max-width: 768px) {
  :root {
    --content-padding: 20px;
    --header-height: 100svh;
  }

  .hero {
    min-height: 100svh;
    height: 100svh;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__footer {
    margin-top: 60px;
  }

  .hero__stats {
    gap: 24px;
  }

  .hero__background {
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    max-height: none;
  }

  .hero__background-canvas {
    display: none;
  }

  .hero__background.is-ready .hero__background-fallback {
    opacity: 1;
  }

  .hero__background-fallback {
    object-fit: contain;
    object-position: center center;
  }

  .hero__crystal-label {
    font-size: clamp(10px, 3.4vw, 18px);
    letter-spacing: 0.1em;
    left: 75%;
    top: 42%;
  }

  .hero__scene-copy {
    padding-top: 30px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(92%, 360px);
  }

  .hero__scene-logo {
    display: none;
  }

  .hero__scene-title {
    font-size: clamp(18px, 5.2vw, 26px);
    letter-spacing: 0.02em;
  }

  .hero__scene-subtitle {
    margin-top: 10px;
    font-size: clamp(12px, 3.4vw, 15px);
  }

  .hero__features {
    left: clamp(8px, 2.5vw, 14px);
    right: clamp(8px, 2.5vw, 14px);
    max-width: none;
    width: auto;
    display: grid;
    grid-template-columns: minmax(0, 108px) minmax(0, 1fr) minmax(0, 108px);
    grid-template-rows: auto auto;
    gap: clamp(10px, 2.2vh, 16px) 0;
    align-items: start;
    justify-items: center;
  }

  .hero__features .hero__feature:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .hero__features .hero__feature:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .hero__features .hero__feature:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
  }

  .hero__features .hero__feature:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
  }

  .hero__features--left {
    top: 90px;
    bottom: auto;
  }

  .hero__features--right {
    top: auto;
    bottom: 90px;
  }

  .hero__feature {
    gap: 8px;
  }

  .hero__feature-icon {
    width: 28px;
    height: 28px;
  }

  .hero__feature-text {
    font-size: 12px;
    line-height: 1.25;
    white-space: normal;
  }

  .site-header__logo {
    width: 40px;
    height: 40px;
  }
}
