@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@600;700&display=swap");

:root {
  --btn-start: #ff0000;
  --btn-end: #ff6666;
}

html,
body {
  height: 100%;
}
body {
  box-sizing: border-box;
  font-family: "Inter", Arial, sans-serif;
  margin: 0;
  padding: 8px 12px 12px 12px;
  background: linear-gradient(to bottom, #ffcccc, #ffe6e6);
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header / navigation shared styling */
header {
  padding: 12px 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  max-width: 920px;
  margin: 8px auto 6px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  z-index: 10;
  transition: transform 0.16s ease;
  border: 2px solid #ff0000;
  animation: slideDown 0.38s cubic-bezier(0.2, 0.9, 0.3, 1);
}
header:hover {
  transform: translateY(-3px);
  transition: transform 0.18s ease;
}
.logo {
  font-family: "Poppins", "Inter", Arial, sans-serif;
  font-size: 1.45rem;
  color: #ff0000;
  font-weight: 700;
  letter-spacing: 0.6px;
}
header a {
  color: inherit;
  text-decoration: none;
}
/* default link color for pages */
a {
  color: #ff0000;
}
nav a {
  margin: 0 12px;
  text-decoration: none;
  color: #ff0000;
  font-weight: 600;
  transition: color 0.22s, transform 0.22s;
}
nav a:hover {
  color: #cc0000;
  transform: translateY(-2px);
}

/* Common animations used across pages */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  60% {
    opacity: 1;
    transform: translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  50% {
    opacity: 1;
    transform: translateY(-6px) scale(1.04);
  }
  75% {
    transform: translateY(2px) scale(0.995);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(1.06);
    opacity: 0.92;
  }
}

/* Buttons using CSS variables */
.install-btn,
.faq-btn {
  background: linear-gradient(90deg, var(--btn-start), var(--btn-end));
  color: #fff;
}
.card {
  background: linear-gradient(90deg, var(--btn-start), var(--btn-end));
  color: #fff;
}

/* Apply consistent entrance animation to main content boxes across redirect pages */
main,
.message-box,
.center-wrap > main {
  animation: fadeInUp 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) 0.08s both;
}

/* Common utilities used by many pages */
.main-message,
.gradient-text {
  font-family: "Poppins", "Inter", Arial, sans-serif;
  font-weight: 600;
}

.description {
  font-family: "Inter", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.03rem;
  line-height: 1.5;
  margin-bottom: 18px;
  color: #a60000;
}

/* Button surface / sizing shared defaults (page-specific overrides still allowed) */
.install-btn,
.faq-btn {
  display: inline-block;
  padding: 12px 26px;
  margin: 8px;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  animation: bounceIn 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.install-btn:hover,
.faq-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

/* small helper used by the header loader to keep layout consistent */
#site-header {
  width: 100%;
  max-width: 920px;
  margin: 6px auto 6px auto;
}

/* center-wrap utility: centers a single main/content box vertically and horizontally
   used by redirect pages that need their .message-box centered beneath the header */
.center-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
