:root {
  --primary: #00ff00; /* Retro Green */
  --primary-dark: #008f00;
  --secondary: #ffffff;
  --accent: #ff00ff; /* Magenta */
  --background: #0a0a0a; /* Deep black */
  --surface: #1a1a1a;
  --text-main: #e0e0e0;
  --text-muted: #a0a0a0;
  --border: #404040;

  --font-heading: "Press Start 2P", cursive;
  --font-body: "VT323", monospace;

  --pixel-border: 4px solid var(--text-main);
  --pixel-shadow: 6px 6px 0px 0px rgba(255, 255, 255, 0.2);
  --pixel-shadow-hover: 3px 3px 0px 0px rgba(255, 255, 255, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.4;
  overflow-x: hidden;
  font-size: 1.4rem; /* Larger base size for pixel fonts */
  position: relative;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 400; /* Pixel fonts usually don't have weights */
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 2px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.1s steps(2); /* Stepped transition for retro feel */
}

/* Navbar */
.navbar {
  background-color: rgba(10, 10, 10, 0.9);
  border-bottom: var(--pixel-border);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 48px;
  width: auto;
  image-rendering: pixelated; /* Ensure crisp scaling */
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--primary);
}

.dot {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a:not(.btn-primary-small) {
  color: var(--text-main);
  font-size: 1.2rem;
}

.nav-links a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* Buttons */
.btn-primary,
.btn-primary-small {
  background: var(--primary);
  color: #000;
  padding: 1rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  border: 4px solid #fff;
  box-shadow: 6px 6px 0px #fff;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.1s;
}

.btn-primary-small {
  padding: 0.5rem 1rem;
  font-size: 0.6rem;
}

.btn-primary:hover,
.btn-primary-small:hover {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0px #fff;
  background: var(--primary-dark);
}

.btn-primary:active,
.btn-primary-small:active {
  transform: translate(6px, 6px);
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  padding: 1rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  border: 4px solid var(--primary);
  box-shadow: 6px 6px 0px var(--primary);
  display: inline-block;
  cursor: pointer;
}

.btn-secondary:hover {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0px var(--primary);
  background: rgba(0, 255, 0, 0.1);
}

.btn-secondary:active {
  transform: translate(6px, 6px);
  box-shadow: none;
}

/* Hero Section */
.hero {
  padding: 10rem 0 6rem;
  position: relative;
  /* Removed gradient background to show canvas */
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--secondary);
  line-height: 1.5;
  text-shadow: 4px 4px 0px #000;
}

.highlight {
  color: var(--primary);
  background: none;
  -webkit-text-fill-color: var(--primary);
}

.hero-text p {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
}

.cta-group {
  display: flex;
  gap: 2rem;
}

.hero-image {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-img-asset {
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
  border: 4px solid var(--text-main);
  box-shadow: 12px 12px 0px rgba(255, 255, 255, 0.1);
  background: #000;
}

/* Features Section */
.features {
  padding: 8rem 0;
  border-top: var(--pixel-border);
  border-bottom: var(--pixel-border);
  background-color: var(--surface);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

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

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.feature-card {
  padding: 2rem;
  background: #000;
  border: 4px solid var(--border);
  transition: transform 0.2s steps(2);
  position: relative;
}

.feature-card::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--border);
  z-index: -1;
  transition: top 0.2s, left 0.2s;
}

.feature-card:hover {
  transform: translate(-4px, -4px);
  border-color: var(--primary);
}

.feature-card:hover::after {
  top: 12px;
  left: 12px;
  border-color: var(--primary);
}

.icon-box {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: 4px 4px 0px #fff;
  border: 2px solid #000;
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--secondary);
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* About Section */
.about {
  padding: 8rem 0;
  background: var(--background);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.dashboard-img {
  width: 100%;
  border: 4px solid var(--text-main);
  box-shadow: 12px 12px 0px var(--primary);
  image-rendering: pixelated;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.3rem;
}

.check-list i {
  color: var(--accent);
  font-size: 1rem;
}

/* Footer */
.footer {
  background-color: var(--surface);
  padding: 4rem 0 2rem;
  border-top: var(--pixel-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.link-group h4 {
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-main);
}

.link-group a {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.link-group a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 2px dashed var(--border);
  color: var(--text-muted);
  font-family: var(--font-body);
}

/* Responsive */
@media (max-width: 968px) {
  .hero-text h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    order: -1;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}
