/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Header and Navigation */
:root {
  --site-header-offset: 12px;
  --site-header-height: 0px; /* set by JS */
}

.site-header {
  /* Floating / fixed header (more reliable than sticky across overflow contexts) */
  position: fixed;
  top: var(--site-header-offset);
  left: var(--site-header-offset);
  right: var(--site-header-offset);
  z-index: 1000;

  border: 1px solid rgba(232, 232, 232, 0.9);
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow:
    0 12px 24px rgba(0,0,0,0.06),
    0 2px 4px rgba(0,0,0,0.04);
}

/* Prevent fixed header from covering content */
.page-content {
  padding-top: calc(var(--site-header-height) + var(--site-header-offset) + 12px);
}

.site-header .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

.site-title {
  font-size: 28px;
  font-weight: 700;
  color: #0066cc;
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.site-title .site-logo {
  height: 36px;
  width: auto;
  display: block;
}

/* Language Dropdown */
.language-dropdown {
  position: relative;
  margin-left: 20px;
}

.language-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s ease;
  color: #424242;
  font-weight: 500;
}

.language-dropdown-btn:hover {
  background: #fff;
  border-color: #0066cc;
  box-shadow: 0 2px 8px rgba(0,102,204,0.15);
}

.language-dropdown-btn .lang-code {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.language-dropdown-btn .dropdown-arrow {
  transition: transform 0.3s ease;
  color: #666;
}

.language-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.language-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border-radius: 12px;
  padding: 8px 0;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.language-dropdown:hover .language-dropdown-content {
  display: block;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  text-decoration: none;
  color: #424242;
  transition: all 0.2s ease;
  cursor: pointer;
}

.language-option:hover {
  background: #f8f9fa;
  color: #0066cc;
}

.language-option.active {
  background: #f0f7ff;
  color: #0066cc;
  font-weight: 600;
}

.language-option .flag {
  font-size: 24px;
  line-height: 1;
}

.language-option .language-name {
  flex: 1;
  font-size: 15px;
}

.language-option .check-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.site-nav {
  position: relative;
}

.nav-trigger {
  display: none;
}

.menu-icon {
  display: none;
}

.trigger {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 10px; /* row-gap, column-gap */
}

.page-link {
  color: #424242;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.page-link:hover {
  color: #0066cc;
  background-color: #f5f5f5;
}

.page-link.cta {
  background-color: #0066cc;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  margin-left: 0;
}

.page-link.cta:hover {
  background-color: #0052a3;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1;
  border-radius: 6px;
  padding: 8px 0;
  margin-top: 5px;
}

.dropdown-content a {
  color: #424242;
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  transition: all 0.2s ease;
}

.dropdown-content a:hover {
  background-color: #f5f5f5;
  color: #0066cc;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Hero Section */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero .subheadline {
  font-size: 22px;
  color: #555;
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.hero .clarifying-line {
  font-size: 16px;
  color: #666;
  max-width: 750px;
  margin: 0 auto 40px;
  line-height: 1.6;
  font-style: italic;
}

.hero .supporting-tagline {
  font-size: 18px;
  font-weight: 700;
  color: #0066cc;
  margin: 20px auto;
  max-width: 800px;
}

.hero .layers-tagline {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 30px 0 20px;
  letter-spacing: 0.5px;
}

.hero .two-layer-explanation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.hero .layer-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #0066cc;
  text-align: left;
  font-size: 15px;
  line-height: 1.6;
}

.hero .layer-item strong {
  color: #0066cc;
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}

.hero .layer-item span {
  color: #555;
  margin-bottom: 5px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #0066cc;
  color: #fff;
}

.btn-primary:hover {
  background-color: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}

.btn-secondary {
  background-color: transparent;
  color: #0066cc;
  border: 2px solid #0066cc;
}

.btn-secondary:hover {
  background-color: #0066cc;
  color: #fff;
  transform: translateY(-2px);
}

/* Two Paths Section */
.two-paths {
  background: #fff;
  padding: 60px 0;
  border-bottom: 1px solid #e8e8e8;
}

.paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.path-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s ease;
}

.path-card:hover {
  border-color: #0066cc;
  box-shadow: 0 8px 24px rgba(0,102,204,0.12);
  transform: translateY(-4px);
}

.path-badge {
  display: inline-block;
  background-color: #0066cc;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.path-card h3 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.path-modules {
  font-size: 18px;
  font-weight: 600;
  color: #0066cc;
  margin-bottom: 15px;
}

.path-arrow {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.path-flow {
  font-size: 20px;
  font-weight: 700;
  color: #0066cc;
  margin-bottom: 15px;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

.path-description {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.paths-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 2px solid #e9ecef;
}

.paths-footer p {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  font-style: italic;
}

/* Content Sections */
.section {
  padding: 80px 0;
}

.section:nth-child(even) {
  background-color: #f8f9fa;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 30px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 32px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 20px;
  margin-top: 40px;
}

.section-copy {
  font-size: 18px;
  line-height: 1.7;
  color: #424242;
  max-width: 900px;
  margin-bottom: 30px;
}

.section-center {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* Problem Statement Section */
.problem-statement {
  text-align: center;
  margin-bottom: 30px;
}

.problem-headline {
  font-size: 36px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.problem-subheadline {
  font-size: 20px;
  color: #555;
  font-weight: 500;
  max-width: 700px;
  margin: 0 auto;
}

.card-grid.problem-impacts,
.card-grid.current-approaches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.problem-impacts .card {
  border-left: 4px solid #dc3545;
  background: linear-gradient(135deg, #fff 0%, #fef7f7 100%);
}

.problem-impacts .card h3 {
  font-size: 20px;
  color: #1a1a1a;
}

/* Problem impacts & current approaches responsive: 4 → 2 → 1 */
@media screen and (max-width: 1100px) {
  .card-grid.problem-impacts,
  .card-grid.current-approaches {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .card-grid.problem-impacts,
  .card-grid.current-approaches {
    grid-template-columns: 1fr;
  }
}

.subsection-title {
  font-size: 24px;
  font-weight: 600;
  color: #424242;
  margin-bottom: 20px;
}

/* Problem CTA Section */
.problem-cta {
  margin-top: 40px;
  padding: 30px 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  text-align: center;
  border-left: 4px solid #0066cc;
}

.problem-cta .gap-statement {
  font-size: 22px;
  color: #333;
  margin-bottom: 16px;
  line-height: 1.5;
}

.problem-cta .solution-statement {
  font-size: 18px;
  color: #555;
  margin-bottom: 24px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.problem-cta .cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Lists and Bullets */
.pain-bullets,
.feature-list {
  list-style: none;
  margin: 30px 0;
  max-width: 800px;
}

.pain-bullets li,
.feature-list li {
  font-size: 18px;
  padding: 15px 0 15px 40px;
  position: relative;
  color: #424242;
  line-height: 1.6;
}

.pain-bullets li:before {
  content: "✗";
  position: absolute;
  left: 0;
  color: #dc3545;
  font-weight: bold;
  font-size: 20px;
}

.feature-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
  font-size: 20px;
}

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin: 50px 0;
}

.column h3 {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.column p {
  font-size: 17px;
  line-height: 1.7;
  color: #555;
}

/* Call-to-Action Box */
.cta-box {
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  color: #fff;
  padding: 60px;
  border-radius: 12px;
  text-align: center;
  margin: 60px 0;
}

.cta-box h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 30px;
}

.cta-box .btn {
  background-color: #fff;
  color: #0066cc;
}

.cta-box .btn:hover {
  background-color: #f8f9fa;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.card {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card h3 {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.card p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

/* Page Wrapper */
.page-wrapper {
  padding: 40px 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  background-color: #1a1a1a;
  color: #fff;
  padding: 40px 0;
  margin-top: 60px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
  color: #aaa;
}

/* Mobile-Friendly Tables */
@media screen and (max-width: 1024px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  
  table thead {
    display: table-header-group;
  }
  
  table tbody {
    display: table-row-group;
  }
  
  table th,
  table td {
    min-width: 120px;
    font-size: 14px;
    padding: 10px !important;
  }
}

/* Tablet Responsiveness */
@media screen and (max-width: 900px) {
  .wrapper {
    padding: 0 20px;
  }
  
  .hero {
    padding: 60px 0 50px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .two-column {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .cta-box {
    padding: 40px 30px;
  }
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  /* Keep mobile header flush for maximum space */
  :root {
    --site-header-offset: 0px;
  }

  .site-header {
    left: 0;
    right: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .wrapper {
    padding: 0 15px;
  }
  
  .hero {
    padding: 50px 0 40px;
  }
  
  .hero h1 {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 15px;
  }

  .hero .subheadline {
    font-size: 17px;
    margin-bottom: 15px;
  }

  .hero .clarifying-line {
    font-size: 15px;
  }

  .hero .supporting-tagline {
    font-size: 16px;
    margin: 15px auto;
  }

  .hero .layers-tagline {
    font-size: 16px;
    margin: 20px 0 15px;
  }

  .hero .two-layer-explanation {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 0 auto 30px;
  }
  
  .hero .layer-item {
    padding: 15px;
    font-size: 14px;
  }
  
  .hero .layer-item strong {
    font-size: 15px;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  
  .section-subtitle {
    font-size: 24px;
    margin-bottom: 15px;
  }
  
  .section-copy {
    font-size: 16px;
  }
  
  /* Problem Statement Mobile */
  .problem-headline {
    font-size: 26px;
    line-height: 1.3;
  }
  
  .problem-subheadline {
    font-size: 17px;
  }
  
  .subsection-title {
    font-size: 20px;
  }
  
  .problem-cta {
    padding: 24px 20px;
  }
  
  .problem-cta .gap-statement {
    font-size: 19px;
  }
  
  .problem-cta .solution-statement {
    font-size: 16px;
  }

  .paths-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }

  .path-card {
    padding: 25px;
  }

  .path-card h3 {
    font-size: 22px;
  }
  
  .path-badge {
    font-size: 12px;
    padding: 6px 12px;
  }

  .paths-footer p {
    font-size: 17px;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .column h3 {
    font-size: 22px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .card {
    padding: 25px;
  }
  
  .card h3 {
    font-size: 20px;
  }
  
  .cta-box {
    padding: 40px 25px;
    border-radius: 8px;
  }
  
  .cta-box h2 {
    font-size: 28px;
    margin-bottom: 25px;
  }
  
  /* Navigation Mobile */
  .menu-icon {
    display: block;
  }

  .trigger {
    display: none;
  }

  .nav-trigger:checked ~ .trigger {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 6px;
    padding: 10px;
    min-width: 200px;
    z-index: 100;
  }
  
  .page-link {
    padding: 12px 15px;
    width: 100%;
    text-align: center;
  }
  
  .page-link.cta {
    margin-left: 0;
    margin-top: 5px;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    padding-left: 15px;
    margin-top: 0;
  }

  .site-header .wrapper {
    flex-wrap: wrap;
  }
  
  .site-title {
    font-size: 24px;
  }
  
  /* Language Dropdown Mobile */
  .language-dropdown {
    position: relative;
    margin-left: 10px;
  }
  
  .language-dropdown-btn {
    padding: 8px 12px;
    font-size: 18px;
    gap: 6px;
  }
  
  .language-dropdown-btn .lang-code {
    font-size: 12px;
  }
  
  .language-dropdown-content {
    right: 0;
    min-width: 200px;
  }
  
  .language-option {
    padding: 10px 16px;
  }
  
  .language-option .flag {
    font-size: 20px;
  }
  
  .language-option .language-name {
    font-size: 14px;
  }
  
  .site-header .wrapper {
    justify-content: space-between;
  }
  
  /* Tables on Mobile */
  table {
    font-size: 13px;
  }
  
  table th,
  table td {
    min-width: 100px;
    padding: 8px !important;
  }
  
  /* Two-path section mobile */
  .two-paths {
    padding: 40px 0;
  }
  
  /* Footer */
  .site-footer {
    padding: 30px 0;
    margin-top: 40px;
  }
  
  /* Highlight boxes */
  .highlight-box {
    padding: 15px 20px;
    margin: 20px 0;
  }
  
  .highlight-box p {
    font-size: 16px;
  }
  
  /* Feature lists */
  .pain-bullets li,
  .feature-list li {
    font-size: 16px;
    padding: 12px 0 12px 35px;
  }
  
  .pain-bullets li:before,
  .feature-list li:before {
    font-size: 18px;
  }
}

/* Extra Small Mobile */
@media screen and (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }
  
  .hero .subheadline {
    font-size: 16px;
  }
  
  .hero .supporting-tagline {
    font-size: 15px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .section-subtitle {
    font-size: 20px;
  }
  
  .problem-headline {
    font-size: 22px;
  }
  
  .problem-subheadline {
    font-size: 15px;
  }
  
  .subsection-title {
    font-size: 18px;
  }
  
  .btn {
    font-size: 15px;
    padding: 12px 20px;
  }
  
  .card {
    padding: 20px;
  }
  
  .card h3 {
    font-size: 18px;
  }
  
  .path-card {
    padding: 20px;
  }
  
  .cta-box h2 {
    font-size: 24px;
  }
  
  /* Tables on very small screens - force scroll */
  .section-copy + div[style*="overflow-x"] {
    margin-left: -15px;
    margin-right: -15px;
    padding: 0 15px;
  }
  
  table th,
  table td {
    min-width: 90px;
    font-size: 12px;
    padding: 6px !important;
  }
}

/* Highlight Box */
.highlight-box {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 20px 30px;
  margin: 30px 0;
  border-radius: 4px;
}

.highlight-box p {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

/* Table Scroll Container */
.table-scroll-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 30px 0;
  position: relative;
}

.table-scroll-container::after {
  content: '→ Scroll for more';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95) 20%, rgba(255,255,255,0.95));
  padding: 10px 20px 10px 40px;
  font-size: 13px;
  color: #666;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media screen and (max-width: 1024px) {
  .table-scroll-container::after {
    opacity: 1;
  }
  
  .table-scroll-container:hover::after,
  .table-scroll-container.scrolled::after {
    opacity: 0;
  }
}

/* Link Styling */
a.arrow-link {
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  display: inline-block;
  margin-top: 10px;
  min-height: 44px;
  line-height: 44px;
}

a.arrow-link:before {
  content: "→ ";
}

a.arrow-link:hover {
  color: #0052a3;
  text-decoration: underline;
}

/* Touch-Friendly Elements */
@media (hover: none) and (pointer: coarse) {
  /* Touch device optimizations */
  .btn,
  .page-link,
  a.arrow-link {
    min-height: 44px;
    min-width: 44px;
  }
  
  .card {
    cursor: default;
  }
  
  .card:hover {
    transform: none;
  }
}

