:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #ecedff;
  background: #010b24;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body {
  width: 100%; height: 100%; margin: 0;
  overflow: hidden; overscroll-behavior: none;
}
body { position: fixed; inset: 0; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.stage {
  --scene-height: min(90vh, 170vw);
  --scene-height: min(90dvh, 170vw);
  --scene-rx: 0deg; --scene-ry: 0deg; --scene-x: 0px; --scene-y: 0px;
  --backdrop-x: 0px; --backdrop-y: 0px;
  position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh;
  overflow: hidden; perspective: 1600px;
  background: radial-gradient(ellipse at 0 100%, #052044 0, transparent 40%),
              radial-gradient(ellipse at 100% 100%, #181344 0, transparent 40%), #010b24;
}
.stage::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(ellipse at 50% 43%, transparent 38%, #01061940 100%);
}
.backdrop {
  position: absolute; inset: -8%; z-index: 0; pointer-events: none;
  filter: blur(42px) saturate(1.18) brightness(.64);
  -webkit-mask-image: linear-gradient(90deg, #000, #000 18%, transparent 38%, transparent 62%, #000 82%, #000);
  mask-image: linear-gradient(90deg, #000, #000 18%, transparent 38%, transparent 62%, #000 82%, #000);
  transform: translate3d(var(--backdrop-x), var(--backdrop-y), -40px) scale(1.08);
  transition: transform 900ms cubic-bezier(.2,.7,.2,1);
}
.backdrop-still, .backdrop-video {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover;
}
.backdrop-video { opacity: 1; transition: opacity 160ms ease-out; }
.finished .backdrop-video { opacity: 0; }
.ground-glow {
  position: absolute; left: 50%; top: calc(50% + var(--scene-height) * .45);
  width: clamp(260px, 44vw, 760px); height: clamp(70px, 10vh, 120px);
  border-radius: 50%; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse, #5d5eed4d, #335eda33 38%, transparent 72%);
  filter: blur(18px); opacity: .7;
  transform: translate(-50%, -50%) rotateX(65deg); transform-origin: center;
}
.scene {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--scene-height) * 16 / 9); height: var(--scene-height); z-index: 2;
  transform: translate(-50%, -50%) translate3d(var(--scene-x), var(--scene-y), 0)
             rotateX(var(--scene-rx)) rotateY(var(--scene-ry));
  transform-origin: center; isolation: isolate;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent),
                      linear-gradient(0deg, transparent, #000 2%, #000 98%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent),
              linear-gradient(0deg, transparent, #000 2%, #000 98%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  transition: transform 900ms cubic-bezier(.2,.7,.2,1);
}
.intro, .final-image, .shine {
  position: absolute; inset: 0; display: block;
  width: 100%; height: 100%; object-fit: cover;
}
.final-image { z-index: 0; }
.intro { z-index: 1; opacity: 1; transition: opacity 160ms ease-out; }
.shine { z-index: 2; pointer-events: none; opacity: 0; transition: opacity 300ms ease; }
.finished .intro { opacity: 0; pointer-events: none; }
.intro-complete .shine { opacity: 1; }
.shine-trail, .shine-core {
  stroke-dasharray: 120 1500;
  stroke-dashoffset: 120;
  opacity: 0;
  animation: w-shine 4.8s ease-in-out infinite;
  animation-play-state: paused;
}
.shine-core { stroke-dasharray: 55 1500; }
.intro-complete .shine-trail, .intro-complete .shine-core { animation-play-state: running; }
@keyframes w-shine {
  0%, 12% { stroke-dashoffset: 120; opacity: 0; }
  17% { opacity: .62; }
  62% { stroke-dashoffset: -1000; opacity: .62; }
  66%, 100% { stroke-dashoffset: -1000; opacity: 0; }
}
.actions { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.action {
  --edge-x: 50%; --edge-y: 50%; --button-rx: 0deg; --button-ry: 0deg; --button-lift: 0px;
  position: absolute; top: 50%; transform: translateY(calc(-50% + 12px));
  display: inline-flex; justify-content: center; align-items: center;
  width: clamp(16.5rem, 20vw, 20rem); height: 4.75rem; min-height: 4.75rem;
  gap: 14px; padding: 16px 22px;
  border: 1px solid #c5bdec69; border-radius: 16px;
  background: linear-gradient(165deg, #303951e8 0%, #161c34e8 38%, #080d20f0 100%);
  color: #f0edff;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  font-size: .9375rem; font-weight: 500; letter-spacing: .035em; line-height: 1.4;
  text-decoration: none; text-align: center; pointer-events: none;
  opacity: 0; isolation: isolate; transform-style: preserve-3d;
  box-shadow: inset 0 2px 0 #ffffff24, inset 0 -2px 0 #000000a6,
              0 6px 0 #040719, 0 7px 0 1px #4a3d6880, 0 18px 36px #00000080;
  transition: opacity 550ms ease, transform 240ms cubic-bezier(.2,.7,.2,1),
              border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}
.action::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: radial-gradient(160px circle at var(--edge-x) var(--edge-y), #f1d6ff, #bc7bff 35%, #8f3de844 80%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; pointer-events: none; transition: opacity 200ms ease;
}
.action::after {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, transparent, #efe4ffa6, transparent);
  pointer-events: none;
}
.action-icon { flex: 0 0 auto; color: #c8c2e7; transform: translateZ(10px); transition: color 200ms ease, filter 200ms ease; }
.action span { position: relative; transform: translateZ(10px); text-shadow: 0 2px 4px #000000b3; }
.contact-action { left: max(7.5vw, env(safe-area-inset-left)); }
.trading-action { right: max(7.5vw, env(safe-area-inset-right)); }
.intro-complete .action {
  opacity: 1; pointer-events: auto;
  transform: translateY(calc(-50% + var(--button-lift))) perspective(700px)
             rotateX(var(--button-rx)) rotateY(var(--button-ry));
}
.action:hover, .action:focus-visible {
  --button-lift: -4px;
  border-color: #ba77ff; background-color: #37135e70;
  box-shadow: inset 0 2px 0 #ffeaff45, inset 0 -2px 0 #00000080,
              0 8px 0 #10091e, 0 9px 0 1px #ba77ff73,
              0 0 0 1px #a85dff40, 0 0 30px #a34cff66, 0 24px 46px #0000009e;
}
.action:hover::before, .action:focus-visible::before { opacity: 1; }
.action:hover .action-icon, .action:focus-visible .action-icon { color: #ddbbff; filter: drop-shadow(0 0 5px #af62ff80); }
.action:active {
  --button-lift: 2px; background-color: #4d187c80;
  box-shadow: inset 0 2px 5px #00000066, 0 2px 0 #10091e,
              0 3px 0 1px #ba77ff73, 0 0 24px #a34cff66, 0 10px 26px #00000080;
}
:focus-visible { outline: 2px solid #ce9aff; outline-offset: 5px; }
.play-prompt {
  position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 14px 24px; border: 1px solid #aeb7f688; border-radius: 6px;
  background: linear-gradient(160deg, #29324bed, #0a1026ed); color: #ecedff; font-size: 1rem;
  box-shadow: inset 0 1px 0 #ffffff29, 0 5px 0 #020617, 0 18px 38px #00000080;
}
dialog {
  width: min(480px, calc(100vw - 32px)); max-width: none;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid #c2acee66; border-radius: 18px;
  background: linear-gradient(155deg, #1d2740fa, #081024fa 60%); color: #ecedff;
  box-shadow: inset 0 2px 0 #ffffff1f, 0 8px 0 #020617, 0 0 80px #7032bb20, 0 40px 110px #000000b3;
}
dialog::backdrop { background: #000715b3; backdrop-filter: blur(8px); }
.contact-panel { padding: 30px; }
.contact-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.contact-header h2 { margin: 0; font-size: 1.5rem; font-weight: 500; letter-spacing: .02em; }
.contact-header p { margin: 8px 0 0; color: #aeb8d1; font-size: 1rem; }
.close-dialog {
  width: 36px; height: 36px; flex: 0 0 auto;
  display: grid; place-items: center; padding: 0;
  border: 1px solid #8294c533; border-radius: 6px; background: transparent;
  color: #c9d1e9; font-size: 1.5rem; line-height: 1;
}
.close-dialog:hover { background: #8ba3e315; }
form { display: grid; gap: 18px; }
.details-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field span { color: #c7d0e7; font-size: .875rem; }
input, textarea {
  min-width: 0; width: 100%; padding: 12px 13px;
  border: 1px solid #8094c537; border-radius: 5px; background: #020b1c;
  color: #f5f5ff; font-size: 1rem; line-height: 1.4;
}
input { min-height: 46px; }
textarea { height: clamp(70px, 16dvh, 136px); resize: none; }
input:focus, textarea:focus { border-color: #9eacff; outline-offset: 2px; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.send-button {
  min-height: 48px; padding: 12px 18px; border: 1px solid #abb0ef77;
  border-radius: 9px; background: linear-gradient(155deg, #3b4c75, #33234f);
  color: #fafaff; font-size: 1rem; font-weight: 500;
  box-shadow: inset 0 1px 0 #ffffff26, 0 4px 0 #020617, 0 12px 22px #0000004d;
}
.send-button:hover:not(:disabled) { border-color: #c88dff; box-shadow: inset 0 1px 0 #ffffff40, 0 4px 0 #020617, 0 0 24px #ac56ff40, 0 12px 22px #0000004d; }
.send-button:disabled { opacity: .65; cursor: wait; }
.form-status, .form-alternative { margin: 0; font-size: .875rem; line-height: 1.5; color: #b6c8ec; }
.form-status[data-kind="error"] { color: #ffbbb9; }
.form-alternative a { color: #c6b8ff; }
@media (max-width: 1180px), (max-aspect-ratio: 4/3) {
  .stage {
    --navigation-space: calc(4.75rem + max(24px, env(safe-area-inset-bottom)) + 32px);
    --scene-height: min(calc((100vh - var(--navigation-space)) * .92), 170vw);
    --scene-height: min(calc((100dvh - var(--navigation-space)) * .92), 170vw);
  }
  .scene { top: calc((100% - var(--navigation-space)) / 2); }
  .ground-glow { top: calc((100% - var(--navigation-space)) / 2 + var(--scene-height) * .45); }
  .actions {
    inset: auto 0 max(24px, env(safe-area-inset-bottom));
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 16px;
    width: calc(100% - 40px); max-width: 660px; margin-inline: auto;
  }
  .action {
    position: relative; top: auto; left: auto; right: auto; transform: translateY(12px);
    width: 100%; min-width: 0; padding: 14px 12px;
    gap: 10px; font-size: .875rem; letter-spacing: .015em;
  }
  .intro-complete .action { transform: translateY(var(--button-lift)) perspective(700px) rotateX(var(--button-rx)) rotateY(var(--button-ry)); }
  .action-icon { width: 18px; height: 18px; }
}
@media (max-width: 460px) {
  .action-icon { display: none; }
}
@media (max-width: 380px) {
  .actions { width: calc(100% - 28px); gap: 10px; }
  .action { padding-inline: 10px; gap: 8px; }
  .trading-action span { max-width: 135px; }
  .contact-panel { padding: 22px; }
  .details-row { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-height: 600px) {
  .contact-panel { padding: 18px 22px; }
  .contact-header { margin-bottom: 10px; }
  .contact-header h2 { font-size: 1.25rem; }
  .contact-header p { display: none; }
  form { gap: 8px; }
  .details-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .field { gap: 5px; }
  input { min-height: 40px; padding: 8px 10px; }
  textarea { height: 52px; padding: 8px 10px; }
  .send-button { min-height: 42px; padding: 8px 14px; }
  .form-status, .form-alternative { font-size: .8125rem; line-height: 1.3; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .shine-trail, .shine-core { animation: none; }
  .scene { transform: translate(-50%, -50%); }
  .backdrop { transform: scale(1.08); }
  .intro-complete .action { transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 1180px),
       (prefers-reduced-motion: reduce) and (max-aspect-ratio: 4/3) {
  .intro-complete .action { transform: none; }
}
