/* ==========================================================================
   PaySleep Core Stylesheet (Bright Light Mode Edition)
   Modern, colorful, graphic-rich SaaS landing page inspired by Kakitangan.com
   ========================================================================== */

@import url('./variables.css');

/* --------------------------------------------------------------------------
   1. Reset & Global Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-slate-900);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--section-padding-x);
  padding-right: var(--section-padding-x);
}

/* Colorful Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-emerald {
  background-color: var(--color-emerald-50);
  color: var(--color-emerald-700);
  border: 1.5px solid var(--color-emerald-200);
}

.badge-blue {
  background-color: var(--color-blue-50);
  color: var(--color-blue-700);
  border: 1.5px solid var(--color-blue-200);
}

.badge-amber {
  background-color: var(--color-amber-50);
  color: var(--color-amber-700);
  border: 1.5px solid var(--color-amber-200);
}

.badge-purple {
  background-color: var(--color-purple-50);
  color: var(--color-purple-700);
  border: 1.5px solid var(--color-purple-200);
}

.badge-rose {
  background-color: var(--color-rose-50);
  color: var(--color-rose-700);
  border: 1.5px solid var(--color-rose-200);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-emerald-500) 0%, var(--color-emerald-600) 100%);
  color: var(--color-white);
  box-shadow: var(--shadow-emerald);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

.btn-purple {
  background: linear-gradient(135deg, var(--color-purple-500) 0%, var(--color-purple-600) 100%);
  color: var(--color-white);
  box-shadow: var(--shadow-purple);
}

.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(139, 92, 246, 0.4);
}

.btn-outline {
  background-color: #ffffff;
  color: var(--color-slate-900);
  border: 2px solid var(--color-slate-300);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background-color: var(--color-slate-100);
  border-color: var(--color-slate-400);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
}

/* Section Common */
.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 50rem;
  margin: 0 auto 3.5rem auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  color: var(--color-slate-900);
}

.section-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   2. Header & Navigation Bar (Clean Light Background)
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-slate-200);
  transition: all var(--transition-normal);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.75rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
  border-radius: var(--radius-xl);
  background-color: #ffffff;
  padding: 2px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-slate-900);
  letter-spacing: -0.03em;
}

.brand-tagline {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--color-emerald-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: -3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-slate-700);
}

.nav-link:hover {
  color: var(--color-emerald-600);
}

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

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 20px;
  justify-content: center;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--color-slate-900);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   3. Hero Section (Bright Light Theme + Soft Color Blobs)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 100%);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  overflow: hidden;
}

/* Soft Floating Gradient Blobs */
.hero-blob-1 {
  position: absolute;
  top: -100px;
  right: -50px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(255,255,255,0) 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-blob-2 {
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(255,255,255,0) 70%);
  filter: blur(50px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
}

.hero-badge-container {
  margin-bottom: 1.5rem;
}

.hero-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--color-emerald-50);
  border: 1.5px solid var(--color-emerald-300);
  color: var(--color-emerald-800);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-slate-900);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-title .highlight-emerald {
  color: var(--color-emerald-600);
  position: relative;
}

.hero-title .highlight-purple {
  color: var(--color-purple-600);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-slate-600);
  margin-bottom: 2.5rem;
  font-weight: 500;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

/* Light Mockup Preview Dashboard */
.hero-preview {
  position: relative;
  z-index: 10;
  max-width: 66rem;
  margin: 0 auto;
  border-radius: var(--radius-3xl);
  padding: 0.85rem;
  background: #ffffff;
  border: 2px solid var(--color-emerald-200);
  box-shadow: var(--shadow-xl);
}

.mockup-window {
  background: var(--color-slate-50);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--color-slate-200);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: #ffffff;
  border-bottom: 1px solid var(--color-slate-200);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.mockup-title {
  font-size: 0.85rem;
  color: var(--color-slate-600);
  font-weight: 700;
}

.mockup-body {
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.dashboard-card {
  background: #ffffff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.dash-card-title {
  font-size: 0.8rem;
  color: var(--color-slate-500);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.dash-card-value {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--color-slate-900);
}

.dash-card-sub {
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.35rem;
}

.dash-card-sub.emerald { color: var(--color-emerald-600); }
.dash-card-sub.purple { color: var(--color-purple-600); }
.dash-card-sub.blue { color: var(--color-blue-600); }

/* --------------------------------------------------------------------------
   4. Promo Callout Banner (Bright Colorful Card)
   -------------------------------------------------------------------------- */
.promo-banner-section {
  background-color: var(--color-white);
  padding: 1.5rem 0;
}

.promo-banner {
  background: linear-gradient(135deg, var(--color-emerald-50) 0%, var(--color-blue-50) 100%);
  border: 2px solid var(--color-emerald-200);
  border-radius: var(--radius-3xl);
  padding: 2.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-md);
}

.promo-text h3 {
  color: var(--color-slate-900);
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

.promo-text h3 span {
  color: var(--color-emerald-600);
}

.promo-text p {
  color: var(--color-slate-600);
  font-size: 1rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   5. Key Benefits Section (Colorful Border Cards)
   -------------------------------------------------------------------------- */
.benefits-section {
  background-color: var(--color-slate-50);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.benefit-card {
  background: #ffffff;
  border-radius: var(--radius-2xl);
  padding: 2.25rem 1.75rem;
  transition: all var(--transition-normal);
  text-align: left;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
}

.benefit-card.border-emerald { border-color: var(--color-emerald-200); }
.benefit-card.border-blue { border-color: var(--color-blue-200); }
.benefit-card.border-amber { border-color: var(--color-amber-200); }
.benefit-card.border-purple { border-color: var(--color-purple-200); }

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.benefit-icon-wrapper {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.65rem;
}

.icon-emerald { background: var(--color-emerald-50); color: var(--color-emerald-600); }
.icon-blue { background: var(--color-blue-50); color: var(--color-blue-600); }
.icon-amber { background: var(--color-amber-50); color: var(--color-amber-600); }
.icon-purple { background: var(--color-purple-50); color: var(--color-purple-600); }

.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--color-slate-900);
}

.benefit-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   6. AI Intelligence & Hiring Highlight (FEATURE HIGHLIGHT GRAPHIC CARDS)
   -------------------------------------------------------------------------- */
.ai-highlight-section {
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

.ai-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 4.5rem;
}

.ai-feature-row.reverse {
  direction: rtl;
}

.ai-feature-row.reverse > * {
  direction: ltr;
}

.ai-feature-text h3 {
  font-size: 2rem;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.ai-feature-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.ai-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ai-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-slate-800);
}

.ai-feature-graphic {
  background: linear-gradient(135deg, var(--color-purple-50) 0%, var(--color-blue-50) 100%);
  border: 2px solid var(--color-purple-200);
  border-radius: var(--radius-3xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.graphic-mockup-card {
  background: #ffffff;
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-slate-200);
}

.graphic-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.graphic-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.graphic-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
}

.graphic-bar-track {
  height: 10px;
  border-radius: 5px;
  background: var(--color-slate-100);
  overflow: hidden;
}

.graphic-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 1s ease-in-out;
}

.fill-purple { background: linear-gradient(90deg, #8b5cf6, #7c3aed); }
.fill-blue { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.fill-emerald { background: linear-gradient(90deg, #10b981, #059669); }
.fill-amber { background: linear-gradient(90deg, #f59e0b, #d97706); }

/* --------------------------------------------------------------------------
   7. Core Modules Grid Section (Colorful Cards)
   -------------------------------------------------------------------------- */
.modules-section {
  background-color: var(--color-slate-50);
}

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

.module-card {
  background: #ffffff;
  border: 2px solid var(--color-slate-200);
  border-radius: var(--radius-2xl);
  padding: 1.85rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.module-card.theme-emerald:hover { border-color: var(--color-emerald-400); }
.module-card.theme-blue:hover { border-color: var(--color-blue-400); }
.module-card.theme-amber:hover { border-color: var(--color-amber-400); }
.module-card.theme-purple:hover { border-color: var(--color-purple-400); }

.module-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.module-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  shrink: 0;
}

.module-card h4 {
  font-size: 1.15rem;
  color: var(--color-slate-900);
}

.module-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.module-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--color-slate-100);
  padding-top: 1rem;
}

.module-features-list li {
  font-size: 0.825rem;
  color: var(--color-slate-700);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   8. FAQ Accordion Section
   -------------------------------------------------------------------------- */
.faq-section {
  background-color: var(--color-slate-50);
}

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

.faq-item {
  background: #ffffff;
  border: 2px solid var(--color-slate-200);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-slate-900);
  text-align: left;
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--color-emerald-600);
  transition: transform var(--transition-fast);
}

.faq-item.active {
  border-color: var(--color-emerald-400);
  box-shadow: var(--shadow-md);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.75rem 1.25rem 1.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  display: none;
  border-top: 1px solid var(--color-slate-100);
  padding-top: 1rem;
}

.faq-item.active .faq-answer {
  display: block;
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-slate-900);
  color: var(--color-slate-300);
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
}

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

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-slate-400);
  max-width: 20rem;
}

.footer-col h5 {
  color: var(--color-white);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: var(--color-slate-400);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--color-emerald-400);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--color-slate-800);
  font-size: 0.85rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.75rem; }
  .benefits-grid, .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-feature-row { grid-template-columns: 1fr; }
  .ai-feature-row.reverse { direction: ltr; }
  .mockup-body { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .mobile-toggle { display: flex; }
  
  .hero-title { font-size: 2.25rem; }
  .section-title { font-size: 1.85rem; }
  
  .benefits-grid, .modules-grid { grid-template-columns: 1fr; }
  .promo-banner { flex-direction: column; text-align: center; }
  
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
