@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/BarlowCondensed-900-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/Inter-Variable-latin.woff2') format('woff2');
}

:root {
  --bg: #0B1021;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --accent-1: #6364FF;
  --accent-2: #00E267;
  --panel: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  flex: 1;
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 96px 24px 72px;
  overflow: hidden;
  isolation: isolate;
}

.hero-inner {
  text-align: center;
  max-width: 960px;
  width: min(960px, 100%);
  position: relative;
  z-index: 2;
}

h1 {
  margin: 0;
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

.subline {
  margin: 20px auto 0;
  max-width: 720px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--muted);
  line-height: 1.7;
}

.glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 60%;
  filter: blur(120px);
  opacity: 0.6;
  z-index: 0;
}

.glow-a {
  background: radial-gradient(circle at 30% 30%, rgba(99, 100, 255, 0.3), transparent 55%);
}

.glow-b {
  inset: auto -10% -25% 10%;
  height: 65%;
  background: radial-gradient(circle at 70% 70%, rgba(0, 226, 103, 0.32), transparent 55%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(11, 16, 33, 0) 0%, #0B1021 70%, #0B1021 100%);
  pointer-events: none;
  z-index: 1;
}

.section {
  padding: 88px 24px 110px;
  display: grid;
  place-items: center;
}

.section-inner {
  max-width: 820px;
  text-align: left;
}

.section-inner.wide {
  max-width: 1080px;
}

#mission-kit .section-inner.wide {
  max-width: 960px;
}

.section-inner.manifesto {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px 22px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  align-items: start;
}

.accent-line {
  width: 3px;
  height: 120px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-1), var(--accent-2));
  opacity: 0.8;
}

.manifest-body h2 {
  margin: 0 0 12px;
}

.manifest-text {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 32px;
}

.eyebrow {
  display: inline-block;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: fit-content;
}

.section h2 {
  margin: 0 0 18px;
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
}

.lede {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.lede.small {
  font-size: 1rem;
}

.copy {
  display: grid;
  gap: 12px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 720px;
}

.copy p {
  margin: 0;
}

.tagline {
  margin: 16px 0 0;
  font-size: 1.2rem;
}

.tagline strong {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.tagline.tight {
  margin-top: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms ease, transform 650ms ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.toot-card {
  background: linear-gradient(135deg, rgba(99, 100, 255, 0.08), rgba(0, 226, 103, 0.04));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 20px 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  transition: opacity 220ms ease, transform 220ms ease;
  width: min(880px, 100%);
  min-height: 260px;
  margin: 0 auto;
}

.toot-fade {
  opacity: 0;
  transform: translateY(4px);
}

.toot-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0B1021;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.identity {
  display: grid;
  gap: 4px;
}

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

.identity .name {
  font-weight: 700;
}

.identity .handle {
  color: var(--muted);
  font-size: 0.9rem;
}

.timestamp {
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--muted);
}

.toot-text {
  margin: 0 0 14px;
  line-height: 1.6;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 9.6em;
}

.toot-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.toot-link {
  text-decoration: none;
}

.toot-card a {
  color: var(--text);
  text-decoration: none;
}

.toot-card a:hover,
.toot-card a:focus-visible {
  color: var(--muted);
  text-decoration: none;
}

.toot-error {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  font-size: 0.92rem;
}

.pill.subtle {
  font-weight: 500;
  color: var(--muted);
}

.mission-copy {
  margin: 0 0 28px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--muted);
  line-height: 1.65;
  display: grid;
  gap: 12px;
}

.mission-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.mission-card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.mission-card:not(.is-active) {
  display: none;
}

.mission-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mission-label h3 {
  margin: 0;
  font-size: 1.2rem;
}

.mission-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 6px 0 4px;
  flex-wrap: wrap;
}

.mission-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.asset {
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 10px;
}

.asset-preview {
  position: relative;
  border-radius: 10px;
  height: 160px;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.asset-preview.has-image {
  height: auto;
  background: none;
  display: block;
}

.asset-placeholder {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(11, 16, 33, 0.8);
}

.asset-preview img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.asset-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.asset-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.mission-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}

.tab-button {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.tab-button:hover,
.tab-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--accent-2);
  transform: translateY(-1px);
}

.tab-button.is-active {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: rgba(0, 226, 103, 0.08);
}

.teaser-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.teaser-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 180px auto;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.teaser-card:hover,
.teaser-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.teaser-media {
  background-size: cover;
  background-position: center;
}

.gradient-a {
  background-image: linear-gradient(135deg, rgba(99, 100, 255, 0.38), rgba(11, 16, 33, 0.2));
}

.gradient-b {
  background-image: linear-gradient(135deg, rgba(0, 226, 103, 0.35), rgba(99, 100, 255, 0.22));
}

.gradient-c {
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(99, 100, 255, 0.28));
}

.teaser-body {
  padding: 16px 16px 18px;
  display: grid;
  gap: 8px;
}

.teaser-body h3 {
  margin: 0;
  font-size: 1.2rem;
}

.teaser-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.teaser-link {
  color: var(--accent-2);
  font-weight: 700;
  text-decoration: none;
}

.teaser-link:hover,
.teaser-link:focus-visible {
  color: var(--accent-1);
  text-decoration: underline;
}

.teaser-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.steps {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #0B1021;
  font-weight: 800;
}

.step-body h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.step-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.apps-card {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.apps-card h3 {
  margin: 0 0 4px;
}

.apps-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.apps-note {
  font-size: 0.95rem;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--accent-2);
  transform: translateY(-1px);
  text-decoration: none;
}

.button.ghost {
  background: transparent;
}

.button-compact {
  padding: 8px 12px;
  font-size: 0.9rem;
}

.button.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.button-success {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.button-error {
  border-color: #ff7b7b;
  color: #ff9c9c;
}

.button.small {
  padding: 8px 12px;
  font-size: 0.9rem;
}

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

a:hover,
a:focus-visible {
  color: var(--accent-1);
  text-decoration: underline;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--accent-2);
}

.footer-link.muted {
  font-weight: 500;
}

@media (max-width: 640px) {
  .hero {
    padding: 72px 18px 64px;
  }

  .section-head {
    align-items: center;
    text-align: center;
  }

  .section-head h2 {
    text-align: center;
  }

  .section-inner.manifesto {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .accent-line {
    justify-self: center;
    height: 4px;
    width: 120px;
  }

  .teaser-grid {
    grid-template-columns: 1fr;
  }

  .apps-card {
    text-align: center;
  }

  .mission-card-head {
    flex-direction: column;
  }

  .asset-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .mission-tabs {
    gap: 8px;
  }

  .toot-card {
    width: 100%;
    min-height: 0;
  }
}
