/* =====================================================
   PayMint — Landing Page Styles
   Design tokens from onboarding landing page design
   ===================================================== */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-deep:   #1B4332;
  --green-mid:    #2D6A4F;
  --green-light:  #40916C;
  --cream:        #F8F4F0;
  --cream-dark:   #EDE8E2;
  --bronze:       #C9A96E;
  --text-dark:    #1A1A1A;
  --text-mid:     #3D3D3D;
  --text-light:   #6B6B6B;
  --white:        #FFFFFF;
  --red:          #C0392B;
  --amber:        #D97706;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* === NAVBAR === */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 4rem;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-mark {
  color: var(--bronze);
  font-size: 1.1rem;
}

.brand-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green-deep);
  letter-spacing: -0.03em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-light);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-light);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover {
  background: var(--cream-dark);
  color: var(--green-deep);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
  transition: opacity 0.15s, transform 0.1s;
  text-decoration: none;
}

.btn:hover { opacity: 0.85; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

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

.btn-secondary {
  background: var(--green-mid);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--text-mid);
  border: 1px solid var(--cream-dark);
}

.btn-ghost:hover {
  background: var(--cream-dark);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
  border-radius: 10px;
}

/* === HERO === */
.hero {
  background: var(--green-deep);
  padding: 6rem 4rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse at top right, rgba(64,145,108,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%;
  height: 80px;
  background: var(--cream);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,169,110,0.15);
  border: 1px solid rgba(201,169,110,0.3);
  color: var(--bronze);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero h1 span {
  color: var(--bronze);
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  line-height: 1.65;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.hero-actions .btn-ghost {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
}

.hero-actions .btn-ghost:hover {
  background: rgba(255,255,255,0.08);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.3rem;
}

.hero-stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}

/* Hero right — abstract visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.invoice-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(8px);
}

.invoice-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.invoice-customer {
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
}

.invoice-id {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  font-family: monospace;
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
}

.invoice-row + .invoice-row {
  border-top: 1px solid rgba(255,255,255,0.07);
}

.invoice-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.invoice-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}

.invoice-value.overdue { color: #FCA5A5; }
.invoice-value.warning { color: var(--bronze); }
.invoice-value.success { color: #86EFAC; }

.reminder-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(201,169,110,0.2);
  border: 1px solid rgba(201,169,110,0.3);
  color: var(--bronze);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
}

.reminder-chip.sent {
  background: rgba(64,145,108,0.2);
  border-color: rgba(64,145,108,0.3);
  color: #86EFAC;
}

/* === SECTION COMMON === */
.section {
  padding: 5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-sm {
  padding: 3rem 4rem;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-light);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  line-height: 1.7;
}

/* === HOW IT WORKS === */
.how-it-works {
  background: var(--white);
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
  padding: 5rem 4rem;
}

.how-it-works-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.step {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  transition: transform 0.2s, box-shadow 0.2s;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(27,67,50,0.08);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 auto 1.25rem;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.6rem;
}

.step p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* === FEATURES === */
.features {
  padding: 5rem 4rem;
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(27,67,50,0.07);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--green-deep);
  color: var(--bronze);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* === STAGES TIMELINE === */
.stages {
  background: var(--green-deep);
  padding: 5rem 4rem;
}

.stages-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.stages .section-label { color: var(--bronze); }
.stages .section-title { color: var(--white); }
.stages .section-sub { color: rgba(255,255,255,0.65); }

.stages-timeline {
  display: flex;
  gap: 0;
  margin-top: 3rem;
  position: relative;
}

.stages-timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: rgba(255,255,255,0.15);
}

.stage-item {
  flex: 1;
  text-align: center;
  position: relative;
}

.stage-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-mid);
  border: 3px solid var(--bronze);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--white);
}

.stage-item.current .stage-dot {
  background: var(--bronze);
  box-shadow: 0 0 0 4px rgba(201,169,110,0.3);
}

.stage-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.25rem;
}

.stage-day {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
}

/* === CTA === */
.cta-section {
  padding: 5rem 4rem;
  text-align: center;
}

.cta-inner {
  max-width: 680px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 1rem;
}

.cta-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* === FOOTER === */
.footer {
  background: var(--green-deep);
  color: rgba(255,255,255,0.45);
  padding: 2rem 4rem;
  font-size: 0.8rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.6);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-brand .brand-mark {
  color: var(--bronze);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .navbar { padding: 1rem 1.5rem; }
  .hero { padding: 4rem 1.5rem 3.5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero-stats { gap: 1.5rem; }
  .section, .features, .how-it-works, .stages, .cta-section { padding: 3rem 1.5rem; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .stages-timeline { flex-wrap: wrap; gap: 1rem; }
  .stages-timeline::before { display: none; }
  .stage-item { flex: 0 0 45%; }
  .cta-actions { flex-direction: column; }
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}