:root {
  --bg: #08111f;
  --bg-soft: #0d1728;
  --panel: rgba(11, 23, 39, 0.72);
  --panel-strong: rgba(10, 19, 34, 0.9);
  --border: rgba(94, 166, 77, 0.18);
  --text: #e8efff;
  --muted: #9ab0d0;
  --accent: #76c043;
  --accent-2: #3f7f2f;
  --success: #9be870;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(118, 192, 67, 0.16), transparent 32%),
    radial-gradient(circle at top right, rgba(63, 127, 47, 0.18), transparent 28%),
    linear-gradient(180deg, #07101d 0%, #08111f 32%, #091426 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.nav-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.hero-logo {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 18px rgba(118, 192, 67, 0.18));
}

.footer-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.01) 1px,
    transparent 1px,
    transparent 4px
  );
  background-size: 100% 4px;
  opacity: 0.08;
  z-index: 0;
}

.glass-nav {
  background: rgba(8, 17, 31, 0.6);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navbar-brand,
.nav-link,
.footer-link {
  color: var(--text) !important;
}

.brand-accent,
.accent-text {
  color: var(--accent);
}

.tracking-wide {
  letter-spacing: 0.06em;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(118, 192, 67, 0.09), transparent 35%),
    linear-gradient(180deg, rgba(8, 17, 31, 0.15), rgba(8, 17, 31, 0.65));
  z-index: -1;
}

.eyebrow,
.section-tag {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-lead {
  max-width: 720px;
  color: #d9e6ff;
}

.hero-panel,
.hero-sidecard,
.content-card,
.mini-card,
.timeline-card {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 24px;
}

.hero-panel {
  padding: 1.5rem;
  max-width: 780px;
}

.hero-sidecard {
  padding: 1rem;
}

.terminal-header {
  display: flex;
  gap: 0.45rem;
  padding: 0.4rem 0.2rem 0.75rem;
}

.terminal-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.24);
}

.terminal-body {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  color: #dce8ff;
}

.terminal-body p {
  margin-bottom: 0.65rem;
}

.prompt {
  color: var(--success);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5a9e35);
  border: none;
  color: #07101d;
  font-weight: 700;
}

.btn-primary:hover {
  color: #07101d;
  transform: translateY(-1px);
}

.btn {
  transition: 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-youtube {
  background: #ff0033;
  color: white;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-youtube:hover {
  background: #cc0029;
  color: white;
  transform: translateY(-1px);
}

.btn-kofi {
  background: #ff5e5b;
  color: white;
  border: none;
  font-weight: 600;
}

.btn-kofi:hover {
  background: #e04b48;
  color: white;
  transform: translateY(-1px);
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  width: 34px;
  height: 54px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  display: grid;
  place-items: start center;
  padding-top: 10px;
}

.scroll-indicator span {
  width: 6px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  animation: floatY 1.7s infinite;
}

@keyframes floatY {
  0% {
    transform: translateY(0);
    opacity: 0.2;
  }
  50% {
    transform: translateY(10px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 0.2;
  }
}

.section-padding {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.section-dark {
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.52), rgba(7, 14, 26, 0.72));
}

.section-grid {
  background:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.content-card,
.mini-card,
.timeline-card {
  padding: 1.75rem;
}

.feature-list {
  padding-left: 1.2rem;
  color: #dbe8ff;
}

.feature-list li + li {
  margin-top: 0.9rem;
}

.sticky-copy {
  position: sticky;
  top: 6rem;
}

.mini-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.text-secondary-custom {
  color: var(--muted);
}

.timeline {
  position: relative;
  margin-left: 0.7rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--accent), rgba(118, 192, 67, 0.10));
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--accent) 0%,
    rgba(118, 192, 67, 0.35) 40%,
    rgba(118, 192, 67, 0.08) 72%
  );
  box-shadow: 0 0 0 8px rgba(118, 192, 67, 0.08);
}

.timeline-date {
  display: inline-flex;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(123, 231, 255, 0.08);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
}

.link-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.6rem;
}

.supporter-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.supporter-pill {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(118, 192, 67, 0.12);
  border: 1px solid rgba(118, 192, 67, 0.22);
  color: var(--text);
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: 0.25s ease;
}

.supporter-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(118, 192, 67, 0.45);
  background: rgba(118, 192, 67, 0.18);
}

.footer {
  background: rgba(6, 12, 21, 0.95);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-link {
  text-decoration: none;
  color: var(--muted) !important;
}

.footer-link:hover {
  color: var(--accent) !important;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.hero-fade-block {
  transition: opacity 0.35s ease, transform 0.35s ease;
  will-change: opacity, transform;
}

@media (max-width: 767.98px) {
  .hero-copy > .d-flex.flex-wrap.gap-3 {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 5rem;
  }

  .sticky-copy {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 4.5rem 0;
  }

  .hero-panel,
  .content-card,
  .mini-card,
  .timeline-card {
    padding: 1.25rem;
  }

  .timeline-item {
    padding-left: 2.5rem;
  }
}
/* =============================
   Mobile optimisation pass
   ============================= */
html { overflow-x: hidden; }
body { min-width: 0; }
img, svg, video { max-width: 100%; }
p { line-height: 1.7; }

.navbar-toggler {
  border-color: rgba(255,255,255,0.18);
  padding: 0.35rem 0.55rem;
}
.navbar-toggler:focus { box-shadow: 0 0 0 0.15rem rgba(118, 192, 67, 0.28); }
.glass-nav .navbar-collapse { transition: background 0.2s ease, border 0.2s ease, padding 0.2s ease; }
.hero-copy { width: 100%; }
.hero-keypoints .col-md-6 { min-width: 0; }
.hero-keypoints strong, .content-card strong, .timeline-card h3, .mini-card h3 { overflow-wrap: anywhere; }
.link-group .btn, .hero-copy > .d-flex .btn { white-space: normal; }

@media (max-width: 991.98px) {
  .glass-nav { background: rgba(8, 17, 31, 0.92) !important; backdrop-filter: blur(18px) !important; }
  .glass-nav .container { max-width: 100%; }
  .glass-nav .navbar-collapse.show, .glass-nav .navbar-collapse.collapsing {
    margin-top: 0.85rem;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    background: rgba(7, 14, 26, 0.96);
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  }
  .navbar-nav { gap: 0.35rem !important; }
  .navbar-nav .nav-link { padding: 0.7rem 0.25rem; }
  .navbar-nav .nav-item.ms-lg-2 {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.75rem !important;
    margin-top: 0.5rem;
  }
  .navbar-nav .nav-item.ms-lg-2 .btn { width: 100%; justify-content: center; }
  .hero-section { min-height: auto; padding: 7rem 0 3rem; }
  .hero-section .row.min-vh-100 { min-height: auto !important; gap: 1.5rem; }
  .hero-sidecard { margin-top: 0 !important; }
  .scroll-indicator { display: none; }
}

@media (max-width: 767.98px) {
  :root { --shadow: 0 14px 38px rgba(0,0,0,0.32); }
  body {
    background:
      radial-gradient(circle at 20% 0%, rgba(118,192,67,0.14), transparent 34%),
      linear-gradient(180deg, #07101d 0%, #08111f 45%, #091426 100%);
  }
  .container { padding-left: 1.1rem; padding-right: 1.1rem; }
  .nav-logo { height: 30px; }
  .navbar-brand {
    max-width: calc(100vw - 92px);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    white-space: normal;
    line-height: 1.15;
  }
  .hero-section { padding-top: 6.25rem; padding-bottom: 2.25rem; }
  .eyebrow, .section-tag { font-size: 0.72rem; letter-spacing: 0.13em; }
  .hero-copy .display-3 {
    font-size: clamp(2.35rem, 13vw, 3.45rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    margin-bottom: 1rem !important;
  }
  .hero-lead { font-size: 1.02rem; line-height: 1.65; }
  .hero-panel, .hero-sidecard, .content-card, .mini-card, .timeline-card { border-radius: 18px; }
  .hero-panel { padding: 1rem; }
  .hero-keypoints .row { --bs-gutter-y: 1rem; }
  .hero-keypoints .col-md-6 { gap: 0.75rem !important; }
  .hero-keypoints i, .content-card i { font-size: 1.45rem !important; flex: 0 0 auto; }
  .hero-copy > .d-flex { flex-direction: column; gap: 0.75rem !important; }
  .hero-copy > .d-flex .btn, .link-group .btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .hero-copy > .d-flex .btn i {
    margin-right: 0.5rem;
  }
  .terminal-body { font-size: 0.86rem; overflow-wrap: anywhere; }
  .section-padding { padding: 3.75rem 0; }
  .content-card, .mini-card, .timeline-card { padding: 1.15rem; }
  .content-card .h1, .section-padding .display-6 {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
  }
  .mini-card h3, .timeline-card h3 { font-size: 1.05rem; line-height: 1.35; }
  .timeline { margin-left: 0; }
  .timeline::before { left: 7px; }
  .timeline-item { padding-left: 1.85rem; margin-bottom: 1.35rem; }
  .timeline-marker { top: 1.1rem; width: 16px; height: 16px; box-shadow: 0 0 0 6px rgba(118,192,67,0.07); }
  .timeline-date { font-size: 0.82rem; }
  .footer .d-flex.flex-wrap { width: 100%; }
  .footer-link { width: 100%; }
}

@media (max-width: 430px) {
  .navbar-brand span { max-width: 220px; }
  .hero-copy .display-3 { font-size: clamp(2.2rem, 15vw, 3rem); }
  .hero-lead, .content-card p, .mini-card p, .timeline-card p, .terminal-body { font-size: 0.95rem; }
  .hero-panel, .content-card, .mini-card, .timeline-card { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal-on-scroll { opacity: 1; transform: none; }
}
