:root {
  --bg-cream: #FAF8F5;
  --bg-blue: #EFF6FF;
  --bg-dark: #0B132B;
  
  --text-dark: #0F172A;
  --text-muted: #64748B;
  
  --blue-primary: #2563EB;
  --blue-hover: #1D4ED8;
  
  --orange-primary: #D94E1F;
  --orange-hover: #C2410C;
  
  --green-primary: #059669;
  --green-hover: #047857;
  --green-bg: #DCFCE7;
  --green-text: #166534;
  
  --border-light: #E2E8F0;
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

.text-blue {
  color: var(--blue-primary);
}

.text-green {
  color: var(--green-primary);
}

.hidden {
  display: none !important;
}

/* Badges */
.badge-green {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background-color: var(--green-bg);
  color: var(--green-text);
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

/* Header */
.site-header {
  padding: 1.25rem 0;
  background-color: var(--bg-cream);
}

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

.brand-logo {
  font-size: 1.75rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-dark);
  letter-spacing: -0.03em;
}

.logo-blue {
  color: var(--blue-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
}

.btn-login {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  border-radius: 6px;
  padding: 0.5rem 1.2rem;
}

.btn-login:hover {
  background-color: #F8FAFC;
  border-color: #CBD5E1;
}

.btn-register-free {
  background-color: var(--blue-primary);
  color: #ffffff;
  border-radius: 6px;
  padding: 0.55rem 1.3rem;
}

.btn-register-free:hover {
  background-color: var(--blue-hover);
}

.btn-buyer {
  background-color: var(--orange-primary);
  color: #ffffff;
  border-radius: 8px;
  padding: 0.8rem 1.6rem;
}

.btn-buyer:hover {
  background-color: var(--orange-hover);
}

.btn-seller {
  background-color: #ffffff;
  border: 1.5px solid var(--green-primary);
  color: var(--green-primary);
  border-radius: 8px;
  padding: 0.8rem 1.6rem;
}

.btn-seller:hover {
  background-color: var(--green-bg);
}

.btn-whatsapp {
  background-color: var(--green-primary);
  color: #ffffff;
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.btn-whatsapp:hover {
  background-color: var(--green-hover);
}

.btn-submit-orange {
  background-color: var(--orange-primary);
  color: #ffffff;
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  border-radius: 8px;
}

.btn-submit-orange:hover {
  background-color: var(--orange-hover);
}

.btn-submit-green {
  background-color: var(--green-primary);
  color: #ffffff;
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  border-radius: 8px;
}

.btn-submit-green:hover {
  background-color: var(--green-hover);
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 0 5rem;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.whatsapp-subtext {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.whatsapp-link {
  color: var(--blue-primary);
  font-weight: 700;
  text-decoration: none;
}

.whatsapp-link:hover {
  text-decoration: underline;
}

.dashboard-placeholder {
  width: 100%;
  height: 380px;
  background: repeating-linear-gradient(
    45deg,
    #DBEAFE,
    #DBEAFE 15px,
    #EFF6FF 15px,
    #EFF6FF 30px
  );
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #BFDBFE;
}

.placeholder-label {
  background-color: #ffffff;
  padding: 0.4rem 0.9rem;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

/* WhatsApp Section */
.whatsapp-section {
  background-color: var(--bg-blue);
  padding: 5rem 0;
}

.whatsapp-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.phone-mockup {
  width: 260px;
  height: 480px;
  background-color: #E5E7EB;
  border-radius: 20px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #D1D5DB;
}

.section-heading {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtext {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.whatsapp-steps {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--blue-primary);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-text {
  font-size: 0.925rem;
  color: var(--text-dark);
}

.whatsapp-checklist {
  background-color: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.checklist-title {
  display: block;
  font-size: 0.775rem;
  font-weight: 800;
  color: var(--green-text);
  margin-bottom: 0.4rem;
}

.checklist-items {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* In-Page Registration Section */
.registration-section {
  padding: 5rem 0;
  background-color: var(--bg-cream);
}

.register-heading {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.register-subheading {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.role-toggle {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.3rem;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  margin-bottom: 2.5rem;
}

.role-btn {
  padding: 0.6rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.role-btn.active {
  background-color: var(--orange-primary);
  color: #ffffff;
}

.form-card {
  max-width: 480px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-light);
  text-align: left;
}

.form-card-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--orange-primary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

/* How It Works Section */
.how-it-works-section {
  padding: 5rem 0;
  background-color: var(--bg-blue);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.how-tabs {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.25rem;
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 3rem;
  border: 1px solid var(--border-light);
}

.how-tab {
  padding: 0.45rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
}

.how-tab.active {
  background-color: var(--orange-primary);
  color: #ffffff;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.work-step-card {
  background-color: #ffffff;
  padding: 1.8rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  text-align: left;
}

.work-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--orange-primary);
  display: block;
  margin-bottom: 0.8rem;
}

.work-step-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.work-step-card p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2.5rem;
  background-color: var(--bg-cream);
  border-radius: 16px;
  border: 1px solid var(--border-light);
}

.stat-col {
  text-align: center;
}

.stat-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue-primary);
}

.stat-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* FAQ Section */
.faq-section {
  padding: 5rem 0;
  background-color: var(--bg-blue);
}

.faq-accordion-box {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
}

.faq-row {
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  background: transparent;
  border: none;
  cursor: pointer;
}

.faq-toggle-icon {
  font-size: 1.2rem;
  color: var(--blue-primary);
  font-weight: 800;
}

.faq-a {
  padding: 0 1.5rem 1.2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: none;
}

.faq-row.open .faq-a {
  display: block;
}

.faq-row.open .faq-toggle-icon {
  transform: rotate(45deg);
}

/* Dark Footer */
.dark-footer {
  background-color: var(--bg-dark);
  color: #ffffff;
  padding: 4rem 0 3rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.footer-desc {
  max-width: 320px;
  font-size: 0.875rem;
  color: #94A3B8;
  line-height: 1.6;
}

.footer-right {
  display: flex;
  gap: 4rem;
}

.footer-info h5 {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #64748B;
  margin-bottom: 1rem;
}

.footer-info p, .footer-info a {
  font-size: 0.875rem;
  color: #E2E8F0;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.footer-info a:hover {
  color: var(--blue-primary);
}

/* Login Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-card {
  width: 100%;
  max-width: 420px;
  background-color: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
}

.modal-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
}

.modal-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.modal-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Responsiveness */
@media (max-width: 992px) {
  .hero-container, .whatsapp-container {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .steps-grid, .stats-bar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-cta-group {
    flex-direction: column;
  }
  .steps-grid, .stats-bar {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
}
