/* Appily Sixtynine — floating glass dock + constellation footer */
.a69-dock {
  position: fixed;
  top: 0.7rem;
  left: 0;
  right: 0;
  margin-inline: auto;
  z-index: 50;
  width: min(var(--a69-max), calc(100% - 1.4rem));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem 0.55rem 0.85rem;
  background: rgba(8, 14, 28, 0.88);
  border: 1px solid var(--a69-glass-border);
  border-radius: 999px;
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
  /* Never inherit page body ink — dark chrome always uses mist text */
  color: var(--a69-mist);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 18px 50px rgba(0, 0, 0, 0.45);
  /* Opacity/Y only — do not use left:50% + translateX (a69-rise overwrites it) */
  animation: a69-dock-in 0.7s var(--a69-ease) both;
}
@keyframes a69-dock-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.a69-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  min-width: 0;
}
.a69-brand-seal {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--a69-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.04em;
  color: #04120e;
  background:
    radial-gradient(circle at 30% 25%, #fff 0%, transparent 35%),
    linear-gradient(145deg, var(--a69-dew), var(--a69-cyan));
  box-shadow: 0 0 24px rgba(61, 255, 200, 0.35);
  animation: a69-glow 4.5s ease-in-out infinite;
}
.a69-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.a69-brand-copy strong {
  font-family: var(--a69-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--a69-mist);
}
.a69-brand-copy em {
  font-style: normal;
  font-family: var(--a69-mono);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  color: var(--a69-cyan);
}

.a69-orbit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.a69-orbit::-webkit-scrollbar { display: none; }
.a69-orbit a {
  flex: 0 0 auto;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(232, 241, 255, 0.78);
  transition: color 0.2s, background 0.2s;
}
.a69-orbit a:hover,
.a69-orbit a.is-on {
  color: #fff;
  background: rgba(61, 255, 200, 0.14);
}

.a69-dock-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.a69-seek {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--a69-glass-border);
  border-radius: 999px;
  overflow: hidden;
  min-width: 10rem;
}
.a69-seek input {
  border: 0;
  background: transparent;
  padding: 0.5rem 0.75rem;
  width: 100%;
  outline: none;
  color: var(--a69-mist);
}
.a69-seek input::placeholder { color: var(--a69-muted); }
.a69-seek button {
  border: 0;
  background: transparent;
  color: var(--a69-dew);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}
.a69-tool {
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--a69-glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--a69-mist);
  transition: border-color 0.2s, background 0.2s;
}
.a69-tool:hover,
.a69-tool.is-on {
  border-color: rgba(61, 255, 200, 0.45);
  background: rgba(61, 255, 200, 0.1);
}
.a69-tool svg { width: 1.1rem; height: 1.1rem; }
.a69-tool-count {
  position: absolute;
  top: -0.2rem;
  right: -0.15rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--a69-dew);
  color: #04120e;
  font-size: 0.62rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-style: normal;
}
.a69-menu-btn {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--a69-glass-border);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  place-items: center;
  gap: 0.28rem;
  flex-direction: column;
}
.a69-menu-btn span {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: var(--a69-mist);
  border-radius: 2px;
}

.a69-drawer-back {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 14, 0.65);
  backdrop-filter: blur(6px);
  z-index: 60;
}
.a69-drawer-back[hidden],
.a69-drawer[hidden] {
  display: none !important;
}
.a69-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(20rem, 88vw);
  height: 100%;
  z-index: 70;
  padding: 1.25rem;
  background: rgba(10, 16, 32, 0.96);
  border-left: 1px solid var(--a69-glass-border);
  backdrop-filter: blur(28px);
  display: none;
  flex-direction: column;
  gap: 1rem;
  color: var(--a69-mist);
  animation: a69-rise 0.35s var(--a69-ease);
}
body.a69-drawer-open .a69-drawer {
  display: flex;
}
.a69-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.a69-drawer-head strong {
  font-family: var(--a69-display);
  font-size: 1.1rem;
  color: var(--a69-mist);
}
.a69-drawer-close {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--a69-glass-border);
  background: transparent;
  color: var(--a69-mist);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}
.a69-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.a69-drawer-nav a {
  padding: 0.75rem 0.9rem;
  border-radius: var(--a69-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  font-weight: 600;
  color: var(--a69-mist);
}
.a69-drawer-nav a:hover {
  border-color: rgba(61, 255, 200, 0.35);
  background: rgba(61, 255, 200, 0.1);
  color: #fff;
}
.a69-drawer-mail {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--a69-cyan);
}

/* Constellation footer */
.a69-foot {
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--a69-glass-border);
  color: var(--a69-mist);
  background:
    radial-gradient(circle at 20% 30%, rgba(61, 255, 200, 0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(139, 124, 255, 0.1), transparent 45%),
    #070b14;
}
.a69-foot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 34% 68%, rgba(61, 255, 200, 0.55), transparent),
    radial-gradient(1.2px 1.2px at 58% 18%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 78% 42%, rgba(92, 225, 255, 0.5), transparent),
    radial-gradient(1.2px 1.2px at 88% 78%, rgba(255, 255, 255, 0.3), transparent);
  pointer-events: none;
  opacity: 0.7;
}
.a69-foot-inner {
  position: relative;
  width: min(var(--a69-max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}
.a69-foot-brand {
  padding: 1.35rem;
}
.a69-foot-brand .a69-brand-seal { margin-bottom: 0.85rem; }
.a69-foot-brand h2 {
  margin: 0 0 0.5rem;
  font-family: var(--a69-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  color: var(--a69-mist);
}
.a69-foot-brand p {
  margin: 0;
  color: rgba(232, 241, 255, 0.72);
  max-width: 28ch;
  font-size: 0.92rem;
}
.a69-foot-col {
  padding: 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.a69-foot-col h3 {
  margin: 0 0 0.35rem;
  font-family: var(--a69-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--a69-violet);
  font-weight: 500;
}
.a69-foot-col a {
  color: rgba(232, 241, 255, 0.78);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.a69-foot-col a:hover { color: var(--a69-dew); }
.a69-foot-base {
  position: relative;
  width: min(var(--a69-max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(232, 241, 255, 0.08);
  font-size: 0.78rem;
  color: rgba(232, 241, 255, 0.68);
}
.a69-foot-watermark {
  position: absolute;
  right: -2%;
  bottom: -18%;
  font-family: var(--a69-display);
  font-size: clamp(8rem, 22vw, 16rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  color: rgba(232, 241, 255, 0.035);
  pointer-events: none;
  line-height: 1;
  user-select: none;
}

@media (max-width: 980px) {
  .a69-orbit,
  .a69-seek { display: none; }
  .a69-menu-btn { display: grid; }
  .a69-dock {
    grid-template-columns: auto 1fr auto;
    border-radius: 1.35rem;
  }
  .a69-foot-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .a69-brand-copy { display: none; }
  body.a69-drawer-open { overflow: hidden; }
}
