:root {
  --color-primary: #2ba8b5;
  --color-primary-dim: rgba(43, 168, 181, 0.14);
  --color-muted: #98a6b5;
  --color-bg: #0f1216;
  --color-bg-elevated: #161b22;
  --color-text: #e8ecf1;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius-pill: 999px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bg-accent {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -20%, var(--color-primary-dim), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(43, 168, 181, 0.06), transparent 50%),
    linear-gradient(180deg, #12161c 0%, var(--color-bg) 45%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(152, 166, 181, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(152, 166, 181, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, black 20%, transparent 100%);
}

.main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  padding-bottom: var(--space-xl);
}

.domain-wrap {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
  margin: 0 0 var(--space-md);
  padding: 0.35rem 0.35rem 0.35rem 0.65rem;
  background: var(--color-bg-elevated);
  border: 1px solid rgba(152, 166, 181, 0.18);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  position: relative;
}

.domain-label {
  color: var(--color-muted);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
}

.domain-value {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-primary);
  word-break: break-all;
  max-width: min(90vw, 28rem);
  text-align: center;
}

.headline {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 8vw + 1rem, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-text);
  position: relative;
}

.headline::after {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin: var(--space-md) auto 0;
  background: linear-gradient(90deg, var(--color-primary), rgba(43, 168, 181, 0.35));
  border-radius: 2px;
  transform-origin: center;
}

.tagline {
  margin: var(--space-lg) 0 0;
  max-width: 22rem;
  color: var(--color-muted);
  font-weight: 400;
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.1875rem);
}

.footer {
  position: relative;
  z-index: 1;
  padding: var(--space-md) var(--space-md) var(--space-lg);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.footer-credit {
  margin: 0 0 var(--space-sm);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.footer-brand {
  display: block;
  text-decoration: none;
  color: var(--color-muted);
  max-width: 16rem;
  margin: 0 auto;
  text-align: center;
}

.footer-brand:hover .footer-logo {
  opacity: 1;
  filter: none;
}

.footer-logo {
  display: block;
  width: min(200px, 70vw);
  height: auto;
  margin: 0 auto;
  opacity: 0.92;
  filter: saturate(0.95);
}

@keyframes domain-pill-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(43, 168, 181, 0),
      0 0 0 0 rgba(43, 168, 181, 0);
    border-color: rgba(152, 166, 181, 0.18);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(43, 168, 181, 0.12),
      0 0 28px 4px rgba(43, 168, 181, 0.22);
    border-color: rgba(43, 168, 181, 0.45);
  }
}

@keyframes domain-shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes headline-glow {
  0%,
  100% {
    text-shadow:
      0 0 12px rgba(43, 168, 181, 0.15),
      0 0 32px rgba(43, 168, 181, 0.12),
      0 0 2px rgba(232, 236, 241, 0.03);
  }
  50% {
    text-shadow:
      0 0 20px rgba(43, 168, 181, 0.45),
      0 0 56px rgba(43, 168, 181, 0.28),
      0 0 80px rgba(43, 168, 181, 0.12);
  }
}

@keyframes headline-accent-glow {
  0%,
  100% {
    opacity: 0.85;
    box-shadow: 0 0 10px rgba(43, 168, 181, 0.25);
    transform: scaleX(1);
  }
  50% {
    opacity: 1;
    box-shadow:
      0 0 18px rgba(43, 168, 181, 0.65),
      0 0 36px rgba(43, 168, 181, 0.35);
    transform: scaleX(1.15);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .footer-logo {
    transition: opacity 0.2s ease, filter 0.2s ease;
  }

  .domain-wrap {
    animation: domain-pill-glow 3.5s ease-in-out infinite;
  }

  .domain-value {
    background-image: linear-gradient(
      105deg,
      var(--color-primary) 0%,
      #4ec8d4 22%,
      #b8f0f6 42%,
      #4ec8d4 58%,
      var(--color-primary) 78%,
      #1d8a96 100%
    );
    background-size: 220% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: domain-shimmer 5s linear infinite;
  }

  .headline {
    animation: headline-glow 3.2s ease-in-out infinite;
  }

  .headline::after {
    animation: headline-accent-glow 3.2s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-logo {
    transition: none;
  }
}
