:root {
  --purple: #7b2cbf;
  --purple-dark: #32104f;
  --purple-deep: #1d092f;
  --orange: #ff6b35;
  --ink: #17131c;
  --muted: #6f6975;
  --line: #e9e4ec;
  --paper: #ffffff;
  --canvas: #eeeaf1;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: clamp(0px, 2vw, 28px);
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(123, 44, 191, .28);
  outline-offset: 3px;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  min-height: calc(100vh - clamp(0px, 4vw, 56px));
  min-height: calc(100svh - clamp(0px, 4vw, 56px));
  max-width: 1500px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 24px 80px rgba(34, 16, 45, .14);
}

.content-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  padding: clamp(28px, 4.5vw, 72px);
  background: var(--paper);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 10;
}

.logo {
  display: inline-flex;
  line-height: 0;
}

.logo img {
  display: block;
  width: clamp(142px, 14vw, 190px);
  height: auto;
}

.lang-picker {
  position: relative;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 6px 8px 6px 7px;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
}

.lang-trigger:hover,
.lang-picker.is-open .lang-trigger {
  background: #f7f4f8;
  border-color: var(--line);
}

.lang-trigger svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform .25s ease;
}

.lang-picker.is-open .lang-trigger svg {
  transform: rotate(180deg);
}

.lang-code {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  color: white;
  background: var(--purple-dark);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .06em;
}

.lang-name {
  font-size: 13px;
  font-weight: 650;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 176px;
  padding: 6px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(34, 16, 45, .16);
  backdrop-filter: blur(16px);
  transform-origin: top right;
  animation: menu-in .2s var(--ease) both;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 550;
}

.lang-option:hover,
.lang-option:focus-visible {
  background: #f5f0f8;
  outline: 0;
}

.lang-option[aria-selected="true"] {
  color: var(--purple);
  background: #f5f0f8;
  font-weight: 700;
}

.lang-option span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
}

.intro {
  align-self: center;
  width: min(100%, 670px);
  padding: clamp(56px, 8vh, 112px) 0 clamp(26px, 5vh, 70px);
}

.status {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 24px;
  color: var(--purple);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .19em;
}

.status span {
  position: relative;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
}

.status span::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(255, 107, 53, .38);
  border-radius: inherit;
  animation: status-pulse 2.8s ease-out infinite;
}

h1 {
  max-width: 780px;
  margin: 0 0 clamp(28px, 4vh, 46px);
  font-family: var(--serif);
  font-size: clamp(58px, 7vw, 108px);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -.065em;
  line-height: .88;
}

.copy {
  max-width: 650px;
}

.copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.72;
}

.copy p + p {
  margin-top: 15px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 430px);
  min-height: 64px;
  margin-top: clamp(34px, 5vh, 58px);
  padding: 0 8px 0 21px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(42, 24, 51, .09);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
}

.contact-link:hover {
  transform: translateY(-3px);
  border-color: rgba(123, 44, 191, .3);
  box-shadow: 0 18px 42px rgba(42, 24, 51, .14);
}

.contact-link svg {
  width: 48px;
  height: 48px;
  padding: 14px;
  color: white;
  background: var(--purple-dark);
  border-radius: 50%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: transform .3s var(--ease), background .3s ease;
}

.contact-link:hover svg {
  transform: rotate(-8deg);
  background: var(--purple);
}

.visual-panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .06), transparent 38%),
    radial-gradient(circle at 16% 12%, rgba(255, 107, 53, .42), transparent 26%),
    radial-gradient(circle at 82% 84%, rgba(157, 78, 221, .55), transparent 35%),
    linear-gradient(145deg, #32104f 0%, #1d092f 62%, #12051f 100%);
}

.visual-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .17;
  background-image:
    linear-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .13) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}

.visual-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  animation: drift 12s ease-in-out infinite alternate;
}

.visual-glow--one {
  top: 6%;
  right: -16%;
  width: 390px;
  height: 390px;
  background: var(--orange);
}

.visual-glow--two {
  bottom: -13%;
  left: -18%;
  width: 430px;
  height: 430px;
  background: var(--purple);
  animation-delay: -6s;
}

.visual-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(78%, 650px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  width: 9px;
  height: 9px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255, 107, 53, .85);
}

.orbit--outer {
  width: 100%;
  height: 100%;
  animation: orbit-spin 28s linear infinite;
}

.orbit--middle {
  width: 72%;
  height: 72%;
  border-style: dashed;
  animation: orbit-spin 21s linear infinite reverse;
}

.orbit--inner {
  width: 43%;
  height: 43%;
  animation: orbit-spin 15s linear infinite;
}

.constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.constellation path {
  stroke: rgba(255, 255, 255, .22);
  stroke-width: 1;
  stroke-dasharray: 6 9;
  animation: line-flow 18s linear infinite;
}

.constellation circle {
  fill: rgba(255, 255, 255, .9);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, .55));
  animation: node-breathe 3.6s ease-in-out infinite alternate;
}

.constellation circle:nth-of-type(even) {
  fill: var(--orange);
  animation-delay: -1.8s;
}

.constellation .constellation__core {
  fill: transparent;
  stroke: rgba(255, 255, 255, .3);
  stroke-width: 2;
}

.visual-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  box-shadow: inset 0 0 30px rgba(255, 255, 255, .06), 0 0 60px rgba(123, 44, 191, .3);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
}

.visual-core span {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #fff 10%, #ffb195 100%);
  border-radius: 50%;
  box-shadow: 0 0 32px rgba(255, 255, 255, .75);
  animation: core-pulse 3s ease-in-out infinite;
}

.visual-signature {
  position: absolute;
  right: clamp(24px, 4vw, 64px);
  bottom: clamp(24px, 4vw, 56px);
  margin: 0;
  color: rgba(255, 255, 255, .52);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .34em;
}

.appear {
  opacity: 0;
  transform: translateY(18px);
  animation: appear .85s var(--ease) forwards;
}

.appear--1 { animation-delay: .08s; }
.appear--2 { animation-delay: .2s; }
.appear--3 { animation-delay: .3s; }
.appear--4 { animation-delay: .42s; }
.appear--5 { animation-delay: .54s; }

@keyframes appear {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-7px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes status-pulse {
  0% { opacity: .8; transform: scale(.5); }
  75%, 100% { opacity: 0; transform: scale(1.8); }
}

@keyframes drift {
  to { transform: translate3d(35px, -24px, 0) scale(1.08); }
}

@keyframes orbit-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes line-flow {
  to { stroke-dashoffset: -150; }
}

@keyframes node-breathe {
  to { opacity: .45; transform: scale(.82); transform-origin: center; }
}

@keyframes core-pulse {
  50% { transform: scale(.78); opacity: .72; }
}

@media (max-width: 980px) {
  body {
    padding: 0;
  }

  .page-shell {
    grid-template-columns: 1fr;
    min-height: 100svh;
  }

  .content-panel {
    min-height: 68svh;
    padding: clamp(25px, 6vw, 52px);
  }

  .intro {
    padding-top: clamp(54px, 9vh, 90px);
  }

  h1 {
    font-size: clamp(58px, 12vw, 90px);
  }

  .visual-panel {
    min-height: 42svh;
  }

  .visual-stage {
    width: min(56%, 390px);
  }
}

@media (max-width: 560px) {
  .content-panel {
    min-height: 72svh;
    padding: 23px 21px 38px;
  }

  .logo img {
    width: 128px;
  }

  .lang-name {
    display: none;
  }

  .lang-trigger {
    gap: 5px;
  }

  .intro {
    padding-top: 52px;
  }

  .status {
    margin-bottom: 19px;
  }

  h1 {
    margin-bottom: 26px;
    font-size: clamp(52px, 18vw, 72px);
  }

  .copy p {
    font-size: 15px;
    line-height: 1.62;
  }

  .contact-link {
    min-height: 58px;
    margin-top: 33px;
  }

  .contact-link svg {
    width: 42px;
    height: 42px;
    padding: 12px;
  }

  .visual-panel {
    min-height: 34svh;
  }

  .visual-stage {
    width: min(70%, 280px);
  }

  .visual-core {
    width: 74px;
    height: 74px;
  }

  .visual-core span {
    width: 22px;
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
