:root {
  --bg: #070810;
  --ink: #f6f4ff;
  --muted: #b8b2c9;
  --line: rgba(255, 255, 255, 0.16);
  --violet: #8b28ff;
  --violet-2: #b064ff;
  --cyan: #64e8ff;
  --panel: rgba(12, 12, 24, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 78% 36%, rgba(139, 40, 255, 0.22), transparent 30rem),
    radial-gradient(circle at 20% 78%, rgba(100, 232, 255, 0.08), transparent 25rem),
    linear-gradient(115deg, #05060c 0%, #0a0a15 47%, #100822 100%);
  overflow-x: hidden;
}

body,
.shell {
  max-width: 100%;
}

a {
  color: inherit;
}

.shell {
  position: relative;
  width: min(100%, 1500px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 380px);
  align-items: center;
  min-height: min(820px, calc(100vh - 180px));
  padding: clamp(28px, 6vw, 86px) 0 34px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -56px;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 45%, black, transparent 72%);
}

.ambient {
  position: fixed;
  inset: auto;
  z-index: -4;
  pointer-events: none;
}

.ambient-left {
  left: -14vw;
  bottom: -12vh;
  width: 44vw;
  height: 44vw;
  background: radial-gradient(circle, rgba(100, 232, 255, 0.08), transparent 65%);
}

.ambient-right {
  right: -7vw;
  top: 10vh;
  width: 36vw;
  height: 44vw;
  background: radial-gradient(circle, rgba(139, 40, 255, 0.25), transparent 66%);
}

.watermark {
  position: absolute;
  left: -7vw;
  top: 29%;
  width: min(32vw, 430px);
  opacity: 0.08;
  filter: drop-shadow(0 0 36px rgba(255, 255, 255, 0.2));
  z-index: -1;
}

.watermark img {
  width: 100%;
}

.hero-copy {
  width: min(780px, 100%);
  justify-self: center;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(680px, 86vw);
  margin: 0 auto clamp(28px, 4.2vw, 48px);
  text-decoration: none;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.55));
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--violet-2);
  font-size: clamp(0.82rem, 1.4vw, 1.04rem);
  font-weight: 800;
  letter-spacing: 0.54em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.25),
    0 0 34px rgba(255, 255, 255, 0.12);
}

h1 span {
  display: block;
  color: var(--violet);
  text-shadow: 0 0 34px rgba(139, 40, 255, 0.55);
}

.divider {
  width: 68px;
  height: 2px;
  margin: 28px auto 24px;
  background: linear-gradient(90deg, transparent, var(--violet-2), transparent);
}

.intro {
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.6;
}

.intro strong {
  color: var(--violet-2);
  font-weight: 700;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: clamp(42px, 5.8vw, 70px) auto 0;
}

.feature {
  min-width: 0;
  padding: 0 clamp(18px, 2.8vw, 44px);
  border-right: 1px solid var(--line);
}

.feature:last-child {
  border-right: 0;
}

.feature svg,
.contact-item svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: var(--violet);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  filter: drop-shadow(0 0 14px rgba(139, 40, 255, 0.44));
}

.feature h2 {
  margin: 16px 0 8px;
  font-size: 0.95rem;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: uppercase;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.portal {
  position: relative;
  align-self: stretch;
  display: grid;
  place-items: center;
  min-height: 540px;
  perspective: 900px;
}

.door {
  position: relative;
  width: min(46vw, 188px);
  min-width: 148px;
  aspect-ratio: 0.42;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), transparent 22%),
    linear-gradient(180deg, rgba(207, 143, 255, 0.92), rgba(84, 31, 154, 0.85));
  box-shadow:
    0 0 42px rgba(139, 40, 255, 0.84),
    0 0 120px rgba(139, 40, 255, 0.38),
    inset 0 0 48px rgba(255, 255, 255, 0.26);
  transform: rotateY(-18deg) skewY(-5deg);
  overflow: hidden;
  animation: pulseDoor 4s ease-in-out infinite;
}

.door::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 24px #fff;
}

.door::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 55% 36%, rgba(255, 255, 255, 0.25), transparent 32%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  mix-blend-mode: screen;
}

.door img {
  position: absolute;
  top: 27%;
  left: 50%;
  width: 78%;
  transform: translateX(-50%);
  opacity: 0.55;
  filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.4));
}

.skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background:
    linear-gradient(to top, rgba(9, 7, 22, 0.78), rgba(9, 7, 22, 0.12)),
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(255, 255, 255, 0.14) 12px 13px, transparent 13px 22px);
  clip-path: polygon(0 100%, 0 62%, 10% 62%, 10% 36%, 21% 36%, 21% 72%, 32% 72%, 32% 44%, 44% 44%, 44% 24%, 56% 24%, 56% 68%, 68% 68%, 68% 35%, 81% 35%, 81% 58%, 92% 58%, 92% 48%, 100% 48%, 100% 100%);
}

.steps {
  position: absolute;
  left: 50%;
  bottom: 13%;
  width: min(36vw, 330px);
  height: 130px;
  transform: translateX(-52%) rotateX(58deg) rotateZ(2deg);
  transform-style: preserve-3d;
}

.steps span {
  position: absolute;
  left: 0;
  right: 0;
  height: 30px;
  border: 1px solid rgba(190, 103, 255, 0.5);
  background: linear-gradient(90deg, rgba(16, 12, 32, 0.1), rgba(139, 40, 255, 0.62), rgba(16, 12, 32, 0.12));
  box-shadow: 0 0 26px rgba(139, 40, 255, 0.46);
}

.steps span:nth-child(1) {
  top: 0;
  width: 52%;
  margin-left: 34%;
}

.steps span:nth-child(2) {
  top: 38px;
  width: 72%;
  margin-left: 20%;
}

.steps span:nth-child(3) {
  top: 76px;
  width: 100%;
}

.contact-band {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr minmax(190px, 0.72fr);
  align-items: center;
  gap: 24px;
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 30px 36px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(14, 14, 29, 0.74), rgba(8, 8, 17, 0.88));
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.contact-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.contact-item svg {
  width: 44px;
  height: 44px;
}

.contact-item p {
  margin: 0;
  color: #ece9f6;
  font-size: 0.98rem;
  line-height: 1.48;
}

.contact-item a {
  color: var(--violet-2);
  text-decoration: none;
}

.contact-item a:hover {
  color: #fff;
}

.socials {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 36px);
}

.socials a {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease, color 180ms ease;
}

.socials a:hover {
  color: var(--violet-2);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.socials svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

footer {
  padding: 28px 0 0;
  color: rgba(246, 244, 255, 0.5);
  font-size: 0.95rem;
  text-align: center;
}

@keyframes pulseDoor {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.18);
  }
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 22px;
  }

  .portal {
    order: -1;
    min-height: 290px;
    margin-bottom: -10px;
  }

  .door {
    width: 128px;
  }

  .steps {
    bottom: 2%;
    width: 240px;
    height: 90px;
  }

  .contact-band {
    grid-template-columns: 1fr;
    width: min(100%, 720px);
  }

  .contact-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 22px;
  }
}

@media (max-width: 720px) {
  .ambient {
    display: none;
  }

  .shell {
    padding: 22px 18px 28px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 28px;
  }

  .hero::before {
    inset: 0;
  }

  .brand {
    width: min(350px, 90vw);
    margin-bottom: 30px;
  }

  .eyebrow {
    letter-spacing: 0.34em;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 22px;
    width: min(100%, 360px);
  }

  .watermark {
    left: 0;
    width: 150px;
  }

  .feature {
    display: grid;
    grid-template-columns: 54px 1fr;
    column-gap: 18px;
    text-align: left;
    padding: 0;
    border-right: 0;
  }

  .feature h2 {
    margin-top: 4px;
  }

  .feature p {
    grid-column: 2;
  }

  .contact-band {
    padding: 24px 20px;
  }

  .contact-item {
    grid-template-columns: 44px 1fr;
    gap: 14px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.15rem;
  }

  .intro,
  .contact-item p {
    font-size: 0.94rem;
  }

  .portal {
    min-height: 245px;
  }

  .door {
    width: 108px;
  }
}

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