@font-face {
  font-family: 'FixelText';
  src: url('fonts/FixelText-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'FixelText';
  src: url('fonts/FixelText-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}

:root {
  --main-bg: #111111;
  --body-bg: #0a0a0a;
  --divider-color: rgba(255,255,255,0.1);
  --faq-plus-color: #888;
  --text-color: #EEEEEE;
  --max-width: 1200px;
  --transition: 0.3s ease;
  --shadow-color: rgba(0, 0, 0, 0.8);
  --accent-color: #4A90E2;
}

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

body {
  background: var(--body-bg);
  color: var(--text-color);
  font-family: 'FixelText', -apple-system, sans-serif;
  font-size: 1.1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hero-container {
  width: 100%;
  background: var(--main-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

#app-matrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}

#app-matrix-canvas.resizing {
  opacity: 0;
}

.vignette-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1; /* Поверх канвасу, але під контентом */
  background: radial-gradient(
    circle at center,
    transparent 20%,
    rgba(17, 17, 17, 0.6) 60%,
    rgba(17, 17, 17, 0.95) 100%
  );
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 50px 40px 0 40px;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

header img.logo {
  height: 30px;
  filter: invert(1) opacity(0.9);
  -webkit-user-drag: none;
  user-select: none;
}

header a.contact-us {
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 500;
  position: relative;
  opacity: 0.8;
  transition: opacity 0.3s;
}
header a.contact-us:hover {
  opacity: 1;
}
header a.contact-us::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--text-color);
  transition: width 0.3s ease;
}
header a.contact-us:hover::after {
  width: 100%;
}

.hero {
  flex: 1;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  /* Видаляємо margin-top, який зміщував блок вниз */
  justify-content: center;
  align-items: center;
  min-height: 50vh;
  z-index: 2; /* Підняли вище, щоб бути над віньєткою */
}

.hero-top-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  margin-bottom: 0; /* Прибираємо відступ знизу для кращого центрування */
}

.hero-top-content .icon {
  height: 120px;
  filter: drop-shadow(0 20px 30px var(--shadow-color));
  border-radius: 28px;
  -webkit-user-drag: none;
  user-select: none;
}

.hero-top-content h1 {
  font-size: 3.5rem; /* Трохи збільшимо заголовок для балансу */
  margin: 30px 0 15px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.hero-top-content .subtitle {
  font-size: 1.5rem; /* Збільшено розмір шрифту */
  color: #AAA;
  margin-bottom: 50px; /* Трохи більше відступу до форми */
  max-width: 650px; /* Розширено блок тексту, щоб він гарно виглядав */
  margin: 0 auto 50px auto;
  line-height: 1.5;
}

.highlight-text {
  font-size: 1.5rem !important; /* Розмір тексту збігається з сабтайтлом */
  color: #FFF !important;
  font-weight: 400;
  max-width: 700px !important; /* Розширено для зручного читання */
}

.highlight-text strong {
  color: #34C759; /* Apple's system green, often used for positive growth */
  text-shadow: 0 0 20px rgba(52, 199, 89, 0.4);
  font-weight: 600;
}

.system-requirements {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin-top: 25px;
  opacity: 0.5;
}

/* Beta Signup Form */
.beta-signup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 54px;
  margin-bottom: 10px;
}
.beta-signup-disabled {
  cursor: not-allowed;
}
.join-btn {
  background: #FFF;
  color: #000;
  border: none;
  border-radius: 14px;
  padding: 0 35px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  height: 100%;
  transition: all 0.3s ease;
  font-family: inherit;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}
.join-btn:hover {
  transform: scale(1.05);
  background: #E0E0E0;
  box-shadow: 0 10px 20px rgba(255,255,255,0.1);
}
.join-btn-disabled,
.join-btn:disabled {
  cursor: not-allowed;
  opacity: 0.85;
}
.join-btn-disabled:hover,
.join-btn:disabled:hover {
  transform: none;
  background: #FFF;
  box-shadow: none;
}
.join-btn.hidden {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  position: absolute;
}
.beta-form {
  display: flex;
  height: 100%;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: scale(1);
  position: relative;
  z-index: 1;
}
.beta-form.hidden {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  position: absolute;
}
.beta-form input {
  border: 1px solid #333;
  border-right: none;
  border-radius: 14px 0 0 14px;
  padding: 0 20px;
  font-size: 1rem;
  outline: none;
  height: 100%;
  width: 260px;
  font-family: inherit;
  background: rgba(255,255,255,0.05);
  color: #FFF;
}
.beta-form input::placeholder {
  color: #888;
}
.beta-form button {
  background: #FFF;
  color: #000;
  border: 1px solid #FFF;
  border-radius: 0 14px 14px 0;
  padding: 0 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  height: 100%;
  transition: background 0.2s;
  font-family: inherit;
}
.beta-form button:hover {
  background: #E0E0E0;
}
.beta-success {
  color: #4CAF50;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0 25px;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 14px;
  line-height: 52px;
  height: 54px;
}
.beta-success.hidden {
  display: none;
}

/* Scroll Fade Up Animations */
.fade-up-element {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  font-size: 1rem;
  color: #666;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2; /* Підняли вище, щоб бути над віньєткою */
}

.footer-note {
  font-size: 0.9rem;
}

@media (max-width: 767px) {
  header {
    padding: 20px 20px 0 20px;
  }
  .hero-container {
    padding-bottom: 40px;
  }
  .hero-top-content {
    margin-bottom: 20px;
  }
  .hero-top-content .icon {
    height: 90px;
    border-radius: 20px;
  }
  .hero-top-content h1 {
    font-size: 2.2rem;
  }
  .hero-top-content .subtitle {
    font-size: 1.05rem;
    max-width: 330px;
    margin-bottom: 30px;
  }
  .beta-form input {
    width: 180px;
  }
  .faq-section {
    margin: 60px auto;
  }
  .faq-section h2 {
    font-size: 1.8rem;
  }
  .faq-question {
    font-size: 1.1rem;
  }
  .faq-answer {
    width: 100%;
  }
}
