/* ===== GLOBAL STYLES — shared across all pages ===== */

/* ---------- design tokens ---------- */
:root {
  --black: #060606;
  --nav-bg: #1b1b1b;
  --announce-bg: #1e1e1e;
  --line: rgba(255, 255, 255, 0.12);
  --white: #f4f4f4;
  --mid: #8f8f8f;

  /* ASCII logo controls — edit these to customise */
  --ascii-color:          #ffffff;
  --ascii-opacity:        0.35;
  --ascii-font-size:      13px;
  --ascii-line-height:    1.22;
  --ascii-letter-spacing: 0.04em;
}

/* ---------- reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--black);
  color: var(--white);
  font-family: 'Funnel Sans', sans-serif;
  overflow-x: hidden;
}

body { min-height: 100vh; }

/* ---------- grain texture ---------- */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

header { position: relative; }

/* ---------- navbar ---------- */
nav {
  position: relative;
  background: var(--nav-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Funnel Display', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  padding-right: 24px;
  height: 100%;
}

.brand .mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand .mark svg,
.brand .mark img { display: block; width: 26px; height: 26px; }

.footer-brand .mark svg,
.footer-brand .mark img { display: block; width: 26px; height: 26px; }

.divider {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  flex: 1;
  justify-content: flex-end;
  padding-right: 24px;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Funnel Sans', sans-serif;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  padding-left: 24px;
}

.btn-download {
  font-family: 'Funnel Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--white);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.15s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  nav { padding: 0 16px; }
  .divider { display: none; }
  .btn-download { display: none; }
  .nav-links { display: none; }
}

/* ---------- mobile drawer ---------- */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--nav-bg);
  border-top: 1px solid var(--line);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}
.mobile-menu.open { max-height: 400px; opacity: 1; }
@media (max-width: 860px) { .mobile-menu { display: flex; } }
.mobile-menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu a:active { background: rgba(255, 255, 255, 0.05); }
.mobile-menu .mob-download { padding: 16px 20px; }
.mobile-menu .mob-download button {
  width: 100%;
  padding: 12px;
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: 8px;
  font-family: 'Funnel Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

/* ---------- announcement bar ---------- */
.announce {
  position: relative;
  width: 100%;
  background: var(--announce-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 11px 20px;
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--white);
}
.announce a {
  color: var(--mid);
  text-decoration: none;
  margin-left: 6px;
}

/* ---------- footer ---------- */
footer {
  background: #1b1b1b;
  border-top: 1px solid var(--line);
  padding: 48px 60px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Funnel Display', sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.footer-links a {
  color: var(--mid);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--white); }

@media (max-width: 860px) {
  footer { padding: 40px 20px; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-links { margin-left: 0; gap: 16px; }
}
