/* --- Basic Reset & Global Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f0f4f8;
  /* Lighter, cooler grey */
  color: #1e293b;
  /* Darker slate text */
  line-height: 1.7;
  overflow-x: hidden;
  /* Prevent horizontal scroll */
}

.loader {
  position: fixed;
  background: #204051;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader i {
  font-size: 65px;
  color: white;
}

/* Prevent body scroll when overlays (panels/drawer) are active */
body.panel-open,
body.drawer-open {
  overflow-y: hidden;
}


.container {
  max-width: 1140px;
  /* Slightly wider container */
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: #0ea5e9;
  /* Sky blue links */
  transition: color 0.2s ease;
}

a:hover {
  color: #0284c7;
  /* Darker sky blue */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  /* Subtle rounding for images */
}

/* --- Utility Classes --- */
.section-padding {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.section-title {
  text-align: center;
  font-size: 2.4em;
  /* Slightly larger */
  font-weight: 700;
  color: #0f172a;
  /* Very dark blue/slate */
  margin-bottom: 50px;
  line-height: 1.3;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1em;
  color: #475569;
  /* Slate grey */
  max-width: 700px;
  margin: -30px auto 50px auto;
  /* Position below title */
}

/* --- Header & Navigation --- */
.main-header {
  background-color: rgba(255, 255, 255, 0.95);
  /* Slightly transparent */
  backdrop-filter: blur(10px);
  /* Frosted glass effect */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.9em;
  font-weight: 800;
  /* Bolder logo */
  color: #0f172a;
  /* Darker logo */
  display: flex;
  align-items: center;
  letter-spacing: -0.5px;
}

.logo img {
  width: 40px;
  /* Sky blue icon */
}

.nav-links ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #334155;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #0ea5e9;
}

.nav-cta .btn {
  background-color: #0ea5e9;
  /* Sky blue button */
  color: white;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 3px 6px rgba(14, 165, 233, 0.2);
}

.nav-cta .btn:hover {
  background-color: #0284c7;
  transform: translateY(-2px);
}

.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  font-size: 1.8em;
  color: #334155;
  cursor: pointer;
}

.mobile-nav-links {
  display: none;
  background-color: white;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  text-align: center;
}

.mobile-nav-links.active {
  display: block;
}

.mobile-nav-links ul {
  list-style: none;
}

.mobile-nav-links li {
  margin-bottom: 10px;
}

.mobile-nav-links a {
  display: block;
  padding: 12px;
  color: #334155;
  font-weight: 500;
}

.mobile-nav-links .btn {
  display: inline-block;
  margin-top: 10px;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(145deg, #0f172a 10%, #1e3a8a 90%);
  /* Dark blue gradient */
  padding: 100px 0;
  color: #ffffff;
  overflow: hidden;
  /* For potential pseudo-elements */
  position: relative;
}

.hero h1 {
  font-size: 3.2em;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.2em;
  color: #cbd5e1;
  /* Lighter text on dark bg */
  max-width: 750px;
  margin: 0 auto 35px auto;
  opacity: 0.9;
}

.hero .btn-primary {
  background-color: #10b981;
  /* Emerald green CTA */
  color: white;
  padding: 16px 35px;
  border-radius: 8px;
  font-size: 1.15em;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 5px 10px rgba(16, 185, 129, 0.3);
  display: inline-block;
  margin-top: 10px;
}

.hero .btn-primary:hover {
  background-color: #059669;
  transform: translateY(-2px);
}

.hero-image-placeholder {
  background-color: rgba(255, 255, 255, 0.1);
  /* Subtle placeholder */
  border-radius: 12px;
  height: 450px;
  width: 95%;
  margin-top: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #94a3b8;
  font-size: 1.2em;
  font-weight: 500;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.hero-image-placeholder img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* --- Features Section --- */
.features {
  background-color: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
}

.feature-item {
  background-color: #ffffff;
  padding: 35px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #e2e8f0;
  /* Lighter border */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.feature-item .icon {
  font-size: 2.8em;
  color: #0ea5e9;
  margin-bottom: 20px;
}

.feature-item h3 {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1e293b;
}

.feature-item p {
  font-size: 1em;
  color: #475569;
}

/* --- NEW: Lunaxbond Card Section --- */
.Lunaxbond-card-section {
  background-color: #f8fafc;
  /* Slightly different background */
}

.card-section-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
}

.card-section-text {
  flex: 1;
  min-width: 300px;
}

.card-section-text h2 {
  font-size: 2.4em;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
  line-height: 1.3;
}

.card-section-text p {
  font-size: 1.1em;
  color: #334155;
  margin-bottom: 25px;
}

.card-section-text .btn-learn-more {
  background-color: #0ea5e9;
  /* Sky blue */
  color: white;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.card-section-text .btn-learn-more:hover {
  background-color: #0284c7;
  transform: translateY(-2px);
}

.card-visual-container {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  /* For 3D effect */
}

/* The Card Design */
.Lunaxbond-card {
  width: 320px;
  /* Adjust card size */
  height: 200px;
  border-radius: 15px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  /* Lunaxbond Blue Gradient */
  color: white;
  padding: 20px;
  position: relative;
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
  transition: transform 0.4s ease-out;
  transform-style: preserve-3d;
  /* Enable 3D space */
}

.Lunaxbond-card:hover {
  transform: rotateY(5deg) rotateX(2deg) scale(1.02);
  /* Subtle hover effect */
}

.Lunaxbond-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 25px;
}

.Lunaxbond-card .card-chip {
  width: 45px;
  height: 35px;
  background-color: #d4af37;
  /* Gold-ish */
  border-radius: 5px;
  opacity: 0.9;
}

.Lunaxbond-card .card-brand-logo {
  font-size: 1.8em;
  /* Example: Visa/MC */
  opacity: 0.8;
}

.Lunaxbond-card .card-number-display {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.4em;
  letter-spacing: 3px;
  margin-bottom: 15px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.Lunaxbond-card .card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85em;
}

.Lunaxbond-card .card-holder-name {
  font-weight: 500;
  text-transform: uppercase;
}

.Lunaxbond-card .card-expiry-date {
  font-weight: 500;
}

/* End Card Design */
/* End NEW Section */


/* --- How it Works Section --- */
.how-it-works {
  background-color: #f0f4f8;
}

/* Match body bg */
.steps-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 30px;
  margin-top: 30px;
}

.step-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  flex-basis: calc(33.333% - 20px);
  min-width: 250px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
}

.step-item .step-number {
  display: inline-block;
  width: 45px;
  height: 45px;
  line-height: 45px;
  border-radius: 50%;
  background-color: #0ea5e9;
  color: white;
  font-weight: 700;
  font-size: 1.3em;
  margin-bottom: 20px;
}

.step-item h3 {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1e293b;
}

.step-item p {
  font-size: 0.95em;
  color: #475569;
}

/* --- Security/Trust Section --- */
.security {
  background-color: #e0f7ff;
}

/* Lighter blue */
.security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
}

.security-text {
  flex: 1;
  min-width: 300px;
}

.security-text h2 {
  font-size: 2.4em;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 25px;
}

.security-text p {
  font-size: 1.1em;
  color: #334155;
  margin-bottom: 20px;
}

.security-text ul {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.security-text li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: #1e293b;
}

.security-text li i {
  color: #10b981;
  font-size: 1.2em;
}

.security-image-placeholder {
  flex: 1;
  min-width: fit-content;
  background-color: transparent;
  border-radius: 12px;
  height: 380px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #94a3b8;
  font-size: 1.2em;
  font-weight: 500;
  
}

.security-image-placeholder img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* --- Testimonials Section --- */
.testimonials {
  background-color: #ffffff;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-item {
  background-color: #f8fafc;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  position: relative;
}

.testimonial-item::before {
  content: '\f10d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 2em;
  color: #cbd5e1;
  opacity: 0.5;
}

.testimonial-item blockquote {
  font-style: italic;
  color: #334155;
  margin-bottom: 20px;
  padding-left: 10px;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #e2e8f0;
}

.testimonial-author cite {
  font-style: normal;
  font-weight: 600;
  color: #0f172a;
}

.testimonial-author span {
  font-size: 0.9em;
  color: #64748b;
}

/* --- Call to Action (CTA) Section --- */
.cta {
  padding: 70px 0;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: white;
  text-align: center;
}

.cta h2 {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.15em;
  margin-bottom: 35px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.cta .btn-secondary {
  background-color: #10b981;
  color: white;
  padding: 15px 32px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 5px 10px rgba(16, 185, 129, 0.3);
}

.cta .btn-secondary:hover {
  background-color: #059669;
  transform: translateY(-2px);
}

/* --- Footer --- */
.main-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 50px 0;
  font-size: 0.95em;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-section {
  flex-basis: 220px;
}

.footer-section h4 {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 18px;
  font-size: 1.1em;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: #94a3b8;
}

.footer-section a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-socials a {
  margin-right: 18px;
  font-size: 1.5em;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.footer-socials a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  margin-top: 50px;
  padding-top: 25px;
  border-top: 1px solid #1e293b;
  font-size: 0.9em;
  color: #64748b;
}

/* --- Scroll Animation --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Drawer Menu --- */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.drawer-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.drawer-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 75%;
  max-width: 300px;
  height: 100%;
  background-color: #ffffff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.35s ease-in-out;
  z-index: 1100;
  visibility: hidden;
  display: flex;
  flex-direction: column;
}

.drawer-menu.visible {
  transform: translateX(0);
  visibility: visible;
}

.drawer-nav {
  list-style: none;
  padding: 25px 0 15px 0;
  margin: 0;
  flex-grow: 1;
  overflow-y: auto;
}

.drawer-nav li a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  text-decoration: none;
  color: #334155;
  font-size: 1em;
  transition: background-color 0.2s ease;
}

.drawer-nav li a i {
  width: 20px;
  text-align: center;
  color: #64748b;
}

.drawer-nav li a:hover {
  background-color: #f1f5f9;
}

.drawer-footer {
  padding: 20px;
  border-top: 1px solid #e4e6eb;
  flex-shrink: 0;
}

.logout-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .step-item {
    flex-basis: calc(50% - 15px);
  }

  .card-section-content {
    flex-direction: column;
    text-align: center;
  }

  /* Stack card section */
  .card-visual-container {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

  .hero h1 {
    font-size: 2.5em;
  }

  .hero p {
    font-size: 1.1em;
  }

  .section-title {
    font-size: 2em;
  }

  .section-subtitle {
    font-size: 1em;
  }

  .security-content {
    flex-direction: column;
  }

  .security-image-placeholder {
    height: 300px;
    margin-top: 20px;
  }

  .step-item {
    flex-basis: 100%;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-section {
    flex-basis: auto;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2em;
  }

  .hero p {
    font-size: 1em;
  }

  .section-title {
    font-size: 1.8em;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .Lunaxbond-card {
    width: 100%;
    height: auto;
    aspect-ratio: 1.586;
    /* Maintain approx card ratio */
  }

  /* Adjust card size */
  .Lunaxbond-card .card-number-display {
    font-size: 1.1em;
  }
}