:root {
  --bg: #0f0f13;
  --card: #16161d;
  --text: #ffffff;
  --muted: #a1a1aa;
  --accent: #5eead4;
}

* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  background-image: 
    linear-gradient(rgba(94, 234, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: 0 0;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  animation: grid-move 20s linear infinite;
  padding-top: 2rem;
}

@media (min-width: 768px) {
  body {
    align-items: center;
    padding-top: 0;
  }
}

@keyframes grid-move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}

.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.tetris-block {
  position: absolute;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 0 10px rgba(94, 234, 212, 0.1),
    inset 0 0 10px rgba(0, 0, 0, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.05);
  opacity: 0;
  top: -200px;
  animation: tetris-fall linear infinite;
}

/* Column 1 - Left */
.block-1, .block-2, .block-3 {
  left: 10%;
}

.block-1 {
  animation-duration: 8s;
  animation-delay: 0s;
}

.block-2 {
  animation-duration: 8s;
  animation-delay: 2.5s;
}

.block-3 {
  animation-duration: 8s;
  animation-delay: 5s;
}

/* Column 2 */
.block-4, .block-5, .block-6 {
  left: 25%;
}

.block-4 {
  animation-duration: 9s;
  animation-delay: 1s;
}

.block-5 {
  animation-duration: 9s;
  animation-delay: 3.5s;
}

.block-6 {
  animation-duration: 9s;
  animation-delay: 6s;
}

/* Column 3 */
.block-7, .block-8, .block-9 {
  left: 40%;
}

.block-7 {
  animation-duration: 10s;
  animation-delay: 0.5s;
}

.block-8 {
  animation-duration: 10s;
  animation-delay: 3s;
}

.block-9 {
  animation-duration: 10s;
  animation-delay: 5.5s;
}

/* Column 4 */
.block-10, .block-11, .block-12 {
  left: 55%;
}

.block-10 {
  animation-duration: 8.5s;
  animation-delay: 1.5s;
}

.block-11 {
  animation-duration: 8.5s;
  animation-delay: 4s;
}

.block-12 {
  animation-duration: 8.5s;
  animation-delay: 6.5s;
}

/* Column 5 */
.block-13, .block-14, .block-15 {
  left: 70%;
}

.block-13 {
  animation-duration: 9.5s;
  animation-delay: 0.8s;
}

.block-14 {
  animation-duration: 9.5s;
  animation-delay: 3.3s;
}

.block-15 {
  animation-duration: 9.5s;
  animation-delay: 5.8s;
}

/* Column 6 - Right */
.block-16, .block-17, .block-18 {
  left: 85%;
}

.block-16 {
  animation-duration: 10.5s;
  animation-delay: 2s;
}

.block-17 {
  animation-duration: 10.5s;
  animation-delay: 4.5s;
}

.block-18 {
  animation-duration: 10.5s;
  animation-delay: 7s;
}

@keyframes tetris-fall {
  0% {
    top: -200px;
    opacity: 0;
  }
  3% {
    opacity: 0.9;
  }
  97% {
    opacity: 0.9;
  }
  100% {
    top: calc(100vh + 200px);
    opacity: 0;
  }
}

.container {
  width: 100%;
  max-width: 420px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .container {
    padding: 2rem;
  }
}

.logo-wrapper {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  border-radius: 24px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

h1 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.5rem;
}

.tagline {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.links {
  display: grid;
  gap: 0.75rem;
}

.links a {
  display: flex;
  align-items: center;
  position: relative;
  padding: 0.9rem 1rem;
  background: linear-gradient(145deg, var(--card), #0b0b10);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.links a span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.link-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.links a .link-icon:last-child {
  margin-left: auto;
}

.links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(94,234,212,0.25);
  border: 1px solid rgba(94,234,212,0.4);
}

footer {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--muted);
}
