:root {
  --accent: #447dc5;
  --text-primary: #dedede;
  --text-muted: #bcbcbc;
}

* {
  box-sizing: border-box;
  font-family: "Yu Gothic UI Light", sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: url("images/stars.png") no-repeat center top fixed;
  background-size: cover;
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
  position: relative;
}

header, footer {
  position: relative;
  z-index: 2;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 20px;
  background: #00000080;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #ffffff1a;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  height: 25px;
  width: auto;
}

.nav-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-tabs a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
  font-weight: normal;
}

.nav-tabs a:hover {
  background: #ffffff1a;
  border-color: #ffffff33;
  color: #fff;
}

.nav-tabs a.active {
  border-color: #ffffff59;
  background: #ffffff14;
}

main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 70px 24px 24px;
  opacity: 1;
  transition: opacity 0.25s ease;
}

main.fading {
  opacity: 0.05;
}

main.no-center {
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 24px;
}

main.no-center .content-box {
  text-align: left;
}

.content-box {
  background: #0000008c;
  border: 1px solid #ffffff2e;
  border-radius: 14px;
  padding: 32px 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  text-align: center;
  box-shadow: 0 6px 25px #00000066;
}

.product-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 12px;
}

.product-intro h2 {
  margin: 0 0 10px;
}

.product-intro p {
  margin: 0 0 12px;
  color: var(--text-primary);
}

.product-intro p.product-label {
  color: var(--accent);
}

.product-intro ul {
  padding-left: 18px;
  margin: 0;
  color: var(--text-muted);
}

.product-intro li {
  margin-bottom: 6px;
}

.product-cta {
  min-width: 220px;
  text-align: right;
}

.price-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: #ffffff9c;
}

.product-price {
  display: block;
  font-size: 2.8rem;
  font-weight: bold;
  line-height: 1.1;
  color: #fff;
}

.pricing-note {
  margin: 6px 0 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.purchase-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  width: 100%;
}

.paypal-form {
  display: inline-grid;
  justify-items: center;
  align-content: start;
  gap: 0.5rem;
}

.paypal-button {
  text-align: center;
  border: 1px solid #000;
  border-radius: 0.25rem;
  min-width: 11.625rem;
  padding: 0 2rem;
  height: 2rem;
  font-weight: bold;
  background-color: #dfdfdf;
  color: #000000;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.125rem;
  cursor: pointer;
}

.paypal-button:hover {
  background: #c9c9c9;
}

.paypal-methods {
  max-width: 180px;
  width: 100%;
  height: auto;
}

.paypal-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.paypal-logo {
  height: 0.875rem;
  width: auto;
}




.product-preview-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.product-preview-card {
  background: #ffffff0f;
  border: 1px solid #ffffff21;
  border-radius: 14px;
  padding: 12px;
  margin: 0;
  box-shadow: inset 0 1px 0 #ffffff24;
}

.product-preview-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #ffffff1c;
}

.product-preview-card figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.product-comparison {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: start;
}

.comparison-copy p {
  color: var(--text-primary);
}

.comparison-copy ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.comparison-copy li {
  margin-bottom: 6px;
}

.comparison-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.comparison-table th {
  font-size: 0.85rem;
  color: #cfd7ff;
  font-weight: 500;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #1a1f32;
  background: transparent;
}

.comparison-table td {
  padding: 14px 14px;
  border-bottom: 1px solid #1a1f32;
  vertical-align: middle;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover td {
  background: rgba(19, 29, 54, 0.45);
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  width: 36%;
}

.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2),
.comparison-table th:nth-child(3),
.comparison-table td:nth-child(3) {
  text-align: center;
  width: 32%;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 140px;
}

.status-pill.positive {
  background: rgba(72, 199, 142, 0.18);
  color: #72f5b0;
}

.status-pill.neutral {
  background: rgba(243, 199, 116, 0.18);
  color: #ffd992;
}

.status-pill.negative {
  background: rgba(243, 110, 117, 0.18);
  color: #ff9b9f;
}

.documentation-overview,
.external-tools {
  text-align: left;
}

.doc-header h3 {
  margin: 12px 0 10px;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.doc-card {
  padding: 16px;
  border-radius: 14px;
  background: #040916bd;
  border: 1px solid #ffffff1c;
  box-shadow: inset 0 1px 0 #ffffff0d;
}

.doc-index {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}

.doc-card h4 {
  margin: 0 0 6px;
}

.doc-card p {
  margin: 0;
  color: #d5dfff;
  font-size: 0.9rem;
}

.doc-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--accent);
}



.tool-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: #030812cc;
  border: 1px solid #ffffff1f;
}

.tool-card h4 {
  margin: 0 0 6px;
}

.tool-card p {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.tool-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
}

.tool-link[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

.legal-section {
  text-align: left;
}

.legal-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.legal-card {
  padding: 18px;
  border-radius: 14px;
  background: #040916c2;
  border: 1px solid #ffffff1c;
  box-shadow: inset 0 1px 0 #ffffff0d;
}

.legal-card h4 {
  margin: 0 0 6px;
}

.legal-card p {
  margin: 0;
  color: #d5dfff;
  font-size: 0.92rem;
  line-height: 1.5;
}

.legal-link {
  color: var(--accent);
  text-decoration: none;
}

.legal-link:hover {
  text-decoration: underline;
}

h1,
.content-box h1 {
  color: #fff;
  text-shadow: 1px 1px 6px #000000b3;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin: 18px auto 0;
  padding: 0 18px;
  width: 100%;
}

.project-card {
  flex: 1 1 calc(25% - 18px);
  max-width: 400px;
  min-width: 280px;
  background: #00000059;
  border: 1px solid #ffffff26;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  background: #00000080;
  transform: translateY(-1px);
}

.project-media,
.project-media-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #000;
  border-bottom: 1px solid #ffffff1f;
  flex-shrink: 0;
}

.project-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding: 0 16px 12px;
}

.project-title {
  margin: 12px 0 4px;
  font-size: 1.2rem;
  font-weight: normal;
  color: #fff;
  text-shadow: 0 1px 2px #000000cc;
}

.project-desc {
  margin: 0 0 14px;
  padding: 0;
  color: #d9d9d9;
  font-size: 0.96rem;
  line-height: 1.5;
  text-shadow: 0 1px 2px #00000066;
}

.project-actions {
  margin-top: auto;
  align-self: flex-start;
  margin-bottom: 12px;
}

.project-link {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: normal;
  font-size: 1rem;
  color: #d3d3d3;
  background: #ffffff14;
  border: 1px solid #ffffff2e;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.project-link:hover {
  background: #ffffff24;
  border-color: #ffffff47;
  color: #fff;
}

.projects-heading {
  font-size: 1.8rem;
  color: #fff;
  font-weight: normal;
  text-align: center;
  margin: 0 auto 10px;
}

.projects-divider {
  width: 100%;
  height: 1px;
  background: #ffffff4d;
  margin: 0 auto 24px;
  border-radius: 1px;
}

.project-filter {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}

#project-search {
  padding: 8px 12px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ffffff33;
  background: #ffffff0d;
  color: #fff;
  width: 100%;
  max-width: 400px;
}

#project-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px #609bd24d;
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tag-filter button {
  padding: 4px 10px;
  border-radius: 6px;
  text-align: center;
  background: #ffffff1a;
  color: #fff;
  border: 1px solid #ffffff33;
  cursor: pointer;
  transition: background 0.2s;
}

.tag-filter button:hover {
  background: #ffffff33;
}

.tag-filter button.active {
  background: var(--accent);
  border-color: #ffffff33;
}

.overlay {
  position: fixed;
  inset: 0;
  background: #00000080;
  z-index: 1;
  pointer-events: none;
}









footer {
  padding: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.social {
  display: flex;
  gap: 16px;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff26;
  transition: transform 0.2s, background 0.2s;
}

.social a:hover {
  background: #ffffff4d;
  transform: scale(1.08);
}

.social img {
  width: 22px;
  height: 22px;
  opacity: 0.85;
  filter: drop-shadow(0 0 2px #00000099);
}

.social img:hover {
  opacity: 1;
}

a {
  accent-color: var(--accent);
}

a.link {
  color: var(--accent);
  text-decoration: none;
}

a.link:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  main {
    padding: 90px 18px 18px;
  }

  .content-box {
    padding: 20px 22px;
  }

  .product-header {
    flex-direction: column;
  }

  .product-cta {
    width: 100%;
    text-align: center;
    margin-top: 12px;
  }

  .product-cta .purchase-actions {
    align-items: center;
    text-align: center;
  }

  .doc-grid,
  .tool-grid,
  .legal-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .tool-card {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .project-card {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
  }

  header {
    padding: 10px 14px;
  }

  .nav-tabs {
    justify-content: flex-start;
  }

  .content-box {
    padding: 18px;
  }

  .product-preview-card img {
    height: auto;
  }

  .doc-grid,
  .tool-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    padding: 12px;
  }
}

/* temp class for redirection */
.small-redirect {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: #aaa;
  text-decoration: none;
  text-align: center;
}

.small-redirect:hover {
  text-decoration: underline;
  color: #fff;
}

.mobile-scale-note {
  display: none;
  text-align: center;
  font-size: 0.7rem;
  color: #535353;
  margin-top: 6px;
}

.github-langs-card {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  margin: 0 auto;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .mobile-scale-note {
    display: block;
  }

.github-langs-card {
  max-width: 90%;
}
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }

  main {
    transition: none;
  }

  main.fading {
    opacity: 1;
  }
}

