/* ============================================================
   NOXERA LANDING PAGE — Custom Styles
   ============================================================ */

html {
  scroll-behavior: smooth;
}

/* ---- Scroll-Triggered Entrance Animations ---- */
.animate-target {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-target.fade-up { transform: translateY(30px); }
.animate-target.slide-left { transform: translateX(-40px); }
.animate-target.slide-right { transform: translateX(40px); }

.animate-target.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.delay-1 { --delay: 150ms; }
.delay-2 { --delay: 300ms; }
.delay-3 { --delay: 450ms; }

/* ---- Nav Link Underline ---- */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #F37053;
  transition: width 0.25s ease;
}

.nav-link:hover::after { width: 100%; }

/* ---- Hamburger Animation ---- */
#mobile-menu-btn.open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#mobile-menu-btn.open .hamburger-line:nth-child(2) { opacity: 0; }
#mobile-menu-btn.open .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---- Flip Cards ---- */
.flip-card-container {
  perspective: 1200px;
  cursor: pointer;
}

.flip-card {
  position: relative;
  width: 100%;
  min-height: 320px;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}

.flip-card-front { justify-content: flex-start; }
.flip-card-back { transform: rotateY(180deg); justify-content: center; }

@media (hover: hover) {
  .flip-card-container:hover .flip-card { transform: rotateY(180deg); }
}

.flip-card-container.flipped .flip-card { transform: rotateY(180deg); }

/* Flip cue icon animation — pulsing brand chevron */
.flip-cue-icon {
  animation: flipCuePulse 2s ease-in-out infinite;
}

@keyframes flipCuePulse {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}

/* ---- Platform Hub Pulsing Rings ---- */
.platform-ring-1 {
  animation: platformPulse 3s ease-in-out infinite;
}
.platform-ring-2 {
  animation: platformPulse 3s ease-in-out infinite 0.5s;
}
.platform-ring-3 {
  animation: platformPulse 3s ease-in-out infinite 1s;
}

@keyframes platformPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.05); }
}

/* ---- Spoke Card Expand/Collapse ---- */
.spoke-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.spoke-card.expanded .spoke-detail {
  max-height: 200px;
  opacity: 1;
}

.spoke-card.expanded .spoke-chevron {
  transform: rotate(180deg);
}

/* On desktop, also expand on hover */
@media (hover: hover) {
  .spoke-card:hover .spoke-detail {
    max-height: 200px;
    opacity: 1;
  }

  .spoke-card:hover .spoke-chevron {
    transform: rotate(180deg);
  }
}

/* ---- Feature Mockup Hover ---- */
.feature-mockup {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-mockup:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(7, 31, 41, 0.08);
}

/* ---- FAQ Accordion ---- */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item:hover { background-color: rgba(233, 235, 237, 0.8); }
.faq-trigger { cursor: pointer; }

/* ---- Form Input Focus ---- */
.form-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* ============================================================
   QUESTIONNAIRE — Sections, Likert scales, option lists
   ============================================================ */

.questionnaire-section {
  border-top: 1px solid rgba(7, 31, 41, 0.08);
  padding-top: 2.25rem;
  margin-top: 2.25rem;
}

.questionnaire-section:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.questionnaire-section > h2 {
  color: #F37053;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.questionnaire-section > h2 + p {
  font-size: 1.15rem;
  font-weight: 600;
  color: #071F29;
  margin-bottom: 1.5rem;
  line-height: 1.35;
}

.q-block {
  margin-bottom: 1.5rem;
  border: none;
  padding: 0;
}

.q-block > label,
.q-block > legend {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #071F29;
  margin-bottom: 0.6rem;
  line-height: 1.45;
  padding: 0;
}

/* Radio / checkbox option list (vertical stack) */
.option-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.option-list label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #E9EBED;
  border-radius: 0.5rem;
  background: rgba(233, 235, 237, 0.25);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.4;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.option-list label:hover {
  border-color: rgba(243, 112, 83, 0.5);
  background: rgba(243, 112, 83, 0.04);
}

.option-list label:has(input:checked) {
  border-color: #F37053;
  background: rgba(243, 112, 83, 0.07);
}

.option-list input[type="radio"],
.option-list input[type="checkbox"] {
  margin-top: 0.15rem;
  accent-color: #F37053;
  flex-shrink: 0;
}

/* Likert 1-5 scale */
.likert-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.likert-scale label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 0.65rem 0.4rem;
  border: 1px solid #E9EBED;
  border-radius: 0.5rem;
  background: rgba(233, 235, 237, 0.25);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 300;
  line-height: 1.25;
  color: rgba(7, 31, 41, 0.7);
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.likert-scale label:hover {
  border-color: rgba(243, 112, 83, 0.5);
  background: rgba(243, 112, 83, 0.04);
}

.likert-scale label:has(input:checked) {
  border-color: #F37053;
  background: rgba(243, 112, 83, 0.07);
  color: #071F29;
}

.likert-num {
  font-size: 1.05rem;
  font-weight: 600;
  color: #071F29;
  margin-bottom: 0.25rem;
  line-height: 1;
}

.likert-scale label:has(input:checked) .likert-num {
  color: #F37053;
}

@media (max-width: 640px) {
  .likert-scale {
    gap: 0.4rem;
  }
  .likert-scale label {
    padding: 0.65rem 0.25rem;
    font-size: 0.875rem;
    min-height: 44px;
  }
  .likert-num {
    font-size: 1rem;
  }
}

/* ============================================================
   DECORATIVE BRAND SHAPES — 2 per section
   ============================================================ */

/* ---- HERO (Bold — brand pattern inspired by brand book cover) ---- */

/* Large coral chevron behind mockup */
.shape-chevron-hero {
  position: absolute;
  top: 8%;
  right: -3%;
  width: 400px;
  height: 500px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
}

.shape-chevron-hero::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #F37053;
  clip-path: polygon(30% 0%, 0% 0%, 50% 50%, 0% 100%, 30% 100%, 80% 50%);
}

/* Second chevron — smaller, offset, gray — creates depth like brand book */
.shape-chevron-hero::after {
  content: '';
  position: absolute;
  top: 30%;
  left: -40%;
  width: 60%;
  height: 60%;
  background: #A6B5BD;
  clip-path: polygon(30% 0%, 0% 0%, 50% 50%, 0% 100%, 30% 100%, 80% 50%);
  opacity: 0.5;
}

/* Slash accent — left side */
.shape-slash-hero {
  position: absolute;
  bottom: 5%;
  left: 3%;
  width: 50px;
  height: 280px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.12;
}

.shape-slash-hero::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #A6B5BD;
  clip-path: polygon(100% 0%, 60% 0%, 0% 100%, 40% 100%);
}

/* Rectangle bar — top left — brand book pattern element */
.shape-slash-hero::after {
  content: '';
  position: absolute;
  top: -200%;
  left: 80px;
  width: 20px;
  height: 150px;
  background: #F37053;
  opacity: 0.6;
}

/* ---- WHY NOXERA / ABOUT (Subtle) ---- */
.shape-chevron-about {
  position: absolute;
  bottom: 8%;
  right: 5%;
  width: 200px;
  height: 260px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
}

.shape-chevron-about::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #071F29;
  clip-path: polygon(30% 0%, 0% 0%, 50% 50%, 0% 100%, 30% 100%, 80% 50%);
}

.shape-rect-about {
  position: absolute;
  top: 15%;
  left: 2%;
  width: 25px;
  height: 160px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  background: #F37053;
}

/* ---- PROMISE SECTION ---- */
.shape-slash-promise {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 45px;
  height: 220px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
}

.shape-slash-promise::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #071F29;
  clip-path: polygon(100% 0%, 60% 0%, 0% 100%, 40% 100%);
}

.shape-chevron-promise {
  position: absolute;
  bottom: 10%;
  left: 3%;
  width: 140px;
  height: 180px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
}

.shape-chevron-promise::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #A6B5BD;
  clip-path: polygon(30% 0%, 0% 0%, 50% 50%, 0% 100%, 30% 100%, 80% 50%);
}

/* ---- PAIN POINTS ---- */
.shape-chevron-pain-tl {
  position: absolute;
  top: 5%;
  left: -2%;
  width: 180px;
  height: 240px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
}

.shape-chevron-pain-tl::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #F37053;
  clip-path: polygon(30% 0%, 0% 0%, 50% 50%, 0% 100%, 30% 100%, 80% 50%);
}

.shape-slash-pain-br {
  position: absolute;
  bottom: 5%;
  right: 4%;
  width: 40px;
  height: 200px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
}

.shape-slash-pain-br::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #A6B5BD;
  clip-path: polygon(100% 0%, 60% 0%, 0% 100%, 40% 100%);
}

/* ---- AUDIENCE ---- */
.shape-slash-audience {
  position: absolute;
  top: 8%;
  right: 6%;
  width: 40px;
  height: 200px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
}

.shape-slash-audience::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #071F29;
  clip-path: polygon(100% 0%, 60% 0%, 0% 100%, 40% 100%);
}

.shape-rect-audience {
  position: absolute;
  bottom: 12%;
  left: 3%;
  width: 22px;
  height: 140px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  background: #F37053;
}

/* ---- FEATURES ---- */
.shape-chevron-features {
  position: absolute;
  top: 8%;
  left: -2%;
  width: 200px;
  height: 260px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
}

.shape-chevron-features::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #A6B5BD;
  clip-path: polygon(30% 0%, 0% 0%, 50% 50%, 0% 100%, 30% 100%, 80% 50%);
}

.shape-slash-features {
  position: absolute;
  bottom: 12%;
  right: 4%;
  width: 50px;
  height: 250px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
}

.shape-slash-features::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #F37053;
  clip-path: polygon(100% 0%, 60% 0%, 0% 100%, 40% 100%);
}

/* ---- HOW IT WORKS (Bold on dark) ---- */
.shape-rect-hiw {
  position: absolute;
  top: 10%;
  left: -1%;
  width: 30px;
  height: 200px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  background: #F37053;
}

.shape-slash-hiw {
  position: absolute;
  bottom: 8%;
  right: 3%;
  width: 55px;
  height: 220px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.14;
}

.shape-slash-hiw::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #F37053;
  clip-path: polygon(100% 0%, 60% 0%, 0% 100%, 40% 100%);
}

/* ---- PILOT CTA (Bold) ---- */
.shape-chevron-cta-l {
  position: absolute;
  top: 15%;
  left: -2%;
  width: 180px;
  height: 300px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
}

.shape-chevron-cta-l::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #071F29;
  clip-path: polygon(30% 0%, 0% 0%, 50% 50%, 0% 100%, 30% 100%, 80% 50%);
}

.shape-chevron-cta-r {
  position: absolute;
  bottom: 10%;
  right: -2%;
  width: 180px;
  height: 300px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  transform: scaleX(-1);
}

.shape-chevron-cta-r::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #071F29;
  clip-path: polygon(30% 0%, 0% 0%, 50% 50%, 0% 100%, 30% 100%, 80% 50%);
}

/* ---- FAQ ---- */
.shape-chevron-faq {
  position: absolute;
  bottom: 10%;
  right: 5%;
  width: 160px;
  height: 200px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
}

.shape-chevron-faq::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #A6B5BD;
  clip-path: polygon(30% 0%, 0% 0%, 50% 50%, 0% 100%, 30% 100%, 80% 50%);
}

.shape-slash-faq {
  position: absolute;
  top: 8%;
  left: 3%;
  width: 35px;
  height: 180px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
}

.shape-slash-faq::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #F37053;
  clip-path: polygon(100% 0%, 60% 0%, 0% 100%, 40% 100%);
}

/* ---- FOOTER ---- */
.shape-footer-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: repeating-linear-gradient(
    120deg,
    transparent,
    transparent 80px,
    #A6B5BD 80px,
    #A6B5BD 82px
  );
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .flip-card { min-height: 300px; }

  .shape-chevron-hero,
  .shape-slash-hero,
  .shape-chevron-cta-l,
  .shape-chevron-cta-r {
    display: none;
  }
}

@media (max-width: 640px) {
  .flip-card { min-height: 280px; }
}
