:root {
  --light-accent: #97ecfe;
  --main-accent: #1734c2;
  --black: #000000;
  --white: #ffffff;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
}

section {
  margin-block-end: 2rem;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  text-decoration: underline;
}

header {
  background: var(--main-accent);
  color: var(--white);
  padding: 0.5rem 0;
  position: relative;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  padding-left: 1rem;
}

.nav-logo {
  height: 50px;
  width: auto;
  background-color: white;
  border-radius: 3px;
  padding: 4px;
  margin-right: 1rem;
}

.nav-logo-link {
  text-decoration: none;
  color: inherit;
  display: flex;;
}

.nav-logo-link:hover,
.nav-logo-link:focus {
  text-decoration: none;
  outline: none;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0 1rem;
}

#menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

#menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* Hamburger to X animation */
#menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

#menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Responsive nav */
@media (max-width: 768px) {
  #menu-toggle {
    display: block;
  }

  nav {
    justify-content: flex-start;
    padding-left: 1rem;
  }

  nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: var(--main-accent);
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
  }

  nav ul.show {
    display: flex;
    animation: slideDown 0.3s ease-out forwards;
  }

  nav ul.hide {
    animation: slideUp 0.2s ease-in forwards;
  }

  nav ul li {
    margin: 0.5rem 0;
  }
}

/* Slide down animation */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Slide up animation */
@keyframes slideUp {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

/* Main content */
.container {
  padding: 1rem;
  width: calc(100% - 2rem);
  max-width: 1200px;
  margin: auto;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 2rem 0;
}

.hero-section h1 {
  margin: 0 0 0.5rem;
  font-size: 2.5rem;
}

.hero-section p {
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
  color: var(--black);
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 2rem 0;
}

.cta-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
}

.cta-section p {
  margin: 0 0 1.5rem;
  font-size: 1rem;
}

/* Button Group */
.button-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buy Button */
.buy-button {
  background: var(--main-accent);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}

.buy-button:hover {
  background-color: #2d4bd3;
}

/* Buy Bundle Button */
.buy-bundle-button {
  background: #4a67e6;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}

.buy-bundle-button:hover {
  background-color: #5b78f0;
}

/* Responsive button group */
@media (max-width: 600px) {
  .button-group {
    flex-direction: column;
    align-items: center;
  }
  .buy-button,
  .buy-bundle-button {
    width: 100%;
    max-width: 300px;
  }
}

/* Description */
.description ul {
  padding-left: 1.25rem;
  margin: 1rem 0;
}

.description ul li {
  margin: 0.5rem 0;
  list-style-type: disc;
}

/* Examples */
.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.media-item {
  text-align: center;
}

.media-item video,
.media-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.media-item p {
  margin: 0.5rem 0;
}

/* FAQs */
.faq-group {
  margin-bottom: 2rem;
}

.faq-group h3 {
  font-size: 1.4rem;
  color: var(--main-accent);
  margin-bottom: 1rem;
}

.doc-section {
  margin: 1rem 0;
}

.doc-toggle {
  cursor: pointer;
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.doc-toggle i {
  margin-right: 0.5rem;
}

.doc-content {
  padding: 0 1rem;
}

/* Installation */
.install-step {
  display: none;
}

.install-step.active-step {
  display: block;
}

.install-step img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
  border-radius: 8px;
}

.install-nav {
  display: flex;
  justify-content: space-between;
  margin: 1rem 0;
  gap: 0.5rem;
}

.step-indicators {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
  gap: 0.5rem;
}

.step-indicators .dot {
  width: 12px;
  height: 12px;
  background: var(--light-accent);
  border-radius: 50%;
  transition: background 0.3s ease;
}

.step-indicators .dot.active {
  background: var(--main-accent);
}

.toggle-all {
  display: block;
  margin: 1rem auto;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 2px solid var(--main-accent);
  color: var(--main-accent);
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

.tab-content.all-visible .install-step {
  display: block !important;
}

.tab-content.all-visible .step-indicators,
.tab-content.all-visible .install-nav {
  display: none;
}

/* Tutorial */
.tutorial-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
  border-radius: 8px;
}

.tutorial-nav {
  display: flex;
  justify-content: space-between;
  margin: 1rem 0;
  gap: 0.5rem;
}

.tutorial-nav button {
  padding: 0.5rem 1rem;
  background: var(--main-accent);
  color: var(--white);
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.tutorial-nav button:disabled {
  background: #cccccc;
  cursor: not-allowed;
}

/* Purchase Page */
.product-container {
  padding: 1rem;
  max-width: 1600px;
  margin: auto;
}

.product-card ul {
  text-align: left;
  margin: 1rem 0;
  padding-left: 1.25rem;
}

.product-card ul li {
  margin: 0.5rem 0;
  list-style-type: disc;
}

/* Examples Page */
.tab-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tab-button {
  background: var(--light-accent);
  border: none;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
}

.tab-button.active {
  background: var(--main-accent);
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active-tab {
  display: block;
}

.media-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 1rem;
  cursor: zoom-in;
}

.image-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  overflow: auto;
  z-index: 9999;
  padding: 2rem;
}

.image-overlay img {
  max-width: none;
  height: auto;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: var(--light-accent);
  margin-top: 2rem;
  color: var(--black);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.footer-col {
  /* flex: 1 1 200px; */
  min-width: 150px;
}

.footer-col p, .footer-col a {
  margin: 4px 0;
  color: var(--black);
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

/* Comparison Table */
.comparison-table {
  padding: 1rem 0;
  text-align: center;
}

.comparison-table h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: var(--main-accent);
}

.table-wrapper {
  overflow-x: auto;
  margin: 0 auto;
  max-width: 100%;
}

.comparison-table table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  background-color: var(--white);
  border: 1px solid var(--light-accent);
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem;
  border: 1px solid var(--light-accent);
  text-align: center;
  font-size: 1rem;
}

.comparison-table th {
  background-color: var(--main-accent);
  color: var(--white);
  font-weight: bold;
}

.comparison-table td {
  background-color: var(--white);
}

.comparison-table .fa-check {
  color: #28a745;
  font-size: 1.2rem;
}

.comparison-table .fa-times {
  color: #dc3545;
  font-size: 1.2rem;
}

.comparison-table small {
  font-size: 0.85rem;
  color: var(--black);
}

@media (max-width: 768px) {
  .comparison-table table {
    font-size: 0.9rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem;
  }
}

@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-col {
    text-align: center;
  }
}