:root {
  color-scheme: light dark;
  --primary: #1e88e5;
  --primary-dark: #1565c0;
  --secondary: light-dark(#37474f, #f5f7fa);
  --text-color: light-dark(#333, #f5f7fa);
  --background-color: light-dark(#f5f7fa, #121212);
  --card-background: light-dark(white, #1e1e1e);
  --light: light-dark(#f5f7fa, #121212);
  --gray: #607d8b;
  --success: #392c79;
  --opensource: #8570ed;
  --box-shadow-color: light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
  --box-shadow-color-stronger: light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.4));
}

@media (prefers-color-scheme: dark) {
  .logo img {filter: invert(1);}
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
  overflow-x:hidden;
}

body {
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-color);
}

header {
  background-color: var(--card-background);
  box-shadow: 0 2px 10px var(--box-shadow-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-name {
  font-weight: 700;
  color: var(--primary);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-subtitle {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--secondary);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--secondary);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--card-background);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background-color: light-dark(#f0f4f8, #2a2a2a);
}

.btn-github {
  background-color: #24292e;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-github:hover {
  background-color: #000;
}

.hero {
  padding: 5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1;
  padding-right: 3rem;
}

.hero-image {
  flex: 1;
  text-align: center;
  margin-top: 1rem;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--box-shadow-color);
}

h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: light-dark(var(--secondary), #f5f7fa);
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: light-dark(var(--secondary), #f5f7fa);
  text-align: center;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: light-dark(var(--secondary), #f5f7fa);
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: light-dark(var(--gray), rgba(255, 255, 255, 0.7));
}

.highlight {
  color: var(--primary);
  font-weight: 600;
}

.highlight-os {
  color: var(--opensource);
  font-weight: 600;
}

.section {
  padding: 5rem 0;
}

.section-light {
  background-color: var(--card-background);
}

/* Section description paragraph styling */
.section-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.badge {
  display: inline-block;
  background-color: rgba(30, 136, 229, 0.1);
  color: var(--primary);
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  font-weight: 500;
}

.badge-os {
  background-color: rgba(33, 163, 102, 0.1);
  color: var(--opensource);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--box-shadow-color-stronger);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--box-shadow-color);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.feature-icon-os {
  color: var(--opensource);
}

/* Feature card list styling */
.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.feature-list-item {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.feature-list-checkmark {
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--box-shadow-color-stronger);
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: light-dark(#ddd, #444);
  margin-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: light-dark(var(--secondary), #f5f7fa);
}

.author-name {
  font-weight: 600;
}

.author-title {
  font-size: 0.9rem;
  color: light-dark(var(--gray), rgba(255, 255, 255, 0.7));
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--box-shadow-color-stronger);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--box-shadow-color);
}

.pricing-header {
  margin-bottom: 2rem;
}

.pricing-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.pricing-period {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.pricing-features li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 600;
}

.highlighted-card {
  border: 2px solid var(--primary);
  position: relative;
}

.highlight-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.opensource-section {
  background-color: rgba(33, 163, 102, 0.05);
  padding: 4rem 0;
  text-align: center;
}

.opensource-content {
  max-width: 1000px;
  margin: 0 auto;
}

.opensource-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  text-align: left;
}

.cta {
  text-align: center;
  padding: 5rem 0;
  background-color: var(--primary);
  color: white;
}

.cta h2 {
  color: white;
}

.cta p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto 2rem auto;
}

.cta .btn {
  background-color: white;
  color: var(--primary);
}

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

footer {
  background-color: var(--secondary);
  color: white;
  padding: 4rem 0 2rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-branding p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  text-decoration: none;
  color: light-dark(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7));
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Tech tags for consultancy page */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-tag {
  background: rgba(30, 136, 229, 0.1);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-desktop {
  display: block;
}

.cta a {
  margin-bottom: 1rem;
}

@media (prefers-color-scheme: dark) {
  .tech-tag {
    background: rgba(30, 136, 229, 0.2);
    color: var(--primary);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .testimonials,
  .pricing,
  .opensource-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 768px) {
  .btn-desktop {
    display: none;
  }

  .hero {
    flex-direction: column;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 3rem;
  }

  h1, h2, h3 {
    font-size: 1.7rem;
  }

  .features {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .testimonials,
  .pricing,
  .opensource-features {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 520px) {
  nav .btn-github {
    display: none;
  }
}

@media (max-width: 360px) {
}

/* For dark mode enhancements */
@media (prefers-color-scheme: dark) {
  .badge {
    background-color: rgba(30, 136, 229, 0.2);
  }

  .badge-os {
    background-color: rgba(33, 163, 102, 0.2);
  }

  .opensource-section {
    background-color: rgba(33, 163, 102, 0.1);
  }
}
