:root {
  --bg-base: #eef3f6;
  --bg-soft: #f7fafc;
  --ink: #12313a;
  --ink-muted: #4a6670;
  --brand: #0d3d48;
  --brand-soft: #1a5a68;
  --accent: #2f8f9d;
  --accent-soft: #7eb8c4;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-border: rgba(18, 49, 58, 0.1);
  --shadow: 0 18px 40px rgba(13, 61, 72, 0.08);
  --radius-pill: 999px;
  --font: "Outfit", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, #ffffff 0%, transparent 55%),
    linear-gradient(160deg, #f8fbfd 0%, #e8f0f3 48%, #dfe9ee 100%);
}

.atmosphere__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: drift 18s var(--ease) infinite alternate;
}

.atmosphere__glow--a {
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  top: 8%;
  left: 12%;
  background: radial-gradient(circle, rgba(126, 184, 196, 0.55), transparent 70%);
}

.atmosphere__glow--b {
  width: min(46vw, 460px);
  height: min(46vw, 460px);
  right: 8%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(47, 143, 157, 0.28), transparent 70%);
  animation-delay: -6s;
  animation-duration: 22s;
}

.atmosphere__grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(13, 61, 72, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 61, 72, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 78%);
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  padding: 2rem 1.25rem;
  text-align: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  animation: rise-in 900ms var(--ease) both;
}

.brand__mark {
  width: clamp(3.5rem, 8vw, 4.25rem);
  height: clamp(3.5rem, 8vw, 4.25rem);
  color: var(--brand);
  filter: drop-shadow(0 10px 24px rgba(13, 61, 72, 0.12));
}

.brand__wordmark {
  margin: 0;
  font-size: clamp(2rem, 6.5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--brand);
}

.brand__tld {
  font-weight: 500;
  color: var(--accent);
}

.email-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition:
    transform 220ms var(--ease),
    background-color 220ms var(--ease),
    border-color 220ms var(--ease),
    color 220ms var(--ease);
  animation: rise-in 900ms var(--ease) 180ms both;
}

.email-pill__icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  color: var(--brand-soft);
  transition: color 220ms var(--ease);
}

.email-pill:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: rgba(47, 143, 157, 0.35);
  color: var(--brand);
}

.email-pill:hover .email-pill__icon {
  color: var(--accent);
}

.email-pill:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.email-pill:active {
  transform: translateY(0);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(24px, -18px, 0) scale(1.06);
  }
}

@media (max-width: 480px) {
  .email-pill {
    max-width: 100%;
    padding-inline: 1.1rem;
  }

  .email-pill span {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .email-pill,
  .atmosphere__glow {
    animation: none;
  }

  .email-pill,
  .email-pill__icon {
    transition: none;
  }
}
