/*
Theme Name: Avao Landing
Theme URI: https://avao.io
Author: Umar
Description: Custom WordPress theme for Avao Control landing page
Version: 1.0
*/

/* Reset + base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body,#bgVideo, .page { height: 100%; }
body {
  font-family: "Poppins", sans-serif;
  background: #000;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background video */
.bg-video {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Overlay */
.overlay {
  position: relative;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: space-between;
  background: rgba(0,0,0,0.2);
  color: #fff;
}

/* Header */
.header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 80px;
  padding: 0 20px;
}
.header-inner {
  display:flex;
  gap: 20px;
  align-items: center;
}
.icon { width: 28px; height: 30px; transition: transform .25s ease; }
.icon:hover { transform: scale(1.5); }

/* small dot separator */
.sep {
  width: 6px;
  height: 6px;
  background: #364153;
  border-radius: 50%;
}

/* Center space (keeps header top and footer bottom) */
.center-space { flex: 1; }

/* Footer */
.footer {
  height: auto;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.footer-inner {
  display:flex;
  gap: 10px;
  align-items: center;
}
.copy { font-size: 12px; }
.vert { width: 1px; height: 16px; background: #fff; opacity: .6; }

/* link buttons */
.link-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

/* Reveal section */
.reveal-section {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 76px;
  z-index: 20;
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px;
  pointer-events: auto;
  max-width: 920px;
  width: calc(100% - 40px);
}

/* Text sizes (responsive) */
.reveal h2 { font-weight: 700; font-size: 30px; line-height: 1.05; text-align:center; white-space: nowrap; }
.reveal p { text-align:center; max-width: 700px; font-size: 14px; color: #e6e6e6; }
.semi { font-weight: 500; }

/* Input / button container */
#revealForm {
  display:flex;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  align-items: center;
  justify-content: center;
}

/* Input style converted from your CSS */
.inputStyle {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  padding: 14px 20px;
  color: #fff;
  outline: none;
  flex: 1;
  min-width: 0;
}

/* Button style */
.buttonStyle {
  border-radius: 10px;
  background: #E0002B;
  box-shadow: 0 0 20px rgba(224, 0, 43, 0.40);
  font-size: 16px;
  padding: 14px 26px;
  cursor: pointer;
  border: none;
  color: white;
  white-space: nowrap;
  transition: background-color .3s ease, box-shadow .3s ease, transform .15s ease;
  flex-shrink: 0;
}
.buttonStyle:hover { background: #7A0E18; box-shadow: 0 0 30px rgba(224,0,43,0.6); transform: translateY(-2px); }
.buttonStyle[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }

/* Modal styles */
.modal-root, .policy-root { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; }
.modal-root.active, .policy-root.active { display: flex; }

.modal-backdrop, .policy-backdrop {
  position: absolute; inset:0; background: rgba(0,0,0,.45); backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  z-index: 10;
  border-radius: 32px;
  border: 2px solid #C52333;
  background: rgba(9,9,9,0.32);
  backdrop-filter: blur(48px);
  padding: 30px 38px 68px 36px;
  max-width: 720px;
  width: calc(100% - 40px);
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.modal-close { position: absolute; right: 18px; top: 16px; background: transparent; border: none; cursor: pointer; }
.modal-close img { width: 22px; height: 22px; }

.modal-card h2 { font-size: 24px; margin-top: 6px; text-align:center; }
.modal-card p { color: #D1D1D1; text-align: center; }

/* Policy modal card */
.policy-card {
  position: relative;
  z-index: 10;
  max-width: 1100px;
  width: calc(100% - 40px);
  margin: 24px;
  background: rgba(36,36,36,0.76);
  border-radius: 32px;
  padding: 28px 36px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
}
.policy-back { position: absolute; left: 8px; top: 27px; background: transparent; border: none; cursor: pointer; }
.policy-back img { width: 40px; height: 40px; }

.policy-content {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 8px;
  width: 95%;
}
.policy-content h1 { font-size: 28px; margin-bottom: 6px; }
.policy-content .muted { display:block; margin-bottom: 12px; color: #d0d0d0; font-weight: 500; }
.policy-content h4 { margin-top: 12px; margin-bottom: 6px; font-weight: 700; }
.policy-content p, .policy-content li { color: #e6e6e6; font-size: 14px; line-height: 1.6; }
.policy-content ul { margin-left: 18px; margin-bottom: 10px; }

/* custom scrollbar (webkit) */
.custom-scrollbar::-webkit-scrollbar { width: 14px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #514D4E; border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: linear-gradient(180deg, #E0002B 0%, #7A0E18 100%);
}

#revealSection h2{
  font-size: 65px !important;
}

/* Responsive tweaks */
@media (min-width: 640px) {
  .header { padding: 0 40px; }
  .reveal h2 { font-size: 38px; white-space: normal; }
  .reveal p { font-size: 15px; }
  
}
@media (min-width: 1024px) {
  .header { height: 96px; }
  .reveal h2 { font-size: 45px; }
  .reveal p { font-size: 16px; }
  .modal-card { padding: 40px 56px 68px 56px; }
}

@media (max-width: 600px) {
  .header{justify-content: center !important;}
  .policy-back {
left: 0px !important;
}
.icon
{
width: 23px !important;
}
#revealSection h2{
  font-size: 30px !important;
}
}

/* small devices */
@media (max-width: 420px) {
  .reveal h2 { font-size: 22px; white-space: normal; }
  .reveal p { font-size: 12px; }
  .inputStyle { padding: 10px 12px; }
  .buttonStyle { padding: 10px 14px; }

}
@media (max-width: 376px) {
  .copy{font-size: 10px !important}
  .link-btn{font-size: 10px !important;}
}
