:root {
  --bg-dark: #070b12;
  --panel: rgba(10, 14, 22, 0.78);
  --panel-soft: rgba(8, 12, 18, 0.62);
  --panel-strong: rgba(7, 10, 16, 0.9);
  --text: #f4f7ff;
  --muted: #bcc7d7;
  --cyan: #84e7ff;
  --green: #7dff9f;
  --blue: #7fbaff;
  --gold: #f3cd7b;
  --border: rgba(255, 255, 255, 0.09);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--text);
  font-family: Arial, sans-serif;
  background: #090c12;
}

/* HOME */
.home-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(3, 5, 10, 0.32), rgba(3, 5, 10, 0.82)),
    url("img/bg.jpg") center center / cover no-repeat fixed;
}

.hero {
  position: relative;
  padding: 72px 20px 26px;
  min-height: 38vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(132, 231, 255, 0.12), transparent 42%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.26));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.brand-pill {
  display: inline-block;
  margin-bottom: 16px;
  padding: 10px 18px;
  border: 1px solid rgba(132, 231, 255, 0.35);
  border-radius: 999px;
  background: rgba(7, 12, 18, 0.5);
  color: var(--cyan);
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.08;
  text-shadow: 0 0 24px rgba(132, 231, 255, 0.16);
}

.hero-text {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.68;
}

.site-main {
  padding: 10px 20px 60px;
}

.projects-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 520px));
  justify-content: center;
  gap: 30px;
}

.project-card {
  text-decoration: none;
  color: inherit;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(7, 10, 16, 0.62);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.01);
}

.hcs-card:hover {
  border-color: rgba(125, 255, 159, 0.35);
  box-shadow: 0 0 28px rgba(125, 255, 159, 0.14), var(--shadow);
}

.chrono-card:hover {
  border-color: rgba(127, 186, 255, 0.35);
  box-shadow: 0 0 28px rgba(127, 186, 255, 0.14), var(--shadow);
}

.project-visual {
  padding: 22px 22px 0;
}

.project-logo {
  width: 100%;
  display: block;
  border-radius: 18px;
  background: #020305;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.project-body {
  padding: 22px 24px 26px;
}

.tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag-green {
  background: rgba(125, 255, 159, 0.11);
  color: var(--green);
  border: 1px solid rgba(125, 255, 159, 0.22);
}

.tag-blue {
  background: rgba(127, 186, 255, 0.11);
  color: var(--blue);
  border: 1px solid rgba(127, 186, 255, 0.22);
}

.project-body h2 {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1.1;
}

.project-body p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.68;
}

.card-action {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.site-footer {
  text-align: center;
  padding: 18px 20px 36px;
  color: rgba(244, 247, 255, 0.74);
  font-size: 0.95rem;
}

/* PROJECT PAGES */
.project-page {
  min-height: 100vh;
  position: relative;
  background: #070b12;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.22;
  transform: scale(1.02);
}

.hcs-page .page-bg {
  background-image: url("img/hcsbg.png");
}

.chrono-page .page-bg {
  background-image: url("img/chronoguardbg.png");
}

.top-nav,
.project-hero,
.content-wrap {
  position: relative;
  z-index: 1;
}

.top-nav {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 20px 0;
}

.top-nav a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: bold;
}

.project-hero {
  padding: 18px 20px 12px;
}

.hero-panel {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  padding: 28px 22px 26px;
  background:
    linear-gradient(to bottom, rgba(12, 17, 26, 0.92), rgba(8, 12, 18, 0.88));
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.compact-panel {
  max-width: 920px;
}

.hero-logo {
  width: min(520px, 92%);
  display: block;
  margin: 0 auto 18px;
  background: #020305;
  border-radius: 20px;
  padding: 10px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 10px 30px rgba(0, 0, 0, 0.26);
}

.guide-logo {
  width: min(420px, 90%);
}

.project-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.subtitle {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1.06rem;
}

.content-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 20px 60px;
}

.content-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.content-card h2 {
  margin: 0 0 16px;
  color: var(--cyan);
}

.content-card p,
.content-card li {
  color: rgba(244, 247, 255, 0.86);
  line-height: 1.75;
}

.feature-list {
  margin: 0;
  padding-left: 22px;
}

.ordered-list {
  list-style: decimal;
}

.lore-card {
  border-left: 4px solid var(--blue);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 13px 18px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(132, 231, 255, 0.28);
  box-shadow: 0 0 18px rgba(132, 231, 255, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(57, 255, 109, 0.95), rgba(125, 255, 159, 0.84));
  color: #061109;
  border: none;
  font-weight: bold;
}

@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: minmax(280px, 760px);
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: 32vh;
    padding-top: 56px;
  }

  .project-visual {
    padding: 16px 16px 0;
  }

  .project-body {
    padding: 18px 18px 22px;
  }

  .project-body h2 {
    font-size: 1.6rem;
  }

  .hero-panel,
  .content-card {
    padding: 22px 18px;
  }

  .button-row {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }
}