/* ============================================
   NayaEarn Studio - Global Stylesheet
   File: /assets/style.css
   ============================================ */

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --bg-light: #f1f1f1;
  --bg-dark: #1a1a1a;
  --text-dark: #1a1a1a;
  --text-light: #f1f1f1;
  --text-secondary: #6e6e73;
  --wa-green: #25D366;
  --border-light: rgba(0, 0, 0, 0.1);
  
  /* Spacing */
  --container-max: 1200px;
  --padding-section: 80px 20px;
  --padding-mobile: 60px 20px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* === TYPOGRAPHY === */
h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

h2 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
}

h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

p {
  font-size: 17px;
  font-weight: 400;
}

.text-large {
  font-size: 21px;
}

.text-small {
  font-size: 15px;
}

.caption {
  font-size: 14px;
  color: var(--text-secondary);
}

/* === NAVBAR === */
.navbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--border-light);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-size: 21px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.btn-back {
  background: transparent;
  border: none;
  color: var(--text-dark);
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-back:hover {
  opacity: 0.6;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--wa-green);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-primary:hover {
  background: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--bg-dark);
  color: var(--text-light);
  border-color: var(--bg-dark);
}

/* === CONTAINER === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--padding-section);
}

/* === HERO SECTION === */
.hero {
  text-align: center;
  padding: 100px 20px 80px;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero p {
  font-size: 21px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* === CARDS === */
.card {
  background: #ffffff;
  padding: 40px 32px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card:hover {
  background: var(--bg-dark);
  color: var(--text-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card:hover .card-icon,
.card:hover h3,
.card:hover p {
  color: var(--text-light);
}

.card-icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

/* === GRID LAYOUTS === */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* === SECTIONS === */
.section {
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

/* === FOOTER === */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 60px 20px 40px;
}

.footer-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  margin-bottom: 20px;
  font-size: 17px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--text-dark);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--bg-dark);
  color: var(--text-light);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 15px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  h1 {
    font-size: 40px;
  }
  
  h2 {
    font-size: 36px;
  }
  
  .hero {
    padding: 60px 20px 40px;
  }
  
  .hero p {
    font-size: 17px;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .section {
    padding: 60px 20px;
  }
  
  .navbar-brand {
    position: static;
    transform: none;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 32px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  .btn {
    padding: 14px 28px;
    font-size: 15px;
  }
  
  .card {
    padding: 30px 24px;
  }
}