:root {
  --cf-night: #050817;
  --cf-ink: #0a1026;
  --cf-panel: rgba(8, 14, 34, 0.9);
  --cf-blue: #26457B;
  --cf-gold: #d9a441;
  --cf-bronze: #9a6735;
  --cf-parchment: #f5ead2;
  --cf-muted: #c5b8a4;
  --cf-border: rgba(217, 164, 65, 0.34);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(38, 69, 123, 0.35), transparent 36rem),
    radial-gradient(circle at 86% 70%, rgba(154, 103, 53, 0.22), transparent 30rem),
    linear-gradient(180deg, #080615 0%, var(--cf-night) 44%, #040711 100%);
  color: var(--cf-parchment);
  font-family: "Cardo", Georgia, serif;
}

a {
  color: var(--cf-gold);
}

.landing-page {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.landing-page::before {
  background-image:
    radial-gradient(circle, rgba(245, 234, 210, 0.55) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(217, 164, 65, 0.45) 0 1px, transparent 1.5px);
  background-position: 0 0, 90px 120px;
  background-size: 190px 190px, 260px 260px;
  content: "";
  inset: 0;
  opacity: 0.22;
  pointer-events: none;
  position: fixed;
}

.navbar-custom {
  background: rgba(6, 7, 22, 0.88);
  border-bottom: 1px solid rgba(217, 164, 65, 0.16);
  backdrop-filter: blur(14px);
}

.navbar-brand {
  align-items: center;
  color: var(--cf-parchment) !important;
  display: inline-flex;
  font-size: 1.1rem;
  gap: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-mark {
  border: 1px solid var(--cf-border);
  border-radius: 50%;
  height: 2.25rem;
  object-fit: cover;
  width: 2.25rem;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(245, 234, 210, 0.72);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: var(--cf-gold);
}

.nav-enter {
  border: 1px solid var(--cf-border);
  border-radius: 999px;
  color: var(--cf-gold) !important;
  letter-spacing: 0.18em;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  text-transform: uppercase;
}

.hero-section {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(5, 8, 23, 0.92), rgba(5, 8, 23, 0.58), rgba(5, 8, 23, 0.88)),
    url("/mockup_landing/summerforest.png") center / cover no-repeat;
  display: flex;
  min-height: 92vh;
  padding: 8rem 0 5rem;
  position: relative;
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--cf-gold);
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.display-title,
.section-title {
  color: var(--cf-parchment);
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  line-height: 1.02;
  margin: 0;
  text-transform: uppercase;
}

.text-gold {
  color: var(--cf-gold);
}

.hero-subtitle {
  color: rgba(245, 234, 210, 0.92);
  font-size: clamp(1.6rem, 4.4vw, 3.5rem);
  font-style: italic;
  line-height: 1.1;
  margin: 1rem 0 0;
}

.lead-copy {
  color: var(--cf-muted);
  font-size: 1.2rem;
  line-height: 1.75;
  margin-top: 1.8rem;
  max-width: 680px;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-celestial,
.btn-celestial-outline,
.btn-custom {
  border-radius: 0.35rem;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  padding: 0.9rem 1.5rem;
  text-transform: uppercase;
}

.btn-celestial,
.btn-custom {
  background: linear-gradient(180deg, #e2ad45, #bd7c35);
  border: 1px solid rgba(245, 234, 210, 0.12);
  color: #081024;
}

.btn-celestial:hover,
.btn-custom:hover {
  background: linear-gradient(180deg, #f0bd55, #c9873d);
  color: #081024;
}

.btn-celestial-outline {
  background: rgba(6, 10, 26, 0.48);
  border: 1px solid var(--cf-border);
  color: var(--cf-parchment);
}

.btn-celestial-outline:hover {
  background: rgba(217, 164, 65, 0.1);
  color: var(--cf-gold);
}

.hero-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 3.5rem;
  max-width: 760px;
}

.hero-stat {
  border-left: 1px solid var(--cf-border);
  padding-left: 1rem;
}

.hero-stat strong {
  color: var(--cf-gold);
  display: block;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-stat span {
  color: var(--cf-muted);
}

.landing-section {
  padding: 6rem 0;
  position: relative;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.section-kicker {
  color: var(--cf-gold);
  letter-spacing: 0.28em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section-copy {
  color: var(--cf-muted);
  font-size: 1.12rem;
  line-height: 1.75;
  margin-top: 1.4rem;
}

.feature-image {
  border: 1px solid var(--cf-border);
  border-radius: 0.6rem;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.feature-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.feature-card,
.showcase-card,
.cta-panel {
  background: linear-gradient(180deg, rgba(13, 21, 47, 0.94), rgba(5, 9, 24, 0.94));
  border: 1px solid var(--cf-border);
  border-radius: 0.65rem;
  box-shadow: inset 0 1px 0 rgba(245, 234, 210, 0.03), 0 20px 60px rgba(0, 0, 0, 0.28);
}

.feature-card {
  min-height: 100%;
  padding: 1.6rem;
}

.feature-card .glyph {
  color: var(--cf-gold);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.feature-card h3,
.showcase-card h3 {
  color: var(--cf-parchment);
  font-size: 1.65rem;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}

.feature-card p,
.showcase-card p,
.cta-panel p,
.footer-copy {
  color: var(--cf-muted);
  line-height: 1.65;
}

.legacy-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.legacy-list li {
  color: var(--cf-muted);
  margin-bottom: 1.25rem;
  padding-left: 2rem;
  position: relative;
}

.legacy-list li::before {
  color: var(--cf-gold);
  content: "*";
  left: 0;
  position: absolute;
  top: 0.1rem;
}

.legacy-list strong {
  color: var(--cf-gold);
  display: block;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.systems-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.showcase-card {
  overflow: hidden;
}

.showcase-frame {
  align-items: center;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 30% 30%, rgba(38, 69, 123, 0.4), transparent 18rem),
    #060a1a;
  border-bottom: 1px solid rgba(217, 164, 65, 0.16);
  color: rgba(217, 164, 65, 0.42);
  display: flex;
  justify-content: center;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.showcase-card figcaption {
  padding: 1.35rem 1.5rem;
}

.showcase-card h3 {
  color: var(--cf-gold);
  font-size: 1rem;
  letter-spacing: 0.2em;
}

.cta-panel {
  padding: clamp(2rem, 6vw, 4.5rem);
  text-align: center;
}

.site-footer {
  background: #040814;
  border-top: 1px solid rgba(217, 164, 65, 0.15);
  padding: 3.5rem 0 2rem;
  position: relative;
}

.footer-heading {
  color: var(--cf-gold);
  font-size: 0.9rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.footer-list {
  list-style: none;
  padding-left: 0;
}

.footer-list li {
  margin-bottom: 0.55rem;
}

.footer-list a {
  color: var(--cf-muted);
  text-decoration: none;
}

.footer-list a:hover {
  color: var(--cf-gold);
}

.modal-content {
  background-color: #111b32;
  border: 1px solid var(--cf-border);
  color: var(--cf-parchment);
}

.modal-header {
  border-bottom: 1px solid rgba(217, 164, 65, 0.18);
}

.modal-title,
.form-label {
  color: var(--cf-parchment);
}

.btn-close {
  filter: invert(90%);
}

.form-control {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--cf-parchment);
}

.form-control:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--cf-gold);
  box-shadow: 0 0 0 0.2rem rgba(217, 164, 65, 0.18);
  color: var(--cf-parchment);
}

.form-control::placeholder {
  color: rgba(245, 234, 210, 0.52);
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
  }

  .hero-stats,
  .systems-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 0.95rem;
    letter-spacing: 0.12em;
  }

  .hero-section {
    padding-top: 7rem;
  }

  .hero-stats,
  .systems-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .btn-celestial,
  .btn-celestial-outline,
  .btn-custom {
    width: 100%;
  }
}

.landing-alert {
  margin-top: 1rem;
  position: relative;
  z-index: 2;
}

.development-banner {
  align-items: center;
  background: rgba(8, 14, 34, 0.88);
  border: 1px solid var(--cf-border);
  border-radius: 0.5rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  color: rgba(245, 234, 210, 0.9);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  line-height: 1.5;
  margin-bottom: 2.5rem;
  padding: 1rem 1.15rem;
  position: relative;
  z-index: 1;
}

.development-banner i {
  color: var(--cf-gold);
}

.development-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.development-links a,
.pending-link,
.footer-pending {
  color: rgba(245, 234, 210, 0.72);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.development-links a {
  border: 1px solid rgba(217, 164, 65, 0.26);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
}

.development-links a:hover,
.text-link:hover {
  color: var(--cf-gold);
}

.pending-link {
  border: 1px solid rgba(245, 234, 210, 0.14);
  border-radius: 999px;
  display: inline-block;
  padding: 0.45rem 0.75rem;
}

.btn-celestial-muted {
  background: rgba(245, 234, 210, 0.08);
  border: 1px solid rgba(245, 234, 210, 0.18);
  border-radius: 0.35rem;
  color: rgba(245, 234, 210, 0.62);
  cursor: not-allowed;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  padding: 0.9rem 1.5rem;
  text-transform: uppercase;
}

.showcase-frame {
  display: block;
  overflow: hidden;
}

.showcase-frame img {
  aspect-ratio: 16 / 10;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.update-card {
  background: linear-gradient(180deg, rgba(13, 21, 47, 0.94), rgba(5, 9, 24, 0.94));
  border: 1px solid var(--cf-border);
  border-radius: 0.65rem;
  box-shadow: inset 0 1px 0 rgba(245, 234, 210, 0.03), 0 20px 60px rgba(0, 0, 0, 0.24);
  min-height: 100%;
  padding: 1.6rem;
}

.update-card h3 {
  color: var(--cf-parchment);
  font-size: 1.45rem;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}

.update-card p {
  color: var(--cf-muted);
  line-height: 1.65;
}

.update-date {
  color: var(--cf-gold) !important;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}

.text-link {
  color: var(--cf-gold);
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.private-modal-copy p {
  color: var(--cf-muted);
  line-height: 1.7;
}

.development-signup-panel { background: rgba(4, 8, 20, 0.62); border: 1px solid rgba(217, 164, 65, 0.3); border-radius: 0.65rem; margin: 2rem auto; max-width: 760px; padding: clamp(1.25rem, 4vw, 2rem); text-align: left; }
.development-signup-panel h3, .development-signup-modal-content h5 { color: var(--cf-parchment); text-transform: uppercase; }
.development-signup-panel p, .development-signup-modal-content p, .signup-consent-note { color: var(--cf-muted); line-height: 1.65; }
.development-signup-controls { display: flex; gap: 0.75rem; }
.development-signup-controls .form-control, .development-signup-modal-content .form-control { background: rgba(245, 234, 210, 0.08); border-color: rgba(217, 164, 65, 0.35); color: var(--cf-parchment); min-height: 48px; }
.development-signup-controls .form-control::placeholder { color: rgba(197, 184, 164, 0.7); }
.development-signup-message { margin: 0.75rem 0 0; min-height: 1.5em; }
.development-signup-message.is-success { color: #b9d6ad; }
.development-signup-message.is-error { color: #e0a39b; }
.signup-honeypot { height: 0; left: -10000px; overflow: hidden; position: absolute; width: 1px; }
.development-signup-modal-content { background: linear-gradient(180deg, #0d152f, #050918); border: 1px solid rgba(217, 164, 65, 0.4); color: var(--cf-parchment); }
.signup-consent-note { font-size: 0.85rem; margin: 0.75rem 0 0; text-align: center; }
@media (max-width: 575.98px) { .development-signup-controls { flex-direction: column; } .development-signup-controls .btn { width: 100%; } }

.footer-pending {
  color: rgba(197, 184, 164, 0.62);
}

@media (max-width: 991.98px) {
  .development-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .development-links {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .development-links,
  .development-links a,
  .pending-link {
    width: 100%;
  }
}

.auth-freeze-page .hero-section {
  min-height: 100vh;
}

.auth-freeze-panel {
  margin: 0 auto;
  max-width: 860px;
}

.alpha-progress-panel {
  background: linear-gradient(180deg, rgba(8, 14, 34, 0.82), rgba(5, 9, 24, 0.82));
  border: 1px solid rgba(217, 164, 65, 0.24);
  border-radius: 0.55rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  margin-top: 1.6rem;
  max-width: 760px;
  padding: 1rem 1.1rem;
}

.alpha-progress-copy {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.alpha-progress-copy strong {
  color: var(--cf-gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.alpha-progress-copy span,
.alpha-progress-panel p {
  color: var(--cf-muted);
}

.alpha-progress-panel p {
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0.75rem 0 0;
}

.alpha-progress-track {
  background: rgba(245, 234, 210, 0.12);
  border-radius: 999px;
  height: 0.55rem;
  overflow: hidden;
}

.alpha-progress-track .progress-bar {
  background: linear-gradient(90deg, var(--cf-bronze), var(--cf-gold));
}

.screenshot-card {
  cursor: zoom-in;
  height: 100%;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.screenshot-card:hover,
.screenshot-card:focus-visible {
  border-color: rgba(217, 164, 65, 0.72);
  box-shadow: inset 0 1px 0 rgba(245, 234, 210, 0.04), 0 24px 70px rgba(0, 0, 0, 0.34);
  outline: none;
  transform: translateY(-2px);
}

.screenshot-preview {
  background:
    linear-gradient(135deg, rgba(245, 234, 210, 0.06), transparent 40%),
    radial-gradient(circle at 50% 30%, rgba(38, 69, 123, 0.34), transparent 18rem),
    #040814;
  padding: 0.75rem;
}

.showcase-frame img {
  object-fit: contain;
}

.screenshot-modal-content .modal-body {
  padding: 1rem;
}

.screenshot-modal-frame {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(245, 234, 210, 0.06), transparent 42%),
    radial-gradient(circle at 50% 30%, rgba(38, 69, 123, 0.3), transparent 24rem),
    #040814;
  border: 1px solid rgba(217, 164, 65, 0.18);
  border-radius: 0.45rem;
  display: flex;
  justify-content: center;
  min-height: 55vh;
  padding: 1rem;
}

.screenshot-modal-frame img {
  display: block;
  max-height: 78vh;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.screenshot-modal-caption {
  color: var(--cf-muted);
  line-height: 1.65;
  margin: 1rem 0 0;
}

.latest-post-card {
  background: linear-gradient(180deg, rgba(13, 21, 47, 0.96), rgba(5, 9, 24, 0.96));
  border: 1px solid var(--cf-border);
  border-radius: 0.65rem;
  box-shadow: inset 0 1px 0 rgba(245, 234, 210, 0.03), 0 20px 60px rgba(0, 0, 0, 0.24);
  color: inherit;
  display: block;
  min-height: 100%;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.latest-post-card:hover,
.latest-post-card:focus-visible {
  border-color: rgba(217, 164, 65, 0.72);
  box-shadow: inset 0 1px 0 rgba(245, 234, 210, 0.04), 0 24px 70px rgba(0, 0, 0, 0.34);
  color: inherit;
  outline: none;
  transform: translateY(-2px);
}

.latest-post-image img {
  aspect-ratio: 16 / 7;
  display: block;
  object-fit: cover;
  width: 100%;
}

.latest-post-body {
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

.latest-post-body h3 {
  color: var(--cf-parchment);
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.latest-post-body p:not(.update-date) {
  color: var(--cf-muted);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 720px;
}

@media (max-width: 575.98px) {
  .alpha-progress-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .screenshot-preview {
    padding: 0.55rem;
  }

  .screenshot-modal-frame {
    min-height: 45vh;
    padding: 0.55rem;
  }
}
