html.auth-checking .hero { visibility: hidden; }

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Inter", sans-serif;
  color: #0f172a;
  background: #ffffff;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

main {
  width: 100%;
  height: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.symbol {
  position: absolute;
  color: rgba(37, 99, 235, 0.08);
  font-weight: 800;
  user-select: none;
  animation: floating 10s ease-in-out infinite;
  will-change: transform;
}

.symbol:nth-child(even) {
  animation-duration: 14s;
}

.symbol:nth-child(3n) {
  animation-duration: 18s;
}

.s1 {
  top: 8%;
  left: 8%;
  font-size: 4rem;
}

.s2 {
  top: 10%;
  right: 10%;
  font-size: 4rem;
}

.s3 {
  top: 48%;
  left: 6%;
  font-size: 3.5rem;
}

.s4 {
  bottom: 10%;
  left: 14%;
  font-size: 3.8rem;
}

.s5 {
  bottom: 8%;
  right: 10%;
  font-size: 4rem;
}

.s6 {
  top: 58%;
  right: 10%;
  font-size: 3rem;
}

.s7 {
  top: 16%;
  left: 44%;
  font-size: 2.8rem;
}

.s8 {
  bottom: 28%;
  right: 34%;
  font-size: 3rem;
}

.s9 {
  bottom: 12%;
  left: 46%;
  font-size: 3rem;
}

.s10 {
  top: 30%;
  right: 18%;
  font-size: 2.6rem;
}

.s11 {
  bottom: 18%;
  left: 26%;
  font-size: 2.3rem;
}

.s12 {
  top: 36%;
  left: 24%;
  font-size: 2.3rem;
}

.s13 {
  top: 66%;
  right: 22%;
  font-size: 2.5rem;
}

.s14 {
  top: 14%;
  left: 24%;
  font-size: 2.4rem;
}

.hero__content {
  position: relative;
  z-index: 5;
  width: min(900px, calc(100% - 40px));
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__content h1 {
  margin: 2rem auto 0;
  font-size: clamp(4rem, 7vw, 6.4rem);
  font-weight: 800;
  font-family: "Geist", "Inter", sans-serif;
  line-height: 0.92;
  letter-spacing: -0.055em;
  max-width: 11ch;
  color: #0f172a;
  text-align: center;
  text-wrap: balance;
}

.hero__content p {
  margin: 2rem auto 0;
  max-width: 700px;
  font-size: 1.2rem;
  color: #64748b;
  line-height: 1.8;
  text-align: center;
}

.hero__actions {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 58px;
  padding: 0 2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    transform 0.18s ease,
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  user-select: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: #2563eb;
  border: 1px solid #2563eb;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.btn-secondary {
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.hero__content .human-note {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 40px);
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 400;
  color: #a0aec0;
  white-space: nowrap;
}

.hero__content .human-note::before {
  content: "•";
  margin-right: 5px;
  color: #cbd5e1;
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-18px);
  }
}

::selection {
  background: rgba(37, 99, 235, 0.18);
  color: #0f172a;
}

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  body {
    min-width: 0;
  }

  img,
  video,
  iframe {
    max-width: 100%;
  }

  .hero__content {
    width: calc(100% - 32px);
  }

  .hero__content h1 {
    font-size: clamp(3rem, 13vw, 4.5rem);
  }

  .hero__actions {
    gap: 0.75rem;
  }

  .btn {
    min-width: 150px;
    padding: 0 1.25rem;
  }
}

/* =========================================================
   BAC TRUTH — UNIVERSAL PAGE SCROLLBAR
   Matches the Quran page exactly.
   ========================================================= */
html,
body {
  scrollbar-width: thin;
  scrollbar-color: #b8bec8 transparent;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 5px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: #b8bec8;
  border-radius: 999px;
}

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