:root {
  --bg: #04050c;
  --bg-deep: #090b15;
  --surface: rgba(10, 13, 28, 0.76);
  --surface-strong: rgba(13, 18, 38, 0.88);
  --surface-soft: rgba(18, 24, 47, 0.54);
  --panel-border: rgba(176, 191, 255, 0.14);
  --panel-border-strong: rgba(176, 191, 255, 0.22);
  --text: #f5f7ff;
  --muted: #a5b0cf;
  --muted-strong: #ccd3ea;
  --accent: #01c3de;
  --accent-2: #711be4;
  --accent-soft: rgba(113, 27, 228, 0.24);
  --accent-cyan-soft: rgba(1, 195, 222, 0.2);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-lg: 0 32px 120px rgba(0, 0, 0, 0.44);
  --shadow-md: 0 22px 50px rgba(0, 0, 0, 0.28);
  --transition-smooth: 420ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  font-size: 16px;
  line-height: 1.4;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(113, 27, 228, 0.18), transparent 26%),
    radial-gradient(circle at 82% 14%, rgba(1, 195, 222, 0.15), transparent 20%),
    radial-gradient(circle at 74% 72%, rgba(113, 27, 228, 0.12), transparent 26%),
    linear-gradient(150deg, #04050c 0%, #090b15 36%, #0d1325 100%);
}

::selection {
  color: #ffffff;
  background: rgba(113, 27, 228, 0.45);
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.portal {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: clamp(14px, 2.8vw, 32px);
  isolation: isolate;
}

.portal__mesh,
.portal__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.portal__mesh {
  background:
    radial-gradient(circle at 15% 20%, rgba(113, 27, 228, 0.16), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(1, 195, 222, 0.14), transparent 24%),
    radial-gradient(circle at 60% 80%, rgba(113, 27, 228, 0.08), transparent 24%);
  filter: blur(28px);
  opacity: 0.9;
}

.portal__noise {
  opacity: 0.05;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.9) 0.6px, transparent 0.6px);
  background-size: 10px 10px;
  mix-blend-mode: soft-light;
}

.portal__glow {
  position: absolute;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  filter: blur(34px);
  opacity: 0.38;
  pointer-events: none;
}

.portal__glow--left {
  top: -10rem;
  left: -8rem;
  background: rgba(113, 27, 228, 0.28);
}

.portal__glow--right {
  right: -9rem;
  bottom: -11rem;
  background: rgba(1, 195, 222, 0.22);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
  max-width: 1140px;
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 52px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(15, 18, 34, 0.84), rgba(8, 11, 24, 0.84)),
    linear-gradient(135deg, rgba(113, 27, 228, 0.05), transparent 38%),
    linear-gradient(220deg, rgba(1, 195, 222, 0.06), transparent 42%);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.05), transparent 80%);
  opacity: 0.65;
  transform: translateX(-130%);
  animation: hero-sheen 10s ease-in-out infinite;
  pointer-events: none;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 18% 22%, black, transparent 72%);
  opacity: 0.35;
  pointer-events: none;
}

.hero__content,
.hero__brand {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero__content {
  width: 100%;
}

.hero__brand {
  display: flex;
  justify-content: center;
}

.hero__logo {
  width: min(100%, 320px);
  filter: drop-shadow(0 24px 56px rgba(0, 0, 0, 0.48));
  transform-origin: center;
  animation: float-logo 8s ease-in-out infinite;
}

.hero__eyebrow,
.authors__label {
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.hero__eyebrow,
.authors__label {
  margin: 0 0 14px;
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 700;
}

.hero__content h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.6rem, 5.6vw, 5.3rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hero__text {
  max-width: 34rem;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.authors {
  position: relative;
  margin-top: 34px;
  padding: 24px 0 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.authors::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 116px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(113, 27, 228, 0.9), transparent);
}

.authors__names {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.authors__divider {
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, rgba(1, 195, 222, 0.2), rgba(113, 27, 228, 0.9), rgba(1, 195, 222, 0.2));
}

.authors__meta {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hero__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
  width: 100%;
}

.portal-link {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  align-content: start;
  min-height: 100%;
  min-height: 96px;
  padding: 18px 24px;
  border: 1px solid rgba(190, 204, 255, 0.14);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(18, 23, 45, 0.96), rgba(11, 14, 28, 0.96)),
    linear-gradient(135deg, rgba(113, 27, 228, 0.06), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transform: translateZ(0);
  transition:
    transform var(--transition-smooth),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.portal-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 16%, rgba(255, 255, 255, 0.08), transparent 70%);
  transform: translateX(-130%);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portal-link::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  opacity: 0.34;
}

.portal-link--featured {
  border-color: rgba(1, 195, 222, 0.22);
  background:
    linear-gradient(180deg, rgba(20, 27, 54, 0.98), rgba(10, 15, 30, 0.96)),
    linear-gradient(135deg, rgba(1, 195, 222, 0.18), rgba(113, 27, 228, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 42px rgba(1, 195, 222, 0.06);
}

.portal-link:hover,
.portal-link:focus-visible {
  transform: translateY(-6px);
  border-color: var(--panel-border-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 44px rgba(0, 0, 0, 0.28);
}

.portal-link:hover::before,
.portal-link:focus-visible::before {
  transform: translateX(130%);
}

.portal-link:active {
  transform: translateY(-2px) scale(0.995);
}

.portal-link:focus-visible {
  outline: 2px solid rgba(1, 195, 222, 0.76);
  outline-offset: 4px;
}

.portal-link__title {
  display: block;
  max-width: calc(100% - 34px);
  margin-top: 0;
  padding-right: 18px;
  font-size: clamp(1.18rem, 1.02rem + 0.55vw, 1.5rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.portal-link__eyebrow {
  display: none;
}

.portal-link__arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 14px;
  height: 14px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.76);
  border-right: 1.5px solid rgba(255, 255, 255, 0.76);
  transform: rotate(45deg) translate(0, 0);
  transition:
    transform var(--transition-fast),
    opacity var(--transition-fast),
    border-color var(--transition-fast);
  opacity: 0.74;
}

.portal-link:hover .portal-link__arrow,
.portal-link:focus-visible .portal-link__arrow {
  transform: rotate(45deg) translate(3px, -3px);
  border-color: #ffffff;
  opacity: 1;
}

.portal-link:hover .portal-link__eyebrow,
.portal-link:focus-visible .portal-link__eyebrow {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="brand"] {
  transition-delay: 40ms;
}

[data-reveal="eyebrow"] {
  transition-delay: 100ms;
}

[data-reveal="title"] {
  transition-delay: 160ms;
}

[data-reveal="text"] {
  transition-delay: 220ms;
}

[data-reveal="authors"] {
  transition-delay: 300ms;
}

[data-reveal="actions"] {
  transition-delay: 380ms;
}

@media (max-width: 1180px) {
  .hero {
    gap: 38px;
    padding: 42px;
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(180px, 236px) minmax(0, 1fr);
    gap: 34px;
    min-height: auto;
    padding: 38px 30px;
  }

  .hero__logo {
    width: min(100%, 280px);
  }

  .hero__content h1 {
    font-size: clamp(2.25rem, 5.2vw, 4.2rem);
  }

  .hero__text {
    font-size: 1.02rem;
  }

  .authors__names {
    font-size: clamp(1.3rem, 3vw, 2rem);
  }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: auto;
    padding: 34px 26px;
    text-align: center;
  }

  .hero__brand {
    order: -1;
  }

  .hero__content h1 {
    max-width: none;
  }

  .hero__logo {
    width: min(100%, 220px);
  }

  .hero__pattern {
    opacity: 0.18;
  }

  .hero__text,
  .authors__meta {
    margin-left: auto;
    margin-right: auto;
  }

  .authors {
    margin-top: 28px;
    padding-top: 20px;
  }

  .authors::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .authors__names {
    justify-content: center;
    text-align: center;
  }

  .hero__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 15px;
  }

  .portal__glow {
    width: 18rem;
    height: 18rem;
    filter: blur(24px);
  }

  .hero {
    gap: 24px;
    padding: 26px 18px;
    border-radius: 24px;
  }

  .hero::before {
    inset: 10px;
    border-radius: 18px;
  }

  .hero__eyebrow,
  .authors__label {
    margin-bottom: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }

  .hero__content h1 {
    max-width: none;
    font-size: clamp(2rem, 10vw, 3.2rem);
    line-height: 0.98;
  }

  .hero__logo {
    width: min(100%, 220px);
  }

  .hero__text {
    margin-top: 16px;
    font-size: 0.98rem;
  }

  .authors {
    margin-top: 26px;
    padding-top: 18px;
  }

  .authors__names {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    font-size: clamp(1rem, 4.4vw, 1.3rem);
  }

  .authors__divider {
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, rgba(1, 195, 222, 0.2), rgba(113, 27, 228, 0.9), rgba(1, 195, 222, 0.2));
  }

  .authors__meta {
    margin-top: 12px;
    font-size: 0.9rem;
  }

  .hero__actions {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 30px;
  }

  .portal-link {
    padding: 16px 18px;
    border-radius: var(--radius-md);
    min-height: 82px;
  }

  .portal-link__title {
    max-width: calc(100% - 48px);
    margin-top: 0;
    padding-right: 30px;
    font-size: clamp(1rem, 0.92rem + 0.7vw, 1.2rem);
  }
}

@media (max-width: 480px) {
  .hero {
    gap: 22px;
    padding: 22px 16px;
  }

  .hero::before {
    inset: 8px;
  }

  .hero__eyebrow,
  .authors__label {
    letter-spacing: 0.14em;
  }

  .authors {
    margin-top: 22px;
    padding-top: 16px;
  }

  .authors__names {
    gap: 10px;
    font-size: clamp(0.96rem, 5vw, 1.16rem);
  }

  .authors__divider {
    width: 22px;
  }

  .portal-link {
    padding: 15px 16px;
    min-height: 76px;
  }

  .portal-link__title {
    max-width: calc(100% - 42px);
    padding-right: 24px;
    font-size: 1rem;
    line-height: 1.16;
  }

  .portal-link__arrow {
    top: 20px;
    right: 18px;
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 360px) {
  html {
    font-size: 14px;
  }

  .hero {
    padding: 20px 14px;
  }

  .authors__names {
    flex-direction: column;
    gap: 8px;
  }

  .authors__divider {
    width: 36px;
  }

  .portal-link {
    min-height: 72px;
  }
}

@keyframes float-logo {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

@keyframes hero-sheen {
  0%,
  100% {
    transform: translateX(-130%);
  }

  45%,
  55% {
    transform: translateX(130%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero::after,
  .hero__logo {
    animation: none !important;
  }
}
