:root {
  --bg: #fafaf9;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-muted: #f4f4f2;
  --border: rgba(24, 24, 27, 0.09);
  --border-strong: rgba(24, 24, 27, 0.16);
  --text: #111113;
  --text-muted: #52525b;
  --text-subtle: #71717a;
  --accent: #b45309;
  --accent-bg: rgba(245, 158, 11, 0.12);
  --accent-dot: #f59e0b;
  --ok: #047857;
  --ok-bg: rgba(16, 185, 129, 0.11);
  --ok-dot: #10b981;
  --btn-primary-bg: #111113;
  --btn-primary-text: #ffffff;
  --btn-primary-hover: #27272a;
  --btn-secondary-bg: #ffffff;
  --btn-secondary-hover: #f4f4f5;
  --grid-color: rgba(24, 24, 27, 0.045);
  --glow-color: rgba(245, 158, 11, 0.09);
  --shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.08),
    0 2px 10px -2px rgba(0, 0, 0, 0.04);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b;
    --surface: rgba(18, 18, 21, 0.85);
    --surface-muted: rgba(255, 255, 255, 0.035);
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --text-subtle: #71717a;
    --accent: #fbbf24;
    --accent-bg: rgba(251, 191, 36, 0.11);
    --accent-dot: #fbbf24;
    --ok: #34d399;
    --ok-bg: rgba(52, 211, 153, 0.12);
    --ok-dot: #34d399;
    --btn-primary-bg: #fafafa;
    --btn-primary-text: #09090b;
    --btn-primary-hover: #e4e4e7;
    --btn-secondary-bg: rgba(255, 255, 255, 0.04);
    --btn-secondary-hover: rgba(255, 255, 255, 0.09);
    --grid-color: rgba(255, 255, 255, 0.04);
    --glow-color: rgba(251, 191, 36, 0.08);
    --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7),
      0 1px 0 0 rgba(255, 255, 255, 0.04) inset;
  }
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  position: relative;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--grid-color) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 520px;
  background: radial-gradient(
    ellipse at center,
    var(--glow-color) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: fadeUp 380ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 550;
  letter-spacing: -0.01em;
}

.status-pill--available {
  background: var(--ok-bg);
  color: var(--ok);
}

.status-pill[hidden] {
  display: none;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-dot);
  box-shadow: 0 0 0 0 var(--accent-bg);
  animation: pulse 2.4s ease-in-out infinite;
}

.status-dot--available {
  background: var(--ok-dot);
  animation: none;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.85);
  }
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.headline {
  margin: 0;
  word-break: break-word;
}

.domain-name {
  display: block;
  color: var(--text);
  font-size: clamp(2rem, 5.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.headline-suffix {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: clamp(1.125rem, 2.6vw, 1.35rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.description {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 56ch;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.meta-item {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 150ms ease;
}

.meta-item:hover {
  border-color: var(--border-strong);
}

.meta-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  font-weight: 600;
}

.meta-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.85;
}

.meta-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.meta-value--accent {
  color: var(--ok);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 550;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 150ms ease, border-color 150ms ease,
    transform 120ms ease;
}

.btn:active {
  transform: translateY(1px);
}

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

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--btn-secondary-hover);
}

.btn-secondary.is-copied {
  color: var(--ok);
  border-color: var(--ok);
}

.btn-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.social-links[hidden] {
  display: none;
}

.social-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 150ms ease;
}

.social-links a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-subtle);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 2px 6px 0;
  font-size: 0.78rem;
  color: var(--text-subtle);
  text-align: center;
}

@media (max-width: 540px) {
  .meta-grid {
    grid-template-columns: 1fr;
  }

  .action-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
  }

  .status-dot {
    animation: none;
  }

  .btn,
  .meta-item {
    transition: none;
  }
}
