/* ================================
   NEW HOMEPAGE STYLES
   Modern, clean, Numerro-inspired
   Added for /new route redesign
   ================================ */

/* Color Palette for New Design */
:root {
  --primary-blue: #0b1020;
  --accent-blue: #4a90e2;
  --accent-green: #10b981;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-light: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* Override body for new homepage */
body.new-homepage {
  background: var(--bg-light);
  color: var(--text-primary);
}

/* SECTION 1: HERO */
.hero-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1a2847 100%);
  color: white;
  padding: 5rem 2rem;
  text-align: center;
  margin-bottom: 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Hero Scenario Box */
.hero-scenario {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.scenario-text {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.scenario-text:last-child {
  margin-bottom: 0;
}

.scenario-text strong {
  color: #fbbf24;
}

/* Hero Comparison */
.hero-comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.comparison-bad,
.comparison-good {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.comparison-bad {
  border-left: 4px solid #ef4444;
}

.comparison-good {
  border-left: 4px solid #10b981;
}

.comparison-label {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.comparison-bad ul,
.comparison-good ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comparison-bad li,
.comparison-good li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 1rem;
  line-height: 1.6;
}

.comparison-bad li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: bold;
}

.comparison-good li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

/* Hero Promise */
.hero-promise {
  font-size: 1.25rem;
  line-height: 1.8;
  margin: 2rem 0;
  font-weight: 500;
  opacity: 0.95;
}

.cta-button {
  display: inline-block;
  background: var(--accent-green);
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.cta-button:hover {
  background: #0ea472;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* SECTION 2: FRAMEWORK */
.framework-section {
  padding: 4rem 2rem;
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.insight-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.insight-card {
  background: var(--bg-white) !important;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  color: var(--text-primary) !important;
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-blue);
}

.insight-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.insight-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.insight-question {
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1rem;
}

.insight-examples,
.insight-charts {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.insight-examples strong,
.insight-charts strong {
  color: var(--text-primary);
  font-weight: 600;
}

.insight-charts a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
}

.insight-charts a:hover {
  text-decoration: underline;
}

/* SECTION 3: FOUNDATION */
.foundation-section {
  padding: 4rem 2rem;
  background: var(--bg-white);
}

.ten-second-rule {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: 2rem;
  border-radius: 12px;
  border-left: 6px solid #f59e0b;
  margin: 2rem auto 3rem;
  max-width: 900px;
}

.ten-second-rule h3 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.ten-second-rule p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0;
}

.core-principles {
  max-width: 1000px;
  margin: 3rem auto;
}

.core-principles h3 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.principle-card {
  background: var(--bg-light) !important;
  padding: 1.5rem;
  border-radius: 8px;
  border-top: 4px solid var(--accent-blue);
  color: var(--text-primary) !important;
}

.principle-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.principle-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Before & After */
.comparison-example {
  max-width: 1200px;
  margin: 4rem auto;
}

.comparison-example h3 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.bad-example,
.good-example {
  background: var(--bg-white) !important;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  color: var(--text-primary) !important;
}

.bad-example img,
.good-example img {
  width: 100%;
  height: auto;
  display: block;
}

.bad-example figcaption,
.good-example figcaption {
  padding: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.label {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.label.bad {
  background: #fee2e2;
  color: #dc2626;
}

.label.good {
  background: #d1fae5;
  color: #059669;
}

.what-changed {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 600px;
  margin: 0 auto;
}

.what-changed h4 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.what-changed ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.what-changed li {
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* SECTION 4: AUDIENCE */
.audience-section {
  padding: 4rem 2rem;
  background: var(--bg-light);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.audience-card {
  background: var(--bg-white) !important;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  color: var(--text-primary) !important;
}

.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.audience-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.audience-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  margin-bottom: 0.5rem;
}

.audience-need {
  font-size: 1rem;
  color: var(--text-secondary) !important;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.audience-details h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary) !important;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.audience-details p {
  font-size: 0.9375rem;
  color: var(--text-secondary) !important;
  line-height: 1.6;
  margin: 0 0 0.75rem 0;
}

.audience-tip {
  background: var(--bg-light) !important;
  padding: 1rem;
  border-radius: 6px;
  margin-top: 1rem;
  font-size: 0.9375rem;
  border-left: 3px solid var(--accent-blue);
  color: var(--text-secondary) !important;
}

.audience-tip strong {
  color: var(--text-primary) !important;
}

/* SECTION 5: CHART LIBRARY */
.chart-library-section {
  padding: 4rem 2rem;
  background: var(--bg-white);
}

.chart-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.chart-category {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  border-top: 4px solid var(--accent-blue);
}

.chart-category h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.category-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-style: italic;
}

.chart-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.chart-list li {
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border-light);
}

.chart-list li:last-child {
  border-bottom: none;
}

.chart-list a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
}

.chart-list a:hover {
  text-decoration: underline;
}

.button-secondary {
  display: inline-block;
  background: var(--bg-white);
  color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.button-secondary:hover {
  background: var(--accent-blue);
  color: white;
  transform: translateY(-2px);
}

/* SECTION 6: MISTAKES */
.mistakes-section {
  padding: 4rem 2rem;
  background: var(--bg-light);
}

.mistakes-table-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  overflow-x: auto;
}

.mistakes-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.mistakes-table thead {
  background: var(--primary-blue);
  color: white;
}

.mistakes-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9375rem;
}

.mistakes-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.mistakes-table tbody tr:hover {
  background: var(--bg-light);
}

.mistakes-table tbody tr:last-child td {
  border-bottom: none;
}

/* SECTION 7: PROCESS */
.process-section {
  padding: 4rem 2rem;
  background: var(--bg-white);
}

.process-steps {
  max-width: 900px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px dashed var(--border-light);
}

.process-step:last-child {
  border-bottom: none;
}

.step-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-blue) 0%, #2563eb 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.process-step h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Analytics Lifecycle */
.analytics-lifecycle {
  max-width: 900px;
  margin: 3rem auto 0;
  background: var(--bg-light);
  border-radius: 8px;
  padding: 1.5rem;
}

.analytics-lifecycle summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--accent-blue);
}

.analytics-lifecycle summary::-webkit-details-marker {
  display: none;
}

.analytics-lifecycle summary h3 {
  display: inline;
  font-size: 1.25rem;
  color: var(--accent-blue);
}

.analytics-lifecycle summary:hover h3 {
  text-decoration: underline;
}

.lifecycle-content {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.lifecycle-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.lifecycle-content ol {
  padding-left: 1.5rem;
}

.lifecycle-content li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.lifecycle-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* SECTION 8: EXAMPLE */
.example-section {
  padding: 4rem 2rem;
  background: var(--bg-light);
}

.example-walkthrough {
  max-width: 1000px;
  margin: 0 auto;
}

.example-challenge {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  padding: 2rem;
  border-radius: 12px;
  border-left: 6px solid var(--accent-blue);
  margin-bottom: 3rem;
}

.example-challenge h3 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.example-challenge p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0;
}

.example-steps {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.example-step {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.example-step h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.example-step ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.example-step li {
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.example-step strong {
  color: var(--text-primary);
  font-weight: 600;
}

.example-result {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.example-result img {
  width: 100%;
  height: auto;
  display: block;
}

.example-result figcaption {
  padding: 1.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  background: var(--bg-light);
}

/* SECTION 9: NEXT STEPS */
.next-steps-section {
  padding: 4rem 2rem;
  background: var(--bg-white);
}

.next-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.next-step-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border-top: 4px solid var(--accent-green);
  transition: all 0.3s ease;
}

.next-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.next-step-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.next-step-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.button-primary {
  display: inline-block;
  background: var(--accent-green);
  color: white;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.button-primary:hover {
  background: #0ea472;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1.125rem;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .insight-types-grid {
    grid-template-columns: 1fr;
  }
  .example-grid {
    grid-template-columns: 1fr;
  }
  .process-step {
    flex-direction: column;
  }
  .chart-categories {
    grid-template-columns: 1fr;
  }
  
  /* Hero comparison responsive */
  .hero-comparison {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .hero-scenario {
    padding: 1.5rem;
  }
  
  .scenario-text {
    font-size: 1rem;
  }
  
  .hero-promise {
    font-size: 1.125rem;
  }
}