/* ============================================
   Opentaq — Business Card Site
   Premium single-viewport holding page
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Space+Grotesk:wght@300;400;500&display=swap');

:root {
  --bg: #0a0a0b;
  --text-primary: #e8e8ec;
  --text-secondary: #9898a0;
  --text-tertiary: #5c5c66;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --amber: #F4C430;
  --amber-dim: rgba(244, 196, 48, 0.06);
  --border: #1e1e22;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
}

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

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

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  height: 100vh;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* Subtle radial ambient glow behind content — warmth from brand amber */
body::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -55%);
  background: radial-gradient(
    ellipse at center,
    var(--amber-dim) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* ---- Layout ---- */

.card {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ---- Logo ---- */

.logo {
  margin-bottom: 2.5rem;
}

.logo img {
  width: 220px;
  height: auto;
  display: block;
  margin: 0 auto;
  user-select: none;
  -webkit-user-drag: none;
}

/* ---- Tagline ---- */

.tagline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  line-height: 1.5;
  margin-bottom: 3rem;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

/* ---- Navigator link ---- */

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent-hover);
}

.nav-link .arrow {
  display: inline-block;
  font-size: 1.1rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.2s ease;
}

.nav-link:hover .arrow {
  transform: translateX(5px);
  color: var(--amber);
}

/* ---- Divider ---- */

.divider {
  width: 32px;
  height: 1px;
  background: var(--border);
  margin: 0 auto 2rem;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
}

/* ---- Footer ---- */

.footer {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.contact {
  margin-bottom: 0.75rem;
}

.contact a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.contact a:hover {
  color: var(--text-primary);
}

.copyright {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

/* ---- Entrance animation ---- */

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

/* ---- Responsive ---- */

@media (max-width: 640px) {
  .card {
    padding: 1.5rem;
  }

  .logo img {
    width: 180px;
  }

  .tagline {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
  }

  body::before {
    width: 500px;
    height: 500px;
  }
}

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

  .tagline {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .nav-link {
    font-size: 0.875rem;
  }
}

@media (min-width: 1200px) {
  .logo img {
    width: 260px;
  }

  .tagline {
    font-size: 1.375rem;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .card,
  .tagline,
  .divider,
  .footer {
    animation: none;
  }

  .nav-link .arrow {
    transition: none;
  }
}
