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

:root {
  --bg-color: #0e0e0e;
  --card-bg: rgba(255, 255, 255, 0.04);
  --primary: #00c896;
  --secondary: #bbbbbb;
  --text: #f5f5f5;
  --accent: #3498db;
  --radius: 1.2rem;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

html, body {
  height: 100%;
  overflow-x: hidden;
  font-family: var(--font);
  background: url('background.jpg') no-repeat center center fixed;
  background-size: cover;
  color: var(--text);
  scroll-behavior: smooth;
  line-height: 1.5;
}

.glitch {
  position: relative;
  color: var(--primary);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -1px;
  user-select: none;
  animation: glitch-anim 8s infinite linear;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
  opacity: 0.8;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 red, 2px 2px red;
  animation: glitch-anim-before 8s infinite linear;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 blue, 2px -2px blue;
  animation: glitch-anim-after 8s infinite linear;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
  gap: 20px;
  background-color: rgba(14, 14, 14, 0.55);
  backdrop-filter: blur(10px);
}

.hero {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center; 
}

.hero:hover {
  transform: scale(1.01);
}

.hero h1 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.tagline {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 25px;
}

.button {
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  transition: all 0.25s ease-in-out;
  outline-offset: 2px;
}

.button.primary {
  background: var(--primary);
  color: #000;
  box-shadow: 0 4px 12px rgba(0, 200, 150, 0.2);
}

.button.primary:hover,
.button.primary:focus {
  background: #00b387;
  transform: translateY(-2px);
  outline: none;
  box-shadow: 0 6px 18px rgba(0, 200, 150, 0.4);
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

@media (min-width: 600px) {
  .download-buttons {
    flex-direction: row;
    gap: 20px;
  }
}

.footer {
  padding: 10px 0;
  text-align: center;
}

.main-links a {
  margin: 0 12px;
  font-size: 0.95rem;
  color: var(--secondary);
  transition: color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.main-links a:hover,
.main-links a:focus {
  color: var(--primary);
  transform: translateY(-1px);
  outline: none;
}

@keyframes glitch-anim {
  0%, 20%, 40%, 60%, 80%, 100% {
    transform: none;
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translate(calc(var(--random-x, 0) * 1px), calc(var(--random-y, 0) * 1px)) skew(calc(var(--random-skew, 0) * 1deg));
  }
}

@keyframes glitch-anim-before {
  0%, 20%, 40%, 60%, 80%, 100% {
    clip: rect(0, 900px, 0, 0);
    transform: none;
  }
  10% {
    clip: rect(10px, 900px, 40px, 0);
    transform: translate(-3px, -3px) skew(-5deg);
  }
  30% {
    clip: rect(50px, 900px, 80px, 0);
    transform: translate(3px, 0) skew(3deg);
  }
  50% {
    clip: rect(90px, 900px, 120px, 0);
    transform: translate(-1px, 2px) skew(-3deg);
  }
  70% {
    clip: rect(130px, 900px, 160px, 0);
    transform: translate(2px, -2px) skew(5deg);
  }
  90% {
    clip: rect(170px, 900px, 200px, 0);
    transform: translate(-2px, 3px) skew(-4deg);
  }
}

@keyframes glitch-anim-after {
  0%, 20%, 40%, 60%, 80%, 100% {
    clip: rect(0, 900px, 0, 0);
    transform: none;
  }
  10% {
    clip: rect(20px, 900px, 50px, 0);
    transform: translate(3px, 3px) skew(5deg);
  }
  30% {
    clip: rect(60px, 900px, 90px, 0);
    transform: translate(-3px, 1px) skew(-3deg);
  }
  50% {
    clip: rect(100px, 900px, 130px, 0);
    transform: translate(2px, -1px) skew(4deg);
  }
  70% {
    clip: rect(140px, 900px, 170px, 0);
    transform: translate(-1px, 2px) skew(-5deg);
  }
  90% {
    clip: rect(180px, 900px, 210px, 0);
    transform: translate(1px, -3px) skew(3deg);
  }
}

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