:root {
  --blue-core: #1645ff;
  --blue-main: #062dfb;
  --blue-outer: #061a75;
  --black: #02030a;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
}

body {
  background: var(--black);
  color: #fff;
  font-family: "Inter", Arial, Helvetica, sans-serif;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  z-index: 1;
  overflow: visible;
  isolation: isolate;
  background: var(--black);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 70% 50% at 50% 58%,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.12) 52%,
      rgba(0, 0, 0, 0.78) 100%
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0) 12%,
      rgba(0, 0, 0, 0) 88%,
      rgba(0, 0, 0, 0.45) 100%
    );
  animation: heroVignetteReveal 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.site-header {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.75rem);
  right: clamp(1.25rem, 4vw, 4rem);
  left: clamp(1.25rem, 4vw, 4rem);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-toggle,
.drawer-close {
  display: grid;
  place-content: center;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.menu-toggle {
  margin-left: auto;
  gap: 0.32rem;
  width: 3rem;
  height: 3rem;
  padding: 0.55rem 0;
  background: transparent;
  transition: filter 180ms ease, transform 180ms ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  outline: none;
  transform: scale(1.04);
}

.menu-toggle span {
  display: block;
  width: 1.6rem;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  box-shadow: none;
  transition: box-shadow 180ms ease;
}

.menu-toggle:hover span,
.menu-toggle:focus-visible span,
.drawer-close:hover span,
.drawer-close:focus-visible span {
  box-shadow:
    0 0 3px rgba(255, 255, 255, 0.95),
    0 0 9px rgba(255, 255, 255, 0.6);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 8;
  visibility: hidden;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.site-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  display: flex;
  width: min(86vw, 26rem);
  padding: clamp(1.5rem, 5vw, 3rem);
  flex-direction: column;
  border-left: 1px solid #949494;
  background: linear-gradient(145deg, rgba(7, 12, 30, 0.98), rgba(2, 3, 10, 0.99));
  box-shadow: -20px 0 70px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-drawer__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(194, 207, 255, 0.65);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.drawer-close {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
}

.drawer-close span {
  position: absolute;
  width: 1.4rem;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  box-shadow: none;
  transition: box-shadow 180ms ease;
}

.drawer-close span:first-child {
  transform: rotate(45deg);
}

.drawer-close span:last-child {
  transform: rotate(-45deg);
}

.site-drawer__nav {
  display: grid;
  gap: clamp(1.25rem, 4vw, 2rem);
  margin: auto 0;
}

.site-drawer__nav a {
  width: fit-content;
  color: #fff;
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0;
  text-decoration: none;
  text-shadow: none;
  transition: color 180ms ease, transform 180ms ease, text-shadow 180ms ease;
}

.site-drawer__nav a:hover,
.site-drawer__nav a:focus-visible {
  color: #fff;
  outline: none;
  text-shadow:
    0 0 2px rgba(255, 255, 255, 1),
    0 0 10px rgba(255, 255, 255, 0.9),
    0 0 22px rgba(255, 255, 255, 0.5);
  transform: translateX(0.4rem);
}

.site-drawer__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-radius: 999px;
  background: #fff;
  color: #03050d;
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
}

.site-drawer__cta span {
  font-size: 1.35rem;
}

.drawer-is-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.drawer-is-open .drawer-backdrop {
  visibility: visible;
  opacity: 1;
}

.drawer-is-open .site-drawer {
  transform: translateX(0);
}

.description {
  position: relative;
  z-index: 0;
  padding: clamp(8rem, 16vw, 13rem) clamp(1.5rem, 8vw, 10rem);
  overflow: hidden;
  background:
    linear-gradient(180deg, #050505 0%, #0b0b0b 100%),
    var(--black);
}

.description__inner {
  display: grid;
  grid-template-columns: minmax(12rem, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 8rem);
  width: min(100%, 78rem);
  margin: 0 auto;
}

.description__mascot {
  display: grid;
  place-items: center;
}

.description__mascot img {
  display: block;
  width: min(22rem, 100%);
  height: auto;
  object-fit: contain;
  transform: none;
}

.description__content {
  min-width: 0;
}

.description__quote {
  position: relative;
  left: clamp(1rem, 5vw, 4rem);
  max-width: 44rem;
  margin: 0 0 0 auto;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.5rem, 3.3vw, 3rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.description__quote strong {
  color: #fff;
  font-weight: 900;
}

.description__author {
  position: relative;
  left: clamp(1rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: clamp(1.75rem, 4vw, 3rem);
  margin-left: auto;
  max-width: 44rem;
}

.description__author img {
  width: clamp(3rem, 5vw, 4rem);
  height: clamp(3rem, 5vw, 4rem);
  border-radius: 50%;
  object-fit: cover;
}

.description__name,
.description__role {
  margin: 0;
}

.description__name {
  color: #fff;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 500;
}

.description__role {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: clamp(0.72rem, 1vw, 0.85rem);
}

.work-in-progress {
  margin: 0;
  padding: 1.5rem 1rem 2rem;
  background: #0b0b0b;
  color: rgba(255, 255, 255, 0.38);
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.hero__visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transform: translateY(clamp(1.75rem, 4vw, 3rem));
}

.hero__blue-glow {
  position: absolute;
  left: 50%;
  bottom: clamp(15px, 4vh, 60px);
  z-index: 1;
  width: min(62vw, 780px);
  height: min(42vw, 470px);
  transform: translateX(-50%);
  pointer-events: none;
  animation:
    heroGlowReveal 1.8s cubic-bezier(0.16, 1, 0.3, 1) both,
    heroGlowBreathe 9s 1.8s ease-in-out infinite;
  will-change: transform, opacity;
}

.hero__glow-layer {
  position: absolute;
  display: block;
  pointer-events: none;
}

.hero__glow-layer--outer {
  inset: -35% -45%;
  background:
    radial-gradient(
      ellipse 72% 56% at 50% 68%,
      rgba(6, 45, 251, 0.48) 0%,
      rgba(6, 45, 251, 0.38) 18%,
      rgba(8, 35, 180, 0.24) 38%,
      rgba(6, 26, 130, 0.12) 56%,
      rgba(4, 18, 90, 0.05) 72%,
      rgba(3, 12, 50, 0.015) 86%,
      rgba(2, 3, 10, 0) 100%
    );
  filter: blur(68px);
}

.hero__glow-layer--mid {
  inset: -14% -22%;
  mix-blend-mode: screen;
  background:
    radial-gradient(
      ellipse 62% 50% at 50% 66%,
      #4d8aff 0%,
      #1a64ff 18%,
      #062dfb 35%,
      rgba(6, 45, 251, 0.65) 50%,
      rgba(6, 45, 251, 0.32) 65%,
      rgba(6, 45, 251, 0.12) 80%,
      rgba(6, 45, 251, 0.02) 92%,
      rgba(6, 45, 251, 0) 100%
    );
  filter: blur(42px) brightness(1.3);
}

.hero__glow-layer--core {
  left: 50%;
  bottom: 10%;
  width: 44%;
  height: 44%;
  transform: translate(-50%, 0);
  mix-blend-mode: screen;
  background: radial-gradient(
    ellipse 65% 55% at 50% 55%,
    #ffffff 0%,
    #ffffff 18%,
    rgba(242, 248, 255, 0.96) 32%,
    rgba(195, 225, 255, 0.72) 50%,
    rgba(110, 165, 255, 0.36) 68%,
    rgba(6, 45, 251, 0.08) 85%,
    rgba(6, 45, 251, 0) 100%
  );
  filter: blur(16px);
}

.hero__title {
  position: absolute;
  top: clamp(1.35rem, 2.15vw, 2.05rem);
  left: 50%;
  z-index: 2;
  width: 100%;
  margin: 0;
  transform: translateX(-50%) scaleX(0.86) scaleY(1.18);
  transform-origin: top center;
  color: #fff;
  font-size: clamp(4.8rem, 15.4vw, 14.35rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: 0;
  text-align: center;
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.98),
    0 0 10px rgba(255, 255, 255, 0.76),
    0 0 22px rgba(255, 255, 255, 0.46),
    0 0 40px rgba(255, 255, 255, 0.27),
    0 0 66px rgba(255, 255, 255, 0.14);
  white-space: nowrap;
  animation: heroTitleReveal 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
  will-change: transform, opacity, filter;
}

.hero__mockup {
  position: absolute;
  left: 50%;
  bottom: -28px;
  z-index: 3;
  width: auto;
  height: min(96vh, 1018px);
  max-width: 96vw;
  transform: translateX(-50%);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.86));
  user-select: none;
  animation: heroMockupReveal 1.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
  will-change: transform, opacity;
}

@media (max-aspect-ratio: 1 / 1) {
  .hero {
    min-height: 100svh;
    overflow: hidden;
  }

  .hero::before {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;
    height: clamp(3rem, 10vh, 7rem);
    content: "";
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(2, 3, 10, 0) 0%,
      rgba(2, 3, 10, 0.78) 68%,
      var(--black) 100%
    );
  }

  .site-header {
    top: clamp(1.25rem, 3vw, 2.5rem);
  }

  .menu-toggle {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.45rem 0;
  }

  .menu-toggle span {
    width: 1.35rem;
  }

  .hero__title {
    top: clamp(3.35rem, 20vw, 7.5rem);
    font-size: clamp(3.8rem, 18.5vw, 8.2rem);
  }

  .description {
    padding: 1rem 1.5rem 7rem;
  }

  .description__inner {
    grid-template-columns: 1fr;
    gap: 1rem;
    transform: translateY(calc(-1 * clamp(2rem, 7vw, 3rem)));
  }

  .description__content {
    position: relative;
    z-index: 1;
    transform: translateY(calc(-1 * clamp(5rem, 20vw, 9rem)));
  }

  .description__mascot {
    margin: 0.5rem 0 3rem;
    justify-items: center;
  }

  .description__mascot img {
    width: min(14rem, 58vw);
    height: auto;
    transform: none;
  }

  .description__quote {
    left: 0;
    max-width: 34rem;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(1.3rem, 5.2vw, 2rem);
    text-align: center;
  }

  .description__author {
    left: 0;
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
  }

  .hero__mockup {
    top: clamp(72px, 18vw, 135px);
    bottom: auto;
    width: min(140vw, 760px);
    height: auto;
    max-width: none;
  }

  .hero__blue-glow {
    bottom: clamp(96px, 20vh, 175px);
    width: min(170vw, 1120px);
    height: min(100vw, 760px);
  }

  .hero__glow-layer--core {
    width: 44%;
    height: 44%;
    filter: blur(14px);
  }

  .hero__glow-layer--mid {
    filter: blur(34px) brightness(1.3);
  }

  .hero__glow-layer--outer {
    filter: blur(52px);
  }
}

/* ==========================================================================
   Keyframe Animations (A24 / Apple Cinematic Sequence)
   ========================================================================== */

@keyframes heroVignetteReveal {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes heroTitleReveal {
  0% {
    opacity: 0;
    transform: translateX(-50%) scaleX(0.86) scaleY(1.18) scale(0.94);
    filter: blur(14px);
    letter-spacing: 0.04em;
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scaleX(0.86) scaleY(1.18) scale(1);
    filter: blur(0px);
    letter-spacing: 0;
  }
}

@keyframes heroMockupReveal {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(45px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes heroGlowReveal {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.82);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes heroGlowBreathe {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    filter: brightness(1);
  }
  50% {
    transform: translateX(-50%) scale(1.035);
    filter: brightness(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after,
  .hero__title,
  .hero__mockup,
  .hero__blue-glow {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .hero__title {
    transform: translateX(-50%) scaleX(0.86) scaleY(1.18) !important;
  }

  .hero__mockup,
  .hero__blue-glow {
    transform: translateX(-50%) !important;
  }
}
