/* =====================================================
   BASE
===================================================== */

:root {
  --bg: #05010f;
  --text: #f8f5ff;
  --muted: #a59ac7;
  --accent: #ff1493;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =====================================================
   FLOATING HEADER (CANONICAL CCC)
===================================================== */

.top-nav {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translate(-50%, -28px);

  width: min(1180px, 94%);
  padding: 8px 16px;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  border-radius: 999px;
  background: rgba(5, 1, 15, 0.92);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.85);

  opacity: 0;
  pointer-events: none;
  z-index: 50;

  transition: opacity 0.35s ease, transform 0.35s ease;
}

.top-nav.header-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

/* Brand (LEFT) */
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.ccc-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255,20,147,0.85);
}

.brand-title {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Nav (RIGHT) */
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.nav-link {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;

  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.nav-link:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-1px);
}

/* =====================================================
   HERO
===================================================== */

.hero {
  position: relative;
  padding-top: 180px;   /* clears floating header */
  padding-bottom: 96px;
  text-align: center;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.hero-logo {
  width: 72px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(38px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--muted);
  margin: 0 auto;
  line-height: 1.6;

  max-width: none;          /* remove forced wrapping */
  white-space: nowrap;     /* keep on one line */
}
@media (max-width: 640px) {
  .hero-subtitle {
    white-space: normal;   /* allow wrap on small screens only */
    max-width: 92%;
    font-size: 16px;
  }
}


/* =====================================================
   MAIN CONTENT
===================================================== */

.content {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 20px 120px;
}

.section {
  margin-top: 96px;
}

.section-title {
  font-size: 26px;
  margin-bottom: 14px;
}

.section p {
  color: var(--muted);
  line-height: 1.7;
}

/* Protocol flow */
.protocol-flow {
  margin: 24px 0;
  text-align: center;
}

.flow-step {
  font-size: 14px;
}

.flow-arrow {
  color: var(--muted);
  margin: 6px 0;
}

/* Founder note */
.founder-note {
  margin-top: 120px;
}

/* =====================================================
   FOOTER
===================================================== */

.site-footer {
  padding: 48px 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 24px;
}

.footer-icon-link svg {
  width: 20px;
  height: 20px;
  fill: var(--muted);
  transition: fill 0.2s ease;
}

.footer-icon-link:hover svg {
  fill: var(--text);
}

.ccc-litepaper-disclaimer {
  font-size: 12px;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 640px) {

  .top-nav {
    left: 8px;
    right: 8px;
    width: auto;
    max-width: none;

    min-height: 48px;
    padding:
      calc(8px + env(safe-area-inset-top))
      10px
      8px;

    transform: translateY(-28px);
  }

  .top-nav.header-visible {
    transform: translateY(0);
  }

  .brand {
    gap: 6px;
  }

  .ccc-logo {
    width: 22px;
    height: 22px;
    box-shadow: 0 0 8px rgba(255,20,147,0.75);
  }

  .brand-title {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .nav-right {
    gap: 4px;
  }

  .nav-link {
    font-size: 0.72rem;
    padding: 6px 6px;
    line-height: 1.2;
  }

  .hero {
    padding-top: 150px;
    padding-bottom: 72px;
  }

  .hero-logo {
    width: 64px;
  }

  .hero-title {
    font-size: 36px;
  }
}
.ccc-footer-disclaimer {
  margin-top: 16px;
  text-align: center;
}

.ccc-footer-disclaimer p {
  font-size: 12px;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;

  text-wrap: balance; /* modern browsers */
}
@media (max-width: 640px) {
  .ccc-footer-disclaimer p {
    font-size: 11.5px;
    padding: 0 12px;
  }
}
