* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: url('bckgrnd.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@keyframes waveIn {
  0% {
    opacity: 0;
    transform: translate3d(-24px, 40px, 0) scale(0.99);
    filter: blur(8px);
  }
  70% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes floatSway {
  0%, 100% { transform: translate3d(0, 0, 0); }
  33%      { transform: translate3d(2px, -3px, 0); }
  66%      { transform: translate3d(-2px, 2px, 0); }
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  opacity: 0;
  will-change: transform, opacity, filter;
  animation: waveIn 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.05s;
}

.topbar img {
  height: 28px;
  width: auto;
}

.login-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #111;
  border: 1px solid #222;
  color: #ccc;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.login-btn:hover { background: #1a1a1a; }

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  opacity: 0;
  will-change: transform, opacity, filter;
  animation: waveIn 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.2s;
}

.logo-row img {
  height: 140px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  will-change: transform;
  animation: floatSway 10s ease-in-out infinite;
  animation-delay: 2.8s;
}

.logo-row h1 {
  font-size: 88px;
  font-weight: 600;
  letter-spacing: -2px;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.tagline {
  max-width: 560px;
  color: #ccc;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 40px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  opacity: 0;
  will-change: transform, opacity, filter;
  animation: waveIn 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.4s;
}

.buttons {
  display: flex;
  gap: 12px;
  opacity: 0;
  will-change: transform, opacity, filter;
  animation: waveIn 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.6s;
}

.btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(17, 17, 17, 0.8);
  border: 1px solid #333;
  color: #ddd;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: #1a1a1a;
  border-color: #444;
  transform: translateY(-1px);
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: #888;
  transition: fill 0.2s ease;
}

.btn:hover svg {
  fill: #bbb;
}

.footer {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 28px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  opacity: 0;
  will-change: transform, opacity, filter;
  animation: waveIn 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.8s;
}

.footer a {
  color: #999;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover { color: #ddd; }

@media (prefers-reduced-motion: reduce) {
  .topbar,
  .logo-row,
  .tagline,
  .buttons,
  .footer,
  .logo-row img {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (max-width: 640px) {
  .logo-row img { height: 80px; }
  .buttons { flex-direction: column; width: 100%; max-width: 280px; }
  .btn { justify-content: center; }
  .hero { padding: 24px 16px; }
  .tagline { font-size: 13px; }
  .topbar { padding: 16px 20px; }
  .topbar img { height: 22px; }
}