:root {
  --bg-top: #f2f9fd;
  --bg-bottom: #ffffff;
  --accent: #1b96e3;
  --accent-strong: #0f7dc4;
  --text: #16181a;
  --text-muted: rgba(22, 24, 26, 0.62);
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-border: rgba(22, 24, 26, 0.1);
  --highlight-bg: linear-gradient(135deg, #1b96e3, #63c2ff);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg-top);
}

body {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    "Helvetica Neue",
    Arial,
    sans-serif;
  background: radial-gradient(
    circle at 50% 0%,
    var(--bg-top),
    var(--bg-bottom) 70%
  );
  color: var(--text);
  display: flex;
  justify-content: center;
}

.scene {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
}

.waves {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20vh;
  min-height: 90px;
  max-height: 170px;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 45%, transparent);
  mask-image: linear-gradient(to top, #000 45%, transparent);
}

.waves-svg {
  width: 100%;
  height: 100%;
}

.wave-parallax > use {
  animation: wave-move 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.wave-parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 8s;
  fill: rgba(27, 150, 227, 0.09);
}

.wave-parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 11s;
  fill: rgba(27, 150, 227, 0.13);
}

.wave-parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 15s;
  fill: rgba(27, 150, 227, 0.1);
}

.wave-parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 21s;
  fill: rgba(27, 150, 227, 0.22);
}

@keyframes wave-move {
  from {
    transform: translate3d(-90px, 0, 0);
  }
  to {
    transform: translate3d(85px, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wave-parallax > use {
    animation: none;
  }
}

.card {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.loading {
  color: var(--text-muted);
  padding: 2rem 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.logo {
  width: 100%;
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(27, 150, 227, 0.18));
}

.subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.95rem 1.1rem;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(22, 24, 26, 0.06);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.link-btn:hover,
.link-btn:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 26px rgba(22, 24, 26, 0.12);
}

.link-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.link-btn.highlight {
  background: var(--highlight-bg);
  border-color: transparent;
  color: #ffffff;
}

.link-btn.highlight:hover,
.link-btn.highlight:focus-visible {
  box-shadow: 0 10px 30px rgba(27, 150, 227, 0.35);
}

.link-icon {
  flex: none;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-link .link-icon {
  width: 16px;
  height: 16px;
}

.link-icon iconify-icon {
  width: 100%;
  height: 100%;
}

.link-label {
  flex: 1;
  text-align: left;
}

.link-arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.link-btn:hover .link-arrow,
.link-btn:focus-visible .link-arrow {
  opacity: 0.8;
  transform: translateX(0);
}

.footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--card-border);
}

.footer-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    color 0.18s ease,
    border-color 0.18s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--text);
  border-color: var(--card-border);
}

.error {
  color: #c0392b;
  text-align: center;
  padding: 2rem 1rem;
}

@media (max-width: 380px) {
  .logo {
    max-width: 220px;
  }
}
