:root {
  color-scheme: dark;
  --ink: #f7f2ff;
  --muted: #c9bfe1;
  --soft: rgba(247, 242, 255, 0.74);
  --violet-900: #11061f;
  --violet-800: #1c0b32;
  --violet-700: #33105d;
  --violet-500: #8e4cff;
  --violet-300: #c6a6ff;
  --aqua: #63f0dc;
  --ember: #ff9f38;
  --lime: #c8ff7b;
  --panel: rgba(20, 8, 38, 0.72);
  --line: rgba(198, 166, 255, 0.28);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  height: 100%;
  min-width: 320px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #12061f 0%, #211032 52%, #100819 100%);
  color: var(--ink);
}

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

main {
  height: 100%;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100dvh;
  height: 100%;
  overflow: hidden;
  padding: 72px clamp(18px, 6vw, 96px);
  isolation: isolate;
}

.hero-bg,
.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: -3;
  background: #12061f;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 900ms ease, transform 6500ms ease;
}

.hero-image.active {
  opacity: 1;
  transform: scale(1.08);
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(12, 3, 25, 0.92) 0%, rgba(29, 9, 53, 0.76) 44%, rgba(10, 4, 18, 0.36) 100%),
    rgba(18, 7, 33, 0.22);
}

.hero-content {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 8.2rem;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 0 32px rgba(142, 76, 255, 0.72),
    0 8px 0 rgba(15, 4, 28, 0.34);
}

.ip-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.copy-button {
  position: relative;
  display: grid;
  min-width: min(100%, 340px);
  border: 1px solid rgba(198, 166, 255, 0.52);
  border-radius: 8px;
  padding: 14px 18px 16px;
  background:
    linear-gradient(135deg, rgba(142, 76, 255, 0.94), rgba(74, 25, 132, 0.9) 58%, rgba(99, 240, 220, 0.22));
  box-shadow:
    0 18px 44px rgba(17, 6, 31, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.copy-button::after {
  content: "Copier dans le presse papier";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: min(260px, 86vw);
  border: 1px solid rgba(198, 166, 255, 0.36);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(14, 5, 27, 0.94);
  box-shadow: 0 12px 28px rgba(5, 2, 12, 0.36);
  color: white;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.copy-button::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(198, 166, 255, 0.36);
  border-bottom: 1px solid rgba(198, 166, 255, 0.36);
  background: rgba(14, 5, 27, 0.94);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px) rotate(45deg);
  transition: opacity 160ms ease, transform 160ms ease;
}

.copy-button:hover,
.copy-button:focus-visible {
  border-color: var(--aqua);
  box-shadow:
    0 22px 52px rgba(17, 6, 31, 0.46),
    0 0 0 4px rgba(99, 240, 220, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  outline: none;
}

.copy-button:hover::after,
.copy-button:hover::before,
.copy-button:focus-visible::after,
.copy-button:focus-visible::before {
  opacity: 1;
}

.copy-button:hover::after,
.copy-button:focus-visible::after {
  transform: translate(-50%, 0);
}

.copy-button:hover::before,
.copy-button:focus-visible::before {
  transform: translate(-50%, 0) rotate(45deg);
}

.button-kicker {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.server-ip {
  margin-top: 3px;
  color: white;
  font-size: 1.95rem;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .hero {
    min-height: 100dvh;
    padding-top: 54px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(12, 3, 25, 0.56), rgba(18, 6, 31, 0.78)),
      linear-gradient(90deg, rgba(12, 3, 25, 0.86), rgba(12, 3, 25, 0.42));
  }

  h1 {
    font-size: 4.8rem;
  }

  .ip-panel,
  .copy-button {
    width: 100%;
  }

}

@media (max-width: 520px) {
  .hero {
    padding-bottom: 52px;
  }

  h1 {
    font-size: 3.25rem;
  }

  .server-ip {
    font-size: 1.45rem;
  }
}

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