:root {
  --bg-color: #050505;
  --text-color: #ffffff;
  --accent-color: #ff5555;
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(20, 20, 20, 0.75);
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

main {
  max-width: 600px;
  animation: fadeIn 1.5s ease-out;
  transition: filter 0.3s ease;
}

body.modal-open main {
  filter: blur(5px);
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 1rem;
  background: linear-gradient(to bottom right, #fff, #888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 2rem;
}

.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  margin: 0 auto 2rem auto;
  opacity: 0.5;
}

footer {
  position: fixed;
  bottom: 2rem;
  font-size: 0.875rem;
  color: #444;
}

a {
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 1px solid #444;
  transition: border-color 0.3s ease;
}

a:hover {
  border-bottom-color: var(--text-color);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

.modal.hidden {
  display: none;
}

.modal.show {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--glass-bg);
  padding: 45px 35px;
  border-radius: 24px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  color: white;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
  text-shadow: 0 0 20px rgba(255, 85, 85, 0.3);
  font-weight: 700;
}

.modal-content p {
  font-size: 1.05rem;
  color: #e0e0e0;
  margin-bottom: 1rem;
}

.close-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  line-height: 1;
  color: #aaa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  .btn-icon {
    transition: all 0.3s ease;
  }
}

.close-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
  box-shadow: 0 0 15px rgba(255, 85, 85, 0.5);

  .btn-icon {
    transform: rotate(90deg);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(40px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.5rem;
  }
  .modal-content {
    padding: 30px 20px;
  }
}
