* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  overflow-y: scroll;
}
body {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  background: #000000;
  color: #e0e0e0;
  line-height: 1.6;
  min-height: 100vh;
}
a {
  text-decoration: none;
  color: inherit;
}
img,
video {
  max-width: 100%;
  display: block;
}
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #880101;
}
.container {
  max-width: 1200px;
  width: 100%;
  padding: 0 24px;
  margin: 0 auto;
}
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0 40px;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logo-hero {
  width: 80vw;
  max-width: 450px;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 32px;
  margin-bottom: 16px;
  cursor: pointer;
  filter: drop-shadow(0 0 60px rgba(136, 1, 1, 0.2));
  transition: filter 0.3s;
}
.logo-hero:hover {
  filter: drop-shadow(0 0 100px rgba(136, 1, 1, 0.4));
}
.site-title {
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -1px;
}
.site-tag {
  font-size: 18px;
  color: #7f8694;
  margin-top: 2px;
  letter-spacing: 2px;
}
.site-tag-sub {
  font-size: 14px;
  color: #5a5f6b;
  margin-top: 4px;
}
.site-tag-sub a {
  color: #61afef;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.site-tag-sub a:hover {
  color: #ffffff;
  border-bottom-color: #61afef;
}
.hero-links {
  display: flex;
  gap: 32px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.hero-links a {
  color: #7f8694;
  font-size: 16px;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.hero-links a:hover {
  color: #61afef;
  border-bottom-color: #61afef;
}
.github-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.github-wrapper iframe {
  border: 0;
  vertical-align: middle;
}
.gallery {
  padding: 20px 0 60px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 28px;
}
.gallery-item {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 14px;
  overflow: hidden;
  transition:
    border-color 0.3s,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease;
  position: relative;
  z-index: 1;
}
.gallery-item:hover {
  border-color: #880101;
  transform: scale(1.12);
  box-shadow:
    0 0 80px rgba(136, 1, 1, 0.25),
    0 20px 60px rgba(0, 0, 0, 0.8);
  z-index: 10;
}
.gallery-item img,
.gallery-item video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000000;
  transition: filter 0.3s;
}
.gallery-item:hover img,
.gallery-item:hover video {
  filter: brightness(1.08) contrast(1.05);
}
.gallery-label {
  display: block;
  padding: 14px 16px;
  color: #7f8694;
  font-size: 14px;
  text-align: center;
  background: #0a0a0a;
  border-top: 1px solid #1a1a1a;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition:
    color 0.3s,
    background 0.3s;
}
.gallery-item:hover .gallery-label {
  color: #ffffff;
  background: #141414;
}
footer {
  padding: 20px 0 40px;
  border-top: 1px solid #1a1a1a;
  text-align: center;
}
.footer-inner p {
  color: #5a5f6b;
  font-size: 13px;
}
.license-link {
  color: #5a5f6b;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.license-link:hover {
  color: #61afef;
  border-bottom-color: #61afef;
}
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
  }
}
@media (max-width: 700px) {
  .logo-hero {
    width: 90vw;
    max-height: 60vh;
  }
  .site-title {
    font-size: 34px;
  }
  .site-tag {
    font-size: 15px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .gallery-item:hover {
    transform: scale(1.02);
  }
  .hero-links {
    gap: 20px;
  }
}
.ecosystem {
  padding: 100px 0 120px;
  border-top: 1px solid #121212;
  background: linear-gradient(to bottom, #000000 0%, #030303 100%);
}
.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 56px;
  letter-spacing: -0.5px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}
.feature-card {
  background: #050505;
  border: 1px solid #121212;
  padding: 32px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.3s,
    background 0.3s;
}
.feature-card:hover {
  border-color: #1a1a1a;
  background: #070707;
}
.feature-card h3 {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 16px;
}
.feature-card p {
  color: #abb2bf;
  font-size: 15px;
  line-height: 1.65;
  flex-grow: 1;
}
.feature-card strong {
  color: #ffffff;
}
.eco-bonus {
  color: #5a5f6b;
  font-size: 15px;
  font-style: italic;
  text-align: center;
  margin-top: 56px;
  border-top: 1px solid #121212;
  padding-top: 24px;
}
.feature-card {
  background: #050505;
  border: 1px solid #121212;
  padding: 32px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, background 0.3s;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: #880101;
  border-radius: 0 0 4px 4px;
}

/*   /*
/* Why Section Styling */
.why-section {
  padding: 80px 20px; 
  background-color: var(--bg-alt-color, #000000); 
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    linear-gradient(
      110deg,
      #0a0a0a 0%,
      #c50000 25%,
      #ff6f3c 50%,
      #c50000 75%,
      #fffefe 45%
    ),
    linear-gradient(
      70deg,
      #0a0a0a 45%,
      #ff4500 20%,
      #b30000 50%,
      #ff6f3c 80%,
      #0a0a0a 100%
    ),
    radial-gradient(
      circle at center,
      rgba(255, 140, 0, 0.1) 0%,
      transparent 70%
    );

  background-blend-mode: normal, overlay, overlay, normal;
  color: #e0ffe5;
  min-height: 100vh;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.why-intro blockquote {
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: var(--accent-color, #00ffcc); 
  border: none;
  line-height: 1.5;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .pipeline-grid {
    grid-template-columns: 1fr;
  }
}

.pipeline-card {
  background: rgba(255, 255, 255, 0.03); 
  backdrop-filter: blur(12px); 
  padding: 35px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1); 
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); 
  transition: transform 0.3s ease, background 0.3s ease;
}

.pipeline-card:hover {
  transform: translateY(-2px); 
  background: rgba(255, 255, 255, 0.06); 
  border-color: rgba(255, 255, 255, 0.2);
}

.pipeline-card h3 {
  margin-top: 0;
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.problem-card h3 {
  color: #ff5555; 
}

.solution-card h3 {
  color: #50fa7b; 
}

.pipeline-card p {
  line-height: 1.6;
  margin: 0;
  font-size: 1rem;
}

/* Architecture Flow Diagram */
.architecture-flow {
  text-align: center;
  background: rgba(0, 0, 0, 0.6); 
  backdrop-filter: blur(12px);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1); 
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  max-width: 950px; 
  margin: 0 auto;
}

.architecture-flow h3 {
  margin-top: 0;
  font-size: 1.1rem;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
}

.ascii-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: monospace;
}

.flow-step {
  padding: 12px 20px; 
  background: rgba(255, 255, 255, 0.05); 
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.15); 
  border-radius: 6px;
  min-width: 260px;
  font-size: 0.95rem;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.flow-step:hover:not(.highlighted-step) {
  background: rgba(255, 255, 255, 0.1); 
  border-color: rgba(255, 255, 255, 0.3);
}

.highlighted-step {
  background: rgba(0, 51, 34, 0.8);
  border-color: #00ffcc;
  color: #00ffcc;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.15); 
}

.flow-arrow {
  margin: 10px 0;
  color: #ff5555; 
  font-size: 1.2rem;
  font-weight: bold;
}


.branch-container {
  display: flex; 
  gap: 20px; 
  justify-content: center; 
  margin-top: 10px;
  width: 100%;
}


@media (max-width: 768px) {
  .why-section {
    padding: 40px 16px;
  }
  
  .architecture-flow {
    padding: 24px 16px;
    width: 100%;
  }

  .branch-container {
    flex-direction: column; 
    align-items: center;
    gap: 12px;
  }

  .flow-step {
    min-width: unset;
    width: 100%; 
    max-width: 280px;
  }
}