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

:root {
  --bg: #fafaf9;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted: #86868b;
  --border: rgba(0, 0, 0, 0.06);
  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
}

/* ── Ambient mesh gradient ── */
.mesh-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0;
  animation: orbFadeIn 2.5s ease-out forwards;
}

.mesh-orb-1 {
  width: 700px;
  height: 700px;
  top: -15%;
  right: -10%;
  background: radial-gradient(circle, hsla(230, 75%, 65%, 0.08) 0%, transparent 70%);
  animation-delay: 0.2s;
}

.mesh-orb-1.animated {
  animation: orbFadeIn 2.5s ease-out forwards, orbDrift1 20s ease-in-out infinite;
  animation-delay: 0.2s, 2.7s;
}

.mesh-orb-2 {
  width: 600px;
  height: 600px;
  bottom: -15%;
  left: -10%;
  background: radial-gradient(circle, hsla(270, 55%, 70%, 0.06) 0%, transparent 70%);
  animation-delay: 0.5s;
}

.mesh-orb-2.animated {
  animation: orbFadeIn 2.5s ease-out forwards, orbDrift2 24s ease-in-out infinite;
  animation-delay: 0.5s, 3s;
}

.mesh-orb-3 {
  width: 500px;
  height: 500px;
  top: 35%;
  left: 45%;
  transform: translateX(-50%);
  background: radial-gradient(circle, hsla(200, 65%, 72%, 0.06) 0%, transparent 70%);
  animation-delay: 0.8s;
}

.mesh-orb-3.animated {
  animation: orbFadeIn 2.5s ease-out forwards, orbDrift3 22s ease-in-out infinite;
  animation-delay: 0.8s, 3.3s;
}

@keyframes orbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes orbDrift1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-25px, 18px); }
  66% { transform: translate(18px, -12px); }
}

@keyframes orbDrift2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -18px); }
  66% { transform: translate(-14px, 22px); }
}

@keyframes orbDrift3 {
  0%, 100% { transform: translateX(-50%) translate(0, 0); }
  33% { transform: translateX(-50%) translate(-18px, -14px); }
  66% { transform: translateX(-50%) translate(14px, 18px); }
}

/* ── Film grain ── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.018;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Full-viewport layout ── */
.page {
  position: relative;
  z-index: 2;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Main ── */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
}

.content {
  text-align: center;
  animation: fadeUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

/* ── Domain name ── */
.domain {
  font-size: clamp(3.25rem, 9vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1.75rem;
}

.domain-name {
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.domain-tld {
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary) 0%, #4f46e5 55%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Copy ── */
.subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 400;
  color: var(--text-primary);
  opacity: 0.8;
  letter-spacing: -0.01em;
  margin-bottom: 0.375rem;
}

.broker {
  font-size: clamp(0.875rem, 1.8vw, 1.0625rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
}

/* ── Contact email ── */
.contact {
  display: inline-block;
  font-family: var(--font);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.01em;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.contact:hover {
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.25);
}

/* ── Footer ── */
footer {
  padding: 1.5rem 2.5rem;
  text-align: center;
  flex-shrink: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

footer span {
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ── Animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  main {
    padding: 0 1.25rem;
  }

  .broker {
    margin-bottom: 1.75rem;
  }

  footer {
    padding: 1.25rem;
  }

  .mesh-orb-1 { width: 400px; height: 400px; }
  .mesh-orb-2 { width: 350px; height: 350px; }
  .mesh-orb-3 { width: 300px; height: 300px; }
}
