:root {
  color-scheme: dark;
  --bg-start: #050814;
  --bg-end: #14061f;
  --panel-bg: rgba(8, 12, 24, 0.74);
  --panel-border: rgba(103, 243, 255, 0.28);
  --panel-inner-border: rgba(103, 243, 255, 0.12);
  --panel-shadow: rgba(0, 0, 0, 0.58);
  --accent-cyan: #67f3ff;
  --accent-pink: #ff4fd8;
  --text-primary: #ecf8ff;
  --text-secondary: #bfd5df;
  --page-padding: clamp(16px, 3vw, 32px);
  --hero-shell-padding: clamp(14px, 2.8vw, 28px);
  --hero-block-padding-y: clamp(36px, 7vw, 72px);
  --hero-block-padding-x: clamp(18px, 5vw, 48px);
  --divider-width: min(100%, 420px);
  --mobile-panel-width: min(100%, 23rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 79, 216, 0.13), transparent 26%),
    linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
  overflow: hidden;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    max(var(--page-padding), env(safe-area-inset-top))
    max(var(--page-padding), env(safe-area-inset-right))
    max(var(--page-padding), env(safe-area-inset-bottom))
    max(var(--page-padding), env(safe-area-inset-left));
  isolation: isolate;
}

.page::before,
.page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page::before {
  background:
    linear-gradient(90deg, rgba(103, 243, 255, 0.08), transparent 18%, transparent 82%, rgba(103, 243, 255, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 12%);
  mix-blend-mode: screen;
  z-index: -2;
}

.page::after {
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 4px
    );
  opacity: 0.06;
  z-index: -1;
}

.rain-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}

.hero {
  position: relative;
  width: min(100%, 780px);
  padding: var(--hero-shell-padding);
}

.hero__frame {
  position: absolute;
  inset: 0;
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 22px 56px var(--panel-shadow),
    0 0 42px rgba(103, 243, 255, 0.18);
  backdrop-filter: blur(14px);
}

.hero__frame::before,
.hero__frame::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 243, 255, 0.32), transparent);
}

.hero__frame::before {
  top: 18px;
}

.hero__frame::after {
  bottom: 18px;
}

.hero__content {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: var(--hero-block-padding-y) var(--hero-block-padding-x);
  text-align: center;
}

.hero__content::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--panel-inner-border);
  pointer-events: none;
}

.hero__content::after {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(103, 243, 255, 0.14) 18%,
    rgba(103, 243, 255, 0.14) 82%,
    transparent
  );
  pointer-events: none;
}

.hero__corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: var(--accent-cyan);
  border-style: solid;
  filter: drop-shadow(0 0 8px rgba(103, 243, 255, 0.42));
}

.hero__corner--top-left {
  top: 12px;
  left: 12px;
  border-width: 2px 0 0 2px;
}

.hero__corner--top-right {
  top: 12px;
  right: 12px;
  border-width: 2px 2px 0 0;
}

.hero__corner--bottom-left {
  bottom: 12px;
  left: 12px;
  border-width: 0 0 2px 2px;
}

.hero__corner--bottom-right {
  right: 12px;
  bottom: 12px;
  border-width: 0 2px 2px 0;
}

.hero__divider {
  width: var(--divider-width);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.hero__divider span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 243, 255, 0.72));
}

.hero__divider span:last-of-type {
  background: linear-gradient(90deg, rgba(103, 243, 255, 0.72), transparent);
}

.hero__divider i {
  width: 10px;
  height: 10px;
  display: block;
  border: 1px solid rgba(255, 79, 216, 0.84);
  background: rgba(255, 79, 216, 0.22);
  transform: rotate(45deg);
  box-shadow: 0 0 16px rgba(255, 79, 216, 0.34);
}

.hero__title,
.hero__subtitle {
  margin: 0;
  position: relative;
}

.hero__title {
  max-width: 11ch;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1.04;
  color: var(--accent-cyan);
  text-wrap: balance;
  overflow-wrap: anywhere;
  text-shadow:
    0 0 16px rgba(103, 243, 255, 0.35),
    0 0 32px rgba(255, 79, 216, 0.14);
}

.hero__title-line {
  display: block;
}

.hero__title-line--accent {
  margin-top: 0.12em;
}

.hero__subtitle {
  max-width: 34rem;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.7;
  color: var(--text-secondary);
  text-wrap: pretty;
}

@media (max-width: 960px) {
  :root {
    --divider-width: min(100%, 360px);
  }

  .hero {
    width: min(100%, 680px);
  }
}

@media (max-width: 640px) {
  :root {
    --page-padding: 16px;
    --hero-shell-padding: 12px;
    --hero-block-padding-y: 32px;
    --hero-block-padding-x: 16px;
    --divider-width: min(100%, 280px);
  }

  body {
    overflow: auto;
  }

  .hero__content {
    gap: 14px;
  }

  .hero__frame::before,
  .hero__frame::after {
    left: 14px;
    right: 14px;
  }

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

  .hero__content::after {
    top: 18px;
    bottom: 18px;
  }

  .hero__corner {
    width: 20px;
    height: 20px;
  }

  .hero__corner--top-left,
  .hero__corner--top-right {
    top: 10px;
  }

  .hero__corner--bottom-left,
  .hero__corner--bottom-right {
    bottom: 10px;
  }

  .hero__corner--top-left,
  .hero__corner--bottom-left {
    left: 10px;
  }

  .hero__corner--top-right,
  .hero__corner--bottom-right {
    right: 10px;
  }

  .hero__subtitle {
    line-height: 1.55;
  }
}

@media (max-width: 560px) {
  :root {
    --page-padding: 14px;
    --hero-shell-padding: 10px;
    --hero-block-padding-y: 26px;
    --hero-block-padding-x: 16px;
    --divider-width: min(100%, 220px);
  }

  body {
    overflow: auto;
  }

  .page {
    place-items: center;
  }

  .hero {
    width: var(--mobile-panel-width);
    margin-inline: auto;
    padding: var(--hero-shell-padding);
  }

  .hero__frame {
    border-color: rgba(103, 243, 255, 0.34);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.03) inset,
      0 18px 38px rgba(0, 0, 0, 0.48),
      0 0 30px rgba(103, 243, 255, 0.14);
  }

  .hero__frame::before,
  .hero__frame::after {
    left: 22px;
    right: 22px;
  }

  .hero__content {
    gap: 16px;
    min-height: clamp(350px, 72vh, 430px);
    align-content: center;
  }

  .hero__content::before {
    inset: 12px;
  }

  .hero__content::after {
    top: 28px;
    bottom: 28px;
    background: linear-gradient(
      180deg,
      transparent,
      rgba(103, 243, 255, 0.12) 22%,
      rgba(255, 79, 216, 0.08) 50%,
      rgba(103, 243, 255, 0.12) 78%,
      transparent
    );
  }

  .hero__corner {
    width: 18px;
    height: 18px;
  }

  .hero__corner--top-left,
  .hero__corner--top-right {
    top: 12px;
  }

  .hero__corner--bottom-left,
  .hero__corner--bottom-right {
    bottom: 12px;
  }

  .hero__corner--top-left,
  .hero__corner--bottom-left {
    left: 12px;
  }

  .hero__corner--top-right,
  .hero__corner--bottom-right {
    right: 12px;
  }

  .hero__divider {
    width: min(100%, 180px);
    gap: 8px;
  }

  .hero__divider i {
    width: 7px;
    height: 7px;
  }

  .hero__title {
    max-width: 8.5ch;
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 1;
  }

  .hero__title-line--accent {
    margin-top: 0.18em;
  }

  .hero__subtitle {
    max-width: 16rem;
    font-size: 0.98rem;
    line-height: 1.6;
  }
}

@media (max-width: 420px) {
  :root {
    --page-padding: 12px;
    --hero-shell-padding: 9px;
    --hero-block-padding-y: 24px;
    --hero-block-padding-x: 14px;
    --mobile-panel-width: min(100%, 21rem);
  }

  .hero__title {
    max-width: 8ch;
    font-size: clamp(1.75rem, 10vw, 2.35rem);
  }

  .hero__subtitle {
    font-size: 0.95rem;
  }

  .hero__content {
    min-height: clamp(320px, 68vh, 400px);
  }

  .hero__frame::before,
  .hero__frame::after {
    left: 18px;
    right: 18px;
  }
}

@media (max-height: 560px) {
  :root {
    --hero-block-padding-y: 24px;
  }

  body {
    overflow: auto;
  }

  .page {
    place-items: start center;
  }

  .hero {
    margin-block: 16px;
  }

  .hero__content {
    gap: 12px;
  }

  .hero__divider {
    width: min(100%, 240px);
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .hero {
    width: min(100%, 760px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rain-layer {
    display: none;
  }

  body {
    overflow: auto;
  }
}
