* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;

  background:
    linear-gradient(rgba(5, 8, 15, 0.85), rgba(5, 8, 15, 0.85)),
    url("images/hyprison_logo_and_image.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  color: #e5e7eb;
}

.container {
  max-width: 480px;
  width: 100%;
  height: calc(100vh - 20px);

  display: flex;
  flex-direction: column;

  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 36px;
  text-align: center;

  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.main {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 4px;
}

.footer {
  margin-top: auto;
  padding-top: 10px;
  font-size: 12px;
  color: #6b7280;
}

h1 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 12px;
}

h1 span {
  color: #a78bfa;
}

p {
  color: #9ca3af;
  font-size: 15px;
  margin-bottom: 30px;
}

@media (max-width: 480px) {
  h1 {
    font-size: 28px;
  }
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.nav-brand {
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  color: #e5e7eb;
}

.nav-brand span {
  color: #a78bfa;
}

.nav-links {
  display: flex;
  gap: 10px;
}

.nav-link {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;

  color: #d1d5db;
  background: rgba(31, 41, 55, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);

  transition: transform 0.15s ease;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-link.active {
  color: #ffffff;
  background: rgba(124, 58, 237, 0.28);
  border-color: rgba(124, 58, 237, 0.4);
}

.badge {
  display: inline-block;
  background: #7c3aed;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-image {
  position: relative;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 340px;
  border-radius: 14px;

  transform: translateY(0);
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: translateY(-4px);
}

.feature-list {
  list-style: none;
  margin: 20px auto 30px;
  padding: 0;
  width: fit-content;
}

.feature-list li {
  white-space: nowrap;
  font-size: 15px;
  color: #d1d5db;
  margin-bottom: 10px;
  text-align: left;
}

.feature-list li::before {
  content: "•";
  margin-right: 8px;
  color: #a78bfa;
}

@media (max-width: 480px) {
  .feature-list li {
    white-space: normal;
    font-size: 14px;
  }
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

input,
textarea {
  padding: 14px 16px;
  border-radius: 10px;
  border: none;
  outline: none;

  background: rgba(31, 41, 55, 0.9);
  color: #e5e7eb;
  font-size: 14px;
}

input::placeholder,
textarea::placeholder {
  color: #6b7280;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

.input-required {
  position: relative;
}

.input-required input {
  width: 100%;
}

.asterisk {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: #ef4444;
  font-size: 16px;
  font-weight: 600;
  pointer-events: none;
}

button {
  padding: 14px;
  border-radius: 10px;
  border: none;

  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: white;
  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(124, 58, 237, 0.45);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.9;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#thank-you-screen {
  max-width: 360px;
  margin: 0 auto;
  text-align: left;
  text-align: justify;
  animation: fadeIn 0.5s ease forwards;
}

#thank-you-screen h2 {
  font-size: 26px;
  margin-bottom: 12px;
  text-align: left;
}

#thank-you-screen p {
  color: #a78bfa;
  line-height: 1.6;
}

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

.page-title {
  margin-top: 4px;
  margin-bottom: 10px;
}

.page-subtitle {
  margin-bottom: 22px;
}

.updates {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.update-link {
  display: block;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.update-card {
  border-radius: 14px;
  background: rgba(31, 41, 55, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.update-link:hover .update-card {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
}

.update-card--image {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
}

.update-image-wrapper {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.update-image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.45)
  );
  pointer-events: none;
}

.update-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.update-link:hover .update-image {
  transform: scale(1.03);
}

.update-card-content {
  padding: 16px;
}

.update-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #9ca3af;
  font-size: 12px;
  margin-bottom: 10px;
}

.update-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  color: #e5e7eb;
  background: rgba(124, 58, 237, 0.25);
  border: 1px solid rgba(124, 58, 237, 0.35);
}

.update-title {
  font-size: 16px;
  margin-bottom: 8px;
  color: #e5e7eb;
}

.update-body {
  margin: 0;
  color: #d1d5db;
  line-height: 1.6;
  font-size: 14px;
}

.update-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;
  border-radius: 999px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 34px;
  font-weight: 800;
  line-height: 1;

  color: #ffffff;
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(6px);

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);

  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.update-link:hover .update-chevron {
  transform: translate(6px, -50%);
  background: rgba(124, 58, 237, 0.85);
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.55);
}

.policy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.policy-section {
  border-radius: 14px;
  background: rgba(31, 41, 55, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px;
}

.policy-heading {
  font-size: 16px;
  margin-bottom: 10px;
  color: #e5e7eb;
}

.policy-text {
  margin: 0;
  color: #d1d5db;
  line-height: 1.6;
  font-size: 14px;
}

.policy-meta {
  color: #9ca3af;
  font-size: 12px;
}

.policy-list {
  margin: 0;
  padding-left: 18px;
  color: #d1d5db;
  line-height: 1.6;
  font-size: 14px;
}

.policy-list li {
  margin: 6px 0;
}

.policy-link {
  color: #a78bfa;
  text-decoration: none;
  font-weight: 600;
}

.policy-link:hover {
  text-decoration: underline;
}

/* Page scrollbar (Chrome/Edge/Safari) */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: #0f172a;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: #6366f1;
  border-radius: 999px;
  border: 2px solid #0f172a;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: #818cf8;
}

/* Firefox */
html,
body {
  scrollbar-width: thin;
  scrollbar-color: #6366f1 #0f172a;
}

.main {
  padding-right: 16px;
}