* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: #1F2937;
  background-color: #FFFFFF;
  line-height: 1.7;
  scroll-behavior: smooth;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Navigation (Top Navbar) */
.navbar {
  background-color: #F9FAFB;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1F2937;
  text-decoration: none;
  transition: color 0.3s;
}

.navbar-brand:hover {
  color: #06B6D4;
}

.nav-actions {
  display: flex;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0891B2 0%, #06B6D4 100%);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 2px solid #06B6D4;
  color: #06B6D4;
}

.btn-secondary:hover {
  background-color: #06B6D4;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Layout with Sidebar */
.layout {
  display: flex;
  min-height: calc(100vh - 120px); /* Adjust for navbar and footer */
}

/* Sidebar Overlay (Mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 98;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* Sidebar (Table of Contents) */
.sidebar {
  width: 250px;
  background-color: #F9FAFB;
  padding: 1.5rem;
  position: sticky;
  top: 70px; /* Below the navbar */
  height: calc(100vh - 70px);
  overflow-y: auto;
  border-right: 1px solid #E5E7EB;
  transition: transform 0.3s ease;
}

.sidebar-content {
  position: relative;
}

.sidebar h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #1F2937;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  padding-left: 0;
  margin-bottom: 0.5rem;
}

.sidebar ul li::before {
  content: none;
}

.sidebar ul ul {
  margin-left: 1rem;
  margin-top: 0.25rem;
}

.sidebar a {
  font-size: 0.95rem;
  color: #4B5563;
  display: block;
  padding: 0.5rem 0; /* Increased padding for better touch target */
}

.sidebar a:hover {
  color: #06B6D4;
}

/* Sidebar Toggle Button (Hamburger Menu) */
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 16px;
  position: sticky;
  top: 70px;
  z-index: 99;
  background-color: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
}

.sidebar-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #1F2937;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.sidebar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.sidebar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.sidebar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Main Content */
.whitepaper {
  flex: 1;
  padding: 40px 0;
  background-color: #FFFFFF;
}

.whitepaper .container {
  max-width: 700px;
}

.whitepaper-header {
  text-align: center;
  margin-bottom: 3rem;
}

.whitepaper-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1F2937;
}

.whitepaper-header p {
  font-size: 1rem;
  color: #4B5563;
}

section {
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

p {
  font-size: 1rem;
  color: #4B5563;
  margin-bottom: 1rem;
}

ul {
  list-style: none;
  margin-bottom: 1rem;
}

ul li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1rem;
  color: #4B5563;
  margin-bottom: 0.5rem;
}

ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #06B6D4;
  font-size: 1.2rem;
}

ul ul {
  margin-top: 0.5rem;
  margin-left: 1rem;
}

a {
  color: #06B6D4;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #0891B2;
  text-decoration: underline;
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.specs-table th, .specs-table td {
  padding: 12px;
  border: 1px solid #E5E7EB;
  text-align: left;
}

.specs-table th {
  background-color: #F9FAFB;
  font-weight: 700;
  color: #1F2937;
}

.specs-table td {
  color: #4B5563;
}

/* Footer */
.footer {
  background-color: #F9FAFB;
  padding: 40px 16px;
  text-align: center;
}

.footer-links {
  margin-top: 1rem;
}

.footer-links a {
  color: #06B6D4;
  text-decoration: none;
  margin: 0 1rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  /* Sidebar on Mobile */
  .sidebar-toggle {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* Full width on mobile */
    max-width: 300px; /* Cap the width for larger mobile screens */
    height: 100%;
    transform: translateX(-100%);
    z-index: 99;
  }

  .sidebar.active {
    transform: translateX(0);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  }

  .whitepaper {
    padding: 20px 0;
  }

  .whitepaper .container {
    max-width: 100%;
    padding: 0 20px; /* Increased padding for better touch spacing */
  }

  .whitepaper-header h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  p, ul li {
    font-size: 0.95rem;
  }

  .specs-table th, .specs-table td {
    font-size: 0.9rem;
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .navbar-brand {
    font-size: 1.1rem;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .whitepaper-header h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1rem;
  }

  p, ul li {
    font-size: 0.9rem;
  }

  .specs-table th, .specs-table td {
    font-size: 0.85rem;
    padding: 6px;
  }

  .sidebar {
    max-width: 100%; /* Full width on very small screens */
  }
}