/* css/how-it-works.css - TerreNet How It Works Page - Redesign 2026 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-light: #4ade80;
  --secondary: #0ea5e9;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  color: var(--text-main);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========================================
   NEW HERO SECTION
   ======================================== */
.hiw-hero-new {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  padding: 8rem 1.5rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: white;
  margin-bottom: 0;
}

.hiw-hero-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(34, 197, 94, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hiw-hero-inner-new {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hiw-badge-new {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.625rem 1.25rem;
  border-radius: 99px;
  font-size: 0.875rem;
  color: #4ade80;
  font-weight: 600;
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hiw-badge-new.animate {
  opacity: 1;
  transform: translateY(0);
}

.hiw-hero-new h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.hiw-hero-new h1.animate {
  opacity: 1;
  transform: translateY(0);
}

.gradient-text {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 50%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 700px;
  margin: 0 auto 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.hero-subtitle.animate {
  opacity: 1;
  transform: translateY(0);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.hero-stats.animate {
  opacity: 1;
  transform: translateY(0);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #4ade80;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #94a3b8;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-visual {
  position: relative;
  margin-top: 4rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.hero-visual.animate {
  opacity: 1;
  transform: translateY(0);
}

.floating-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: float 6s ease-in-out infinite;
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.card-1 {
  animation-delay: 0s;
}

.card-2 {
  animation-delay: 2s;
}

.card-3 {
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0);
  }
  50% { 
    transform: translateY(-12px);
  }
}

.card-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.card-content {
  flex: 1;
}

.card-title {
  font-weight: 700;
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.card-detail {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ========================================
   PROBLEM SECTION
   ======================================== */
.problem-section {
  padding: 6rem 0;
  background: var(--bg-light);
}

.problem-content {
  max-width: 1200px;
  margin: 0 auto;
}

.problem-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  padding: 0.5rem 1rem;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.problem-section h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--text-main);
  text-align: center;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.problem-item {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.problem-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.problem-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.problem-item p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ========================================
   STEPS SECTION
   ======================================== */
.steps-section-new {
  padding: 6rem 0;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.steps-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.steps-timeline::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-light), var(--secondary));
  opacity: 0.3;
}

.step-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 4rem;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.step-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.3);
  position: relative;
  z-index: 1;
}

.step-content {
  flex: 1;
  background: var(--bg-light);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-item:hover .step-content {
  transform: translateX(8px);
  box-shadow: var(--shadow-lg);
}

.step-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

.step-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.step-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
}

.step-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag {
  background: white;
  color: var(--primary-dark);
  padding: 0.375rem 0.875rem;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--primary-light);
}

/* ========================================
   BENEFITS SECTION
   ======================================== */
.benefits-section-new {
  padding: 6rem 0;
  background: var(--bg-light);
}

.benefits-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.benefit-card-new {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.benefit-card-new.animate {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.benefit-card-new:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.benefit-icon-new {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

.benefit-card-new h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.benefit-card-new p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ========================================
   AUDIENCE SECTION
   ======================================== */
.audience-section-new {
  padding: 6rem 0;
  background: white;
}

.audience-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.audience-card-new {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  border: 2px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
}

.audience-card-new.animate {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.audience-card-new:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.audience-card-new.featured {
  border-color: var(--primary-light);
  background: linear-gradient(to bottom right, #ffffff, #f0fdf4);
}

.audience-badge {
  position: absolute;
  top: -12px;
  right: 2rem;
  background: var(--primary);
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.audience-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.audience-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.audience-card-new h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.audience-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.audience-list li {
  padding: 0.75rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--text-muted);
  line-height: 1.6;
}

.audience-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.125rem;
}

.audience-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.3s ease;
}

.audience-cta:hover {
  gap: 0.75rem;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-section-new {
  padding: 6rem 0;
  background: var(--bg-light);
}

.faq-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.faq-item-new {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.faq-item-new.animate {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.faq-item-new:hover {
  box-shadow: var(--shadow-md);
}

.faq-question-new {
  padding: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.125rem;
  color: var(--text-main);
  transition: color 0.3s ease;
}

.faq-question-new:hover {
  color: var(--primary-dark);
}

.faq-question-new svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--text-light);
}

.faq-item-new.open .faq-question-new svg {
  transform: rotate(180deg);
}

.faq-item-new.open .faq-question-new {
  color: var(--primary-dark);
}

.faq-answer-new {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item-new.open .faq-answer-new {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer-new p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ========================================
   CTA FINAL
   ======================================== */
.cta-final-new {
  padding: 6rem 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
}

.cta-final-new::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(34, 197, 94, 0.1), transparent 70%);
  pointer-events: none;
}

.cta-content-new {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content-new h2 {
  color: white;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-content-new p {
  color: #cbd5e1;
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-cta-primary {
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
}

.btn-cta-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.4);
}

.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  font-size: 1.125rem;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
}

.cta-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fef08a;
  background: rgba(254, 240, 138, 0.1);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  margin-top: 1rem;
}

.cta-note svg {
  flex-shrink: 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .hiw-hero-new {
    padding: 6rem 1.5rem 4rem;
  }

  .hero-visual {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 0 1rem;
  }

  .floating-card {
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    width: 100%;
    max-width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-divider {
    display: none;
  }

  .steps-timeline::before {
    display: none;
  }

  .step-item {
    flex-direction: column;
    gap: 1rem;
  }

  .step-number {
    align-self: flex-start;
  }

  .step-item:hover .step-content {
    transform: translateY(-4px);
  }

  .benefits-grid-new,
  .audience-grid-new {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
