/* Basic Reset & Global Styles */
:root {
  --color-blue-primary: #2563eb; /* blue-600 */
  --color-blue-dark: #1d4ed8; /* blue-700 */
  --color-blue-light: #eff6ff; /* blue-50 */
  --color-blue-lighter: #dbeafe; /* blue-100 */
  --color-blue-text: #1e40af; /* blue-800 */

  --color-gray-900: #111827;
  --color-gray-800: #1f2937;
  --color-gray-700: #374151;
  --color-gray-600: #4b5563;
  --color-gray-500: #6b7280;
  --color-gray-400: #9ca3af;
  --color-gray-200: #e5e7eb;
  --color-gray-100: #f3f4f6;
  --color-gray-50: #f9fafb;

  --color-green-primary: #22c55e; /* green-500 */
  --color-green-light: #f0fdf4; /* green-50 */
  --color-green-lighter: #dcfce7; /* green-100 */
  --color-green-text: #166534; /* green-800 */

  --color-purple-primary: #a855f7; /* purple-500 */
  --color-purple-light: #f3e8ff; /* purple-100 */

  --color-red-primary: #ef4444; /* red-500 */
  --color-red-light: #fee2e2; /* red-100 */

  --color-yellow-primary: #facc15; /* yellow-400 */

  --color-white: #ffffff;
  --color-black: #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--color-gray-900);
  background-color: var(--color-white);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Utility Classes */
.text-blue {
  color: var(--color-blue-primary);
}
.text-green {
  color: var(--color-green-primary);
}
.text-purple {
  color: var(--color-purple-primary);
}
.text-red {
  color: var(--color-red-primary);
}
.text-yellow {
  color: var(--color-yellow-primary);
}

.bg-blue-light {
  background-color: var(--color-blue-lighter);
}
.bg-green-light {
  background-color: var(--color-green-lighter);
}
.bg-purple-light {
  background-color: var(--color-purple-light);
}
.bg-red-light {
  background-color: var(--color-red-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-blue-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-blue-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-gray-700);
  border-color: var(--color-gray-200);
}

.btn-outline:hover {
  background-color: var(--color-gray-50);
  color: var(--color-gray-900);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--color-gray-900);
  border-color: var(--color-gray-200);
}

.btn-outline-dark:hover {
  background-color: var(--color-gray-100);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-gray-700);
  border: none;
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  background-color: var(--color-gray-100);
  color: var(--color-gray-900);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem; /* text-lg */
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px; /* full rounded */
  font-size: 0.875rem; /* text-sm */
  font-weight: 600;
  white-space: nowrap;
}

.badge-blue {
  background-color: var(--color-blue-lighter);
  color: var(--color-blue-text);
}

.badge-green {
  background-color: var(--color-green-lighter);
  color: var(--color-green-text);
}

/* Cards */
.card {
  background-color: var(--color-white);
  border-radius: 1rem; /* rounded-2xl */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-2xl */
  border: 1px solid var(--color-gray-200);
  padding: 1.5rem;
}

/* Header */
.header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem; /* h-16 */
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* space-x-2 */
  font-size: 1.25rem; /* text-xl */
  font-weight: 700;
  color: var(--color-gray-900);
}

.logo-icon {
  width: 2rem; /* w-8 */
  height: 2rem; /* h-8 */
  background-color: var(--color-blue-primary);
  border-radius: 0.5rem; /* rounded-lg */
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon i {
  color: var(--color-white);
  font-size: 1.25rem; /* h-5 w-5 */
}

.nav-desktop {
  display: none; /* Hidden by default, shown on md breakpoint */
  align-items: center;
  gap: 2rem; /* space-x-8 */
}

.nav-link {
  color: var(--color-gray-700);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-blue-primary);
}

.header-cta-desktop {
  display: none; /* Hidden by default, shown on md breakpoint */
  align-items: center;
  gap: 1rem; /* space-x-4 */
}

.menu-toggle {
  display: block; /* Shown by default, hidden on md breakpoint */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle i {
  font-size: 1.5rem; /* h-6 w-6 */
  color: var(--color-gray-700);
}

.nav-mobile {
  display: none; /* Hidden by default, shown by JS */
  flex-direction: column;
  gap: 1rem; /* space-y-4 */
  padding: 1rem 0;
  border-top: 1px solid var(--color-gray-200);
}

.nav-mobile .nav-link {
  padding: 0.5rem 1rem;
}

.header-cta-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* space-y-2 */
  padding-top: 1rem;
  border-top: 1px solid var(--color-gray-200);
}

.header-cta-mobile .btn {
  width: 100%;
  justify-content: flex-start;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(to bottom right, var(--color-blue-light), #e0e7ff); /* from-blue-50 to-indigo-100 */
  padding: 5rem 1rem; /* py-20 px-4 */
}

.hero-content {
  display: grid;
  gap: 3rem; /* gap-12 */
  align-items: center;
}

.hero-text-content {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* space-y-8 */
}

.hero-text-content h1 {
  font-size: 2.25rem; /* text-4xl */
  font-weight: 700;
  color: var(--color-gray-900);
  line-height: 1.25; /* leading-tight */
}

.hero-text-content p {
  font-size: 1.25rem; /* text-xl */
  color: var(--color-gray-600);
  line-height: 1.625; /* leading-relaxed */
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* gap-4 */
}

.hero-buttons .btn i {
  margin-left: 0.5rem;
}

.hero-info {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem; /* space-x-8 */
  font-size: 0.875rem; /* text-sm */
  color: var(--color-gray-600);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* space-x-2 */
}

.info-item i {
  font-size: 1.25rem; /* h-5 w-5 */
}

.hero-image-content {
  position: relative;
}

.wallet-card {
  padding: 2rem; /* p-8 */
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* space-y-6 */
}

.wallet-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wallet-card .card-header h3 {
  font-size: 1.125rem; /* text-lg */
  font-weight: 600;
}

.risk-score-display {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* space-y-4 */
}

.risk-score-display .label {
  font-size: 0.875rem; /* text-sm */
  color: var(--color-gray-600);
}

.risk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem; /* p-4 */
  background-color: var(--color-gray-50);
  border-radius: 0.5rem; /* rounded-lg */
}

.risk-fill {
  width: 4rem; /* w-16 */
  height: 0.5rem; /* h-2 */
  background-color: var(--color-green-lighter);
  border-radius: 9999px; /* rounded-full */
  position: relative;
}

.risk-fill::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0.5rem; /* w-2 */
  height: 0.5rem; /* h-2 */
  background-color: var(--color-green-primary);
  border-radius: 9999px; /* rounded-full */
}

.score-text {
  font-size: 0.875rem; /* text-sm */
  font-weight: 600;
  color: var(--color-green-primary);
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* space-y-2 */
}

.stat-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem; /* text-sm */
}

.stat-item span:first-child {
  color: var(--color-gray-600);
}

.stat-item .stat-value {
  font-weight: 600;
}

/* Section Headers */
.section-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem; /* space-y-4 */
  margin-bottom: 4rem; /* mb-16 */
}

.section-header h2 {
  font-size: 1.875rem; /* text-3xl */
  font-weight: 700;
  color: var(--color-gray-900);
}

.section-header p {
  font-size: 1.25rem; /* text-xl */
  color: var(--color-gray-600);
  max-width: 48rem; /* max-w-3xl */
  margin: 0 auto;
}

/* Features Section */
.features-section {
  padding: 5rem 1rem; /* py-20 px-4 */
}

.features-grid {
  display: grid;
  gap: 2rem; /* gap-8 */
}

.feature-card {
  border: 2px solid var(--color-gray-200);
  transition: border-color 0.2s ease;
}

.feature-card:hover {
  border-color: var(--color-blue-lighter);
}

.feature-card .icon-wrapper {
  width: 3rem; /* w-12 */
  height: 3rem; /* h-12 */
  border-radius: 0.5rem; /* rounded-lg */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem; /* mb-4 */
}

.feature-card .icon-wrapper i {
  font-size: 1.5rem; /* h-6 w-6 */
}

.feature-card h3 {
  font-size: 1.25rem; /* text-xl */
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 1rem; /* text-base */
  color: var(--color-gray-600);
  margin-bottom: 1rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* space-y-2 */
  font-size: 0.875rem; /* text-sm */
  color: var(--color-gray-600);
}

.feature-list li {
  display: flex;
  align-items: center;
}

.feature-list li i {
  margin-right: 0.5rem;
  font-size: 1rem; /* h-4 w-4 */
}

/* Stats Section */
.stats-section {
  background-color: var(--color-blue-primary);
  padding: 4rem 1rem; /* py-16 px-4 */
}

.stats-grid {
  display: grid;
  gap: 2rem; /* gap-8 */
  text-align: center;
  color: var(--color-white);
}

.stat-number {
  font-size: 2.25rem; /* text-4xl */
  font-weight: 700;
  margin-bottom: 0.5rem; /* mb-2 */
}

.stat-label {
  color: var(--color-blue-lighter);
}

/* Testimonials Section */
.testimonials-section {
  padding: 5rem 1rem; /* py-20 px-4 */
}

.testimonials-grid {
  display: grid;
  gap: 2rem; /* gap-8 */
}

.testimonial-card {
  padding-top: 1.5rem; /* pt-6 */
}

.testimonial-card .stars {
  display: flex;
  align-items: center;
  margin-bottom: 1rem; /* mb-4 */
}

.testimonial-card .stars i {
  color: var(--color-yellow-primary);
  font-size: 1.25rem; /* h-5 w-5 */
}

.testimonial-card p {
  color: var(--color-gray-600);
  margin-bottom: 1rem; /* mb-4 */
}

.author-info {
  display: flex;
  align-items: center;
}

.author-info .avatar {
  width: 2.5rem; /* w-10 */
  height: 2.5rem; /* h-10 */
  background-color: var(--color-gray-200);
  border-radius: 9999px; /* rounded-full */
  margin-right: 0.75rem; /* mr-3 */
}

.author-name {
  font-weight: 600;
}

.author-title {
  font-size: 0.875rem; /* text-sm */
  color: var(--color-gray-500);
}

/* CTA Section */
.cta-section {
  background-color: var(--color-gray-50);
  padding: 5rem 1rem; /* py-20 px-4 */
}

.cta-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem; /* space-y-8 */
  max-width: 64rem; /* max-w-4xl */
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 1.875rem; /* text-3xl */
  font-weight: 700;
  color: var(--color-gray-900);
}

.cta-content p {
  font-size: 1.25rem; /* text-xl */
  color: var(--color-gray-600);
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* gap-4 */
  justify-content: center;
}

/* Footer */
.footer {
  background-color: var(--color-gray-900);
  color: var(--color-white);
}

.footer-grid {
  display: grid;
  gap: 2rem; /* gap-8 */
  padding: 4rem 1rem; /* py-16 px-4 */
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* space-y-4 */
}

.footer-logo {
  margin-bottom: 0.5rem;
}

.footer-description {
  color: var(--color-gray-400);
  font-size: 0.875rem; /* text-sm */
}

.social-links {
  display: flex;
  gap: 1rem; /* space-x-4 */
}

.social-link {
  color: var(--color-gray-400);
  transition: color 0.2s ease;
}

.social-link:hover {
  color: var(--color-white);
}

.social-link i {
  font-size: 1.25rem; /* h-5 w-5 */
}

.footer-col h3 {
  font-weight: 600;
  margin-bottom: 1rem; /* mb-4 */
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* space-y-2 */
  font-size: 0.875rem; /* text-sm */
}

.footer-links a {
  color: var(--color-gray-400);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-white);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem; /* space-x-2 */
}

.newsletter-input {
  flex-grow: 1;
  background-color: var(--color-gray-800);
  border: 1px solid var(--color-gray-700);
  color: var(--color-white);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem; /* rounded-md */
  font-size: 0.875rem; /* text-sm */
}

.newsletter-input::placeholder {
  color: var(--color-gray-400);
}

.newsletter-btn {
  padding: 0.5rem 1rem;
}

.footer-bottom {
  border-top: 1px solid var(--color-gray-800);
  margin-top: 3rem; /* mt-12 */
  padding-top: 2rem; /* pt-8 */
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem; /* space-y-4 */
  font-size: 0.875rem; /* text-sm */
  color: var(--color-gray-400);
}

.copyright-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem; /* space-y-2 */
}

.copyright-links a {
  transition: color 0.2s ease;
}

.copyright-links a:hover {
  color: var(--color-white);
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem; /* space-y-2 */
}

.contact-info .info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* space-x-2 */
}

.contact-info .info-item i {
  font-size: 1rem; /* h-4 w-4 */
}

.footer-certifications {
  margin-top: 1rem; /* mt-4 */
  text-align: center;
  font-size: 0.75rem; /* text-xs */
  color: var(--color-gray-500);
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  /* md breakpoint */
  .nav-desktop {
    display: flex;
  }

  .header-cta-desktop {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important; /* Ensure it's hidden on larger screens */
  }

  .hero-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-text-content h1 {
    font-size: 3rem; /* lg:text-6xl */
  }

  .hero-buttons {
    flex-direction: row;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-bottom-content {
    flex-direction: row;
    gap: 0;
  }

  .copyright-links {
    flex-direction: row;
    gap: 1.5rem; /* space-x-6 */
  }

  .contact-info {
    flex-direction: row;
    gap: 1.5rem; /* space-x-6 */
  }
}

@media (min-width: 1024px) {
  /* lg breakpoint */
  .hero-text-content h1 {
    font-size: 3.75rem; /* lg:text-6xl */
  }
}
