/* ============================================
   PrudentMe Landing Page - Animated & Minimal
   ============================================ */

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --accent: #10b981;
  --dark: #0f172a;
  --gray: #64748b;
  --light: #f8fafc;
  --gradient-1: #667eea;
  --gradient-2: #764ba2;
  --gradient-3: #6B8DD6;
  --gradient-4: #8E37D7;
}

html {
  scroll-behavior: smooth;
}

body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #1a1a2e);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: white;
  overflow-x: hidden;
}

/* ============================================
   Sticky Header
   ============================================ */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-img-small {
  width: 32px;
  height: 32px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: white;
}

.nav-link-cta {
  padding: 0.6rem 1.25rem;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-link-cta:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .header-nav {
    gap: 1rem;
  }

  .header-logo span {
    display: none;
  }
}

/* ============================================
   Animations
   ============================================ */

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes float-reverse {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(20px) rotate(-5deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7),
      0 10px 40px rgba(37, 99, 235, 0.3);
  }

  50% {
    box-shadow: 0 0 0 15px rgba(37, 99, 235, 0),
      0 10px 60px rgba(37, 99, 235, 0.5);
  }
}

@keyframes typewriter {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* ============================================
   Floating Icons
   ============================================ */

.floating-icons {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.icon {
  position: absolute;
  width: 40px;
  height: 40px;
  opacity: 0.08;
  stroke: #60a5fa;
}

.icon-1 {
  top: 15%;
  left: 10%;
  animation: float 6s ease-in-out infinite;
}

.icon-2 {
  top: 25%;
  right: 15%;
  animation: float-reverse 8s ease-in-out infinite 1s;
}

.icon-3 {
  top: 60%;
  left: 8%;
  animation: float 7s ease-in-out infinite 2s;
}

.icon-4 {
  top: 70%;
  right: 10%;
  animation: float-reverse 9s ease-in-out infinite;
}

.icon-5 {
  top: 40%;
  left: 85%;
  animation: float 5s ease-in-out infinite 0.5s;
}

.icon-6 {
  top: 85%;
  left: 50%;
  animation: float-reverse 6s ease-in-out infinite 1.5s;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: center;
  max-width: 700px;
  animation: fadeInUp 1s ease-out;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-img {
  width: 44px;
  height: 44px;
}

.logo-text {
  background: linear-gradient(90deg, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Headlines */
.headline {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: white;
}

/* Bank Carousel */
.bank-carousel {
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.bank-names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  animation: scrollBanks 30s linear infinite;
  width: max-content;
}

.bank-logo {
  height: 45px;
  width: 110px;
  flex-shrink: 0;
  object-fit: contain;
  padding: 8px 12px;
  background: transparent;
  border-radius: 8px;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 50px rgba(255, 255, 255, 0.3));
  animation: logoGlow 2s ease-in-out infinite alternate;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes logoGlow {
  0% {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 25px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.2));
  }

  100% {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 60px rgba(255, 255, 255, 0.4));
  }
}

.bank-logo:hover {
  transform: scale(1.15) translateY(-3px);
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 1)) drop-shadow(0 0 50px rgba(255, 255, 255, 0.8));
  animation: none;
}

/* Larger logos: Access, Union Bank (3x) */
.bank-logo[alt="Access Bank"],
.bank-logo[alt="Union Bank"] {
  width: 330px;
  height: 135px;
  padding: 15px 20px;
}

/* Medium-large logos (1.5x): Sterling, Moniepoint, Palmpay, GTB, FirstBank */
.bank-logo[alt="Sterling Bank"],
.bank-logo[alt="Moniepoint"],
.bank-logo[alt="Palmpay"],
.bank-logo[alt="GTBank"],
.bank-logo[alt="First Bank"] {
  width: 165px;
  height: 68px;
  padding: 10px 15px;
}

/* Wema at 2x (reduced from 3x) */
.bank-logo[alt="Wema Bank"] {
  width: 220px;
  height: 90px;
  padding: 12px 16px;
}

/* Typewriter animation - allow multi-line */
.typewriter {
  display: block;
  text-align: center;
  min-height: 2.5em;
}

.typewriter-text {
  display: inline;
}

.cursor {
  display: inline;
  animation: blink 0.7s infinite;
  font-weight: 100;
  margin-left: 2px;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

@keyframes scrollBanks {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.subheadline {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease-out 0.5s both;
}

/* CTA Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease-out 0.7s both, pulse 2s ease-in-out infinite 1.7s;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.cta-button svg {
  transition: transform 0.3s ease;
}

.cta-button:hover svg {
  transform: translateX(5px);
}

/* Trust Line */
.trust-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  animation: fadeInUp 1s ease-out 0.9s both;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-item svg {
  opacity: 0.7;
}

.trust-divider {
  opacity: 0.3;
}

/* Secondary Links */
.secondary-links {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  animation: fadeInUp 1s ease-out 1.1s both;
}

.signin-link {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 500;
  margin-left: 0.5rem;
  transition: color 0.2s;
}

.signin-link:hover {
  color: white;
  text-decoration: underline;
}

/* ============================================
   Beta Bar
   ============================================ */

.beta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  z-index: 100;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.beta-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.beta-link:hover {
  color: #34d399;
  text-decoration: underline;
}

/* ============================================
   Beta Modal
   ============================================ */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.open .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal-content>p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-content input {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.modal-content input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.modal-content input:focus {
  border-color: var(--primary);
}

.modal-content button[type="submit"] {
  padding: 1rem;
  background: linear-gradient(135deg, var(--accent), #059669);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.modal-content button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

.modal-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1rem;
}


/* ============================================
   Common Section Styles
   ============================================ */
.section-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(90deg, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Security Section
   ============================================ */
.security-section {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.02);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.security-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.security-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(37, 99, 235, 0.3);
}

.security-icon {
  width: 64px;
  height: 64px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary-light);
}

.security-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.security-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
  position: relative;
  z-index: 2;
  padding-bottom: 8rem;
  /* Space for beta bar */
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: white;
  font-size: 1.05rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-chevron {
  transition: transform 0.3s ease;
  opacity: 0.5;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--primary-light);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.1);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  /* Adjust as needed */
}

.faq-answer p {
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .hero {
    padding: 1.5rem;
    padding-bottom: 5rem;
  }

  .headline {
    font-size: 1.5rem;
  }

  .subheadline {
    font-size: 1.3rem;
  }

  .description {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
  }

  .trust-line {
    flex-direction: column;
    gap: 0.5rem;
  }

  .trust-divider {
    display: none;
  }

  .beta-bar {
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
  }

  .floating-icons .icon {
    font-size: 1.5rem;
    opacity: 0.1;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  html,
  body {
    animation: none;
    background-size: 100% 100%;
  }
}